NetBSD Problem Report #30466

From www@netbsd.org  Wed Jun  8 15:12:24 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 8A0AE63B104; Wed,  8 Jun 2005 15:12:24 +0000 (UTC)
Message-Id: <20050608151224.8A0AE63B104@narn.netbsd.org>
Date: Wed,  8 Jun 2005 15:12:24 +0000 (UTC)
From: reilles@loria.fr
Reply-To: reilles@loria.fr
To: gnats-bugs@netbsd.org
Subject: python23 under macosx 10.4 (tiger), build problem
X-Send-Pr-Version: www-1.0

>Number:         30466
>Category:       pkg
>Synopsis:       python23 under macosx 10.4 (tiger), build problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    recht
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 08 15:13:00 +0000 2005
>Closed-Date:    Sun Jul 03 19:50:20 +0000 2005
>Last-Modified:  Sun Jul 03 19:50:20 +0000 2005
>Originator:     Antoine Reilles
>Release:        
>Organization:
loria
>Environment:
Darwin bonzai.local 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
>Description:
When trying to build python23 under mac os x tiger, i have some problems, some modules cannot be built, and there are problems with the posix unnamed semaphoser python try to use, but are not implemented (giving a nice warning). I modified the patches/patch-al to correctly detect tiger (ad Darwin 8*). With this little change, it builds, installs and run fine
>How-To-Repeat:
build lang/python23 under macosx 10.4 (tiger)
>Fix:
change patch-al to handle tiger correctly

>Release-Note:

