From owner-cvs-all Tue Dec 1 20:02:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01296 for cvs-all-outgoing; Tue, 1 Dec 1998 20:02:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA01290 for ; Tue, 1 Dec 1998 20:02:50 -0800 (PST) (envelope-from asami@vader.cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca36-54.ix.netcom.com [207.92.172.54]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id UAA04054; Tue, 1 Dec 1998 20:02:36 -0800 (PST) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.8.8/8.6.9) id UAA16145; Tue, 1 Dec 1998 20:02:33 -0800 (PST) Date: Tue, 1 Dec 1998 20:02:33 -0800 (PST) Message-Id: <199812020402.UAA16145@silvia.hip.berkeley.edu> To: src@chen.ml.org CC: committers@FreeBSD.ORG In-reply-to: <199812012147.QAA32598@chen.ml.org> (message from Source Code on Tue, 1 Dec 1998 16:47:01 -0500 (EST)) Subject: Re: full path of sysctl in bsd.port.mk? From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk * From: Source Code You changed your name? :) * Usually I build ports as a regular user (only install them as root), so sysctl * is not in my path and the build fails with the message, * * sysctl: not found * "/usr/share/mk/bsd.port.mk", line 410: warning: "sysctl -n kern.osreldate" returned non-zero status The only reason it's not using the full path is because it can be in different places (/sbin or /usr/sbin) depending on the version of the OS and I didn't want to put too many .if checks in bsd.port.mk. But I recently discovered that running /usr/sbin/sysctl in an ELF-ized system without a.out libs could cause pretty nasty errors too. I'll put in the check and call it with the full pathname in the next bsd.port.mk commit. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message