Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Aug 2016 01:48:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 211564] distributeworld (and other distribuction functions) failing for custom DESTDIR
Message-ID:  <bug-211564-6@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211564-6>