Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2013 16:16:11 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   /etc/make.conf && CURDIR
Message-ID:  <20130609141611.GA17649@La-Habana>

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

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@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



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