summaryrefslogtreecommitdiff
path: root/lang/ecl
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-05-14 22:30:44 +0000
committerhans <hans@pkgsrc.org>2011-05-14 22:30:44 +0000
commit1eeac63fb8c543ecc21773c766dce0b2ca402a01 (patch)
tree49524443dbc114e8339edec9ad62baaf04be198f /lang/ecl
parentc8c23567868d58cddd5161f04670622c8c40374f (diff)
downloadpkgsrc-1eeac63fb8c543ecc21773c766dce0b2ca402a01.tar.gz
Fix build on SunOS.
Diffstat (limited to 'lang/ecl')
-rw-r--r--lang/ecl/distinfo4
-rw-r--r--lang/ecl/patches/patch-aa28
-rw-r--r--lang/ecl/patches/patch-ab18
3 files changed, 49 insertions, 1 deletions
diff --git a/lang/ecl/distinfo b/lang/ecl/distinfo
index eae2ed158d9..3f1251ff39a 100644
--- a/lang/ecl/distinfo
+++ b/lang/ecl/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.9 2011/02/11 01:28:41 asau Exp $
+$NetBSD: distinfo,v 1.10 2011/05/14 22:30:44 hans Exp $
SHA1 (ecl-11.1.1.tar.gz) = 9c4c88683f6186f8152866033e6850e19eb8cc1f
RMD160 (ecl-11.1.1.tar.gz) = e15dd8cf02cd6ad78ef35293df014363615fd4ad
Size (ecl-11.1.1.tar.gz) = 5898523 bytes
+SHA1 (patch-aa) = 21ac292cfe5bb7a4687a6761c427349470473586
+SHA1 (patch-ab) = f0ac6475fb947ec45eec14b2cbb6f86937ea0652
diff --git a/lang/ecl/patches/patch-aa b/lang/ecl/patches/patch-aa
new file mode 100644
index 00000000000..5d332664174
--- /dev/null
+++ b/lang/ecl/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.3 2011/05/14 22:30:44 hans Exp $
+
+--- src/c/file.d.orig 2011-01-16 22:39:56.000000000 +0100
++++ src/c/file.d 2011-04-10 21:23:34.034015233 +0200
+@@ -4828,7 +4828,7 @@ ecl_integer_to_off_t(cl_object offset)
+ } else if (ECL_BIGNUMP(offset)) {
+ if (sizeof(offset->big.big_limbs[0]) == sizeof(cl_index)) {
+ if (offset->big.big_size > 2) {
+- goto ERR;
++ goto ERROR;
+ }
+ if (offset->big.big_size == 2) {
+ output = offset->big.big_limbs[1];
+@@ -4837,12 +4837,12 @@ ecl_integer_to_off_t(cl_object offset)
+ output += offset->big.big_limbs[0];
+ } else if (sizeof(offset->big.big_limbs[0]) >= sizeof(ecl_off_t)) {
+ if (offset->big.big_size > 1) {
+- goto ERR;
++ goto ERROR;
+ }
+ output = offset->big.big_limbs[0];
+ }
+ } else {
+- ERR: FEerror("Not a valid file offset: ~S", 1, offset);
++ ERROR: FEerror("Not a valid file offset: ~S", 1, offset);
+ }
+ return output;
+ }
diff --git a/lang/ecl/patches/patch-ab b/lang/ecl/patches/patch-ab
new file mode 100644
index 00000000000..fd7832ff325
--- /dev/null
+++ b/lang/ecl/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 2011/05/14 22:30:44 hans Exp $
+
+--- src/configure.orig 2011-01-16 22:39:59.000000000 +0100
++++ src/configure 2011-05-15 00:51:26.407635767 +0200
+@@ -4878,10 +4878,12 @@ case "${host_os}" in
+ ECL_LDRPATH='-Wl,-R,~A'
+ TCPLIBS='-lsocket -lnsl -lintl'
+ clibs='-ldl'
++ SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
++ SONAME_LDFLAGS="-Wl,-soname,SONAME"
+ # We should use C99 and _XOPEN_SOURCE=600, but Solaris 10
+ # ships with GCC 3.4.3 which does not support C99
+ if test "x$GCC" = "xyes"; then
+- CFLAGS="${CFLAGS} -std=gnu99"
++ CFLAGS="${CFLAGS} -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
+ SHARED_LDFLAGS="-shared $SHARED_LDFLAGS"
+ BUNDLE_LDFLAGS="-shared $BUNDLE_LDFLAGS"
+ fi