From owner-freebsd-testing@FreeBSD.ORG Fri Jan 10 01:10:49 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5323DB67 for ; Fri, 10 Jan 2014 01:10:49 +0000 (UTC) Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe001.messaging.microsoft.com [65.55.88.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 07D5E1322 for ; Fri, 10 Jan 2014 01:10:48 +0000 (UTC) Received: from mail208-tx2-R.bigfish.com (10.9.14.232) by TX2EHSOBE008.bigfish.com (10.9.40.28) with Microsoft SMTP Server id 14.1.225.22; Fri, 10 Jan 2014 00:25:22 +0000 Received: from mail208-tx2 (localhost [127.0.0.1]) by mail208-tx2-R.bigfish.com (Postfix) with ESMTP id 402DE260260; Fri, 10 Jan 2014 00:25:22 +0000 (UTC) X-Forefront-Antispam-Report: CIP:66.129.239.16; KIP:(null); UIP:(null); IPV:NLI; H:P-EMF02-SAC.jnpr.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VPS3(zzzz1f42h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah1fc6h1082kzzz31h2a8h839hd25hf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh1b88h224fh1fb3h1d0ch1d2eh1d3fh1de2h1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h2327h2336h2381h2438h1155h) Received-SPF: softfail (mail208-tx2: transitioning domain of juniper.net does not designate 66.129.239.16 as permitted sender) client-ip=66.129.239.16; envelope-from=sjg@juniper.net; helo=P-EMF02-SAC.jnpr.net ; SAC.jnpr.net ; Received: from mail208-tx2 (localhost.localdomain [127.0.0.1]) by mail208-tx2 (MessageSwitch) id 1389313520350210_6166; Fri, 10 Jan 2014 00:25:20 +0000 (UTC) Received: from TX2EHSMHS019.bigfish.com (unknown [10.9.14.232]) by mail208-tx2.bigfish.com (Postfix) with ESMTP id 50D62180064; Fri, 10 Jan 2014 00:25:20 +0000 (UTC) Received: from P-EMF02-SAC.jnpr.net (66.129.239.16) by TX2EHSMHS019.bigfish.com (10.9.99.119) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 10 Jan 2014 00:25:20 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMF02-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.146.0; Thu, 9 Jan 2014 16:25:19 -0800 Received: from chaos.jnpr.net (chaos.jnpr.net [172.24.29.229]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id s0A0PHL54850; Thu, 9 Jan 2014 16:25:17 -0800 (PST) (envelope-from sjg@juniper.net) Received: from chaos.jnpr.net (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 9085E5807E; Thu, 9 Jan 2014 16:25:17 -0800 (PST) To: Julio Merino Subject: Re: Fixing installation of Kyuafiles In-Reply-To: References: <20140109233402.GA8193@fbair.virtual.network> <68CF4BF2-E97F-4B5E-920E-854FD6BCA083@gmail.com> Comments: In-reply-to: Julio Merino message dated "Thu, 09 Jan 2014 23:45:09 +0000." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Thu, 9 Jan 2014 16:25:17 -0800 Message-ID: <20140110002517.9085E5807E@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain X-OriginatorOrg: juniper.net X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Cc: "freebsd-testing@freebsd.org" , sjg@juniper.net X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 01:10:49 -0000 On Thu, 9 Jan 2014 23:45:09 +0000, Julio Merino writes: >If there is a simpler way than my patch, sure, by all means! I kinda >feel that what I did is a hack, hence this email asking for advice :-P if you want to stick to generated files, allowing for setting knobs in makefile that influence them, would address both issues. But unless this is a more generic issue, may not be worth it. Another alternative is: .if ${KYUAFILE:tl} != "no" FILES+= Kyuafile .if ${KYUAFILE:tl} == "auto" .NOPATH: Kyuafile .elif ${.OBJDIR} != ${.CURDIR} && exists(${.CURDIR}/Kyuafile) # remove any generated file *now* x!= rm -f ${.OBJDIR}/Kyuafile; echo .endif .endif etc. You could make that .elif ${.OBJDIR} != ${.CURDIR} && exists(${.CURDIR}/Kyuafile) && exists(${.OBJDIR}/Kyuafile) if the gratuitous rm -f bothers you.