aboutsummaryrefslogtreecommitdiffstats
path: root/main/kmod
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-12-24 12:21:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-12-24 12:22:22 +0000
commitbceb066158755e95236f8731f12cf6a2d7ac5690 (patch)
treee4c82e6843423724b07d64c6685edb4cb66b8a9b /main/kmod
parent1fd32d3ef185b4d8bc3934c2adf1f895caea5fce (diff)
downloadaports-bceb066158755e95236f8731f12cf6a2d7ac5690.tar.bz2
aports-bceb066158755e95236f8731f12cf6a2d7ac5690.tar.xz
main/kmod: upgrade to 16
Diffstat (limited to 'main/kmod')
-rw-r--r--main/kmod/APKBUILD16
-rw-r--r--main/kmod/strndupa.patch15
2 files changed, 25 insertions, 6 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD
index 5688b27c26..14bac95d97 100644
--- a/main/kmod/APKBUILD
+++ b/main/kmod/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
-pkgver=15
-pkgrel=1
+pkgver=16
+pkgrel=0
pkgdesc="Linux kernel module management utilities"
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
arch="all"
@@ -12,7 +12,8 @@ depends_dev=""
makedepends="$depends_dev zlib-dev xz-dev libxslt"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz"
+source="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz
+ strndupa.patch"
_builddir="$srcdir"/kmod-$pkgver
prepare() {
@@ -50,6 +51,9 @@ libs() {
mv "$pkgdir"/lib "$subpkgdir"/
}
-md5sums="d03372179ed2cfa0c52b6672cf438901 kmod-15.tar.xz"
-sha256sums="e8ef0ea7e1929b46aa681fe6ce58c5e62d0026289026ebfc63abae3b8fd5ca9e kmod-15.tar.xz"
-sha512sums="67a03cabe9d81c14eb0bef20f3c8ff4614418cb2b2c3e1428d8a57399372ecdce6e403399a578d2f62a1ae4b61c83713edd1ad1e31533ea35503c5b11b92c223 kmod-15.tar.xz"
+md5sums="3006a0287211212501cdfe1211b29f09 kmod-16.tar.xz
+350ef5291e72a563f3452309ba8f56d5 strndupa.patch"
+sha256sums="63412efab37c70459ccef167556965c93fd4f56af5986cd3750542a684c613c5 kmod-16.tar.xz
+f0f0156b3a02b1fefb346c972d276866349ee13e52237e195cb058e2971dfa77 strndupa.patch"
+sha512sums="326921bb184d53840837cc600f6301b948031ef7c2048e46ef16bc26ef7b967fa3c20cb133b1ebbddcf8a8537e9af8166fbca6a28d94f694f12ce1d89361a1bc kmod-16.tar.xz
+0a4f407cad324bb9e210845cb35db607f064e2030484e8a4bee8802ed8f813040e23e2d36891904d64bdcf9bd5ba82b37dd382a6a1fb7bddc987a006de5c40f6 strndupa.patch"
diff --git a/main/kmod/strndupa.patch b/main/kmod/strndupa.patch
new file mode 100644
index 0000000000..503960215c
--- /dev/null
+++ b/main/kmod/strndupa.patch
@@ -0,0 +1,15 @@
+diff --git a/libkmod/libkmod-util.c b/libkmod/libkmod-util.c
+index df12433..142e767 100644
+--- a/libkmod/libkmod-util.c
++++ b/libkmod/libkmod-util.c
+@@ -334,7 +334,9 @@ int mkdir_p(const char *path, int len, mode_t mode)
+ {
+ char *start, *end;
+
+- start = strndupa(path, len);
++ start = alloca(len+1);
++ strncpy(start, path, len);
++ start[len] = '\0';
+ end = start + len;
+
+ /*