>Audit-Trail:
From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/30466: python23 under macosx 10.4 (tiger), build problem
Date: Wed, 8 Jun 2005 17:14:31 +0200

 --Apple-Mail-4-350034380
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=US-ASCII;
 	delsp=yes;
 	format=flowed

 And the patch (I used the send-pr web form, and it do strange things  
 with patches)

 regards,
 antoine


 --Apple-Mail-4-350034380
 Content-Transfer-Encoding: 7bit
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="python23.diff"
 Content-Disposition: attachment;
 	filename=python23.diff

 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/python23/distinfo,v
 retrieving revision 1.28
 diff -u -r1.28 distinfo
 --- distinfo	7 Mar 2005 12:11:49 -0000	1.28
 +++ distinfo	8 Jun 2005 15:06:11 -0000
 @@ -9,7 +9,7 @@
  SHA1 (patch-ae) = 3dcf150147333342b333871b41fe6fa92bced2d9
  SHA1 (patch-af) = d23d42d5d5fc31aeaf1fca89448873cc4179ccf6
  SHA1 (patch-ah) = 6740fb09c3a1fca8cd25642a683d65d6d66760f8
 -SHA1 (patch-al) = 77ccdc4d9ef11b955db44680d4a0b572a49cea7a
 +SHA1 (patch-al) = 22ec9e1e2475cc3f0487de646de4a749deaf43d9
  SHA1 (patch-am) = df5c858b32a9a5aa118c84f6742f9d3547c0c7f3
  SHA1 (patch-bb) = 7c6fe21b6328dddce2a079b0a1c7ae0bee817bae
  SHA1 (patch-ca) = 95f5a515fe3dafd75d077e0591e88a34447152ff
 Index: patches/patch-al
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/python23/patches/patch-al,v
 retrieving revision 1.11
 diff -u -r1.11 patch-al
 --- patches/patch-al	15 Feb 2005 12:25:07 -0000	1.11
 +++ patches/patch-al	8 Jun 2005 15:06:11 -0000
 @@ -1,8 +1,8 @@
  $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $

  --- configure.orig	2005-01-11 14:48:52.000000000 +0100
 -+++ configure
 -@@ -1481,6 +1481,8 @@ case $ac_sys_system/$ac_sys_release in
 ++++ configure	2005-06-08 16:12:12.000000000 +0200
 +@@ -1481,6 +1481,8 @@
     # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
     OpenBSD/2.* | OpenBSD/3.[01234])
       define_xopen_source=no;;
 @@ -11,7 +11,16 @@
     # On Solaris 2.6, sys/wait.h is inconsistent in the usage
     # of union __?sigval. Reported by Stuart Bishop.
     SunOS/5.6)
 -@@ -3733,7 +3735,7 @@ _ACEOF
 +@@ -1498,7 +1500,7 @@
 +   # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
 +   # this is fixed in 10.3, which identifies itself as Darwin/7.*
 +   # This should hopefully be fixed in FreeBSD 4.9
 +-  FreeBSD/4.8* | Darwin/6* )
 ++  FreeBSD/4.8* | Darwin/6* | Darwin/8* )
 +     define_xopen_source=no;;
 +   # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
 +   # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
 +@@ -3733,7 +3735,7 @@
   	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
   	  INSTSONAME="$LDLIBRARY".$SOVERSION
             ;;
 @@ -20,7 +29,7 @@
   	  LDLIBRARY='libpython$(VERSION).so'
   	  BLDLIBRARY='-L. -lpython$(VERSION)'
   	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 -@@ -3754,6 +3756,14 @@ _ACEOF
 +@@ -3754,6 +3756,14 @@
   	  BLDLIBRARY='-L. -lpython$(VERSION)'
   	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
   	  ;;
 @@ -35,7 +44,7 @@
     esac
     # DG/UX requires some fancy ld contortions to produce a .so from an .a
     case $MACHDEP in
 -@@ -4152,7 +4162,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
 +@@ -4152,7 +4162,12 @@
   	    ;;
   	# is there any other compiler on Darwin besides gcc?
   	Darwin*)
 @@ -49,7 +58,7 @@
   	    ;;
       esac
       ;;
 -@@ -10979,7 +10994,7 @@ then
 +@@ -10979,7 +10994,7 @@
   			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   		else
   			# No framework. Ignore undefined symbols, assuming they come from Python
 @@ -58,7 +67,7 @@
   		fi ;;
   	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
   		LDSHARED='$(CC) $(LDFLAGS) -bundle'
 -@@ -11009,12 +11024,12 @@ then
 +@@ -11009,12 +11024,12 @@
   				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   			else
   				# No framework, use the Python app as bundle-loader
 @@ -74,7 +83,7 @@
   	dgux*) LDSHARED="ld -G";;
   	BSD/OS*/4*) LDSHARED="gcc -shared";;
   	OpenBSD*|FreeBSD*)
 -@@ -11024,7 +11039,8 @@ then
 +@@ -11024,7 +11039,8 @@
   		else
   			LDSHARED="ld -Bshareable ${LDFLAGS}"
   		fi;;
 @@ -84,7 +93,7 @@
   	OpenUNIX*|UnixWare*)
   		if test "$GCC" = "yes"
   		then LDSHARED='$(CC) -shared'
 -@@ -11057,6 +11073,7 @@ then
 +@@ -11057,6 +11073,7 @@
   	Linux*|GNU*) CCSHARED="-fPIC";;
   	BSD/OS*/4*) CCSHARED="-fpic";;
   	FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
 @@ -92,7 +101,7 @@
   	OpenUNIX*|UnixWare*)
   		if test "$GCC" = "yes"
   		then CCSHARED="-fPIC"
 -@@ -11116,6 +11133,7 @@ then
 +@@ -11116,6 +11133,7 @@
   		then
   			LINKFORSHARED="-Wl,--export-dynamic"
   		fi;;
 @@ -100,7 +109,16 @@
   	SunOS/5*) case $CC in
   		  *gcc*)
   		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
 -@@ -15127,6 +15145,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 +@@ -13357,7 +13375,7 @@
 + _ACEOF
 + 
 + 		       ;;
 +-      SunOS/5.8)
 ++      SunOS/5.8 | Darwin/8* )
 + cat >>confdefs.h <<\_ACEOF
 + #define HAVE_BROKEN_POSIX_SEMAPHORES 1
 + _ACEOF
 +@@ -15127,6 +15145,7 @@
   /* end confdefs.h.  */

   #include "confdefs.h"

 --Apple-Mail-4-350034380--

Responsible-Changed-From-To: pkg-manager->recht
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Sun, 12 Jun 2005 19:57:41 +0000
Responsible-Changed-Why:
over to me


