Subject: Re: cross compiling for another NetBSD release
To: Marton Fabo <>
From: Lubomir Sedlacik <>
List: tech-pkg
Date: 11/22/2004 23:03:51
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


On Mon, Nov 22, 2004 at 10:57:40PM +0100, Marton Fabo wrote:
> >>to build a handful of packages on NetBSD-Y-i386, with the target of
> >>NetBSD-X-i386
> >
> >It's not really possible for packages....  at least not yet.
> >
> >Packages are built with the build-host's toolchain, source headers,
> >and libraries, and so they are always specific to the build host's
> >currently installed and running OS release.
> OK, I see. This may be nice having mentioned in the pkgsrc
> documentation.
> Anyway, is it a possible way to go to set up a NetBSD-X environment
> within a directory of the build machine, and use it with chroot to
> build? I guess in this case the only thing that would still be other
> (Y) version in the environment is the kernel.
> If this is possible, how should I start realizing it?

by installing pkgsrc/pkgtools/libkver and pkgsrc/pkgtools/pkg_comp
and doing the, oh, so impossible..


-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.6 (NetBSD)