Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716564 - net-misc/apt-cacher-ng-3.7.4_p1-r2 : /.../meta.h: error: field tv has incomplete type acng::timeval
Summary: net-misc/apt-cacher-ng-3.7.4_p1-r2 : /.../meta.h: error: field tv has incompl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
: 872185 (view as bug list)
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-04-07 11:04 UTC by Toralf Förster
Modified: 2024-03-24 14:42 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.26 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,381.36 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
environment (environment,109.95 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,26.50 KB, application/x-bzip)
2020-04-07 11:04 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.62 KB, application/x-bzip)
2020-04-07 11:04 UTC, Toralf Förster
Details
net-misc:apt-cacher-ng-3.3.1_p2:20200407-101948.log (net-misc:apt-cacher-ng-3.3.1_p2:20200407-101948.log,17.14 KB, text/plain)
2020-04-07 11:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.24 KB, application/x-bzip)
2020-04-07 11:04 UTC, Toralf Förster
Details
Fix for "error: operator '!' has no right operand" triggered by HAVE_STRLCPY macro (0001-Adjust-HAVE_STRLCPY-macro-check.patch,1.27 KB, patch)
2024-03-24 12:53 UTC, D. Wilson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-07 11:04:17 UTC
                 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)"
Comment 1 Toralf Förster gentoo-dev 2020-04-07 11:04:21 UTC
Created attachment 631092 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-07 11:04:24 UTC
Created attachment 631094 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-07 11:04:27 UTC
Created attachment 631096 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-07 11:04:30 UTC
Created attachment 631098 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-07 11:04:33 UTC
Created attachment 631100 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-07 11:04:36 UTC
Created attachment 631102 [details]
net-misc:apt-cacher-ng-3.3.1_p2:20200407-101948.log
Comment 7 Toralf Förster gentoo-dev 2020-04-07 11:04:39 UTC
Created attachment 631104 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-02-01 17:38:35 UTC
tinderbox_musl has reproduced this issue with version 3.6.3_p1-r2 - Updating summary.
Comment 9 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-22 02:05:36 UTC
*** Bug 872185 has been marked as a duplicate of this bug. ***
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-22 02:07:08 UTC
Just a missing time include, I think.
Comment 11 Agostino Sarubbo gentoo-dev 2023-02-26 17:53:12 UTC
tinderbox_musl has reproduced this issue with version 3.7.4_p1-r2 - Updating summary.
Comment 12 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-06-10 23:17:53 UTC
*** Bug 907882 has been marked as a duplicate of this bug. ***
Comment 13 D. Wilson 2024-03-24 12:53:59 UTC
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.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-24 14:15:50 UTC
(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.
Comment 15 Larry the Git Cow gentoo-dev 2024-03-24 14:42:25 UTC
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(+)