pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/gsharutils Fix build on Interix (and others ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1538a86c3434
branches:  trunk
changeset: 488097:1538a86c3434
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Jan 24 20:15:58 2005 +0000

description:
Fix build on Interix (and others with pkgsrc gettext-lib 0.11+).

gettext 0.11+ has renamed internal symbols, and gsharutils is
being a very bad neighbor by using them directly.  To fix, force
use of gettext >= 0.11, and rename the symbol in gsharutils.

diffstat:

 archivers/gsharutils/Makefile |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3bfcc1b13b58 -r 1538a86c3434 archivers/gsharutils/Makefile
--- a/archivers/gsharutils/Makefile     Mon Jan 24 20:13:21 2005 +0000
+++ b/archivers/gsharutils/Makefile     Mon Jan 24 20:15:58 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2004/10/03 00:13:04 tv Exp $
+# $NetBSD: Makefile,v 1.23 2005/01/24 20:15:58 tv Exp $
 
 DISTNAME=      sharutils-4.2.1
 PKGNAME=       g${DISTNAME}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    archivers
 MASTER_SITES=  ${MASTER_SITE_GNU:=sharutils/}
 
@@ -24,6 +24,13 @@
 
 CONFIGURE_ARGS+=       --disable-uucode
 
+# gettext 0.11+ has renamed internal symbols, and gsharutils is
+# being a very bad neighbor by using them directly.  To fix, force
+# use of gettext >= 0.11, and rename the symbol in gsharutils.  -tv
+#
+BUILDLINK_DEPENDS.gettext+= gettext-lib>=0.11
+CPPFLAGS+=             -D_nl_default_dirname=libintl_nl_default_dirname
+
 .include "../../mk/bsd.prefs.mk"
 
 .if defined(GNU_PROGRAM_PREFIX)



Home | Main Index | Thread Index | Old Index