Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2017 00:40:09 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Johannes M Dieterich <jmd@freebsd.org>
Cc:        Jung-uk Kim <jkim@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r448928 - in head/graphics: . drm-next-kmod
Message-ID:  <4lsq-vvzq-wny@FreeBSD.org>
In-Reply-To: <20170829205351.Horde.cJ-BkOZLFgXWSRXmqFSiczx@www.poelloepaeae.de> (Johannes M. Dieterich's message of "Tue, 29 Aug 2017 20:53:51 %2B0000")
References:  <20170829205351.Horde.cJ-BkOZLFgXWSRXmqFSiczx@www.poelloepaeae.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Johannes M Dieterich <jmd@freebsd.org> writes:

> Jung-uk Kim =E2=80=93 Tue., 29. August 2017 16:46
>> On 08/29/2017 13:13, Jan Beich wrote:
>> > Johannes M Dieterich <jmd@FreeBSD.org> writes:
>> >=20
>> >> Author: jmd
>> >> Date: Tue Aug 29 16:32:19 2017
>> >> New Revision: 448928
>> >> URL: svnweb.freebsd.org/changeset/ports/448928
>> >>
>> >> Log:
>> >>   New port: graphics/drm-next-kmod.
>> > [...]
>> >> +USES=3D		kmod uidfix
>> >=20
>> > Fails to build if SRC_BASE !=3D /usr/src. With SRCTOP undefined the po=
rt
>> > relies on /sys symlink existing and pointing to a real location. The
>> > latter conflicts with $SRC_BASE/etc/Makefile hardcoding "usr/src/sys".
>> >=20
>> > Maybe add MAKE_ENV =3D SRCTOP=3D"${SRC_BASE}" to fix the following.
>> >=20
>> > $ make DISABLE_MAKE_JOBS=3D
>> > =3D=3D=3D>  Building for drm-next-kmod-g20170825
>> > =3D=3D=3D> drm (all)
>> > Warning: Object directory not changed from original /usr/ports/graphic=
s/drm-next-kmod/work/kms-drm-4ee5acb/drm
>> > =3D=3D=3D> amd (all)
>> > make[3]:
>> > "/usr/ports/graphics/drm-next-kmod/work/kms-drm-4ee5acb/amd/Makefile"
>> > line 3: Cannot open /sys/conf/kern.opts.mk
>> > make[3]: Fatal errors encountered -- cannot continue
>> > make[3]: stopped in /usr/ports/graphics/drm-next-kmod/work/kms-drm-4ee=
5acb/amd
>> > *** Error code 1
>
> ... my understanding is that for kmods we require /usr/src?

Custom base system source location when building kernel modules has been
supported for a long time, probably as long as non-root builds. Before
SRC_BASE existed such ports usually relied on SYSDIR directly which
is defined by bsd.kmod.mk.

> I checked with kwm and he pointed out that people not
> running /non-usr/src systems should set SRC_BASE properly in their
> Mk/Uses/kmod.mk (I haven't tested this).

I have both SRC_BASE and SYSDIR defined via environment. No issues with
other -kmod ports for >5 years.

Did you miss that this port doesn't respect SRC_BASE at all?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4lsq-vvzq-wny>