From owner-freebsd-ports@FreeBSD.ORG Wed Nov 10 07:07:13 2010 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5C5F106564A; Wed, 10 Nov 2010 07:07:13 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 988618FC0A; Wed, 10 Nov 2010 07:07:13 +0000 (UTC) Received: by mail.0x20.net (Postfix, from userid 1002) id 17AB23A601; Wed, 10 Nov 2010 07:51:26 +0100 (CET) Date: Wed, 10 Nov 2010 07:51:26 +0100 From: Lars Engels To: Dmitry Marakasov Message-ID: <20101110065125.GK56407@e.0x20.net> References: <241091055.20101109182834@serebryakov.spb.ru> <20101109203822.GA67706@hades.panopticon> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fgeUT96Xdo+SN8mm" Content-Disposition: inline In-Reply-To: <20101109203822.GA67706@hades.panopticon> X-Editor: VIM - Vi IMproved 7.2 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org, Lev Serebryakov Subject: Re: Proper way to detect kernel / userland sources? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2010 07:07:13 -0000 --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--