diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-07-05 13:39:05 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-07-05 13:39:05 +0000 |
commit | c030588c0bbdf8d2a46e74479ff0550c6a213cad (patch) | |
tree | 23831fdea3467555c9b62d70210a64566b31bb60 /editors/emacs21 | |
parent | 7ee5af7baad5f94f23410940c8d786ddee730e63 (diff) | |
download | pkgsrc-c030588c0bbdf8d2a46e74479ff0550c6a213cad.tar.gz |
Bump PKGREVISION.
* Fix build for giflib 5.0.4.
Diffstat (limited to 'editors/emacs21')
-rw-r--r-- | editors/emacs21/Makefile | 4 | ||||
-rw-r--r-- | editors/emacs21/distinfo | 7 | ||||
-rw-r--r-- | editors/emacs21/patches/patch-ab | 78 | ||||
-rw-r--r-- | editors/emacs21/patches/patch-ax | 23 |
4 files changed, 94 insertions, 18 deletions
diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile index af9e569e1ea..cf5f07663a0 100644 --- a/editors/emacs21/Makefile +++ b/editors/emacs21/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.28 2013/05/31 12:40:58 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2013/07/05 13:43:44 ryoon Exp $ -PKGREVISION= 27 +PKGREVISION= 28 CATEGORIES= editors CONFLICTS+= emacs21-nox11-[0-9]* diff --git a/editors/emacs21/distinfo b/editors/emacs21/distinfo index a3ceb0546a5..abc8fbc0873 100644 --- a/editors/emacs21/distinfo +++ b/editors/emacs21/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.13 2011/12/31 23:56:46 dholland Exp $ +$NetBSD: distinfo,v 1.14 2013/07/05 13:43:44 ryoon Exp $ SHA1 (emacs-21.4a.tar.gz) = cdb33731180fe4a912838af805dd35e3f55394d4 RMD160 (emacs-21.4a.tar.gz) = c312e739935b56d08783bbfe97992297a363cb8a Size (emacs-21.4a.tar.gz) = 20403483 bytes SHA1 (patch-aa) = fee6fe91fb9a2f75300903cc5c6e023bb8de6be5 -SHA1 (patch-ab) = 54970ba05aa5b638f1a4420c75d2e9bcdaba5acf +SHA1 (patch-ab) = 0c3396736776fc2d267ab5fe24c3a1be05d64849 SHA1 (patch-ac) = a2de7619fece50cb42b0e23b1651b5bf742ff69a SHA1 (patch-ad) = 39a11bc214ae3d2f9d634c30b196a46d473ab92f SHA1 (patch-ae) = e2b66b23efb90608470aef5ebd0c75e27bcd6b55 @@ -26,12 +26,13 @@ SHA1 (patch-at) = bdd1bf7eea72a0b81677817d9b36cddaa07a189c SHA1 (patch-au) = e5d90961b4d78c37dec196097a16e0b6ac22e3bb SHA1 (patch-av) = 9b6ea439df406a55310e2ca1af45ed56f1663263 SHA1 (patch-aw) = d7d9013734853a9542fd657f1b532d3c108f88e0 -SHA1 (patch-ax) = 183dd9f3339564f0884f38be22080b333d85f58d +SHA1 (patch-ax) = 1b4abed8dca34f6148a5f0dd4b323e19e8c799b2 SHA1 (patch-ay) = 82e4eb371be4dff891878973888c38ca53e9f326 SHA1 (patch-az) = 43753accb1b9ffc2c63e638c31236b8e4880080b SHA1 (patch-ba) = ae05985ce8cabffdfbfb84905e1d6b0de7690b25 SHA1 (patch-bb) = bf748292c57459b1240da01f9d3df16e4dc40fa2 SHA1 (patch-bg) = 567ccce83e2b6d898a87f20763d5ff4b19c30deb SHA1 (patch-cf) = 1b5b83eb02872414fd7ca29c344c0560feaf1b7e +SHA1 (patch-src_Makefile.in) = cecef2516c4b9a4171926080a32826fad92ea077 SHA1 (patch-src_alloc_c) = c9d2c7832b8b48835b81789f938540e3827f7cd8 SHA1 (patch-xx) = cf1cb21e0bd96202622ff54e39d202bdae78c942 diff --git a/editors/emacs21/patches/patch-ab b/editors/emacs21/patches/patch-ab index 90d1f53fa32..f34fef8e333 100644 --- a/editors/emacs21/patches/patch-ab +++ b/editors/emacs21/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.3 2011/12/31 23:56:47 dholland Exp $ +$NetBSD: patch-ab,v 1.4 2013/07/05 13:43:44 ryoon Exp $ Caution: the extra cpp checking (the three hunks containing "Should be one line") is manually hacked and not reflected in configure.in; do @@ -6,6 +6,9 @@ not regenerate configure with autoconf without merging it. This checking is required because somewhere between gcc 4.1 and 4.5 cpp started doing regrettable things with backslash-escaped newlines. +* Fix build on NetBSD 6.99.23, gcc -E -traditional-cpp with native X + results syntax error. Use -traditional-cpp for Makefile generation only. + --- configure.orig 2003-03-18 14:19:12.000000000 +0000 +++ configure @@ -822,9 +822,17 @@ case "${canonical}" in @@ -45,7 +48,7 @@ started doing regrettable things with backslash-escaped newlines. *-nextstep* ) opsys=nextstep ;; ## Otherwise, we'll fall through to the generic opsys code at the bottom. esac -@@ -2052,15 +2065,21 @@ else +@@ -2052,15 +2065,20 @@ else CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. @@ -56,8 +59,7 @@ started doing regrettable things with backslash-escaped newlines. #include "confdefs.h" #include <assert.h> Syntax Error -+Should \\ -+be one line. ++Should be one line. EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" @@ -69,12 +71,18 @@ started doing regrettable things with backslash-escaped newlines. if test -z "$ac_err"; then : else -@@ -2074,10 +2093,14 @@ else +@@ -2068,16 +2086,19 @@ else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* +- CPP="${CC-cc} -E -traditional-cpp" ++ CPP="${CC-cc} -E" + cat > conftest.$ac_ext <<EOF + #line 2074 "configure" #include "confdefs.h" #include <assert.h> Syntax Error -+Should \\ -+be one line. ++Should be one line. EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" @@ -86,12 +94,11 @@ started doing regrettable things with backslash-escaped newlines. if test -z "$ac_err"; then : else -@@ -2091,10 +2114,14 @@ else +@@ -2091,10 +2112,13 @@ else #include "confdefs.h" #include <assert.h> Syntax Error -+Should \\ -+be one line. ++Should be one line. EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp conftest.$ac_ext >conftest2.out 2>conftest.out" @@ -103,7 +110,38 @@ started doing regrettable things with backslash-escaped newlines. if test -z "$ac_err"; then : else -@@ -9124,6 +9151,22 @@ EOF +@@ -5583,24 +5607,24 @@ if eval "test \"`echo '$ac_cv_header_'$a + echo "$ac_t""yes" 1>&6 + # EGifPutExtensionLast only exists from version libungif-4.1.0b1. + # Earlier versions can crash Emacs. +- echo $ac_n "checking for EGifPutExtensionLast in -lungif""... $ac_c" 1>&6 +-echo "configure:5588: checking for EGifPutExtensionLast in -lungif" >&5 +-ac_lib_var=`echo ungif'_'EGifPutExtensionLast | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for EGifPutExtensionTrailer in -lgif""... $ac_c" 1>&6 ++echo "configure:5588: checking for EGifPutExtensionTrailer in -lgif" >&5 ++ac_lib_var=`echo ungif'_'EGifPutExtensionTrailer | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lungif $LIBS" ++LIBS="-lgif $LIBS" + cat > conftest.$ac_ext <<EOF + #line 5596 "configure" + #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +-char EGifPutExtensionLast(); ++char EGifPutExtensionTrailer(); + + int main() { +-EGifPutExtensionLast() ++EGifPutExtensionTrailer() + ; return 0; } + EOF + if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -9124,6 +9148,22 @@ EOF fi @@ -126,3 +164,21 @@ started doing regrettable things with backslash-escaped newlines. # Set up the CFLAGS for real compilation, so we can substitute it. CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS" +@@ -9735,7 +9777,7 @@ echo creating lib-src/Makefile + sed -e '1,/start of cpp stuff/d'\ + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ + < Makefile.c > junk.c +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ ++ $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ + sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c + cat junk1.c junk2.c > Makefile.new + rm -f junk.c junk1.c junk2.c +@@ -9751,7 +9793,7 @@ echo creating src/Makefile + sed -e '1,/start of cpp stuff/d'\ + -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ + < Makefile.c > junk.c +- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ ++ $CPP -traditional-cpp $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ + sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c + cat junk1.c junk2.c > Makefile.new + rm -f junk.c junk1.c junk2.c diff --git a/editors/emacs21/patches/patch-ax b/editors/emacs21/patches/patch-ax index 7a8c72a7fe6..a7a343505fb 100644 --- a/editors/emacs21/patches/patch-ax +++ b/editors/emacs21/patches/patch-ax @@ -1,6 +1,7 @@ -$NetBSD: patch-ax,v 1.1 2011/01/24 09:42:40 wiz Exp $ +$NetBSD: patch-ax,v 1.2 2013/07/05 13:43:44 ryoon Exp $ -Fix build with png-1.5. +* Fix build with png-1.5. +* Fix build with giflib 5.0. --- src/xfns.c.orig 2002-12-06 17:05:35.000000000 +0000 +++ src/xfns.c @@ -25,3 +26,21 @@ Fix build with png-1.5. { error: if (png_ptr) +@@ -9759,7 +9763,7 @@ gif_load (f, img) + } + + /* Open the GIF file. */ +- gif = DGifOpenFileName (XSTRING (file)->data); ++ gif = DGifOpenFileName (XSTRING (file)->data, NULL); + if (gif == NULL) + { + image_error ("Cannot open `%s'", file, Qnil); +@@ -9775,7 +9779,7 @@ gif_load (f, img) + memsrc.len = STRING_BYTES (XSTRING (specified_data)); + memsrc.index = 0; + +- gif = DGifOpen(&memsrc, gif_read_from_memory); ++ gif = DGifOpen(&memsrc, gif_read_from_memory, NULL); + if (!gif) + { + image_error ("Cannot open memory source `%s'", img->spec, Qnil); |