Subject: perl58 and pthread
To: None <tech-pkg@netbsd.org>
From: Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp>
List: tech-pkg
Date: 05/15/2004 00:39:11
On NetBSD-current, graphics/gd is linked against libpthread, but
lang/perl58 is not. So p5-GD doesn't work.

How about change lang/perl58 to try to link against libpthread.so, even if
compiled without thread option?

--- /mnt/p/lang/perl58/patches/patch-ba	2003-10-05 23:26:00.000000000 +0900
+++ 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

-- 
// Hiramatsu Yoshifumi
// hiramatu@boreas.dti.ne.jp