make release fails

CyberLeo Kitsana cyberleo at
Sat Jun 1 05:00:07 UTC 2013

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.

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 {} +


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,
Technical Administrator
CyberLeo.Net Webhosting
<CyberLeo at CyberLeo.Net>

Furry Peace! -

More information about the freebsd-questions mailing list