aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-06 16:10:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-06 16:11:32 +0000
commit28cb3801f4460febc2b828f1bc82150b26a01e62 (patch)
tree068e59e9a322605c4a2cb2e4b5042df27a60f7cd
parent6f01709adb0e849c4f4d55786e5e471cbe3878e8 (diff)
downloadaports-28cb3801f4460febc2b828f1bc82150b26a01e62.tar.bz2
aports-28cb3801f4460febc2b828f1bc82150b26a01e62.tar.xz
main/iputils: fix initialization of cmsg
fixes ping on s390x
-rw-r--r--main/iputils/APKBUILD26
-rw-r--r--main/iputils/fix-init-of-cmsg.patch18
2 files changed, 22 insertions, 22 deletions
diff --git a/main/iputils/APKBUILD b/main/iputils/APKBUILD
index 30e1b5c556..0b5dd755cd 100644
--- a/main/iputils/APKBUILD
+++ b/main/iputils/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20121221
-pkgrel=5
+pkgrel=6
pkgdesc="IP Configuration Utilities (and Ping)"
url="http://www.linuxfoundation.org/en/Net:Iputils"
arch="all"
@@ -20,6 +20,7 @@ source="http://www.skbuff.net/$pkgname/$pkgname-s$pkgver.tar.bz2
net-misc_iputils_files_iputils-20121221-printf-size.patch
net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch
time.patch
+ fix-init-of-cmsg.patch
"
options=suid
_builddir="$srcdir"/$pkgname-s$pkgver
@@ -49,26 +50,6 @@ package() {
done
}
-md5sums="6072aef64205720dd1893b375e184171 iputils-s20121221.tar.bz2
-2b31520b0d939e0b82e6a6a3bba0dfcc net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
-8ea6b0b6f2598fadfb0e505998c554de net-misc_iputils_files_iputils-20121221-crypto-build.patch
-1cb3cb8c34e3a20e3722393aa61c1869 net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
-c47ac7ec21ba9bcaa0311c692ccd14d6 net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
-c1e5dab42e18b35a00ed7b3755c24e4e net-misc_iputils_files_iputils-20121221-makefile.patch
-1c6c476e3b4850754a2cd91fd53f0cfd net-misc_iputils_files_iputils-20121221-openssl.patch
-4c35d6b1d9c0727b9647860a5334ae0f net-misc_iputils_files_iputils-20121221-printf-size.patch
-d4b0a95e52532070a8b45fba46112f66 net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch
-154d2ce5fc09f0832113004ba79814f8 time.patch"
-sha256sums="450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f iputils-s20121221.tar.bz2
-e198400f387fa4140c7c6a75089b570ea24d044cf6fd55b1f37f239bb018969e net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
-cafc281c70d46f2964489b4c19c981bcf203b4c6266d4f49437c3fe67e2027b2 net-misc_iputils_files_iputils-20121221-crypto-build.patch
-302b1118596befdad56d23769e36fc0960d807230bc5c6ad4ad59d00fb78560b net-misc_iputils_files_iputils-20121221-fix-init-elemnt.patch
-bdd3992ed19d625cfd08563ef46ab22f25ca46390ad4603e501f9c66d2508bcc net-misc_iputils_files_iputils-20121221-fix-musl-headers.patch
-779632822e3440f3b898a50955cb8fb72177f0d1623c9da7c0a8afa68313435f net-misc_iputils_files_iputils-20121221-makefile.patch
-cc1af5ccdd593b4fa43273cf7de8b9552f0a5d33a72a35fcc4f94cf2c6fc9a44 net-misc_iputils_files_iputils-20121221-openssl.patch
-a1ed939d0e008bca06208ae34e3f17a0ddc66b50f1679f82a630b52cdfbd111a net-misc_iputils_files_iputils-20121221-printf-size.patch
-0639fca129c3e2ca57a7e0f0d3392474665e11f139cfa9362a365b3fca9593b2 net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch
-186d9f6b5aa55c8b472433baa6d10c361fc8af4ce2e37dcd47e04cd86c301a24 time.patch"
sha512sums="693d240becd766c345c3af2053fc0699b9358e54d667d40738c21d731b70e779112d81476a220d8300ca54250120385414a13610d445996f95a90571047389f4 iputils-s20121221.tar.bz2
666c1711c5a5c829246a0f9a3d9afbb0ceb43e172b907230b856dbc0a330814d0c562e1894ee3b6051c01b54469fafd429c4236954967691b12744cacc844dab net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
922daa01f00c19f8237515b2d3ab73b87daa957cfc491382def2ce1c098ffed943ad4952c94134f3155570f64353abf5348523ea773ce7eb457578f975cc92d2 net-misc_iputils_files_iputils-20121221-crypto-build.patch
@@ -78,4 +59,5 @@ sha512sums="693d240becd766c345c3af2053fc0699b9358e54d667d40738c21d731b70e779112d
05240c00d0a1f9f878a9826d54cbd0128c2ed5ce7cab4685907956156c3cf2131ccd563812b64490bf915a75f52851396966a590027fc4c1886b2d19f421718b net-misc_iputils_files_iputils-20121221-openssl.patch
ff5491ad5a0396bee41fcbfc1384699d396c24da093bd2209dead67f52efcec462dbfb4a43008083742d0139da7bd52e922499b5f7eae028384c74930453dd33 net-misc_iputils_files_iputils-20121221-printf-size.patch
2ed65a0c0188cf6e06bfb5e3795fa720f7e7040533adbc1ce0c5ded435b823792790890826fc4250a6b2fba16576dc024c50d1faf9598f2fe36aadda77db8a36 net-misc_iputils_files_iputils-20121221-remove-rdisc-glibc-assumption.patch
-530532d16574921d0789af6a82706915e8103e712195c4f2eb6379192cc7126ba6bc9f33e8454118628d59f8932ffd2bb5aaba3b61fa93df83088e3b0d93d227 time.patch"
+530532d16574921d0789af6a82706915e8103e712195c4f2eb6379192cc7126ba6bc9f33e8454118628d59f8932ffd2bb5aaba3b61fa93df83088e3b0d93d227 time.patch
+44d7d14d67e3425276cfdfaa613b44a8acec4d8a9c1aa496b5df382ca032e492780ca85f1432bb8103ecbdb076f91ccfa3225dbfe97964d6382cdbe038621917 fix-init-of-cmsg.patch"
diff --git a/main/iputils/fix-init-of-cmsg.patch b/main/iputils/fix-init-of-cmsg.patch
new file mode 100644
index 0000000000..8654a62c90
--- /dev/null
+++ b/main/iputils/fix-init-of-cmsg.patch
@@ -0,0 +1,18 @@
+diff --git a/ping.c b/ping.c
+index a0857a1..329553d 100644
+--- a/ping.c
++++ b/ping.c
+@@ -108,8 +108,11 @@ static int parsetos(char *str);
+ static struct {
+ struct cmsghdr cm;
+ struct in_pktinfo ipi;
+-} cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO},
+- {0, }};
++} cmsg = { .cm = {
++ .cmsg_len = sizeof(struct cmsghdr) + sizeof(struct in_pktinfo),
++ .cmsg_level = SOL_IP,
++ .cmsg_type = IP_PKTINFO},
++ .ipi = {0, }};
+ int cmsg_len;
+
+ struct sockaddr_in source;