Subject: pkg/22481: do-shlib-handling target doesn't work for devel/gettext
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mezis@free.fr>
List: netbsd-bugs
Date: 08/14/2003 11:26:02
>Number:         22481
>Category:       pkg
>Synopsis:       do-shlib-handling target doesn't work for devel/gettext
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 14 11:27:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Julien T. Letessier
>Release:        pkgsrc/Darwin
>Organization:
Solarpack project
>Environment:
Darwin trottinet.lan 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
the gettext shared libs have non-standard names, e.g. libgettextlib-0.11.5.so ; as such the do-shlib-handling target in mk/bsd.pkg.mk doesn't translate the '.so' into '.dylib' on darwin.
>How-To-Repeat:
build devel/gettext on darwin
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gettext/Makefile,v
retrieving revision 1.51
diff -u -B -b -w -r1.51 Makefile
--- Makefile    2003/08/09 10:44:41     1.51
+++ Makefile    2003/08/14 11:25:31
@@ -34,5 +34,13 @@
 post-install:
        cd ${WRKSRC}/intl; ${MAKE_PROGRAM} install-data
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+PLIST_SRC=             ${WRKDIR}/PLIST.Darwin
+pre-install:
+       ${SED} -e 's|\.so$$|\.dylib|' < ${PKGDIR}/PLIST > ${PLIST_SRC}
+.endif
+
 .include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"

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