Subject: pkg/8507: gd-1.6.3 should not overwrite old gd library
To: None <gnats-bugs@gnats.netbsd.org>
From: Jarkko Torppa <torppa@staff.megabaud.fi>
List: netbsd-bugs
Date: 09/28/1999 07:16:55
>Number: 8507
>Category: pkg
>Synopsis: gd-1.6.3 is wildly different from versions <1.5, sharedlib version is same
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 28 06:35:00 1999
>Last-Modified:
>Originator: Jarkko Torppa
>Organization:
Jarkko Torppa torppa@staff.megabaud.fi
Megabaud Internet-palvelut
>Release: pkgsrc from about 1999-09-26 <NetBSD-current source date>
>Environment:
System: NetBSD polykoira.megabaud.fi 1.4.1 NetBSD 1.4.1 (POLY) #2: Tue Sep 14 23:05:00 EEST 1999 root@:/usr/src/sys/arch/i386/compile/POLY i386
>Description:
graphics/gd:s gd-library since 1.5 is totally different when compared to previous
releases. It has different output-formats and different function-names.
Both install sharedlibary as lib/libgd.0.0
>How-To-Repeat:
upgrade gd-1.3.x to gd-1.5+, wonder why programs linked with shared library
do not work.
>Fix:
Let's make the newer library versioned as 1.6, then this can be fixed by hand
patch to pkg follows
diff -N -r -u gd.old/files/patch-sum gd/files/patch-sum
--- gd.old/files/patch-sum Tue Sep 28 15:58:02 1999
+++ gd/files/patch-sum Tue Sep 28 16:14:55 1999
@@ -1,3 +1,4 @@
-$NetBSD: patch-sum,v 1.2 1999/08/26 15:26:28 agc Exp $
+$NetBSD$
MD5 (patch-aa) = 0c87c22700449b7774111879ee16c7ef
+MD5 (patch-ab) = f28e66136cec0f4458179ad8131929ed
diff -N -r -u gd.old/patches/patch-ab gd/patches/patch-ab
--- gd.old/patches/patch-ab Thu Jan 1 02:00:00 1970
+++ gd/patches/patch-ab Tue Sep 28 16:07:48 1999
@@ -0,0 +1,12 @@
+$NetBSD$
+--- Makefile.in.orig Tue Sep 28 15:55:25 1999
++++ Makefile.in Tue Sep 28 15:55:55 1999
+@@ -184,7 +184,7 @@
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ CCLD = $(CC)
+-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
++LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info 1:6 $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+ HEADERS = $(include_HEADERS) $(noinst_HEADERS)
+
+ DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
diff -N -r -u gd.old/pkg/PLIST gd/pkg/PLIST
--- gd.old/pkg/PLIST Tue Sep 28 15:58:02 1999
+++ gd/pkg/PLIST Tue Sep 28 15:58:45 1999
@@ -13,5 +13,5 @@
include/gdfontmb.h
include/gdfontl.h
include/gdfontg.h
-lib/libgd.so.0.0
+lib/libgd.so.1.6
lib/libgd.a
>Audit-Trail:
>Unformatted: