Re: /etc/make.conf && CURDIR
El día Monday, June 10, 2013 a las 03:03:07AM +0930, Shane Ambler escribió: > > 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: > > > > ... > You'll find the trailing asterix is a wildcard to match any sub dirs. > When building CURDIR only contains multimedia/cuse4bsd-kmod - CURDIR > will be something like > /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4-bsd-kmod-0.1.27/ > The pre and post * matches all paths with multimedia/cuse4bsd-kmod in > them - usually pretty unique when building within the ports dirs. I was thinking the same re/ wildcard; on the other hand, I always saw hints like this for setting certain values in make.conf based on the ports' name, liek for example: .if ${.CURDIR:M*/category/port} USE_GCC=any .endif those examples never used the * (i.e. /category/port/* ); that's why until today I was thinking that the expresion means already "if /category/port is part of current dir", perhaps I have to read a make manual for this again... thanks for your feedback in any case matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /etc/make.conf && CURDIR
On 09/06/2013 23:46, Matthias Apitz wrote: 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. You'll find the trailing asterix is a wildcard to match any sub dirs. When building CURDIR only contains multimedia/cuse4bsd-kmod - CURDIR will be something like /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4-bsd-kmod-0.1.27/ The pre and post * matches all paths with multimedia/cuse4bsd-kmod in them - usually pretty unique when building within the ports dirs. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
/etc/make.conf && CURDIR
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: g...@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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"