Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891469 - dev-libs/protobuf-21.9: emerge failure on x86_64-w64-mingw32
Summary: dev-libs/protobuf-21.9: emerge failure on x86_64-w64-mingw32
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
Depends on:
Reported: 2023-01-20 10:36 UTC by Christian
Modified: 2023-01-23 13:03 UTC (History)
1 user (show)

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

emerge-x86_64-w64-mingw32 --info (,4.71 KB, text/plain)
2023-01-20 10:36 UTC, Christian
build.log (build.log,393.04 KB, text/x-log)
2023-01-20 10:38 UTC, Christian

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2023-01-20 10:36:06 UTC
on a x86_64-w64-mingw32 cross emerge (cross environment created with crosstool-ng), protobuf fails to emerge.
Compilation is fine, but it fails in the install phase, the relevant part of the build log is:

 * No matching library found with SLOT variable, currently set: 0/32
 *  Expected value: /usr/x86_64-w64-mingw32/tmp/portage/dev-libs/protobuf-21.9/image/usr/lib/
 * ERROR: dev-libs/protobuf-21.9::gentoo failed (install phase):
 *   Please update SLOT variable

i've taken a look at the ebuild, and found this:

        if [[ ! -f "${ED}/usr/$(get_libdir)/${SLOT#*/}" ]]; then                                                                                                                                                             
                eerror "No matching library found with SLOT variable, currently set: ${SLOT}\n" \
                        "Expected value: ${ED}/usr/$(get_libdir)/${SLOT#*/}"
                die "Please update SLOT variable"

this expects the created libraries to have a filename pattern, that they don't have. the filename created with this cross build is libprotobuf.dll.a.
Either this if block should be only executed on Linux, or similar platforms. I guess it should be possible to check this.
On the other hand, this block looks like a help for the package maintainer "only". Only in ", because I don't want to belittle maintainer's work, I'm just wondering if this is the right place for this.

full log/emerge --info in attachement

Reproducible: Always
Comment 1 Christian 2023-01-20 10:36:55 UTC
Created attachment 848879 [details]
emerge-x86_64-w64-mingw32 --info
Comment 2 Christian 2023-01-20 10:38:31 UTC
Created attachment 848881 [details]
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 06:09:14 UTC
I suppose could put in src_test.
Comment 4 Christian 2023-01-23 13:03:39 UTC
(In reply to Sam James from comment #3)
> I suppose could put in src_test.

this would break, if someone wants to also use FEATURES="test" (or is this a different test?), which I currently don't want to do.
So for me, it would be fine...