From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@netbsd.org
Cc: recht@netbsd.org
Subject: Re: pkg/30466 python23 under macosx 10.4 (tiger), updated patch
Date: Fri, 1 Jul 2005 16:06:14 +0200

 --Apple-Mail-6-185653790
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=US-ASCII;
 	delsp=yes;
 	format=flowed

 Hi,

 I've updated the patch to match the new package version.

 Like before, the patch just adds Darwin/8* at the right places, to  
 make python23 work fine under tiger.

 best regards,
 antoine


 --Apple-Mail-6-185653790
 Content-Transfer-Encoding: 7bit
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="python23.diff"
 Content-Disposition: attachment;
 	filename=python23.diff

 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/python23/distinfo,v
 retrieving revision 1.30
 diff -u -r1.30 distinfo
 --- distinfo	30 Jun 2005 03:38:22 -0000	1.30
 +++ distinfo	1 Jul 2005 13:30:44 -0000
 @@ -9,7 +9,7 @@
  SHA1 (patch-ae) = 3dcf150147333342b333871b41fe6fa92bced2d9
  SHA1 (patch-af) = d23d42d5d5fc31aeaf1fca89448873cc4179ccf6
  SHA1 (patch-ah) = 6740fb09c3a1fca8cd25642a683d65d6d66760f8
 -SHA1 (patch-al) = 626b24ff5e6ed0a88a6504a1f261927cb528fc3a
 +SHA1 (patch-al) = c96a93c03b68c35fc9797c442d6400d289e1aa20
  SHA1 (patch-am) = df5c858b32a9a5aa118c84f6742f9d3547c0c7f3
  SHA1 (patch-bb) = 7c6fe21b6328dddce2a079b0a1c7ae0bee817bae
  SHA1 (patch-ca) = 95f5a515fe3dafd75d077e0591e88a34447152ff
 Index: patches/patch-al
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/python23/patches/patch-al,v
 retrieving revision 1.12
 diff -u -r1.12 patch-al
 --- patches/patch-al	30 Jun 2005 03:38:22 -0000	1.12
 +++ patches/patch-al	1 Jul 2005 13:30:45 -0000
 @@ -1,8 +1,8 @@
  $NetBSD: patch-al,v 1.12 2005/06/30 03:38:22 minskim Exp $

 ---- configure.orig	2005-01-11 07:48:52.000000000 -0600
 -+++ configure
 -@@ -1481,6 +1481,8 @@ case $ac_sys_system/$ac_sys_release in
 +--- configure.orig	2005-01-11 14:48:52.000000000 +0100
 ++++ configure	2005-07-01 15:27:58.000000000 +0200
 +@@ -1481,6 +1481,8 @@
     # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
     OpenBSD/2.* | OpenBSD/3.[01234])
       define_xopen_source=no;;
 @@ -11,7 +11,15 @@
     # On Solaris 2.6, sys/wait.h is inconsistent in the usage
     # of union __?sigval. Reported by Stuart Bishop.
     SunOS/5.6)
 -@@ -1505,6 +1507,11 @@ case $ac_sys_system/$ac_sys_release in
 +@@ -1498,13 +1500,18 @@
 +   # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
 +   # this is fixed in 10.3, which identifies itself as Darwin/7.*
 +   # This should hopefully be fixed in FreeBSD 4.9
 +-  FreeBSD/4.8* | Darwin/6* )
 ++  FreeBSD/4.8* | Darwin/6* | Darwin/8* )
 +     define_xopen_source=no;;
 +   # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
 +   # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
     # has another value. By not (re)defining it, the defaults come in place.
     AIX/4)
       define_xopen_source=no;;
 @@ -23,7 +31,7 @@
   esac

   if test $define_xopen_source = yes
 -@@ -3733,7 +3740,7 @@ _ACEOF
 +@@ -3733,7 +3740,7 @@
   	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
   	  INSTSONAME="$LDLIBRARY".$SOVERSION
             ;;
 @@ -32,7 +40,7 @@
   	  LDLIBRARY='libpython$(VERSION).so'
   	  BLDLIBRARY='-L. -lpython$(VERSION)'
   	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
 -@@ -3754,6 +3761,14 @@ _ACEOF
 +@@ -3754,6 +3761,14 @@
   	  BLDLIBRARY='-L. -lpython$(VERSION)'
   	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
   	  ;;
 @@ -47,7 +55,7 @@
     esac
     # DG/UX requires some fancy ld contortions to produce a .so from an .a
     case $MACHDEP in
 -@@ -4152,7 +4167,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
 +@@ -4152,7 +4167,12 @@
   	    ;;
   	# is there any other compiler on Darwin besides gcc?
   	Darwin*)
 @@ -61,7 +69,7 @@
   	    ;;
       esac
       ;;
 -@@ -10979,7 +10999,7 @@ then
 +@@ -10979,7 +10999,7 @@
   			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   		else
   			# No framework. Ignore undefined symbols, assuming they come from Python
 @@ -70,7 +78,7 @@
   		fi ;;
   	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
   		LDSHARED='$(CC) $(LDFLAGS) -bundle'
 -@@ -11009,12 +11029,12 @@ then
 +@@ -11009,12 +11029,12 @@
   				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   			else
   				# No framework, use the Python app as bundle-loader
 @@ -86,7 +94,7 @@
   	dgux*) LDSHARED="ld -G";;
   	BSD/OS*/4*) LDSHARED="gcc -shared";;
   	OpenBSD*|FreeBSD*)
 -@@ -11024,7 +11044,8 @@ then
 +@@ -11024,7 +11044,8 @@
   		else
   			LDSHARED="ld -Bshareable ${LDFLAGS}"
   		fi;;
 @@ -96,7 +104,7 @@
   	OpenUNIX*|UnixWare*)
   		if test "$GCC" = "yes"
   		then LDSHARED='$(CC) -shared'
 -@@ -11057,6 +11078,7 @@ then
 +@@ -11057,6 +11078,7 @@
   	Linux*|GNU*) CCSHARED="-fPIC";;
   	BSD/OS*/4*) CCSHARED="-fpic";;
   	FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
 @@ -104,7 +112,7 @@
   	OpenUNIX*|UnixWare*)
   		if test "$GCC" = "yes"
   		then CCSHARED="-fPIC"
 -@@ -11116,6 +11138,7 @@ then
 +@@ -11116,6 +11138,7 @@
   		then
   			LINKFORSHARED="-Wl,--export-dynamic"
   		fi;;
 @@ -112,7 +120,16 @@
   	SunOS/5*) case $CC in
   		  *gcc*)
   		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
 -@@ -15127,6 +15150,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 +@@ -13357,7 +13380,7 @@
 + _ACEOF
 + 
 + 		       ;;
 +-      SunOS/5.8)
 ++      SunOS/5.8 | Darwin/8* )
 + cat >>confdefs.h <<\_ACEOF
 + #define HAVE_BROKEN_POSIX_SEMAPHORES 1
 + _ACEOF
 +@@ -15127,6 +15150,7 @@
   /* end confdefs.h.  */

   #include "confdefs.h"

 --Apple-Mail-6-185653790--

