pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/djvulibre-lib Fix an undefined symbol problem...
details: https://anonhg.NetBSD.org/pkgsrc/rev/007dc6edaedd
branches: trunk
changeset: 554779:007dc6edaedd
user: drochner <drochner%pkgsrc.org@localhost>
date: Fri Feb 20 10:52:56 2009 +0000
description:
Fix an undefined symbol problem which rendered this pkg unusable
after the last update.
(due to use of a locking primitive which is only available on 486+
while gcc defaults to -march=i386)
This might also fix PR pkg/40630 by Kamel Derouiche.
bump PKGREVISION
diffstat:
graphics/djvulibre-lib/Makefile | 11 ++++++++++-
graphics/djvulibre-lib/distinfo | 4 ++--
graphics/djvulibre-lib/patches/patch-ad | 10 +++++++++-
3 files changed, 21 insertions(+), 4 deletions(-)
diffs (63 lines):
diff -r c5984c018c59 -r 007dc6edaedd graphics/djvulibre-lib/Makefile
--- a/graphics/djvulibre-lib/Makefile Fri Feb 20 10:40:27 2009 +0000
+++ b/graphics/djvulibre-lib/Makefile Fri Feb 20 10:52:56 2009 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2009/01/06 18:03:23 adam Exp $
+# $NetBSD: Makefile,v 1.6 2009/02/20 10:52:56 drochner Exp $
DISTNAME= djvulibre-3.5.21
PKGNAME= djvulibre-lib-3.5.21
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=djvu/}
@@ -20,5 +21,13 @@
BUILD_DIRS= libdjvu
INSTALL_DIRS= libdjvu
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-[5-9]*-i386) && !empty(PKGSRC_COMPILER:Mgcc)
+# The library uses Intel atomic intrinsics which don't work with NetBSD's
+# default arch setting of "i386" because eg. cmpxchgl is 486+.
+# On NetBSD-5+, i386 is desupported so we can safely assume a 486.
+CFLAGS+= -march=i486
+.endif
+
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r c5984c018c59 -r 007dc6edaedd graphics/djvulibre-lib/distinfo
--- a/graphics/djvulibre-lib/distinfo Fri Feb 20 10:40:27 2009 +0000
+++ b/graphics/djvulibre-lib/distinfo Fri Feb 20 10:52:56 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2009/01/06 18:03:23 adam Exp $
+$NetBSD: distinfo,v 1.6 2009/02/20 10:52:56 drochner Exp $
SHA1 (djvulibre-3.5.21.tar.gz) = a6ef5cb1445baa333883754c703abd75cc5b34f6
RMD160 (djvulibre-3.5.21.tar.gz) = 2163b784d705cc7b55bb3d9c9eb85edec44f28a7
@@ -6,4 +6,4 @@
SHA1 (patch-aa) = c819c6b1218b3178983bb48e53c4d3c0f7dd0227
SHA1 (patch-ab) = 5e8f6d3b925da3a2a09b87a05d2b9564f9c2e7b4
SHA1 (patch-ac) = 0c713031903aade12eda1d898595798a1468fd0a
-SHA1 (patch-ad) = 49b1847af0c0fb6d786e7f3c26e415e215928248
+SHA1 (patch-ad) = 66b149594453d70afd47ed03e6067d6356288191
diff -r c5984c018c59 -r 007dc6edaedd graphics/djvulibre-lib/patches/patch-ad
--- a/graphics/djvulibre-lib/patches/patch-ad Fri Feb 20 10:40:27 2009 +0000
+++ b/graphics/djvulibre-lib/patches/patch-ad Fri Feb 20 10:52:56 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.3 2009/01/06 18:05:07 adam Exp $
+$NetBSD: patch-ad,v 1.4 2009/02/20 10:52:57 drochner Exp $
--- configure.orig 2008-07-03 00:43:52.000000000 +0200
+++ configure
@@ -41,3 +41,11 @@
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
+@@ -21691,6 +21687,7 @@ main ()
+ __sync_lock_test_and_set(&l,1);
+ __sync_lock_release(&l);
+ __sync_add_and_fetch(&l,1);
++ __sync_bool_compare_and_swap(&l,0,1);
+ return 0;
+ ;
+ return 0;
Home |
Main Index |
Thread Index |
Old Index