From owner-freebsd-amd64@freebsd.org Thu Aug 4 01:48:16 2016 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA5F0BAD08B for ; Thu, 4 Aug 2016 01:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF2471348 for ; Thu, 4 Aug 2016 01:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u741mGbm049062 for ; Thu, 4 Aug 2016 01:48:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 211564] distributeworld (and other distribuction functions) failing for custom DESTDIR Date: Thu, 04 Aug 2016 01:48:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: egypcio@googlemail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 04 Aug 2016 03:14:46 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2016 01:48:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211564 Bug ID: 211564 Summary: distributeworld (and other distribuction functions) failing for custom DESTDIR Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: standards Assignee: freebsd-standards@FreeBSD.org Reporter: egypcio@googlemail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 173260 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D173260&action= =3Dedit Enforce the use of ${DESTDIR} during world distribution. After a complete 'buildworld' build, if DESTDIR is set to any other (existi= ng) directory, it fails to 'distributeworld'. Attached patch proposes a solutio= n. root@box:/usr/src # svn info Path: . Working Copy Root Path: /usr/src URL: svn://svnmir.geo.freebsd.org/base/head Relative URL: ^/head Repository Root: svn://svnmir.geo.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 303717 Node Kind: directory Schedule: normal Last Changed Author: des Last Changed Rev: 303716 Last Changed Date: 2016-08-03 13:08:21 -0300 (Wed, 03 Aug 2016) root@box:/usr/src # mkdir -p /freebsd/12.0-current/mydestdir root@box:/usr/src # make -s distributeworld DESTDIR=3D"/freebsd/12.0-current/mydestdir" (...) -------------------------------------------------------------- >>> Distributing everything -------------------------------------------------------------- =3D=3D=3D> lib (distribute) =3D=3D=3D> lib/csu (distribute) =3D=3D=3D> lib/csu/amd64 (distribute) install: target directory `/base/usr/lib/' does not exist usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 file2 install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 ... fileN directory install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] directory ... *** Error code 64 Stop. make[7]: stopped in /usr/src/lib/csu/amd64 *** Error code 1 Stop. make[6]: stopped in /usr/src/lib/csu/amd64 *** Error code 1 Stop. make[5]: stopped in /usr/src/lib/csu *** Error code 1 Stop. make[4]: stopped in /usr/src/lib *** Error code 1 Stop. make[3]: stopped in /usr/src *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src root@box:/usr/src # svn patch ~egypcio/freebsd/base.HEAD.r303717.patch U Makefile.inc1 U etc/Makefile U share/mk/bsd.subdir.mk root@box:/usr/src # make -s distributeworld DESTDIR=3D"/freebsd/12.0-current/mydestdir" mkdir: /freebsd/12.0-current/mydestdir//doc: File exists *** Error code 1 (ignored) mkdir: /freebsd/12.0-current/mydestdir//lib32: File exists *** Error code 1 (ignored) mkdir: /freebsd/12.0-current/mydestdir//base: File exists *** Error code 1 (ignored) -------------------------------------------------------------- >>> Distributing everything -------------------------------------------------------------- (...) =3D=3D=3D> libssl (distribute) =3D=3D=3D> libssh (distribute) =3D=3D=3D> libasn1 (distribute) =3D=3D=3D> libgssapi_krb5 (distribute) =3D=3D=3D> libgssapi_ntlm (distribute) =3D=3D=3D> libgssapi_spnego (distribute) =3D=3D=3D> libhdb (distribute) =3D=3D=3D> libheimntlm (distribute) =3D=3D=3D> libhx509 (distribute) =3D=3D=3D> libkadm5clnt (distribute) =3D=3D=3D> libkadm5srv (distribute) =3D=3D=3D> libkrb5 (distribute) =3D=3D=3D> libroken (distribute) =3D=3D=3D> libsl (distribute) =3D=3D=3D> libvers (distribute) =3D=3D=3D> libkdc (distribute) =3D=3D=3D> libwind (distribute) =3D=3D=3D> libheimbase (distribute) =3D=3D=3D> libheimipcc (distribute) =3D=3D=3D> libheimipcs (distribute) =3D=3D=3D> libkafs5 (distribute) root@box:/usr/src # echo $? 0 root@box:/usr/src # uname -ai FreeBSD box 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r303717: Wed Aug 3 15:18:= 06 BRT 2016 root@box:/usr/obj/usr/src/sys/BOX amd64 GENERIC-NODEBUG --=20 You are receiving this mail because: You are on the CC list for the bug.=