Bug 2261442

Summary: pdfbox: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: pdfboxAssignee: jiri vanek <jvanek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: didiksupriadi41, java-sig-commits, jvanek, puntogil, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-01 14:20:32 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: 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2024-01-29 21:10:08 UTC
pdfbox failed to build from source in Fedora rawhide/f40

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix pdfbox 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,
pdfbox will be orphaned. Before branching of Fedora 41,
pdfbox 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 2024-01-29 21:10:15 UTC
Created attachment 2012829 [details]
build.log

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

Comment 2 Fedora Release Engineering 2024-01-29 21:10:20 UTC
Created attachment 2012830 [details]
root.log

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

Comment 3 Fedora Release Engineering 2024-01-29 21:10:23 UTC
Created attachment 2012831 [details]
state.log

Comment 4 Sergio Basto 2024-02-01 00:05:06 UTC
updating to 2.0.30 and disable pdfbox-use-system-liberation-font.patch but I got the same error 

--- a/pdfbox.spec
+++ b/pdfbox.spec
@@ -1,6 +1,6 @@
Name:          pdfbox
-Version:       2.0.29
-Release:       4%{?dist}
+Version:       2.0.30
+Release:       1%{?dist}
Summary:       Apache PDFBox library for working with PDF documents
License:       ASL 2.0
URL:           http://pdfbox.apache.org/
@@ -155,7 +155,7 @@ find -name '*.ttf' -print -delete
# Disable plugins not needed for RPM builds
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :apache-rat-plugin
-%pom_remove_plugin -r :maven-deploy-plugin
+#pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
@@ -201,14 +201,14 @@ rm pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTes
%mvn_file :xmpbox xmpbox
%mvn_file :fontbox fontbox

-%pom_xpath_set 'pom:source' 8 parent
-%pom_xpath_set 'pom:target' 8 parent
+%pom_xpath_set 'pom:source' 8
+%pom_xpath_set 'pom:target' 8

%pom_change_dep -r javax.activation:activation jakarta.activation:jakarta.activation-api:1.2.2
%pom_change_dep -r javax.xml.bind:jaxb-api jakarta.xml.bind:jakarta.xml.bind-api:2
%pom_xpath_remove 'pom:dependency/pom:scope[text()="provided"]' preflight
# might be removed once bouncycastle got updated
-%pom_change_dep -r :bcmail-jdk15to18 :bcmail-jdk15on
+%pom_change_dep -r :bcpkix-jdk15to18 :bcpkix-jdk15on
%pom_change_dep -r :bcprov-jdk15to18 :bcmail-jdk15on

Comment 5 jiri vanek 2024-03-01 14:20:32 UTC

*** This bug has been marked as a duplicate of bug 2266682 ***