Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 1998 17:02:35 +0900 (JST)
From:      takamune@avrl.mei.co.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/8279: "/usr/sbin/sysctl" is linked to "${DESTDIR}/sbin/sysctl".
Message-ID:  <199810120802.RAA22084@dream.avrl.mei.co.jp>

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

>Number:         8279
>Category:       bin
>Synopsis:       /usr/sbin/sysctl -> ${DESTDIR}/sbin/sysctl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 12 01:10:00 PDT 1998
>Last-Modified:
>Originator:     Kazutoki TAKAMUNE takamune@avrl.mei.co.jp
>Organization:
Matsushita Electric Industrial Co., Ltd.
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:
FreeBSD dream.avrl.mei.co.jp 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Oct 12 12:38:56 JST 1998     takamune@dream.avrl.mei.co.jp:/usr/src/sys/compile/DREAM  i386

>Description:

If DESTDIR is defined, "/usr/sbin/sysctl" is linked to "${DESTDIR}/sbin/sysctl"
by "make installworld".

>How-To-Repeat:

# cd /usr/src
# make installworld DESTDIR=/XXX

===> usr.sbin/sysctl
install -c -s -o bin -g bin -m 555   sysctl /spare/sbin
/XXX/usr/sbin/sysctl -> /XXX/sbin/sysctl

# ls -l /XXX/usr/sbin/sysctl
lrwxrwxrwx  1 root  bin  18 Oct 12 13:06 /XXX/usr/sbin/sysctl -> /XXX/sbin/sysctl

>Fix:
*** bsd.prog.mk.orig	Mon Jun 15 01:10:49 1998
--- bsd.prog.mk	Mon Oct 12 17:01:23 1998
***************
*** 105,112 ****
  .endif
  .if defined(LINKS) && !empty(LINKS)
  	@set ${LINKS}; \
  	while test $$# -ge 2; do \
! 		l=${DESTDIR}$$1; \
  		shift; \
  		t=${DESTDIR}$$1; \
  		shift; \
--- 105,113 ----
  .endif
  .if defined(LINKS) && !empty(LINKS)
  	@set ${LINKS}; \
+ 	echo -- "${LN_FLAGS}" | egrep -q -- '-[^-]*s' || d=${DESTDIR}; \
  	while test $$# -ge 2; do \
! 		l=$$d$$1; \
  		shift; \
  		t=${DESTDIR}$$1; \
  		shift; \
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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