Subject: suse_x11
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 10/12/2002 19:53:25
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
As noted in PR pkg/18606, suse_x11 does not create symlinks for all
libraries in the way some packages would expect: it creates symlinks
from foo.so.major to foo.so.major.minor, but not from foo.so to
foo.so.major.
The attached patch contains a hackish approach to fixing this situation
-- I believe, however, that the real solution would be to fix rpm2pkg to
do so, but I'm not sure in how far this is feasable.
Thoughts?
-Jan
--
A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools.
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="suse_x11.diff"
? README.html
? INSTALL
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/suse_x11/Makefile,v
retrieving revision 1.19
diff -b -u -r1.19 Makefile
--- Makefile 2002/08/25 21:49:50 1.19
+++ Makefile 2002/10/12 23:38:48
@@ -33,4 +33,16 @@
usr/X11R6/lib/X11/x11perfcomp
.endif
+post-install:
+ @${GREP} "^@exec.*.so" ${PLIST_SRC} | \
+ ${SED} -e 's,.*/\(.*\.so\)\.\([0-9]\),@exec ${LN} -sf \
+ \1.\2 %D/${EMULSUBDIR}/usr/X11R6/lib/\1,' \
+ >> ${PLIST_SRC}
+ @${GREP} "^@unexec rm -f" ${PLIST_SRC} | \
+ ${SED} -e 's,\(.*\)\.[0-9],\1,' >> ${PLIST_SRC}
+ @for link in `${GREP} "^@exec ln.*.so" ${PLIST_SRC} | \
+ ${SED} -e 's,.*/\(.*\.so\.[0-9]\),\1,'`; do \
+ cd ${EMULDIR}/usr/X11R6/lib && ${LN} -sf $$link $${link%.[0-9]}; \
+ done
+
.include "../suse_linux/Makefile.common"
--W/nzBZO5zC0uMSeA--