pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/libiconv Fail if this package is to be buil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0704cc994ad4
branches:  trunk
changeset: 476141:0704cc994ad4
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri Jun 04 05:25:38 2004 +0000

description:
Fail if this package is to be built under Linux.  This is normal
for Linux. Most (all?) Linux distros don't provide a libiconv
package, because GLIBC's iconv support is good enough.

At this time, using PKG_FAIL_REASON instead of PKG_SKIP_REASON
so we can catch examples of packages depending on this.

The builtin.mk was improved to help stop it from being used under
Linux.

This was okayed by Rene Hexel, the maintainer.

Todo: fix abiword build because it should not require this libiconv
package under Linux.

diffstat:

 converters/libiconv/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 961e88143757 -r 0704cc994ad4 converters/libiconv/Makefile
--- a/converters/libiconv/Makefile      Fri Jun 04 05:21:14 2004 +0000
+++ b/converters/libiconv/Makefile      Fri Jun 04 05:25:38 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2004/04/28 15:19:04 tv Exp $
+# $NetBSD: Makefile,v 1.27 2004/06/04 05:25:38 reed Exp $
 #
 
 DISTNAME=              libiconv-1.9.1
@@ -10,6 +10,12 @@
 HOMEPAGE=              http://www.gnu.org/software/libiconv/
 COMMENT=               Character set conversion library
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+# don't use PKG_SKIP_REASON yet so we can make sure the buildlinking is correct
+PKG_FAIL_REASON+=      "${PKGNAME} is not needed for Linux; it is included in GNU libc."
+.endif
+
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
 USE_BUILDLINK3=                YES



Home | Main Index | Thread Index | Old Index