from /var/tmp/portage/net-misc/apt-cacher-ng-3.3.1_p2/work/apt-cacher-ng-3.3.1/client/../source/acbuf.cc:3, from /var/tmp/portage/net-misc/apt-cacher-ng-3.3.1_p2/work/apt-cacher-ng-3.3.1/client/client.cc:4: /var/tmp/portage/net-misc/apt-cacher-ng-3.3.1_p2/work/apt-cacher-ng-3.3.1/include/meta.h:532:17: error: field tv has incomplete type acng::timeval 532 | struct timeval tv = {0,23}; | ^~ /var/tmp/portage/net-misc/apt-cacher-ng-3.3.1_p2/work/apt-cacher-ng-3.3.1/include/meta.h:532:9: note: forward declaration of struct acng::timeval ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200328-141627 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.42.0 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Tue Apr 7 09:39:12 UTC 2020 /var/db/repos/musl Sat Apr 4 03:02:24 UTC 2020 emerge -qpvO net-misc/apt-cacher-ng [ebuild N ] net-misc/apt-cacher-ng-3.3.1_p2 USE="tcpd -doc -fuse (-systemd)"
Created attachment 631092 [details] emerge-info.txt
Created attachment 631094 [details] emerge-history.txt
Created attachment 631096 [details] environment
Created attachment 631098 [details] etc.portage.tbz2
Created attachment 631100 [details] logs.tbz2
Created attachment 631102 [details] net-misc:apt-cacher-ng-3.3.1_p2:20200407-101948.log
Created attachment 631104 [details] temp.tbz2
tinderbox_musl has reproduced this issue with version 3.6.3_p1-r2 - Updating summary.
*** Bug 872185 has been marked as a duplicate of this bug. ***
Just a missing time include, I think.
tinderbox_musl has reproduced this issue with version 3.7.4_p1-r2 - Updating summary.
*** Bug 907882 has been marked as a duplicate of this bug. ***
Created attachment 888412 [details, diff] Fix for "error: operator '!' has no right operand" triggered by HAVE_STRLCPY macro Glib 2.38 provides it's own copy of strlcpy, which breaks the cmake macro used in apt-cacher-ng. Here is a patch for that portion of this bug, as reported under Gentoo bug #907882 (marked as a dupe of this one). Patch shamelessly borrowed from Ubuntu bug #2036822. It worked on the one machine I have apt-cacher-ng on.
(In reply to D. Wilson from comment #13) > Created attachment 888412 [details, diff] [details, diff] > Fix for "error: operator '!' has no right operand" triggered by HAVE_STRLCPY > macro > > Glib 2.38 provides it's own copy of strlcpy, which breaks the cmake macro > used in apt-cacher-ng. > > Here is a patch for that portion of this bug, as reported under Gentoo bug > #907882 (marked as a dupe of this one). > > Patch shamelessly borrowed from Ubuntu bug #2036822. It worked on the one > machine I have apt-cacher-ng on. I think your bug is bug 913133.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=779308f3b6981624f39e260016565e8384ba61c9 commit 779308f3b6981624f39e260016565e8384ba61c9 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-24 14:20:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-24 14:27:42 +0000 net-misc/apt-cacher-ng: fix build w/ musl Closes: https://bugs.gentoo.org/716564 Signed-off-by: Sam James <sam@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(+)