Bug 2341106 - protobuf: FTBFS in Fedora rawhide/f42, missing a dependency on mvn(com.google.truth:truth)
Summary: protobuf: FTBFS in Fedora rawhide/f42, missing a dependency on mvn(com.google...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: protobuf
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-01-22 21:28 UTC by Fedora Release Engineering
Modified: 2025-03-29 02:40 UTC (History)
12 users (show)

Fixed In Version: protobuf-3.19.6-11.fc42
Clone Of:
Environment:
Last Closed: 2025-03-29 02:40:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (3.27 KB, text/plain)
2025-01-22 21:28 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-01-22 21:28 UTC, Fedora Release Engineering
no flags Details
state.log (1.50 KB, text/plain)
2025-01-22 21:28 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources protobuf pull-request 29 0 None None None 2025-02-25 18:01:55 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.