jruby 9.4.5.0+ds-1 can not be rebuilt from source

Bug #2054942 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jruby (Debian)
Fix Released
Unknown
jruby (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When building jruby, the following error occurs:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-
plugin:3.1.1:install (default-install) on project jruby-parent: Failed to
install artifact org.jruby:jruby-parent:pom:9.4.5.0:
/<<PKGBUILDDIR>>/debian/maven-repo/org/jruby/jruby-parent/9.4.5.0/jruby-
parent-9.4.5.0.pom (Permission denied) -> [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/MojoExecutionException
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=/<<BUILDDIR>>/jruby-9.4.5.0\+ds
-Dclassworlds.conf=/etc/maven/m2-debian.conf
-Dproperties.file.manual=/<<BUILDDIR>>/jruby-9.4.5.0\+ds/debian/maven.properties
org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-
debian.xml -Ddebian.dir=/<<BUILDDIR>>/jruby-9.4.5.0\+ds/debian
-Dmaven.repo.local=/<<BUILDDIR>>/jruby-9.4.5.0\+ds/debian/maven-repo --batch-
mode -Djruby.revision=9.4.5.0\+ds-1build1\~ppa2 -Pmain,complete,dist
-DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make[1]: *** [debian/rules:43: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-02-24T07:14:56Z

This is due to maven-repo-helper copying symlinks to jruby poms rather than
poms themselves.

A possible solution is to copy jruby poms manually in
execute_after_dh_auto_configure:
        # copy jruby poms rather than links, because the build will try to
patch them
        for p in jruby jruby-parent jruby-base jruby-core jruby-artifacts ; do
\
                rm debian/maven-repo/org/jruby/$$p/* ;\
                mkdir debian/maven-repo/org/jruby/$$p/debian ; \
                cp /usr/share/maven-repo/org/jruby/$$p/debian/* debian/maven-
repo/org/jruby/$$p/debian/ ;\
        done

Related branches

Changed in jruby (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jruby - 9.4.5.0+ds-1ubuntu1

---------------
jruby (9.4.5.0+ds-1ubuntu1) noble; urgency=medium

  * d/rules: copy jruby pom files so that they can by updated by
    maven-install-plugin. Fixes ftbfs (LP: #2054942).
  * d/t/control: mark mri-extra, spec-ruby, mri-stdlib as flaky. See
    launchpad bug 2054943.
  * d/p/jruby-8081-invert-o-nonblock-flag.patch: apply upstream patch
    to fix fcntl call. This allows workaround for launchpad
    bug 2054943.

 -- Vladimir Petko <email address hidden> Mon, 26 Feb 2024 11:55:18 +1300

Changed in jruby (Ubuntu):
status: New → Fix Released
Changed in jruby (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.