diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /tools/bison | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'tools/bison')
-rw-r--r-- | tools/bison/.svn/entries | 65 | ||||
-rw-r--r-- | tools/bison/.svn/text-base/Makefile.svn-base | 28 | ||||
-rw-r--r-- | tools/bison/Makefile | 28 | ||||
-rw-r--r-- | tools/bison/patches/.svn/entries | 130 | ||||
-rw-r--r-- | tools/bison/patches/.svn/text-base/000-relocatable.patch.svn-base | 20 | ||||
-rw-r--r-- | tools/bison/patches/.svn/text-base/010-intl-stub-compat.patch.svn-base | 15 | ||||
-rw-r--r-- | tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base | 16 | ||||
-rw-r--r-- | tools/bison/patches/000-relocatable.patch | 20 | ||||
-rw-r--r-- | tools/bison/patches/010-intl-stub-compat.patch | 15 | ||||
-rw-r--r-- | tools/bison/patches/100-fix-gets-removal.patch | 16 |
10 files changed, 353 insertions, 0 deletions
diff --git a/tools/bison/.svn/entries b/tools/bison/.svn/entries new file mode 100644 index 0000000..97fe440 --- /dev/null +++ b/tools/bison/.svn/entries @@ -0,0 +1,65 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/tools/bison +svn://svn.openwrt.org/openwrt + + + +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +patches +dir + +Makefile +file + + + + +2013-03-17T12:13:22.000000Z +55987aab4398dce7f0042a6a2b586d5b +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + + + + + + + + +581 + diff --git a/tools/bison/.svn/text-base/Makefile.svn-base b/tools/bison/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..d20d1c0 --- /dev/null +++ b/tools/bison/.svn/text-base/Makefile.svn-base @@ -0,0 +1,28 @@ +# +# Copyright (C) 2008-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=bison +PKG_VERSION:=2.7 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNU/$(PKG_NAME) +PKG_MD5SUM:=234cdfac99257cf99ac4a03c898f37b9 +PKG_CAT:=xzcat + +HOST_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk + +HOST_LDFLAGS += $(HOST_STATIC_LINKING) + +define Host/Clean + -$(MAKE) -C $(HOST_BUILD_DIR) uninstall + $(call Host/Clean/Default) +endef + +$(eval $(call HostBuild)) diff --git a/tools/bison/Makefile b/tools/bison/Makefile new file mode 100644 index 0000000..d20d1c0 --- /dev/null +++ b/tools/bison/Makefile @@ -0,0 +1,28 @@ +# +# Copyright (C) 2008-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=bison +PKG_VERSION:=2.7 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNU/$(PKG_NAME) +PKG_MD5SUM:=234cdfac99257cf99ac4a03c898f37b9 +PKG_CAT:=xzcat + +HOST_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk + +HOST_LDFLAGS += $(HOST_STATIC_LINKING) + +define Host/Clean + -$(MAKE) -C $(HOST_BUILD_DIR) uninstall + $(call Host/Clean/Default) +endef + +$(eval $(call HostBuild)) diff --git a/tools/bison/patches/.svn/entries b/tools/bison/patches/.svn/entries new file mode 100644 index 0000000..e08b2b2 --- /dev/null +++ b/tools/bison/patches/.svn/entries @@ -0,0 +1,130 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/tools/bison/patches +svn://svn.openwrt.org/openwrt + + + +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +100-fix-gets-removal.patch +file + + + + +2013-03-17T12:13:22.000000Z +4224463f2de2d892d2d0af6a95181372 +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + + + + + + + + +468 + +000-relocatable.patch +file + + + + +2013-03-17T12:13:22.000000Z +ee005dbe2048ad7e4ab23c2600d69b3d +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + + + + + + + + +649 + +010-intl-stub-compat.patch +file + + + + +2013-03-17T12:13:22.000000Z +bf0482e5801ab1ed0c397e3de91c6621 +2013-02-28T00:52:34.934626Z +35827 +luka + + + + + + + + + + + + + + + + + + + + + +440 + diff --git a/tools/bison/patches/.svn/text-base/000-relocatable.patch.svn-base b/tools/bison/patches/.svn/text-base/000-relocatable.patch.svn-base new file mode 100644 index 0000000..47c0ae8 --- /dev/null +++ b/tools/bison/patches/.svn/text-base/000-relocatable.patch.svn-base @@ -0,0 +1,20 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -81,6 +81,7 @@ MOSTLYCLEANFILES = yacc + + yacc: + $(AM_V_GEN)echo '#! /bin/sh' >$@ ++ $(AM_V_at)echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@ + $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@ + $(AM_V_at)chmod a+x $@ + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -1919,6 +1919,7 @@ uninstall-am: uninstall-binPROGRAMS unin + + yacc: + $(AM_V_GEN)echo '#! /bin/sh' >$@ ++ $(AM_V_at)echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@ + $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@ + $(AM_V_at)chmod a+x $@ + diff --git a/tools/bison/patches/.svn/text-base/010-intl-stub-compat.patch.svn-base b/tools/bison/patches/.svn/text-base/010-intl-stub-compat.patch.svn-base new file mode 100644 index 0000000..d2dfcad --- /dev/null +++ b/tools/bison/patches/.svn/text-base/010-intl-stub-compat.patch.svn-base @@ -0,0 +1,15 @@ +--- a/src/main.c ++++ b/src/main.c +@@ -60,9 +60,9 @@ main (int argc, char *argv[]) + { + set_program_name (argv[0]); + setlocale (LC_ALL, ""); +- (void) bindtextdomain (PACKAGE, LOCALEDIR); +- (void) bindtextdomain ("bison-runtime", LOCALEDIR); +- (void) textdomain (PACKAGE); ++ bindtextdomain (PACKAGE, LOCALEDIR); ++ bindtextdomain ("bison-runtime", LOCALEDIR); ++ textdomain (PACKAGE); + + { + char const *cp = getenv ("LC_CTYPE"); diff --git a/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base b/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base new file mode 100644 index 0000000..169bfd6 --- /dev/null +++ b/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base @@ -0,0 +1,16 @@ +--- a/lib/stdio.in.h ++++ b/lib/stdio.in.h +@@ -704,13 +704,6 @@ _GL_WARN_ON_USE (getline, "getline is un + # endif + #endif + +-/* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning; besides, C11 +- removed it. */ +-#undef gets +-#if HAVE_RAW_DECL_GETS +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +-#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ diff --git a/tools/bison/patches/000-relocatable.patch b/tools/bison/patches/000-relocatable.patch new file mode 100644 index 0000000..47c0ae8 --- /dev/null +++ b/tools/bison/patches/000-relocatable.patch @@ -0,0 +1,20 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -81,6 +81,7 @@ MOSTLYCLEANFILES = yacc + + yacc: + $(AM_V_GEN)echo '#! /bin/sh' >$@ ++ $(AM_V_at)echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@ + $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@ + $(AM_V_at)chmod a+x $@ + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -1919,6 +1919,7 @@ uninstall-am: uninstall-binPROGRAMS unin + + yacc: + $(AM_V_GEN)echo '#! /bin/sh' >$@ ++ $(AM_V_at)echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@ + $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@ + $(AM_V_at)chmod a+x $@ + diff --git a/tools/bison/patches/010-intl-stub-compat.patch b/tools/bison/patches/010-intl-stub-compat.patch new file mode 100644 index 0000000..d2dfcad --- /dev/null +++ b/tools/bison/patches/010-intl-stub-compat.patch @@ -0,0 +1,15 @@ +--- a/src/main.c ++++ b/src/main.c +@@ -60,9 +60,9 @@ main (int argc, char *argv[]) + { + set_program_name (argv[0]); + setlocale (LC_ALL, ""); +- (void) bindtextdomain (PACKAGE, LOCALEDIR); +- (void) bindtextdomain ("bison-runtime", LOCALEDIR); +- (void) textdomain (PACKAGE); ++ bindtextdomain (PACKAGE, LOCALEDIR); ++ bindtextdomain ("bison-runtime", LOCALEDIR); ++ textdomain (PACKAGE); + + { + char const *cp = getenv ("LC_CTYPE"); diff --git a/tools/bison/patches/100-fix-gets-removal.patch b/tools/bison/patches/100-fix-gets-removal.patch new file mode 100644 index 0000000..169bfd6 --- /dev/null +++ b/tools/bison/patches/100-fix-gets-removal.patch @@ -0,0 +1,16 @@ +--- a/lib/stdio.in.h ++++ b/lib/stdio.in.h +@@ -704,13 +704,6 @@ _GL_WARN_ON_USE (getline, "getline is un + # endif + #endif + +-/* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning; besides, C11 +- removed it. */ +-#undef gets +-#if HAVE_RAW_DECL_GETS +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +-#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ |