Public bug reported: 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 ** Affects: jruby (Ubuntu) Importance: Undecided Status: New ** Affects: jruby (Debian) Importance: Unknown Status: Unknown ** Bug watch added: Debian Bug tracker #1064554 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064554 ** Also affects: jruby (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064554 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2054942 Title: jruby 9.4.5.0+ds-1 can not be rebuilt from source To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/jruby/+bug/2054942/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs