pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/glib Make this work on FreeBSD 5.x systems, wher...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac71ac05d9f7
branches:  trunk
changeset: 460848:ac71ac05d9f7
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Sep 05 16:54:49 2003 +0000

description:
Make this work on FreeBSD 5.x systems, where SC_GETPW_R_SIZE_MAX
still is not implemented. This closes my own PR pkg/21909. Reviewed
by wiz@

diffstat:

 devel/glib/distinfo         |   4 +++-
 devel/glib/patches/patch-af |  14 ++++++++++++++
 devel/glib/patches/patch-ag |  22 ++++++++++++++++++++++
 3 files changed, 39 insertions(+), 1 deletions(-)

diffs (60 lines):

diff -r 520773d2b85b -r ac71ac05d9f7 devel/glib/distinfo
--- a/devel/glib/distinfo       Fri Sep 05 16:49:38 2003 +0000
+++ b/devel/glib/distinfo       Fri Sep 05 16:54:49 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2002/10/30 03:09:30 rh Exp $
+$NetBSD: distinfo,v 1.9 2003/09/05 16:54:49 xtraeme Exp $
 
 SHA1 (glib-1.2.10.tar.gz) = e5a9361c594608d152d5d9650154c2e3260b87fa
 Size (glib-1.2.10.tar.gz) = 421480 bytes
@@ -7,4 +7,6 @@
 SHA1 (patch-ac) = ab176e926d9fee6d463096ad3853e06718129acc
 SHA1 (patch-ad) = a7c10916ccaef52a62415d129060a6dddbc5fbd8
 SHA1 (patch-ae) = 222a1f4c470fd1123deb3b4dd918b036b3607e59
+SHA1 (patch-af) = 3292d96121329583be5bf0ac573d2cec297b5d52
+SHA1 (patch-ag) = a0b4009a24474c1b037614f2ae0660a39c11d1b7
 SHA1 (patch-ai) = 8c81ff9ed494a00663ce92afc889050a4eb37218
diff -r 520773d2b85b -r ac71ac05d9f7 devel/glib/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib/patches/patch-af       Fri Sep 05 16:54:49 2003 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-af,v 1.4 2003/09/05 16:54:50 xtraeme Exp $
+
+--- gutils.c.orig      2003-09-04 22:39:55.000000000 +0200
++++ gutils.c   2003-09-04 22:41:06.000000000 +0200
+@@ -483,6 +483,9 @@
+ #    ifdef _SC_GETPW_R_SIZE_MAX  
+         /* This reurns the maximum length */
+         guint bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
++#ifdef __FreeBSD__
++      if (bufsize == UINT_MAX) bufsize = 64; /* XXX Correct for unimpelemented SC */
++#endif  /* __FreeBSD__ */
+ #    else /* _SC_GETPW_R_SIZE_MAX */
+         guint bufsize = 64;
+ #    endif /* _SC_GETPW_R_SIZE_MAX */
diff -r 520773d2b85b -r ac71ac05d9f7 devel/glib/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib/patches/patch-ag       Fri Sep 05 16:54:49 2003 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.4 2003/09/05 16:54:50 xtraeme Exp $
+
+--- gmodule/gmodule-dl.c.orig  2003-09-04 22:41:48.000000000 +0200
++++ gmodule/gmodule-dl.c       2003-09-04 22:42:43.000000000 +0200
+@@ -100,6 +100,7 @@
+ static gpointer
+ _g_module_self (void)
+ {
++#ifndef __FreeBSD__
+   gpointer handle;
+   
+   /* to query symbols from the program itself, special link options
+@@ -111,6 +112,9 @@
+     g_module_set_error (fetch_dlerror ());
+   
+   return handle;
++#else
++  return RTLD_DEFAULT;
++#endif
+ }
+ 
+ static void



Home | Main Index | Thread Index | Old Index