Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2000 20:43:59 +0900 (JST)
From:      takamune@avrl.mei.co.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17946: XFree86-4.0 with /usr/X11R6 containing a symbolic link
Message-ID:  <200004121143.UAA21549@dream.vrl.mei.co.jp>

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

>Number:         17946
>Category:       ports
>Synopsis:       XFree86-4.0 with /usr/X11R6 containing a symbolic link
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 12 04:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kazu TAKAMUNE
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Matsushita Electric Industrial Co., Ltd.
>Environment:

FreeBSD 4.0-STABLE(Wed Apr 12 14:54:00 JST 2000)
ports/Mk/bsd.port.mk,v 1.335 2000/04/11 21:38:02

>Description:

I can't install XFree86-4.0 when /usr/X11R6 contains a symbolic link.

Makefiles created by imake will have `install' target(s) as follows:

[${WRKDIR}/xc/programs/bitmap/Makefile]
USRLIBDIR = /usr/X11R6/lib
LIBDIR = $(USRLIBDIR)/X11

install:
	if [ -d $(DESTDIR)$(LIBDIR)/. ]; then \
	RELPATH=`echo $(LIBDIR)/. | \
	sed -e 's:^.::' -e 's:[^/.][^/]*:..:'g`; \
	cd $(DESTDIR)$(LIBDIR)/.; \
	if [ -d app-defaults -a ! -h app-defaults ]; then \
	(cd app-defaults; tar cf - . | \
	(cd $(DESTDIR)$(CONFDIR)/app-defaults; \
	tar xf -; exit 0); exit 0); \
	fi; \
	$(RM) -r app-defaults; \
	$(LN) $${RELPATH}$(CONFDIR)/app-defaults .; \

Then an invalid symlink
	/usr/X11R6/lib/X11/app-defaults -> ../../../../etc/X11/app-defaults
will created.

>How-To-Repeat:

# ls -l /usr/X11R6
lrwxr-xr-x  1 root  wheel  17 Apr 12 13:37 /usr/X11R6@ -> /util/ports/X11R6
# cd /usr/ports/x11/XFree86-4
# make install
(snip)
Full build of Release 6.4 of the X Window System complete.

===>  Installing for XFree86-4.0
/bin/mkdir -p /usr/X11R6
make -f xmakefile install
installing in ./include...
(snip)
installing in ./programs...
installing in programs/appres...
/usr/bin/install -c -s  appres /usr/X11R6/bin/appres
install in programs/appres done
installing in programs/bdftopcf...
/usr/bin/install -c -s  bdftopcf /usr/X11R6/bin/bdftopcf
install in programs/bdftopcf done
installing in programs/bitmap...
/usr/bin/install -c -s  bitmap /usr/X11R6/bin/bitmap
+ mkdir -p /etc/X11/app-defaults
+ mkdir -p /usr/X11R6/lib/X11/app-defaults
mkdir: /usr/X11R6/lib/X11/app-defaults: File exists
*** Error code 1

Stop in /usr/ports/x11/XFree86-4/work/xc/programs/bitmap.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4/work/xc/programs.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4/work/xc.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4/work/xc.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.

>Fix:
Please add a patch as x11/XFree86-4/patches/patch-h.

--- config/cf/Imake.rules.orig	Wed Mar  8 00:54:17 2000
+++ config/cf/Imake.rules	Wed Apr 12 18:00:00 2000
@@ -1437,7 +1437,7 @@
 	MakeDir(Concat($(DESTDIR),npath/mdir))				@@\
 	@MakeFlagsToShellFlags(i,set +e); \				@@\
 	if [ -d Concat($(DESTDIR),opath/cdir) ]; then \			@@\
-	  RELPATH=`echo opath/cdir | \					@@\
+	  RELPATH=`cd opath/cdir; pwd | \				@@\
 		sed -e 's:^.::' -e 's:[^/.][^/]*:..:'g`; \		@@\
 	  cd Concat($(DESTDIR),opath/cdir); \				@@\
 	  if [ -d rdir -a ! -h rdir ]; then \ 				@@\
@@ -1484,7 +1484,7 @@
 	MakeDir(Concat($(DESTDIR),npath))				@@\
 	@MakeFlagsToShellFlags(i,set +e); \				@@\
 	if [ -d Concat($(DESTDIR),opath) ]; then \			@@\
-	  RELPATH=`echo opath | \					@@\
+	  RELPATH=`cd opath; pwd | \					@@\
 		sed -e 's:^.::' -e 's:[^/.][^/]*:..:'g`; \		@@\
 	  cd Concat($(DESTDIR),opath); \				@@\
 	  if [ -f lfile -a ! -h lfile ]; then \ 			@@\

>Release-Note:
>Audit-Trail:
>Unformatted:


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




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