Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 891469

Summary: dev-libs/protobuf-21.9: emerge failure on x86_64-w64-mingw32
Product: Gentoo Linux Reporter: Christian <christian+bgo>
Component: Current packagesAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: UNCONFIRMED ---    
Severity: normal CC: cjk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-x86_64-w64-mingw32 --info
build.log

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/libprotobuf.so.32
 * 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)/libprotobuf.so.${SLOT#*/}" ]]; then                                                                                                                                                             
                eerror "No matching library found with SLOT variable, currently set: ${SLOT}\n" \
                        "Expected value: ${ED}/usr/$(get_libdir)/libprotobuf.so.${SLOT#*/}"
                die "Please update SLOT variable"
        fi

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]
build.log
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...