/etc/make.conf && CURDIR

Matthias Apitz guru at unixarea.de
Sun Jun 9 14:16:23 UTC 2013


Hello,

I have the kernel sources not in /usr/src/sys, but elsewhere; 
I can not get set correctly SYSDIR via /etc/make.conf for some
ports (or other values like USE_GCC, ...);

if I have in /etc/make.conf these lines:

    .if ${.CURDIR:M*/multimedia/cuse4bsd-kmod*}
    SYSDIR=/usr/home/guru/head/src/sys
    .endif

it works, but if I let away the '*' in the line, i.e.

    .if ${.CURDIR:M*/multimedia/cuse4bsd-kmod}
    SYSDIR=/usr/home/guru/head/src/sys
    .endif

the 'make' asks me to set SYSDIR:

# make clean install
...
building shared library libcuse4bsd.so.1
gzip -cn cuse4bsd.3 > cuse4bsd.3.gz
make -f /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4bsd-kmod-0.1.27/Makefile.kmod all
"/usr/share/mk/bsd.kmod.mk", line 12: Unable to locate the kernel source tree. Set SYSDIR to override.
*** [all] Error code 1

Why is this? Thanks. The system runs 10-CUR r250588 i386.

	matthias

-- 
Matthias Apitz               |  /"\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: guru at unixarea.de     |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211       |  / \ - Respect for open standards


More information about the freebsd-questions mailing list