Benjamin Barenblat wrote:
On Wednesday, July 16, 2025, at 3:49 PM +0200, Frank Heckenbach wrote:
I do wonder if this fine-grained splitting is really necessary --
shouldn't -Wl,--as-needed already take care of only linking what's
needed?
There might be some parts of Abseil that use dynamic registration and
thus wouldn't be picked up by -Wl,--as-needed, but I honestly don't
remember.
This is probably better answered by Abseil upstream--do you
want to file a bug at https://github.com/abseil/abseil-cpp/issues?
There seens to be a similar bug already:
https://github.com/abseil/abseil-cpp/issues/367
Which "abseil locked as too heated".
Translation: "We're Google, we don't care, you're just a bloody
nobody." -- There's nothing heated in the conversation in reality.
So it's obviously pointless to file another one.
Sure, that one is about the number of libraries, not .pc files.
But indeed, that's another issue I also notice. It's probably not
relevant in big programs, but here's my tests with a small batch
program using RE2:
bookworm:
% ldd myprog | wc -l
12
% time myprog
real 0m0,007s
trixie:
% ldd myprog | wc -l
47
% ldd myprog | grep -c absl
35
% time myprog
real 0m0,011s
So basically 50% slower start time just for linking RE2, thanks.
Since the current situation is untenable regarding compile times,
you could please do anything about it for trixie (or coordinate with
the pkgconf maintainers)?
I think trixie is too frozen at this point to do anything about it
before the release. However, https://github.com/pkgconf/pkgconf/issues/229 suggests the pkgconf slowness has been resolved in v2.1.1, which could certainly be backported into trixie after the release occurs.
Additionally, I do want to point out that adopting CMake would work
around the pkgconf issues. CMake is a tad complex for my taste, but
Abseil (like most Google products) does include CMake library
descriptors, and those files are included in the Debian package. To be
clear, I'm not telling you to "just go use CMake" - it's important to
get the pkgconf issues resolved - but as an intermediate solution, it
might be worth investigating.
Not for me, sorry. My Makefiles are heavily GNU make specific.
I'm going to leave this bug open until Debian gets a C++17-only Abseil,
but if it's all right with you, let's move further discussion of the
pkgconf issues to https://bugs.debian.org/1108845
Copied and Reply-To set.
Though I actually don't think there's much to discuss anymore.
You made it clear that nothing will change in trixie.
Google made it clear that nothing will change upstream.
So I'm left to my own devices, anyway. Whether I'll mess with the
.pc files, or rebuild RE2 and/or absl as you suggested, I'll wait
and see. (For now I've had enough of trixie already, also because of
other problems, and will defer any attempted upgrade for quite some
time.)
In any case, I've saved a copy of the bookworm RE2 sources.
Maybe it's easiest to just build them under trixie. (Just tried it,
seems to work without problems, and results in build time, start
time and number of libraries used just like in bookworm.)
Anyone else facing one or more of these problems in trixie might
want to do the same.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)