From owner-freebsd-questions@FreeBSD.ORG Sat Jun 1 05:00:06 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EB54F9CF for ; Sat, 1 Jun 2013 05:00:06 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (mtumishi.cyberleo.net [216.226.128.201]) by mx1.freebsd.org (Postfix) with ESMTP id CB6DBEAB for ; Sat, 1 Jun 2013 05:00:06 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [216.80.73.130]) by paka.cyberleo.net (Postfix) with ESMTPSA id 3C2A1191D72; Sat, 1 Jun 2013 00:51:49 -0400 (EDT) Message-ID: <51A97DE4.2080408@cyberleo.net> Date: Fri, 31 May 2013 23:51:48 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130410 Thunderbird/17.0.5 MIME-Version: 1.0 To: Jack Mc Lauren Subject: Re: make release fails References: <1369309963.43730.YahooMailNeo@web160101.mail.bf1.yahoo.com> In-Reply-To: <1369309963.43730.YahooMailNeo@web160101.mail.bf1.yahoo.com> X-Enigmail-Version: 1.6a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Global Users Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2013 05:00:07 -0000 On 05/23/2013 06:52 AM, Jack Mc Lauren wrote: > Hi > find //usr/obj/usr/src/release/dist/doc -empty -delete > find: -delete: //usr/obj/usr/src/release/dist/doc: relative path potentially not > safe > *** [distributeworld] Error code 1 > What's wrong with this? > Thanks in advance Huh. Apparently I ran across this myself in the past, since I found a patch lurking in my source tree. ----8<---- diff --git a/Makefile.inc1 b/Makefile.inc1 index 4567e5d..1830483 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -685,7 +685,7 @@ distributeworld installworld: installcheck ${IMAKEENV} rm -rf ${INSTALLTMP} .if make(distributeworld) .for dist in ${EXTRA_DISTRIBUTIONS} - find ${DESTDIR}/${DISTDIR}/${dist} -empty -delete + find ${DESTDIR}/${DISTDIR}/${dist} -empty -exec rmdir {} + .endfor .endif ----8<---- The reason this occurs is because you and I are building with NODOC, which leaves dist/doc empty, and the above find construct will refuse to -delete if the directory specified on the command line is one of the ones that would have been deleted. Either patch the makefile as above, tell make to ignore the return code of this find invocation, or put some non-empty files into /usr/obj/usr/src/release/dist/doc during the release building process (like a README pointing to the docs tarball on the mirrors) to make it not trigger the empty condition. Hope this helps! -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/