pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libidn If strverscmp() is not present, libidn sh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6431989bc4e
branches:  trunk
changeset: 547690:e6431989bc4e
user:      tonnerre <tonnerre%pkgsrc.org@localhost>
date:      Sun Sep 28 00:43:39 2008 +0000

description:
If strverscmp() is not present, libidn shouldn't export a symbol of the
same name, breaking the builds of libraries trying to both link against
libidn and use strverscmp(). Bump PKGREVISION.

Related to PR 39640.

diffstat:

 devel/libidn/Makefile         |   3 ++-
 devel/libidn/distinfo         |   5 ++++-
 devel/libidn/patches/patch-ab |  13 +++++++++++++
 devel/libidn/patches/patch-ac |  22 ++++++++++++++++++++++
 devel/libidn/patches/patch-ad |  16 ++++++++++++++++
 5 files changed, 57 insertions(+), 2 deletions(-)

diffs (89 lines):

diff -r 61ad19e23a59 -r e6431989bc4e devel/libidn/Makefile
--- a/devel/libidn/Makefile     Sat Sep 27 23:14:53 2008 +0000
+++ b/devel/libidn/Makefile     Sun Sep 28 00:43:39 2008 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.57 2008/09/06 15:13:55 wiz Exp $
+# $NetBSD: Makefile,v 1.58 2008/09/28 00:43:39 tonnerre Exp $
 
 DISTNAME=      libidn-1.10
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ftp://alpha.gnu.org/pub/gnu/libidn/ \
                http://josefsson.org/libidn/releases/
diff -r 61ad19e23a59 -r e6431989bc4e devel/libidn/distinfo
--- a/devel/libidn/distinfo     Sat Sep 27 23:14:53 2008 +0000
+++ b/devel/libidn/distinfo     Sun Sep 28 00:43:39 2008 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.37 2008/09/06 15:13:55 wiz Exp $
+$NetBSD: distinfo,v 1.38 2008/09/28 00:43:39 tonnerre Exp $
 
 SHA1 (libidn-1.10.tar.gz) = a19aa399f5dc636ab5c693ca15f06bce2a833e34
 RMD160 (libidn-1.10.tar.gz) = e112eeb5340c8ded1e0aef8096432451a03351bb
 Size (libidn-1.10.tar.gz) = 2534199 bytes
 SHA1 (patch-aa) = 412f1b609b81ade44c694f1a24f5b37d57c383c0
+SHA1 (patch-ab) = 850e8f30891c58dc9781c7e891e61136c6ed6d3b
+SHA1 (patch-ac) = 0b2eab310a21ca7ea695d0ee01449b7311338d6f
+SHA1 (patch-ad) = b0e3d6f4739f007d4df6de0ace056011dfb21c7d
diff -r 61ad19e23a59 -r e6431989bc4e devel/libidn/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libidn/patches/patch-ab     Sun Sep 28 00:43:39 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2008/09/28 00:43:39 tonnerre Exp $
+
+--- lib/gl/strverscmp.c.orig   2008-08-25 17:33:33.000000000 +0200
++++ lib/gl/strverscmp.c
+@@ -58,7 +58,7 @@
+ */
+ 
+ int
+-__strverscmp (const char *s1, const char *s2)
++libidn_strverscmp (const char *s1, const char *s2)
+ {
+   const unsigned char *p1 = (const unsigned char *) s1;
+   const unsigned char *p2 = (const unsigned char *) s2;
diff -r 61ad19e23a59 -r e6431989bc4e devel/libidn/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libidn/patches/patch-ac     Sun Sep 28 00:43:39 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 2008/09/28 00:43:39 tonnerre Exp $
+
+--- lib/gl/string.in.h.orig    2008-08-25 17:33:33.000000000 +0200
++++ lib/gl/string.in.h
+@@ -578,14 +578,15 @@ extern char *strsignal (int __sig);
+ 
+ #if @GNULIB_STRVERSCMP@
+ # if !@HAVE_STRVERSCMP@
+-extern int strverscmp (const char *, const char *);
++#define strverscmp libidn_strverscmp
++extern int libidn_strverscmp (const char *, const char *);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+ # undef strverscmp
+ # define strverscmp(a, b) \
+     (GL_LINK_WARNING ("strverscmp is unportable - " \
+                       "use gnulib module strverscmp for portability"), \
+-     strverscmp (a, b))
++     libidn_strverscmp (a, b))
+ #endif
+ 
+ 
diff -r 61ad19e23a59 -r e6431989bc4e devel/libidn/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libidn/patches/patch-ad     Sun Sep 28 00:43:39 2008 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1 2008/09/28 00:43:39 tonnerre Exp $
+
+--- win32/include/gen-win32-headers.pl.orig    2008-08-27 10:12:12.000000000 +0200
++++ win32/include/gen-win32-headers.pl
+@@ -69,7 +69,10 @@ if(@ARGV == 0) {
+ #define strcasecmp stricmp
+ #define strncasecmp strnicmp
+ 
+-extern int strverscmp (const char *, const char *);
++#ifndef HAVE_STRVERSCMP
++#define strverscmp libidn_strverscmp
++extern int libidn_strverscmp (const char *, const char *);
++#endif
+ 
+ #define LOCALEDIR "."
+ 



Home | Main Index | Thread Index | Old Index