Bug 2341106

Summary: protobuf: FTBFS in Fedora rawhide/f42, missing a dependency on mvn(com.google.truth:truth)
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: protobufAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 42CC: adrian, code, igor.raits, jonathan, ksurma, mhroncok, michel, mizdebsk, msaulnier, orion, sander, yselkowi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: protobuf-3.19.6-11.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-29 02:40:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2300528, 2322407    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2025-01-22 21:28:20 UTC
protobuf failed to build from source in Fedora rawhide/f42

https://koji.fedoraproject.org/koji/taskinfo?taskID=128067235


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix protobuf at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
protobuf will be orphaned. Before branching of Fedora 43,
protobuf will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2025-01-22 21:28:24 UTC
Created attachment 2071843 [details]
build.log

Comment 2 Fedora Release Engineering 2025-01-22 21:28:25 UTC
Created attachment 2071844 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-01-22 21:28:27 UTC
Created attachment 2071845 [details]
state.log

Comment 4 Miro Hrončok 2025-01-29 10:55:48 UTC
DEBUG util.py:459:  Failed to resolve the transaction:
DEBUG util.py:459:  No match for argument: mvn(com.google.truth:truth)

Comment 5 Miro Hrončok 2025-01-29 11:16:12 UTC
Trivially removing that BuildRequires leads to:

[ERROR] Failed to execute goal on project protobuf-javalite: Could not resolve dependencies for project com.google.protobuf:protobuf-javalite:bundle:3.19.6
[ERROR] dependency: com.google.truth:truth:jar:1.1.2 (test)

My java skills are low, so I don't know if this can be trivially %pom_xpath_inject it out.


Anyway, if we decided to build --without java, this should be the only impacted package set:


$ repoquery -q --repo=rawhide{,-source} --whatrequires protobuf-java --recursive
mysql-connector-java-1:8.0.30-7.fc41.noarch
mysql-connector-java-1:8.0.30-7.fc41.src
protobuf-java-util-0:3.19.6-10.fc41.noarch

Comment 6 Miro Hrončok 2025-01-29 12:51:25 UTC
%pom_remove_dep com.google.truth:truth java/lite/pom.xml
%pom_remove_dep com.google.truth:truth java/util/pom.xml

This makes the package fail with "error: package com.google.common.truth does not exist" failures. So perhaps the dependency is needed :/

Comment 8 Aoife Moloney 2025-02-26 13:42:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 9 Fedora Update System 2025-03-27 17:46:08 UTC
FEDORA-2025-d675a90c14 (protobuf-3.19.6-11.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d675a90c14

Comment 10 Fedora Update System 2025-03-28 15:26:31 UTC
FEDORA-2025-d675a90c14 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d675a90c14`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d675a90c14

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-03-29 02:40:03 UTC
FEDORA-2025-d675a90c14 (protobuf-3.19.6-11.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.