aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcmciautils
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2017-03-17 07:10:09 -0400
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-17 13:03:23 +0000
commit6c386727deed8bcac33866a01b3009195f32d53d (patch)
tree4fb192b6f95a7874f20aa89a8b83709243740bc4 /main/pcmciautils
parent10c986bbbf62ef9ed534b34d0d17ee7a51ae8141 (diff)
downloadaports-6c386727deed8bcac33866a01b3009195f32d53d.tar.bz2
aports-6c386727deed8bcac33866a01b3009195f32d53d.tar.xz
main/pcmciautils: fix bug
Source : https://github.com/openwrt/packages/blob/master/utils/pcmciautils/patches/
Diffstat (limited to 'main/pcmciautils')
-rw-r--r--main/pcmciautils/APKBUILD9
-rw-r--r--main/pcmciautils/disable_yywrap.patch27
2 files changed, 31 insertions, 5 deletions
diff --git a/main/pcmciautils/APKBUILD b/main/pcmciautils/APKBUILD
index a459d000cf..8c8be38f32 100644
--- a/main/pcmciautils/APKBUILD
+++ b/main/pcmciautils/APKBUILD
@@ -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() {
@@ -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
@@ -0,0 +1,27 @@
+--- pcmciautils-018/src/lex_config.l
++++ pcmciautils-018/src/lex_config.l
+@@ -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
+ *
+@@ -75,14 +75,10 @@ module /* skip */ ;
+
+ . return yytext[0];
+
+ %%
+
+-#ifndef yywrap
+-int yywrap() { return 1; }
+-#endif
+-
+ /*======================================================================
+
+ Stuff to parse basic data types
+
+ ======================================================================*/