commit:     9f6a1013e0be70d051399a7d98bb3d506a29d884
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 11 14:27:04 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Aug 11 14:27:04 2018 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=9f6a1013

net-vpn/ipsec-tools: replace strtouq -> strtoull

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../ipsec-tools/files/ipsec-tools-replace-strtouq.patch  | 16 ++++++++++++++++
 net-vpn/ipsec-tools/ipsec-tools-0.8.2-r5.ebuild          |  1 +
 2 files changed, 17 insertions(+)

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
 

Reply via email to