aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-08-11 10:27:04 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-08-11 10:27:04 -0400
commit9f6a1013e0be70d051399a7d98bb3d506a29d884 (patch)
tree3493df6b0e560e9be7cef0e495fc04db1c732e2e /net-vpn
parentnet-vpn/ipsec-tools: remove GLOB_TILDE (diff)
downloadmusl-9f6a1013e0be70d051399a7d98bb3d506a29d884.tar.gz
musl-9f6a1013e0be70d051399a7d98bb3d506a29d884.tar.bz2
musl-9f6a1013e0be70d051399a7d98bb3d506a29d884.zip
net-vpn/ipsec-tools: replace strtouq -> strtoull
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/ipsec-tools/files/ipsec-tools-replace-strtouq.patch16
-rw-r--r--net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild1
2 files changed, 17 insertions, 0 deletions
diff --git a/net-vpn/ipsec-tools/files/ipsec-tools-replace-strtouq.patch b/net-vpn/ipsec-tools/files/ipsec-tools-replace-strtouq.patch
new file mode 100644
index 0000000..73baf36
--- /dev/null
+++ b/net-vpn/ipsec-tools/files/ipsec-tools-replace-strtouq.patch
@@ -0,0 +1,16 @@
+diff -Naur ipsec-tools-0.8.2.orig/src/racoon/backupsa.c ipsec-tools-0.8.2/src/racoon/backupsa.c
+--- ipsec-tools-0.8.2.orig/src/racoon/backupsa.c 2010-04-02 15:15:00.000000000 +0000
++++ ipsec-tools-0.8.2/src/racoon/backupsa.c 2018-08-11 14:22:15.868343597 +0000
+@@ -276,9 +276,9 @@
+ GETNEXTNUM(sa_args.a_keylen, strtoul);
+ GETNEXTNUM(sa_args.flags, strtoul);
+ GETNEXTNUM(sa_args.l_alloc, strtoul);
+- GETNEXTNUM(sa_args.l_bytes, strtouq);
+- GETNEXTNUM(sa_args.l_addtime, strtouq);
+- GETNEXTNUM(sa_args.l_usetime, strtouq);
++ GETNEXTNUM(sa_args.l_bytes, strtoull);
++ GETNEXTNUM(sa_args.l_addtime, strtoull);
++ GETNEXTNUM(sa_args.l_usetime, strtoull);
+ GETNEXTNUM(sa_args.seq, strtoul);
+
+ #undef GETNEXTNUM
diff --git a/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild b/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
index db0a367..de9e81d 100644
--- a/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
+++ b/net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild
@@ -192,6 +192,7 @@ src_prepare() {
# musl fixes
eapply "${FILESDIR}"/${PN}-remove__P.patch
eapply "${FILESDIR}"/${PN}-remove_GLOB_TILDE.patch
+ eapply "${FILESDIR}"/${PN}-replace-strtouq.patch
AT_M4DIR="${S}" eautoreconf