From reg@shale.csir.co.za Thu Sep  9 23:24:37 1999
Return-Path: <reg@shale.csir.co.za>
Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5])
	by hub.freebsd.org (Postfix) with ESMTP id AB9AB1537D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Sep 1999 23:24:27 -0700 (PDT)
	(envelope-from reg@shale.csir.co.za)
Received: from granite.hip.berkeley.edu (granite.hip.berkeley.edu [136.152.155.25])
	by shale.csir.co.za (8.9.3/8.9.3) with ESMTP id IAA56180
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Sep 1999 08:23:21 +0200 (SAT)
	(envelope-from reg@shale.csir.co.za)
Received: (from reg@localhost)
	by granite.hip.berkeley.edu (8.9.3/8.9.3) id XAA07027;
	Thu, 9 Sep 1999 23:24:50 -0700 (PDT)
	(envelope-from reg)
Message-Id: <199909100624.XAA07027@granite.hip.berkeley.edu>
Date: Thu, 9 Sep 1999 23:24:50 -0700 (PDT)
From: reg@shale.csir.co.za
Reply-To: reg@shale.csir.co.za
To: FreeBSD-gnats-submit@freebsd.org
Subject: Misc. Ports fix ups.
X-Send-Pr-Version: 3.2

>Number:         13677
>Category:       ports
>Synopsis:       Misc. Ports fix ups.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  9 23:30:01 PDT 1999
>Closed-Date:    Fri Dec 24 00:17:45 PST 1999
>Last-Modified:  Fri Dec 24 00:20:07 PST 1999
>Originator:     Jeremy Lea
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Arb's Inc.
>Environment:

	FreeBSD Ports collection.

>Description:

	This is a collection of misc. PLIST fixes and other minor things
	which are sitting in my ports tree.  Some things... python: this
	fixes a problem which I had with threads support in py-gnome. 
	gtkstep: these directories are owned by gtk12, which is a dependancy
	of gtkstep, so leave them alone.  XFree86: move the two symlinked
	directories down the PLIST so they are deleted without error.

>How-To-Repeat:

	

>Fix:
	
	
archivers/unzip.with_encryption:
  Changes: pkg/PLIST
  Adds   :
  Removes:

devel/ORBacus:
  Changes: Makefile
  Adds   :
  Removes:

devel/gettext:
  Changes: pkg/PLIST
  Adds   :
  Removes: patches/patch-ag

graphics/gtkdps:
  Changes: Makefile
  Adds   :
  Removes: patches/patch-aa

graphics/jbigkit:
  Changes: pkg/PLIST
  Adds   :
  Removes:

graphics/libwmf:
  Changes: pkg/PLIST
  Adds   :
  Removes:

graphics/tiff:
  Changes: pkg/PLIST
  Adds   :
  Removes:

lang/python:
  Changes: Makefile
  Adds   :
  Removes:

lang/tcl80:
  Changes: files/manpages
  Adds   :
  Removes:

x11-toolkits/gtkstep:
  Changes: pkg/PLIST
  Adds   :
  Removes:

x11/XFree86:
  Changes: pkg/PLIST
  Adds   :
  Removes:

--- /usr/ports.ref/archivers/unzip.with_encryption/pkg/PLIST	Tue Sep 22 18:02:24 1998
+++ archivers/unzip.with_encryption/pkg/PLIST	Sun Sep  5 01:51:04 1999
@@ -1,8 +1,8 @@
-bin/unzip
-@exec ln -sf %f %B/zipinfo
 bin/funzip
+bin/unzip
 bin/unzipsfx
 bin/zipgrep
+bin/zipinfo
 share/doc/unzip/README
 share/doc/unzip/COPYING
 share/doc/unzip/WHERE

--- /usr/ports.ref/devel/ORBacus/Makefile	Tue Aug 24 22:47:15 1999
+++ devel/ORBacus/Makefile	Sat Aug 28 19:25:53 1999
@@ -15,7 +15,7 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 400000
+.if ${OSVERSION} >= 400004
 LIBSTDC=	/usr/lib/libstdc++.a
 .else
 .if ${PORTOBJFORMAT} == "elf"

--- /usr/ports.ref/devel/gettext/pkg/PLIST	Sat Jun  5 15:21:40 1999
+++ devel/gettext/pkg/PLIST	Sun Jun  6 15:21:48 1999
@@ -60,6 +60,6 @@
 @dirrm share/gettext/intl
 @dirrm share/gettext/po
 @dirrm share/gettext
-@unexec rm -r %D/share/locale
+@unexec rm -rf %D/share/locale
 @exec mkdir -p %%X11BASE%%/share/locale
-@unexec rm -r %%X11BASE%%/share/locale
+@unexec rm -rf %%X11BASE%%/share/locale

--- /usr/ports.ref/graphics/gtkdps/Makefile	Tue Aug 24 23:14:11 1999
+++ graphics/gtkdps/Makefile	Thu Sep  9 23:07:18 1999
@@ -22,7 +22,4 @@
 USE_LIBTOOL=	yes
 USE_X_PREFIX=	yes
 
-post-install:
-	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
-
 .include <bsd.port.mk>
--- /usr/ports.ref/graphics/gtkdps/patches/patch-aa	Sun Oct  4 19:59:13 1998
+++ graphics/gtkdps/patches/patch-aa	Sat Jun 12 11:06:45 1999
@@ -1,15 +0,0 @@
---- ltmain.sh.orig	Sat Oct  3 22:08:22 1998
-+++ ltmain.sh	Sat Oct  3 22:09:00 1998
-@@ -964,7 +964,11 @@
-       sunos)
-         version_vars="$version_vars major versuffix"
-         major="$current"
--        versuffix="$current.$revision"
-+        if [ -x /usr/bin/objformat -a `objformat` = "elf" ]; then
-+          versuffix="$current"
-+        else
-+          versuffix="$current.$revision"
-+        fi
-         ;;
- 
-       *)

--- /usr/ports.ref/graphics/jbigkit/pkg/PLIST	Mon Sep 14 20:36:45 1998
+++ graphics/jbigkit/pkg/PLIST	Sun Sep  5 13:59:47 1999
@@ -1,9 +1,9 @@
-include/jbig.h
-bin/pbmtojbg
 bin/jbgtopbm
+bin/pbmtojbg
+include/jbig.h
 lib/libjbig.a
-lib/libjbig.so.1
 lib/libjbig.so
+lib/libjbig.so.1
 @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
 @unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
 share/doc/jbig/jbig.doc

--- /usr/ports.ref/graphics/libwmf/pkg/PLIST	Tue Aug 24 18:37:12 1999
+++ graphics/libwmf/pkg/PLIST	Mon Sep  6 14:22:22 1999
@@ -1,15 +1,16 @@
-bin/xwmf
+bin/wmftofig
 bin/wmftogif
+bin/xwmf
+include/Xwmfapi.h
 include/dibtoxpm.h
+include/gdwmfapi.h
+include/wmfapi.h
 include/xgd.h
 include/xgdttf.h
-include/wmfapi.h
-include/gdwmfapi.h
-include/Xwmfapi.h
+lib/libXwmf.a
 lib/libdib.a
-lib/libxgd.a
-lib/libxfig.a
-lib/libwmf.a
 lib/libgdwmf.a
-lib/libXwmf.a
+lib/libwmf.a
+lib/libxfig.a
 lib/libxfwmf.a
+lib/libxgd.a

--- /usr/ports.ref/graphics/tiff/pkg/PLIST	Thu Sep  9 03:25:08 1999
+++ graphics/tiff/pkg/PLIST	Thu Sep  9 03:44:39 1999
@@ -1,16 +1,11 @@
-lib/libtiff.a
-lib/libtiff.so.4
-lib/libtiff.so
-@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
-@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
-bin/fax2tiff
 bin/fax2ps
+bin/fax2tiff
 bin/gif2tiff
 bin/pal2rgb
 bin/ppm2tiff
+bin/ras2tiff
 bin/rgb2ycbcr
 bin/thumbnail
-bin/ras2tiff
 bin/tiff2bw
 bin/tiff2ps
 bin/tiffcmp
@@ -22,11 +17,32 @@
 bin/tiffsplit
 include/tiff.h
 include/tiffio.h
+lib/libtiff.a
+lib/libtiff.so
+lib/libtiff.so.4
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
 share/doc/tiff/bugs.html
 share/doc/tiff/build.html
 share/doc/tiff/contrib.html
 share/doc/tiff/document.html
 share/doc/tiff/images.html
+share/doc/tiff/images/back.gif
+share/doc/tiff/images/bali.jpg
+share/doc/tiff/images/cat.gif
+share/doc/tiff/images/cover.jpg
+share/doc/tiff/images/cramps.gif
+share/doc/tiff/images/dave.gif
+share/doc/tiff/images/info.gif
+share/doc/tiff/images/jello.jpg
+share/doc/tiff/images/jim.gif
+share/doc/tiff/images/note.gif
+share/doc/tiff/images/oxford.gif
+share/doc/tiff/images/quad.jpg
+share/doc/tiff/images/ring.gif
+share/doc/tiff/images/smallliz.jpg
+share/doc/tiff/images/strike.gif
+share/doc/tiff/images/warning.gif
 share/doc/tiff/index.html
 share/doc/tiff/internals.html
 share/doc/tiff/intro.html
@@ -47,21 +63,5 @@
 share/doc/tiff/v3.4beta035.html
 share/doc/tiff/v3.4beta036.html
 share/doc/tiff/v3.5.1.html
-share/doc/tiff/images/back.gif
-share/doc/tiff/images/bali.jpg
-share/doc/tiff/images/cat.gif
-share/doc/tiff/images/cover.jpg
-share/doc/tiff/images/cramps.gif
-share/doc/tiff/images/dave.gif
-share/doc/tiff/images/info.gif
-share/doc/tiff/images/jello.jpg
-share/doc/tiff/images/jim.gif
-share/doc/tiff/images/note.gif
-share/doc/tiff/images/oxford.gif
-share/doc/tiff/images/quad.jpg
-share/doc/tiff/images/ring.gif
-share/doc/tiff/images/smallliz.jpg
-share/doc/tiff/images/strike.gif
-share/doc/tiff/images/warning.gif
 @dirrm share/doc/tiff/images
 @dirrm share/doc/tiff

--- /usr/ports.ref/lang/python/Makefile	Tue Aug 31 21:36:12 1999
+++ lang/python/Makefile	Tue Aug 31 22:04:17 1999
@@ -52,7 +52,7 @@
 LIBC_R!=	/sbin/ldconfig -r | grep c_r || true
 .if ${LIBC_R} != "" && defined(WITH_THREADS) && ${WITH_THREADS} == yes
 CONFIGURE_ARGS+=	--with-thread
-CFLAGS+=		-D_THREAD_SAFE
+CFLAGS+=		-D_THREAD_SAFE -pthread
 CONFIGURE_ENV+=		LDFLAGS="-pthread ${LDFLAGS}"
 .endif
 

--- /usr/ports.ref/lang/tcl80/files/manpages	Tue May 25 11:10:38 1999
+++ lang/tcl80/files/manpages	Sun Sep  5 02:43:10 1999
@@ -69,6 +69,7 @@
 MAN3+=	TraceVar.3
 MAN3+=	Translate.3
 MAN3+=	UpVar.3
+MAN3+=	WrongNumArgs.3
 
 MANN+=	Tcl.n
 MANN+=	after.n
@@ -156,6 +157,8 @@
 MANN+=	uplevel.n
 MANN+=	upvar.n
 MANN+=	variable.n
+MANN+=	vwait.n
+MANN+=	while.n
 
 MLINKS+=	AddErrInfo.3 Tcl_AddErrorInfo.3
 MLINKS+=	AddErrInfo.3 Tcl_AddObjErrorInfo.3

--- /usr/ports.ref/x11-toolkits/gtkstep/pkg/PLIST	Fri Jul 16 18:33:17 1999
+++ x11-toolkits/gtkstep/pkg/PLIST	Sat Jul 17 16:58:48 1999
@@ -4,5 +4,3 @@
 share/themes/engines/libstep.so
 @dirrm share/themes/Step/gtk
 @dirrm share/themes/Step
-@unexec rmdir %D/share/themes/engines 2>/dev/null || true
-@unexec rmdir %D/share/themes 2>/dev/null || true

--- /usr/ports.ref/x11/XFree86/pkg/PLIST	Sat Sep  4 13:16:10 1999
+++ x11/XFree86/pkg/PLIST	Sun Sep  5 11:41:07 1999
@@ -505,6 +505,8 @@
 lib/X11/config/NetBSD.cf
 lib/X11/config/Oki.cf
 lib/X11/config/OpenBSD.cf
+lib/X11/config/QNX.cf
+lib/X11/config/QNX.rules
 lib/X11/config/Server.tmpl
 lib/X11/config/ServerLib.tmpl
 lib/X11/config/Threads.tmpl
@@ -551,6 +553,8 @@
 lib/X11/config/necLib.rules
 lib/X11/config/necLib.tmpl
 lib/X11/config/noop.rules
+lib/X11/config/nto.cf
+lib/X11/config/nto.rules
 lib/X11/config/oldlib.rules
 lib/X11/config/os2.cf
 lib/X11/config/os2.rules
@@ -1269,8 +1273,6 @@
 lib/X11/rstart/commands/@List
 lib/X11/rstart/commands/ListContexts
 lib/X11/rstart/commands/ListGenericCommands
-lib/X11/rstart/commands/x
-lib/X11/rstart/commands/x11
 lib/X11/rstart/commands/x11r6/@List
 lib/X11/rstart/commands/x11r6/LoadMonitor
 lib/X11/rstart/commands/x11r6/Terminal
@@ -1300,6 +1302,7 @@
 lib/X11/xkb/compat/basic
 lib/X11/xkb/compat/complete
 lib/X11/xkb/compat/default
+lib/X11/xkb/compat/group_led
 lib/X11/xkb/compat/iso9995
 lib/X11/xkb/compat/japan
 lib/X11/xkb/compat/keypad
@@ -1321,6 +1324,7 @@
 lib/X11/xkb/geometry/fujitsu
 lib/X11/xkb/geometry/keytronic
 lib/X11/xkb/geometry/kinesis
+lib/X11/xkb/geometry/macintosh
 lib/X11/xkb/geometry/microsoft
 lib/X11/xkb/geometry/nec
 lib/X11/xkb/geometry/northgate
@@ -1339,6 +1343,7 @@
 lib/X11/xkb/keycodes/fujitsu
 lib/X11/xkb/keycodes/hp
 lib/X11/xkb/keycodes/ibm
+lib/X11/xkb/keycodes/macintosh
 lib/X11/xkb/keycodes/sgi/indigo
 lib/X11/xkb/keycodes/sgi/indy
 lib/X11/xkb/keycodes/sgi/iris
@@ -1350,6 +1355,7 @@
 lib/X11/xkb/keymap/amiga
 lib/X11/xkb/keymap/ataritt
 lib/X11/xkb/keymap/digital/us
+lib/X11/xkb/keymap/macintosh
 lib/X11/xkb/keymap/sgi/be
 lib/X11/xkb/keymap/sgi/bg
 lib/X11/xkb/keymap/sgi/ca
@@ -1399,6 +1405,7 @@
 lib/X11/xkb/symbols/ca_enhanced
 lib/X11/xkb/symbols/cs
 lib/X11/xkb/symbols/ctrl
+lib/X11/xkb/symbols/czsk
 lib/X11/xkb/symbols/de
 lib/X11/xkb/symbols/de_CH
 lib/X11/xkb/symbols/digital/lk
@@ -1417,6 +1424,7 @@
 lib/X11/xkb/symbols/gb
 lib/X11/xkb/symbols/group
 lib/X11/xkb/symbols/hu
+lib/X11/xkb/symbols/is
 lib/X11/xkb/symbols/iso9995-3
 lib/X11/xkb/symbols/it
 lib/X11/xkb/symbols/jp
@@ -2593,6 +2601,7 @@
 @dirrm lib/X11/xkb/symbols/sony
 @dirrm lib/X11/xkb/symbols/sgi
 @dirrm lib/X11/xkb/symbols/nec
+@dirrm lib/X11/xkb/symbols/macintosh
 @dirrm lib/X11/xkb/symbols/fujitsu
 @dirrm lib/X11/xkb/symbols/digital
 @dirrm lib/X11/xkb/symbols
@@ -2617,9 +2626,12 @@
 @dirrm lib/X11/twm
 @dirrm lib/X11/rstart/contexts
 @dirrm lib/X11/rstart/commands/x11r6
+lib/X11/rstart/commands/x
+lib/X11/rstart/commands/x11
 @dirrm lib/X11/rstart/commands
 @dirrm lib/X11/rstart
 @dirrm lib/X11/proxymngr
+@dirrm lib/X11/locale/zh_TW.Big5
 @dirrm lib/X11/locale/zh_TW
 @dirrm lib/X11/locale/zh
 @dirrm lib/X11/locale/th_TH.TACTIS


>Release-Note:
>Audit-Trail:

