Subject: Re: My slur of PRs
To: None <lennart@augustsson.net>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: tech-pkg
Date: 12/18/1999 12:40:37
>Some of the PRs I submitted yesterday are not really problems with
>the packages and I will close them.  I apologize for the confusion.
>(Some of the PRs still stand, though.)
>
>The real problem is that if you install emul/compat12 and/or emul/compat13
>then that installation will mess up symbolic links in /usr/lib which makes it
>impossible to compile lots and lots of other packages.

I ran in to this problem shortly after the a.out->ELF transition.  The
enclosed patches are what I ended up doing.  Ideally, there should be
some way to tell bsd.pkg.mk _not_ to do the normal shared library handling.
Failing that, stuff similar to the following would be needed for any arch
which moves to ELF...
(I will also append this to pr pkg/9011...)

Index: emulators/compat12/Makefile
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/emulators/compat12/Makefile,v
retrieving revision 1.1.1.4
retrieving revision 1.4
diff -u -r1.1.1.4 -r1.4
--- Makefile	1999/06/21 18:54:05	1.1.1.4
+++ Makefile	1999/10/01 20:12:31	1.4
@@ -17,7 +17,16 @@
 .include "../../mk/bsd.prefs.mk"
 
 # This installs in /usr to avoid dynamic linker annoyances
+.if (${MACHINE_ARCH} == "i386")
+show-shlib-type:
+	${ECHO} "a.out"
+
+.if exists(/emul/aout/usr/libexec/ld.so)
+LOCALBASE=	/emul/aout/usr 
+.else
 LOCALBASE=	/usr 
+.endif
+.endif
 NO_MTREE=
 
 do-install:
Index: emulators/compat13/Makefile
===================================================================
RCS file: /source/cvs/netbsd/current/pkgsrc/emulators/compat13/Makefile,v
retrieving revision 1.1.1.3
retrieving revision 1.4
diff -u -r1.1.1.3 -r1.4
--- Makefile	1999/06/21 18:54:23	1.1.1.3
+++ Makefile	1999/10/01 20:12:26	1.4
@@ -19,7 +19,16 @@
 .include "../../mk/bsd.prefs.mk"
 
 # This installs in /usr to avoid dynamic linker annoyances
+.if (${MACHINE_ARCH} == "i386")
+show-shlib-type:
+	${ECHO} "a.out"
+
+.if exists(/emul/aout/usr/libexec/ld.so)
+LOCALBASE=		/emul/aout/usr 
+.else
 LOCALBASE=		/usr 
+.endif
+.endif
 NO_MTREE=
 
 do-install:


jdarrow

-- 
John Darrow - Senior Technical Specialist               Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187  Fax:    630/752-5968
Alphapage: 6303160707@alphapage.airtouch.com            Pager:  630/316-0707
Email:     John.P.Darrow@wheaton.edu