Subject: pkg/25610: p5-GD doesn't run on NetBSD-current
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 05/17/2004 22:40:25
>Number:         25610
>Category:       pkg
>Synopsis:       p5-GD doesn't run on NetBSD-current
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 17 13:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        NetBSD 2.0E
>Organization:
	
>Environment:
	
	
System: NetBSD orinoco.my.domain 2.0E NetBSD 2.0E (Orinoco) #0: Sat May 1 12:05:20 JST 2004 root@orinoco.my.domain:/usr/src/sys/arch/i386/compile/Orinoco i386
Architecture: i386
Machine: i386
>Description:
On NetBSD-current, graphics/gd is linked against libpthread, but
lang/perl58 is not. So p5-GD doesn't work.

>How-To-Repeat:
cd /usr/pkgsrc/lang/perl58
make install
cd /usr/pkgsrc/graphics/p5-GD
make install

then, execute

perl -e 'use GD;'

>Fix:
Modify hint file to always try to link against libpthread.

diff -bur /mnt/p/lang/perl58/distinfo perl58/distinfo
--- /mnt/p/lang/perl58/distinfo	2004-04-29 10:34:30.000000000 +0900
+++ perl58/distinfo	2004-05-14 23:59:46.000000000 +0900
@@ -5,7 +5,7 @@
 SHA1 (patch-aa) = a441cba11b12a4285284e98b6e5918efbd8bafef
 SHA1 (patch-ae) = fa3bbb1561192ce9214a7a7c756ccb2595a52c80
 SHA1 (patch-ah) = b5b65b219c3d088bca2d46d833bc0afb62d5e727
-SHA1 (patch-ba) = cdceb712bae08c6041e5aa175e5989d48b3a3f4e
+SHA1 (patch-ba) = 876ec91de6b0413acb2e39cd146746293e365cb3
 SHA1 (patch-bc) = 9bb94826d63a094bc95c2201b8b86bfbc056fb3f
 SHA1 (patch-ca) = 5c0e5c1300d270891246330439ac66dd70457583
 SHA1 (patch-cb) = 2221fb87bddd29406d925d1cb5351eb4f3087f76
diff -bur /mnt/p/lang/perl58/patches/patch-ba perl58/patches/patch-ba
--- /mnt/p/lang/perl58/patches/patch-ba	2003-10-05 23:26:00.000000000 +0900
+++ perl58/patches/patch-ba	2004-05-14 23:59:46.000000000 +0900
@@ -1,9 +1,20 @@
-$NetBSD: patch-ab,v 1.4 2003/10/05 07:07:14 jlam Exp $
-
---- hints/netbsd.sh.orig	Tue Jul  1 23:49:58 2003
-+++ hints/netbsd.sh	Wed Jul  2 11:49:17 2003
-@@ -133,23 +133,6 @@
- esac 
+--- hints/netbsd.sh.orig	2003-08-08 01:57:56.000000000 +0900
++++ hints/netbsd.sh	2004-05-14 23:59:21.000000000 +0900
+@@ -92,8 +92,6 @@
+ # This script UU/usethreads.cbu will get 'called-back' by Configure 
+ # after it has prompted the user for whether to use threads. 
+ cat > UU/usethreads.cbu <<'EOCBU' 
+-case "$usethreads" in 
+-$define|true|[yY]*) 
+ 	lpthread=
+ 	for xxx in pthread; do
+ 		for yyy in $loclibpth $plibpth $glibpth dummy; do
+@@ -129,27 +127,8 @@
+ 		exit 1 
+         fi
+ 	unset lpthread
+-        ;; 
+-esac 
  EOCBU
  
 -# Set sensible defaults for NetBSD: look for local software in
>Release-Note:
>Audit-Trail:
>Unformatted: