Subject: Re: pkgsrc Darwin 8.3.0/powerpc bulk build results 2006-01-21
To: Emil Hessman <ceh@otaku.se>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: pkgsrc-bulk
Date: 01/26/2006 11:55:13
--Apple-Mail-3-1051924042
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

El 26/01/2006, a las 9:54, Emil Hessman escribi=F3:

> Thus wrote Thomas Klausner:
>
>>> devel/libgnomeui           137     jmmv(-at-)NetBSD.org
>>
>>  /usr/bin/ld: Undefined symbols:
>>  _environ
>>  collect2: ld returned 1 exit status
>
>    See problem report pkg/31913 [1] for fix (hello jmmv!).

Sorry, but I don't think that fix is correct.  It will only delay
the problem until run time.

Can you try the attached patch instead?

Thanks,

--=20
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/



--Apple-Mail-3-1051924042
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0700;
	name="patch.diff"
Content-Disposition: attachment;
	filename=patch.diff

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libgnomeui/distinfo,v
retrieving revision 1.16
diff -u -r1.16 distinfo
--- distinfo	10 Oct 2005 13:43:44 -0000	1.16
+++ distinfo	26 Jan 2006 10:53:46 -0000
@@ -3,4 +3,5 @@
 SHA1 (libgnomeui-2.12.0.tar.bz2) = 669f81ec39b7af5000febcc6a53206a88a8af4d9
 RMD160 (libgnomeui-2.12.0.tar.bz2) = a4477d22b736cf2aafa0b6f495647970e44339b8
 Size (libgnomeui-2.12.0.tar.bz2) = 1831358 bytes
+SHA1 (patch-aa) = fb4040d59c490b956ccf1816df5ba86713d3e286
 SHA1 (patch-ab) = 27c9b7a2e517564f4725a3a1e3375fe58fc5f8e8
Index: patches/patch-aa
===================================================================
RCS file: patches/patch-aa
diff -N patches/patch-aa
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-aa	26 Jan 2006 10:53:46 -0000
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- file-chooser/sucky-desktop-item.c.orig	2006-01-26 11:52:42.000000000 +0100
++++ file-chooser/sucky-desktop-item.c
+@@ -67,7 +67,12 @@
+ 
+ #define sure_string(s) ((s)!=NULL?(s):"")
+ 
++#if defined(__APPLE__) && defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
++  #include <crt_externs.h>
++  #define environ (*_NSGetEnviron())
++#else
+ extern char **environ;
++#endif
+ 
+ struct _SuckyDesktopItem {
+ 	int refcount;

--Apple-Mail-3-1051924042--