Subject: Re: pkgtools/libkver vs. linux packages
To: Chapman Flack <nblists@anastigmatix.net>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 04/29/2006 15:42:12
--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Apr 29, 2006 at 12:46:30AM -0400, Chapman Flack wrote:
> making a linux package while libkver is in use loses because the
> LD_PRELOAD of a NetBSD shared object won't succeed if a linux binary
> is being run. :o
>=20
> For right now I'm working around it by manually running a few make
> targets of linux packages without LD_PRELOAD in the environment.
>=20
> I suppose the real solution would be somehow to use a supervisory
> process and the systrace API to intercept uname and sysctl calls and
> fake up the results, instead of library interposition. I don't think
> Systrace: the Program can do this, but it looks like Systrace: the API
> can. Am I sane?
you are overcomplicating it. what's needed is a libkver.so compiled for
linux doing nothing. it just works but there is problem with packaging
it properly.
regards,
--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)
iD8DBQFEU200iwjDDlS8cmMRAgbCAJ4pN+uQevJJ4ZDCjmG5nzd5tJBHuQCgkvIO
ZOnMXBppfIMhaiuzeP8iM5A=
=h8eK
-----END PGP SIGNATURE-----
--FCuugMFkClbJLl1L--