Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953624 - sys-apps/usbguard-1.13-r2 fails to build with dev-libs/protobuf-30.2 - error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
Summary: sys-apps/usbguard-1.13-r2 fails to build with dev-libs/protobuf-30.2 - error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sebastian Pipping
URL: https://github.com/USBGuard/usbguard/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-04-12 08:00 UTC by 154koz3j6
Modified: 2025-05-11 16:34 UTC (History)
4 users (show)

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


Attachments
Build.log (build.log,138.42 KB, text/x-log)
2025-04-12 08:00 UTC, 154koz3j6
Details
Emerge --info (emerge-info.txt,9.83 KB, text/plain)
2025-04-12 08:01 UTC, 154koz3j6
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 154koz3j6 2025-04-12 08:00:49 UTC
Created attachment 924436 [details]
Build.log

Per the attached title.

usbguard-1.14-r2 fails to build with the following error:

error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'} from expression of type 'google::protobuf::internal::GetTypeNameReturnType' {aka 'std::basic_string_view<char>'}

This previously wasn't an issue prior to updating in the last few days, and it built fine, even with GCC 15.

Please see the attached build.log and emerge --info.
Comment 1 154koz3j6 2025-04-12 08:01:08 UTC
Created attachment 924437 [details]
Emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-12 14:42:56 UTC
Nothing to do with GCC, everything to do with new Protobuf.
Comment 3 Maciej S. Szmigiero 2025-04-21 20:25:28 UTC
Confirming, the pull request linked from the issue at ${URL} fixes it for me.
Comment 4 154koz3j6 2025-04-23 12:10:24 UTC
Can further confirm that applying the diff linked works for me to build.
Comment 5 Sebastian Pipping gentoo-dev 2025-04-28 16:19:17 UTC
I've just asked for a new release upstream…
Comment 6 Larry the Git Cow gentoo-dev 2025-05-11 16:34:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6edcb7bb44da359e5970e6c0f15cd417c0d3024a

commit 6edcb7bb44da359e5970e6c0f15cd417c0d3024a
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2025-05-11 15:54:51 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2025-05-11 16:33:57 +0000

    sys-apps/usbguard: Support >=dev-libs/protobuf-30
    
    Closes: https://bugs.gentoo.org/953624
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 .../files/usbguard-1.1.3-protobuf-30.patch         |  86 +++++++++++++++++
 sys-apps/usbguard/usbguard-1.1.3-r3.ebuild         | 106 +++++++++++++++++++++
 2 files changed, 192 insertions(+)