From owner-freebsd-questions@FreeBSD.ORG Sun Jun 9 14:16:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 293EAE16 for ; Sun, 9 Jun 2013 14:16:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id E55AF1B14 for ; Sun, 9 Jun 2013 14:16:22 +0000 (UTC) Received: from [46.244.138.152] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UlgPn-00056x-18 for freebsd-questions@freebsd.org; Sun, 09 Jun 2013 16:16:15 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id r59EGCGC018783 for ; Sun, 9 Jun 2013 16:16:12 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id r59EGBS5018782 for freebsd-questions@freebsd.org; Sun, 9 Jun 2013 16:16:11 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 9 Jun 2013 16:16:11 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: /etc/make.conf && CURDIR Message-ID: <20130609141611.GA17649@La-Habana> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 46.244.138.152 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 14:16:23 -0000 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