From: Marc Recht <recht@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30466 CVS commit: pkgsrc/lang
Date: Sun,  3 Jul 2005 19:49:07 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	recht
 Date:		Sun Jul  3 19:49:06 UTC 2005

 Modified Files:
 	pkgsrc/lang/python23: Makefile Makefile.common distinfo
 	pkgsrc/lang/python23-nth: Makefile
 	pkgsrc/lang/python23-pth: Makefile
 	pkgsrc/lang/python23/patches: patch-al

 Log Message:
 Add devel/gettext-lib as dependency to avoid problems with the locale module not being built.
 - fix suggested by Simon Kuhn in PR 29735

 Add a patch from Antoine Reilles submitted in PR 30466 to fix the buid of some modules on OS X 10.4.

 Bump PKGREVISION


 To generate a diff of this commit:
 cvs rdiff -r1.27 -r1.28 pkgsrc/lang/python23/Makefile
 cvs rdiff -r1.26 -r1.27 pkgsrc/lang/python23/Makefile.common
 cvs rdiff -r1.30 -r1.31 pkgsrc/lang/python23/distinfo
 cvs rdiff -r1.4 -r1.5 pkgsrc/lang/python23-nth/Makefile
 cvs rdiff -r1.28 -r1.29 pkgsrc/lang/python23-pth/Makefile
 cvs rdiff -r1.12 -r1.13 pkgsrc/lang/python23/patches/patch-al

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: recht@netbsd.org
State-Changed-When: Sun, 03 Jul 2005 19:50:20 +0000
State-Changed-Why:
Patch commited. Thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.