From: Thomas Gellekum <tg@ihf.rwth-aachen.de>
To: reg@shale.csir.co.za
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/13677: Misc. Ports fix ups.
Date: 10 Sep 1999 10:02:58 +0200

 reg@shale.csir.co.za writes:
 
 > 	Some things... python: this
 > 	fixes a problem which I had with threads support in py-gnome. 
 
 > --- /usr/ports.ref/lang/python/Makefile	Tue Aug 31 21:36:12 1999
 > +++ lang/python/Makefile	Tue Aug 31 22:04:17 1999
 > @@ -52,7 +52,7 @@
 >  LIBC_R!=	/sbin/ldconfig -r | grep c_r || true
 >  .if ${LIBC_R} != "" && defined(WITH_THREADS) && ${WITH_THREADS} == yes
 >  CONFIGURE_ARGS+=	--with-thread
 > -CFLAGS+=		-D_THREAD_SAFE
 > +CFLAGS+=		-D_THREAD_SAFE -pthread
 >  CONFIGURE_ENV+=		LDFLAGS="-pthread ${LDFLAGS}"
 >  .endif
 
 Since -pthread is a linker flag, not a compiler flag, I'd prefer:
 
 Index: patches/patch-ab
 ===================================================================
 RCS file: /home/ncvs/ports/lang/python/patches/patch-ab,v
 retrieving revision 1.12
 diff -u -r1.12 patch-ab
 --- patch-ab	1999/05/10 16:11:45	1.12
 +++ patch-ab	1999/09/10 07:58:20
 @@ -1,11 +1,11 @@
 ---- configure.orig	Mon May 10 23:49:46 1999
 -+++ configure	Mon May 10 23:50:31 1999
 +--- configure.orig	Sat Apr 10 18:02:18 1999
 ++++ configure	Fri Sep 10 09:47:29 1999
  @@ -2246,7 +2246,7 @@
   		fi ;;
   	Linux*) LDSHARED="gcc -shared";;
   	dgux*) LDSHARED="ld -G";;
  -	FreeBSD*/3*) LDSHARED="gcc -shared";;
 -+	FreeBSD*/3*|FreeBSD*/4*) LDSHARED="gcc -shared";;
 ++	FreeBSD*/3*|FreeBSD*/4*) LDSHARED='gcc -shared ${LDFLAGS}';;
   	FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
   	NetBSD*)
   		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 
 Does this help you with py-gnome, whatever the problem is?
 
 tg
 

From: Jeremy Lea <reg@shale.csir.co.za>
To: Thomas Gellekum <tg@ihf.rwth-aachen.de>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/13677: Misc. Ports fix ups.
Date: Fri, 10 Sep 1999 01:15:34 -0700

 Hi,
 
 On Fri, Sep 10, 1999 at 10:02:58AM +0200, Thomas Gellekum wrote:
 > reg@shale.csir.co.za writes:
 > 
 > > 	Some things... python: this
 > > 	fixes a problem which I had with threads support in py-gnome. 
 > 
 > > --- /usr/ports.ref/lang/python/Makefile	Tue Aug 31 21:36:12 1999
 > > +++ lang/python/Makefile	Tue Aug 31 22:04:17 1999
 > > @@ -52,7 +52,7 @@
 > >  LIBC_R!=	/sbin/ldconfig -r | grep c_r || true
 > >  .if ${LIBC_R} != "" && defined(WITH_THREADS) && ${WITH_THREADS} == yes
 > >  CONFIGURE_ARGS+=	--with-thread
 > > -CFLAGS+=		-D_THREAD_SAFE
 > > +CFLAGS+=		-D_THREAD_SAFE -pthread
 > >  CONFIGURE_ENV+=		LDFLAGS="-pthread ${LDFLAGS}"
 > >  .endif
 > 
 > Since -pthread is a linker flag, not a compiler flag, I'd prefer:
 > 
 > Index: patches/patch-ab
 > ===================================================================
 > RCS file: /home/ncvs/ports/lang/python/patches/patch-ab,v
 > retrieving revision 1.12
 > diff -u -r1.12 patch-ab
 > --- patch-ab	1999/05/10 16:11:45	1.12
 > +++ patch-ab	1999/09/10 07:58:20
 > @@ -1,11 +1,11 @@
 > ---- configure.orig	Mon May 10 23:49:46 1999
 > -+++ configure	Mon May 10 23:50:31 1999
 > +--- configure.orig	Sat Apr 10 18:02:18 1999
 > ++++ configure	Fri Sep 10 09:47:29 1999
 >  @@ -2246,7 +2246,7 @@
 >   		fi ;;
 >   	Linux*) LDSHARED="gcc -shared";;
 >   	dgux*) LDSHARED="ld -G";;
 >  -	FreeBSD*/3*) LDSHARED="gcc -shared";;
 > -+	FreeBSD*/3*|FreeBSD*/4*) LDSHARED="gcc -shared";;
 > ++	FreeBSD*/3*|FreeBSD*/4*) LDSHARED='gcc -shared ${LDFLAGS}';;
 >   	FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
 >   	NetBSD*)
 >   		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 > 
 > Does this help you with py-gnome, whatever the problem is?
 
 The problem was that python would hang during one or other phase of the
 build of py-gnome.  It was caused by being compiled with
 '-D_THREAD_SAFE' but not being linked with '-pthread', since gcc not ld
 was being used for linking, so the patch above would have the same
 effect...
 
 The problem might have only been temporary (it was on -CURRENT) and
 might not happen with all the fixes in libc_r...  But it's being
 compiled with the wrong flags anyway, so it needs to be fixed.
 
 Regards,
  -Jeremy
 
 -- 
   |   "Come home my prodigal son, come home and lets be one,
 --+--  don't want to see you cry, don't make me tell you why,
   |    you've lived in a house with me, my blood has set you free,
   |    in the world you'll surely die, nothing else will satisfy." -MIC
 

