[Bug 211564] distributeworld (and other distribuction functions) failing for custom DESTDIR

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 4 01:48:16 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211564

            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 at FreeBSD.org
          Reporter: egypcio at googlemail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 173260
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=173260&action=edit
Enforce the use of ${DESTDIR} during world distribution.

After a complete 'buildworld' build, if DESTDIR is set to any other (existing)
directory, it fails to 'distributeworld'. Attached patch proposes a solution.

root at 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 at box:/usr/src # mkdir -p /freebsd/12.0-current/mydestdir

root at box:/usr/src # make -s distributeworld
DESTDIR="/freebsd/12.0-current/mydestdir"

    (...)

--------------------------------------------------------------
>>> Distributing everything
--------------------------------------------------------------
===> lib (distribute)
===> lib/csu (distribute)
===> 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 at box:/usr/src # svn patch ~egypcio/freebsd/base.HEAD.r303717.patch
U         Makefile.inc1
U         etc/Makefile
U         share/mk/bsd.subdir.mk

root at box:/usr/src # make -s distributeworld
DESTDIR="/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
--------------------------------------------------------------

    (...)

===> libssl (distribute)
===> libssh (distribute)
===> libasn1 (distribute)
===> libgssapi_krb5 (distribute)
===> libgssapi_ntlm (distribute)
===> libgssapi_spnego (distribute)
===> libhdb (distribute)
===> libheimntlm (distribute)
===> libhx509 (distribute)
===> libkadm5clnt (distribute)
===> libkadm5srv (distribute)
===> libkrb5 (distribute)
===> libroken (distribute)
===> libsl (distribute)
===> libvers (distribute)
===> libkdc (distribute)
===> libwind (distribute)
===> libheimbase (distribute)
===> libheimipcc (distribute)
===> libheimipcs (distribute)
===> libkafs5 (distribute)

root at box:/usr/src # echo $?
0

root at 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 at box:/usr/obj/usr/src/sys/BOX  amd64 GENERIC-NODEBUG

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list