commit:     779308f3b6981624f39e260016565e8384ba61c9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 24 14:20:05 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 24 14:27:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=779308f3

net-misc/apt-cacher-ng: fix build w/ musl

Closes: https://bugs.gentoo.org/716564
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1-r2.ebuild     |  1 +
 net-misc/apt-cacher-ng/files/apt-cacher-ng-3.7.4-musl.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1-r2.ebuild 
b/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1-r2.ebuild
index 390dc77a0974..1e0a7e08db8f 100644
--- a/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1-r2.ebuild
+++ b/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1-r2.ebuild
@@ -37,6 +37,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.5-perl-syntax.patch"
        "${FILESDIR}/${PN}-3.6-optional-systemd.patch"
        "${FILESDIR}/${PN}-3.7.4-strlcpy-glibc-2.38.patch"
+       "${FILESDIR}/${PN}-3.7.4-musl.patch"
 )
 
 S="${WORKDIR}/${MY_P}"

diff --git a/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.7.4-musl.patch 
b/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.7.4-musl.patch
new file mode 100644
index 000000000000..01fb990fc98c
--- /dev/null
+++ b/net-misc/apt-cacher-ng/files/apt-cacher-ng-3.7.4-musl.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/716564
+--- a/src/meta.h
++++ b/src/meta.h
+@@ -20,6 +20,7 @@
+ #include <strings.h>
+ #include <cstdlib>
+ #include <errno.h>
++#include <sys/time.h>
+ 
+ #include "astrop.h"
+ 

Reply via email to