From: Thomas Gellekum <tg@ihf.rwth-aachen.de>
To: Jeremy Lea <reg@shale.csir.co.za>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, nectar@FreeBSD.ORG
Subject: Re: ports/13677: Misc. Ports fix ups.
Date: 10 Sep 1999 11:28:18 +0200

 Jeremy Lea <reg@shale.csir.co.za> writes:
 
 > Hi,
 > 
 > On Fri, Sep 10, 1999 at 10:02:58AM +0200, Thomas Gellekum wrote:
 > > Since -pthread is a linker flag, not a compiler flag, I'd prefer:
           ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 > > Does this help you with py-gnome, whatever the problem is?
 > 
 > The problem was that python would hang during one or other phase of the
 > build of py-gnome.  It was caused by being compiled with
 > '-D_THREAD_SAFE' but not being linked with '-pthread', since gcc not ld
 > was being used for linking, so the patch above would have the same
 > effect...
 
 I'm afraid I don't understand what you're saying here. The relevant
 definitions in /usr/local/lib/python1.5/config/Makefile are:
 
 CC=		cc
 OPT=		-O -pipe -D_THREAD_SAFE
 LDFLAGS=	-pthread 
 LDSHARED=	gcc -shared ${LDFLAGS}
 CCSHARED=	-fpic
 LINKFORSHARED=	-Xlinker -export-dynamic
 # $(PURIFY) is empty
 LINKCC=		$(PURIFY) $(CC)
 CFLAGS=		$(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
 
 link:		$(MAINOBJ)
 		$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
 		  $(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
 		mv python$(EXE) ../python$(EXE)
 # example for a shared module
 mpzmodule.o: $(srcdir)/mpzmodule.c; $(CC) $(CCSHARED)  -I$(GMP) -I$(GMP)/mpn/generic $(CFLAGS) -c $(srcdir)/mpzmodule.c
 mpzmodule$(SO):  mpzmodule.o; $(LDSHARED)  mpzmodule.o  -lgmp -o mpzmodule$(SO)
 
 `-D_THREAD_SAFE' is added to ${OPT} only when python is built with
 thread support. `-pthread' is added to the linker flags at the same
 time. I don't see how python (the interpreter) can be compiled with
 `-D_THREAD_SAFE' but not linked against libc_r and _only_
 libc_r. Mixing libc and libc_r does not work. ld(1) is never used
 explicitly (except in FreeBSD-2.x.x for ${LDSHARED}).
 
 Of course, C extensions to python, like py-gnome, should take care to
 pick up the correct flags for the interpreter they're using.
 
 > The problem might have only been temporary (it was on -CURRENT) and
 > might not happen with all the fixes in libc_r...  But it's being
 > compiled with the wrong flags anyway, so it needs to be fixed.
 
 See above. `-pthread' in CFLAGS should not do anything. Maybe Jacques
 can enlighten me here about py-gnome. I never touched that.
 
 tg
 
State-Changed-From-To: open->closed 
State-Changed-By: mharo 
State-Changed-When: Fri Dec 24 00:17:45 PST 1999 
State-Changed-Why:  
It appears that everything in this PR has been handled.  The 
only thing I'm not 100% about is the python change.  If something 
still needs to be changed to python please submit a new PR which 
specificly talks about python. 

I'm closing this PR because it covers so much stuff with regards to 
other ports which have already been fixed and if it is left open 
I'm worried that others might spend time looking into the fixed  
parts. 
>Unformatted:
