Subject: Re: DESTDIR+MKOBJDIRS problem
To: Louis Guillaume <lguillaume@berklee.edu>
From: Jaka Jejcic <jj@gnorw.net>
List: current-users
Date: 04/10/2004 07:29:11
You are compiling with -U (unpriviledged build). Is it posible that you
don't own /usr/src/destdir and build just can't install there?
Try specifying -D, -R and -T to locations of your ownership and it just
might work.
jj
On Sat, Apr 10, 2004 at 01:06:48AM -0400, Louis Guillaume wrote:
> Hello,
>
> I've run into a little issue with DESTDIR and MKOBJDIRS...
>
> For some reason, when building (on i386)...
>
> ./build.sh -U -T /usr/obj/TOOLDIR.i386 release
>
> ... is done, DESTDIR is /usr/src/destdir.i386 rather than
> /usr/obj/destdir.i386. RELEASEDIR is also in /usr/src.
>
> ===> Successful make release
> ===> build.sh started: Fri Apr 9 20:22:46 EDT 2004
> ===> build.sh ended: Sat Apr 10 00:19:06 EDT 2004
> ===> Summary of results:
> build.sh command: ./build.sh -u -x -U -T /usr/obj/TOOLDIR.i386
> release
> build.sh started: Fri Apr 9 20:22:46 EDT 2004
> MACHINE: i386
> MACHINE_ARCH: i386
> TOOLDIR path: /usr/obj/TOOLDIR.i386
> DESTDIR path: /usr/src/destdir.i386
> RELEASEDIR path: /usr/src/releasedir
> makewrapper: /usr/obj/TOOLDIR.i386/bin/nbmake-i386
> Updated /usr/obj/TOOLDIR.i386/bin/nbmake-i386
> Successful make release
> build.sh started: Fri Apr 9 20:22:46 EDT 2004
> build.sh ended: Sat Apr 10 00:19:06 EDT 2004
>
> Installing fails unless I set "-D /usr/src/destdir.i386". This takes
> care of the entire problem, even though I don't modify RELEASEDIR.
>
> # ./build.sh -u -U -T /usr/obj/TOOLDIR.i386 install=/
> ===> build.sh command: ./build.sh -u -U -T /usr/obj/TOOLDIR.i386 install=/
> ===> build.sh started: Sat Apr 10 00:20:04 EDT 2004
> ===> MACHINE: i386
> ===> MACHINE_ARCH: i386
> ===> TOOLDIR path: /usr/obj/TOOLDIR.i386
> ===> DESTDIR path: /usr/src/obj/destdir.i386
> ===> RELEASEDIR path: /usr/src/obj/releasedir
> ===> makewrapper: /usr/obj/TOOLDIR.i386/bin/nbmake-i386
> ===> Updated /usr/obj/TOOLDIR.i386/bin/nbmake-i386
> (cd /usr/src/distrib/sets && /usr/obj/TOOLDIR.i386/bin/nbmake
> INSTALLDIR=/ INSTALLSETS= installsets)
> cd /usr/src/distrib/sets && DESTDIR=/usr/src/obj/destdir.i386
> MACHINE=i386 MACHINE_ARCH=i386 CKSUM=/usr/obj/TOOLDIR.i386/bin/nbcksum
> MAKE=/usr/obj/TOOLDIR.i386/bin/nbmake
> MTREE=/usr/obj/TOOLDIR.i386/bin/nbmtree
> MKTEMP=/usr/obj/TOOLDIR.i386/bin/nbmktemp
> PAX=/usr/obj/TOOLDIR.i386/bin/nbpax HOST_SH=sh sh ./maketars -d
> /usr/src/obj/destdir.i386 -M /usr/src/obj/destdir.i386/METALOG -N
> /usr/src/etc -i /
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.base:
> directory nonexistent
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.comp:
> directory nonexistent
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.games:
> directory nonexistent
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.man:
> directory nonexistent
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.misc:
> directory nonexistent
> ./maketars: cannot create /usr/src/obj/destdir.i386/etc/mtree/set.text:
> directory nonexistent
> Copying set base
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.base: no
> such file
> Copying set comp
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.comp: no
> such file
> Copying set games
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.games:
> no such file
> Copying set man
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.man: no
> such file
> Copying set misc
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.misc: no
> such file
> Copying set text
> cd: can't cd to /usr/src/obj/destdir.i386
> ./maketars: cannot open /usr/src/obj/destdir.i386/etc/mtree/set.text: no
> such file
>
> *** Failed target: installsets
>
> This is the entire /etc/mk.conf
>
> # cat /etc/mk.conf
> .ifdef BSD_PKG_MK # pkgsrc
>
> DISTDIR?= /usr/pkgsrc_distfiles
>
> ACCEPTABLE_LICENSES+=jdk13-license
> ACCEPTABLE_LICENSES+=jdk-license
> ACCEPTABLE_LICENSES+=adobe-acrobat-license
> ACCEPTABLE_LICENSES+=fee-based-commercial-use
> ACCEPTABLE_LICENSES+=no-profit
> ACCEPTABLE_LICENSES+=vmware-license
>
> USE_CUPS=YES
> SASL_USE_GSSAPI=YES
> USE_SASL2=YES
> _NEED_PERL58=YES
>
> PKG_JVM=sun-jdk14
>
> DEPENDS_TARGET=package
>
> .endif # pkgsrc
>
> OBJMACHINEDIR=YES
> MKOBJDIRS=YES
>
> ####
>
> ... I couldn't find anything in the archives, pr's or on Google that
> accurately describes this issue. Should I send-pr?
>
> Louis