Bug#1057683: libpdfbox-java: ftbfs due to bouncycastle 1.77 API changes
Vladimir Petko
vpa1977 at gmail.com
Thu Dec 7 03:49:51 GMT 2023
Source: libpdfbox-java
Version: 1:1.8.16-4
Severity: important
Tags: ftbfs
Dear Maintainer,
The package fails to build due to bouncycastle 1.77 API changes.
The relevant part of the build log:
--------
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ pdfbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 546 source files to /<<PKGBUILDDIR>>/pdfbox/target/classes
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/encryption/DocumentEncryption.java:
Some input files use or override a deprecated API.
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/encryption/DocumentEncryption.java:
Recompile with -Xlint:deprecation for details.
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java:
Some input files use or override a deprecated API that is marked for removal.
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java:
Recompile with -Xlint:removal for details.
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDStream.java:
Some input files use unchecked or unsafe operations.
[INFO]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDStream.java:
Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[45,29]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[316,17]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[316,41]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[431,63]
cannot find symbol
symbol: method getObjectId()
location: variable algorithmidentifier of type
org.bouncycastle.asn1.x509.AlgorithmIdentifier
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for PDFBox reactor 1.8.16:
[INFO]
[INFO] Apache FontBox ..................................... SUCCESS [ 0.792 s]
[INFO] Apache JempBox ..................................... SUCCESS [ 0.082 s]
[INFO] Apache PDFBox ...................................... FAILURE [ 1.940 s]
[INFO] PDFBox reactor ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.849 s
[INFO] Finished at: 2023-12-07T16:45:43+13:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.10.1:compile (default-compile) on project pdfbox: Compilation failure:
Compilation failure:
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[45,29]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[316,17]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[316,41]
org.bouncycastle.asn1.DEROutputStream is not public in org.bouncycastle.asn1;
cannot be accessed from outside package
[ERROR]
/<<PKGBUILDDIR>>/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java:[431,63]
cannot find symbol
[ERROR] symbol: method getObjectId()
[ERROR] location: variable algorithmidentifier of type
org.bouncycastle.asn1.x509.AlgorithmIdentifier
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <args> -rf :pdfbox
dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp
/usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven
-Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>>
-Dclassworlds.conf=/etc/maven/m2-debian.conf
-Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties
org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-
debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian
-Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package
-DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make[1]: *** [debian/rules:23: override_dh_auto_build-indep] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-12-07T03:45:44Z
Finished
--------
--------
-- System Information:
Debian Release: trixie/sid
APT prefers mantic-updates
APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-13-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the pkg-java-maintainers
mailing list