Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 14:27:15 +0200
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        Ilya Bakulin <webmaster@kibab.com>
Cc:        freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org
Subject:   Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT
Message-ID:  <20120522122715.GA23522@felucia.tataz.chchile.org>
In-Reply-To: <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com>
References:  <4FB92FCE.7050407@kibab.com> <20120521103623.GD65093@felucia.tataz.chchile.org> <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ilya,

On Mon, May 21, 2012 at 01:43:39PM +0200, Ilya Bakulin wrote:
> On Mon, May 21, 2012 12:36 pm, Jeremie Le Hen wrote:
> > Can you provide the exact commands you have used to create your chroot?
> >
> Sure!
> 
> 1. The build host is FreeBSD 8.2-RELEASE-p3 amd64
> 2. Directory where project resides ($PROJROOT):
> /home/kibab/repos/freebsd-cap-git
> 2. FreeBSD-CURRENT sources are in $PROJROOT/freebsd
> 3. Object directory is $PROJROOT/obj
> 4. Installation directory is $PROJROOT/inst
> 
> 5. Building world: while in $PROJROOT/freebsd, I type:
>   make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16
> buildworld
> ...After a while, build ends...
> 6. while in $PROJROOT/freebsd, type `sudo make buildenv`, after entering
> build environment I set nessesary env variables:
> PROJROOT=/home/kibab/repos/freebsd-cap-git
> MAKEOBJDIRPREFIX=/home/kibab/repos/freebsd-cap-git/obj
> DISTDIR=/home/kibab/repos/freebsd-cap-git/inst
> DESTDIR=/home/kibab/repos/freebsd-cap-git/inst
> 
> 7. After that, type:
> make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16
> installworld

This is expected I think, as "make buildenv" defines $_SHLIBDIRPREFIX
which is used to make the toolchain use libraries built during stage 4.2
of buildworld.

Just run "make installworld" with the correct DESTDIR and your chroot
will be fine.

-- 
Jeremie Le Hen

Men are born free and equal.  Later on, they're on their own.
				Jean Yanne



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