summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-01-08 21:04:14 +0000
committerjperkin <jperkin@pkgsrc.org>2014-01-08 21:04:14 +0000
commit377292518b465899d32b3687c462f2f93fe72ef1 (patch)
tree818a819a3f9146a1cf8588fa19d9f213f959804a
parenta2fbb992f3aac3d6eb65610ee3647b44ca29ebe0 (diff)
downloadpkgsrc-377292518b465899d32b3687c462f2f93fe72ef1.tar.gz
Fix sign-compare on SunOS.
-rw-r--r--devel/binutils/distinfo3
-rw-r--r--devel/binutils/patches/patch-bfd_cache.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/devel/binutils/distinfo b/devel/binutils/distinfo
index 81950ba8785..64bb366dfa0 100644
--- a/devel/binutils/distinfo
+++ b/devel/binutils/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.13 2014/01/06 14:58:41 wiz Exp $
+$NetBSD: distinfo,v 1.14 2014/01/08 21:04:14 jperkin Exp $
SHA1 (binutils-2.24.tar.bz2) = 7ac75404ddb3c4910c7594b51ddfc76d4693debb
RMD160 (binutils-2.24.tar.bz2) = b4aa3ea5ba9d0d9f817b2cf136e7f911f692af8d
Size (binutils-2.24.tar.bz2) = 22716802 bytes
SHA1 (patch-aa) = 1a127f82c807cbd1ac6fee073c618f3fb48667f6
+SHA1 (patch-bfd_cache.c) = 14848eb2bfafb0eddd3328bded305131dec42488
SHA1 (patch-configure.ac) = 7bd7b90e57d850705286f2cc6464ecc45e0657c0
SHA1 (patch-gas_config_tc-i386.c) = 16b04ee6c3c46db375c883b4338bf5d796174458
SHA1 (patch-libiberty_Makefile.in) = fd07f4fafe6c25e9ab65c65ec3807c89bfd9f0b5
diff --git a/devel/binutils/patches/patch-bfd_cache.c b/devel/binutils/patches/patch-bfd_cache.c
new file mode 100644
index 00000000000..3ce1bdd936b
--- /dev/null
+++ b/devel/binutils/patches/patch-bfd_cache.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-bfd_cache.c,v 1.1 2014/01/08 21:04:15 jperkin Exp $
+
+Fix sign-compare on SunOS.
+
+--- bfd/cache.c.orig 2013-11-04 15:33:37.000000000 +0000
++++ bfd/cache.c
+@@ -82,7 +82,11 @@ bfd_cache_max_open (void)
+ #ifdef HAVE_GETRLIMIT
+ struct rlimit rlim;
+ if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
++#ifdef __sun
++ && rlim.rlim_cur != (rlim_t)RLIM_INFINITY)
++#else
+ && rlim.rlim_cur != RLIM_INFINITY)
++#endif
+ max = rlim.rlim_cur / 8;
+ else
+ #endif /* HAVE_GETRLIMIT */