Subject: pkg/24599: lang/python23 doesn't build libpython.so on FreeBSD
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/29/2004 10:41:52
>Number:         24599
>Category:       pkg
>Synopsis:       lang/python23 doesn't build libpython.so on FreeBSD
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 29 10:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
>Environment:
N/A
>Description:
lang/python23 won't create libpython*.so on FreeBSD
>How-To-Repeat:
Obvious
>Fix:
Apply this patch, ASAP:

(tested on 4.9 and 5.2.1, works okay)

Summary: add "|FreeBSD*" around line 3602 of configure.

cvs diff: Diffing .
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python23/distinfo,v
retrieving revision 1.10
diff -u -r1.10 distinfo
--- distinfo    26 Jan 2004 12:10:24 -0000      1.10
+++ distinfo    29 Feb 2004 10:40:50 -0000
@@ -7,5 +7,5 @@
 SHA1 (patch-ae) = 544af90b9b7c5eb5cbad0ba0cefa3d9496b5efe3
 SHA1 (patch-af) = 2989a1975c8ea435903eafc9add57cb7c4d7de14
 SHA1 (patch-ah) = 4bc95e775a2b3f4f1997d0779c561db2e9e7b575
-SHA1 (patch-al) = 3678af129442eb5602f2c8ccec7dc7030b554775
+SHA1 (patch-al) = 1ff2293908fb746460e6d9ab48582bc23ee1bbd1
 SHA1 (patch-am) = 8580ec64d2d369f4426e30368e10d350aac82c03
cvs diff: Diffing patches
Index: patches/patch-al
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python23/patches/patch-al,v
retrieving revision 1.5
diff -u -r1.5 patch-al
--- patches/patch-al    23 Dec 2003 17:24:42 -0000      1.5
+++ patches/patch-al    29 Feb 2004 10:40:50 -0000
@@ -1,7 +1,5 @@
-$NetBSD: patch-al,v 1.5 2003/12/23 17:24:42 recht Exp $
-
---- configure.orig     2003-11-18 20:59:36.000000000 +0100
-+++ configure  2003-12-23 12:29:27.000000000 +0100
+--- configure.orig     Tue Nov 18 20:59:36 2003
++++ configure  Sun Feb 29 11:34:53 2004
 @@ -1440,6 +1440,8 @@
    # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
    OpenBSD/2.* | OpenBSD/3.[01234])
@@ -11,6 +9,15 @@
    # On Solaris 2.6, sys/wait.h is inconsistent in the usage
    # of union __?sigval. Reported by Stuart Bishop.
    SunOS/5.6)
+@@ -3602,7 +3604,7 @@
+         RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
+         INSTSONAME="$LDLIBRARY".$SOVERSION
+           ;;
+-    Linux*|GNU*|NetBSD*)
++    Linux*|GNU*|NetBSD*|FreeBSD*)
+         LDLIBRARY='libpython$(VERSION).so'
+         BLDLIBRARY='-L. -lpython$(VERSION)'
+         RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 @@ -13854,6 +13856,7 @@
  /* end confdefs.h.  */
  

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