Subject: pkg/22242: Fix x11/gtk on SunOS (and maybe others)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 07/24/2003 11:16:26
>Number:         22242
>Category:       pkg
>Synopsis:       Fix x11/gtk on SunOS (and maybe others)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 24 11:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
 RCS file: /cvsroot/pkgsrc/x11/gtk/Makefile,v
 retrieving revision 1.84
 retrieving revision 1.85
 [..]
 -LTCONFIG_OVERRIDE=     ${WRKSRC}/ltconfig
 +LIBTOOL_OVERRIDE=      ${WRKSRC}/ltconfig
 ----------------------------
 revision 1.85
 date: 2003/06/25 13:35:06;  author: wiz;  state: Exp;  lines: +3 -3
 Convert to USE_NEW_TEXINFO; switch to LIBTOOL_OVERRIDE while here.
 ----------------------------

This broke building on at least SunOS, as it now generates
libg{d,t}k.so.12.0.10 instead of so.12.10.

I don't know the rationale for moving to LIBTOOL_OVERRIDE, given that:

 --<jonp@build0>-</home/jonp/src/pkgsrc>--
 -% find . -name Makefile | xargs grep -h ltconfig | nawk '/^LIBTOOL/ {lt += 1} /^LTCONFIG/ {ltc += 1} END {printf "LIBTOOL = %d, LTCONFIG = %d\n", lt, ltc}'
 LIBTOOL = 0, LTCONFIG = 137

but I don't know whether this is a move to a different solution and
libtool needs fixing.
>How-To-Repeat:
--<jonp@build0>-</home/jonp/src/pkgsrc/x11/gtk>--
-% bmake package
[...]
===> [Automatic ELF shared object handling]
/home/jonp/pkg/lib/libgdk.so.12: No such file or directory
/home/jonp/pkg/lib/libgdk.so.12.10: No such file or directory
/home/jonp/pkg/lib/libgtk.so.12: No such file or directory
/home/jonp/pkg/lib/libgtk.so.12.10: No such file or directory
===> Registering installation for gtk+-1.2.10nb5
pkg_create: can't stat `/home/jonp/pkg/lib/libgdk.so.12'
pkg_create: can't stat `/home/jonp/pkg/lib/libgdk.so.12.10'
pkg_create: can't stat `/home/jonp/pkg/lib/libgtk.so.12'
pkg_create: can't stat `/home/jonp/pkg/lib/libgtk.so.12.10'

etc
>Fix:
In any case, simply reverting the commit fixes it for me.

http://www.perkin.org.uk/projects/netbsd/gtk.patch

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk/Makefile,v
retrieving revision 1.87
diff -u -r1.87 Makefile
--- Makefile    2003/07/17 22:56:30     1.87
+++ Makefile    2003/07/24 11:04:16
@@ -20,7 +20,7 @@
 USE_NEW_TEXINFO=       yes
 USE_PKGLOCALEDIR=      yes
 USE_LIBTOOL=           yes
-LIBTOOL_OVERRIDE=      ${WRKSRC}/ltconfig
+LTCONFIG_OVERRIDE=     ${WRKSRC}/ltconfig
 PKGCONFIG_OVERRIDE=    ${WRKSRC}/gdk.pc.in
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/gtk+.pc.in
>Release-Note:
>Audit-Trail:
>Unformatted: