Mail archive
alpine-aports

[alpine-aports] [PATCH 8/13] main/pcmciautils: fix bug

From: Tuan M. Hoang <tmhoang_at_flatglobe.org>
Date: Fri, 17 Mar 2017 07:10:09 -0400

Source :
https://github.com/openwrt/packages/blob/master/utils/pcmciautils/patches/

---
 main/pcmciautils/APKBUILD             |  9 ++++-----
 main/pcmciautils/disable_yywrap.patch | 27 +++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 5 deletions(-)
 create mode 100644 main/pcmciautils/disable_yywrap.patch
diff --git a/main/pcmciautils/APKBUILD b/main/pcmciautils/APKBUILD
index a459d000cf..8c8be38f32 100644
--- a/main/pcmciautils/APKBUILD
+++ b/main/pcmciautils/APKBUILD
_at_@ -10,7 +10,9 @@ subpackages="$pkgname-doc"
 depends=
 makedepends="sysfsutils-dev bison flex"
 source="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz
-	unsigned.patch"
+	unsigned.patch
+	disable_yywrap.patch
+	"
 
 _builddir="$srcdir"/$pkgname-$pkgver
 prepare() {
_at_@ -33,9 +35,6 @@ package() {
 	make DESTDIR="$pkgdir"/ install
 	ln -sf pccardctl "$pkgdir"/sbin/lspcmcia
 }
-md5sums="2e9469c44dcb790d2b497723c2fa0566  pcmciautils-018.tar.xz
-ba7aa35c8082cf2ca67785cd8f7f9524  unsigned.patch"
-sha256sums="a5c09abeba95f750e8a8b01704114d733f0f0345f34e5c327bbb6a1bfd09c4b8  pcmciautils-018.tar.xz
-6f08ef800e0cf1d1b73cd51dfe2f60fb8d1b410150b2f52e32b1439af9fc5f6d  unsigned.patch"
 sha512sums="c7c1ecde41a60d3d1fcb12e3be309f8287d0242ad93e17b1286bf2818a0de1f415c89f63fec0571264e5ff87e99ba7ded905e6b671c2f6795ea910a0045261f5  pcmciautils-018.tar.xz
+b96f9bc3176f1eeb936a31f8fab5a495ce14218e92fbae2350aa970328b53bd6732ade90721f1ca55d80a94436189773f83a300aa8af7c43ecc5ed62c95f3557  disable_yywrap.patch
 18e5d3bfe3316c49e4a899b9181177c1c275274d5788a4af7299d0c6b8cbdfca8f3465f242356d35c6e96103cb620173e6f93e7e66787d5d2b194c5a4264bf91  unsigned.patch"
diff --git a/main/pcmciautils/disable_yywrap.patch b/main/pcmciautils/disable_yywrap.patch
new file mode 100644
index 0000000000..e30abb0d10
--- /dev/null
+++ b/main/pcmciautils/disable_yywrap.patch
_at_@ -0,0 +1,27 @@
+--- pcmciautils-018/src/lex_config.l
++++ pcmciautils-018/src/lex_config.l
+_at_@ -1,8 +1,8 @@
+ /* Special state for handling include files */
+ %x src
+-%option noinput nounput
++%option noinput nounput noyywrap
+ 
+ %{
+ /*
+  * Startup tool for non statically mapped PCMCIA sockets
+  *
+_at_@ -75,14 +75,10 @@ module		/* skip */ ;
+ 
+ .		return yytext[0];
+ 
+ %%
+ 
+-#ifndef yywrap
+-int yywrap() { return 1; }
+-#endif
+-
+ /*======================================================================
+ 
+     Stuff to parse basic data types
+ 
+ ======================================================================*/
-- 
2.11.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Mar 17 2017 - 07:10:09 GMT