• Bug#1099226: epubcheck: FTBFS: No implementation for ResourceManager wa

    From Santiago Vila@21:1/5 to All on Sat Mar 1 22:10:14 2025
    Package: src:epubcheck
    Version: 4.2.6-2
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=maven
    dh_auto_clean -O--buildsystem=maven
    bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
    mh_unpatchpoms -pepubcheck
    dh_autoreconf_clean -O--buildsystem=maven
    dh_clean -O--buildsystem=maven
    debian/rules binary
    dh binary --buildsystem=maven
    dh_update_autotools_config -O--buildsystem=maven
    dh_autoreconf -O--buildsystem=maven
    dh_auto_configure -O--buildsystem=maven
    mh_patchpoms -pepubcheck --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
    dh_auto_build -O--buildsystem=maven
    /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
    OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] -------------------------< org.w3c:epubcheck >-------------------------- [INFO] Building EPUBCheck :: Validation Tool for EPUB 4.2.6
    [INFO] from pom.xml
    [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The artifact org.apache.maven.plugins:maven-surefire-plugin:jar:2.17 has been relocated to org.apache.maven.plugins:maven-surefire-plugin:jar:2.22.3
    [WARNING] The artifact com.googlecode.json-simple:json-simple:jar:debian has been relocated to com.github.cliftonlabs:json-simple:jar:debian
    [INFO]
    [INFO] --- enforcer:3.5.0:enforce (enforce-maven) @ epubcheck ---
    [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
    [INFO]
    [INFO] --- resources:3.3.1:resources (default-resources) @ epubcheck ---
    [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/tools
    [INFO] Copying 333 resources from src/main/resources to target/classes
    [INFO] Copying 1 resource from src/main/resources to target/classes
    [INFO] The encoding used to copy filtered properties files has not been set. This means that the same encoding will be used to copy filtered properties files as when copying other filtered resources. This might not be what you want! Run your build with --
    debug to see which files might be affected. Read more at https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html
    [INFO]
    [INFO] --- xml:1.0.1:transform (default) @ epubcheck ---
    [WARNING] Error injecting: org.codehaus.mojo.xml.TransformMojo com.google.inject.ProvisionException: Unable to provision, see the following errors:

    1) No implementation for ResourceManager was bound.
    while locating TransformMojo

    1 error

    ======================
    Full classname legend:
    ======================
    ResourceManager: "org.codehaus.plexus.resource.ResourceManager"
    TransformMojo: "org.codehaus.mojo.xml.TransformMojo"
    ========================
    End of classname legend:
    ========================

    at com.google.inject.internal.InternalProvisionException.toProvisionException (InternalProvisionException.java:251)
    at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1104)
    at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1139)
    at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
    at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
    at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:67)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:109)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:124)
    at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
    at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:62)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
    at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101)
    at org.eclipse.sisu.inject.Guice4$1.get (Guice4.java:162)
    at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
    at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:263)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:255)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo (DefaultMavenPluginManager.java:491)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:114)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at org.debian.maven.Wrapper.main (Wrapper.java:89)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard (Launcher.java:322)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:235)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.921 s
    [INFO] Finished at: 2025-03-01T14:01:58Z
    [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0.1:transform (default) on project epubcheck: Execution default of goal org.codehaus.mojo:xml-maven-plugin:1.0.1:transform failed: Unable to load the mojo 'transform' (or one of its
    required components) from the plugin 'org.codehaus.mojo:xml-maven-plugin:1.0.1': com.google.inject.ProvisionException: Unable to provision, see the following errors:
    [ERROR]
    [ERROR] 1) No implementation for ResourceManager was bound.
    [ERROR] while locating TransformMojo
    [ERROR] at ClassRealm[plugin>org.codehaus.mojo:xml-maven-plugin:1.0.1, parent: ClassLoaders$AppClassLoader@639fee48]
    [ERROR] \_ installed by: WireModule -> PlexusBindingModule
    [ERROR] while locating Mojo annotated with @Named("org.codehaus.mojo:xml-maven-plugin:1.0.1:transform")
    [ERROR]
    [ERROR] 1 error
    [ERROR]
    [ERROR] ======================
    [ERROR] Full classname legend:
    [ERROR] ======================
    [ERROR] ClassLoaders$AppClassLoader: "jdk.internal.loader.ClassLoaders$AppClassLoader"
    [ERROR] Mojo: "org.apache.maven.plugin.Mojo"
    [ERROR] Named: "com.google.inject.name.Named"
    [ERROR] PlexusBindingModule: "org.eclipse.sisu.plexus.PlexusBindingModule"
    [ERROR] ResourceManager: "org.codehaus.plexus.resource.ResourceManager"
    [ERROR] TransformMojo: "org.codehaus.mojo.xml.TransformMojo" [ERROR] WireModule: "org.eclipse.sisu.wire.WireModule"
    [ERROR] ========================
    [ERROR] End of classname legend:
    [ERROR] ========================
    [ERROR]
    [ERROR] role: org.apache.maven.plugin.Mojo
    [ERROR] roleHint: org.codehaus.mojo:xml-maven-plugin:1.0.1:transform
    [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/PluginContainerException
    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: *** [debian/rules:4: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:epubcheck, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tony mancill@21:1/5 to Santiago Vila on Sun Mar 23 21:20:01 2025
    On Sat, Mar 01, 2025 at 09:00:59PM +0000, Santiago Vila wrote:
    Package: src:epubcheck
    Version: 4.2.6-2
    Severity: serious
    Tags: ftbfs trixie sid

    [INFO] --- xml:1.0.1:transform (default) @ epubcheck ---
    [WARNING] Error injecting: org.codehaus.mojo.xml.TransformMojo com.google.inject.ProvisionException: Unable to provision, see the following errors:

    1) No implementation for ResourceManager was bound.
    while locating TransformMojo

    The upload of plexus-resources 1.3.0 [1] included API changes that are
    breaking for xml-maven-plugin [2].

    I am currently looking into updating xml-maven-plugin to 1.1.0 +
    (patches yet TBD) to address this, which, will hopefully be simpler than backporting the API changes to plexus-resources.

    As a last resort, we could revert plexus-resources to some
    1.3.0really1.1.0 version, but I'd like to avoid that.

    To be continued...
    tony

    [1] https://tracker.debian.org/news/1621501/accepted-plexus-resources-130-1-source-into-unstable/
    [2] https://tracker.debian.org/pkg/xml-maven-plugin

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Apr 12 20:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Sat, 12 Apr 2025 20:06:57 +0200
    with message-id <[email protected]>
    and subject line Closing: last upload of plexus-resources fixed the issue
    has caused the Debian Bug report #1099298,
    regarding epubcheck: FTBFS: No implementation for ResourceManager was bound.
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected]
    immediately.)


    --
    1099298: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099298
    Debian Bug Tracking System
    Contact [email protected] with problems

    Received: (at submit) by bugs.debian.org; 1 Mar 2025 21:01:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-120.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,MONEY,
    STOCKLIKE,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 281; hammy, 150; neutral, 484; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto, 0.000-+--H*F:U*sanvila Return-path: <[email protected]>
    Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:41720)
    f