Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2010 07:51:26 +0100
From:      Lars Engels <lars.engels@0x20.net>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc:        ports@FreeBSD.org, Lev Serebryakov <lev@FreeBSD.org>
Subject:   Re: Proper way to detect kernel / userland sources?
Message-ID:  <20101110065125.GK56407@e.0x20.net>
In-Reply-To: <20101109203822.GA67706@hades.panopticon>
References:  <241091055.20101109182834@serebryakov.spb.ru> <20101109203822.GA67706@hades.panopticon>

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

--fgeUT96Xdo+SN8mm
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 09, 2010 at 11:38:22PM +0300, Dmitry Marakasov wrote:
> * Lev Serebryakov (lev@FreeBSD.org) wrote:
>=20
> >   I'm  preparing port which depends both on kernel source (it contains
> > kernel module) and userland sources (it needs GEOM sources).
> >=20
> >   I   see,   that  ports  with  kernel  modules  check  for  hardcoded
> >   "/usr/src/sys/Makefile".  But it doesn't look good: sources could be
> >   perfectly valid, but placed in other directory!
> >=20
> >   Is  here  any  standerd  variable  which  should  be used instead of
> >   hardcoded "/usr/src"?

[...]

> While here, I'm worried about the fact that /usr/src is used as a
> possible source for OSVERSION. Currently, in presence of freebsd-update,
> it's really likely that system sources are out-of sync with installed
> system, so getting OSVERSION from /usr/src should likely be removed.
> osreldate is enough fallback if /usr/include/sys/param.h is absent
> for some reason.

AFAIK freebsd-update also updates /usr/src if /usr/src is not empty.

--fgeUT96Xdo+SN8mm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkzaQO0ACgkQKc512sD3afjlXACgokLJ9CYJQPifiJQ7uN9Ji3Wl
M+YAoKxMf7ZUq/b6aYNfRqq2kBu80tFR
=Lad7
-----END PGP SIGNATURE-----

--fgeUT96Xdo+SN8mm--



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