https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Bug ID: 1809931 Summary: %mvn_install does not honour %_prefix Product: Fedora Version: 31 Status: NEW Component: javapackages-tools Assignee: mizdebsk@redhat.com Reporter: sbergman@redhat.com QA Contact: extras-qa@fedoraproject.org CC: java-sig-commits@lists.fedoraproject.org, mat.booth@redhat.com, mizdebsk@redhat.com, msrb@redhat.com, sochotni@redhat.com Target Milestone: --- Classification: Fedora
Description of problem:
I discovered this when trying to do a flatpak build of LibreOffice following the instructions at https://docs.fedoraproject.org/en-US/flatpak/. One component that needs to be rebuilt with %_prefix set to /app (instead of the usual /usr) is bsh, which uses %mvn_install (see https://src.fedoraproject.org/rpms/bsh/blob/f31/f/bsh.spec).
However, the spec file line
%mvn_install -J javadoc
there apparently creates %{buildroot}/usr/share/java/bsh.jar (and records that in .mfiles) rather than %{buildroot}/app/share/java/bsh.jar, even if %_prefix is /app.
Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib/rpm/macros.d/macros.fjava javapackages-local-5.3.0-6.fc31.noarch
https://bugzilla.redhat.com/show_bug.cgi?id=1809931
--- Comment #1 from Mikolaj Izdebski mizdebsk@redhat.com --- Value of _prefix macro is expanded during build of javapackages-tools and stored in configuration files (incl. /usr/share/xmvn/configuration.xml). Then these configuration files affect runtime of javapackages-tools and XMvn. The recommended way to work with different prefix is to build javapackages-tools with desired prefix macro. Another way is to provide custom configuration files for XMvn: https://fedora-java.github.io/xmvn/configuration.html
https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Stephan Bergmann sbergman@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |amigadave@amigadave.com, | |klember@redhat.com, | |otaylor@redhat.com Component|javapackages-tools |flatpak-rpm-macros Assignee|mizdebsk@redhat.com |sbergman@redhat.com
--- Comment #2 from Stephan Bergmann sbergman@redhat.com --- (In reply to Mikolaj Izdebski from comment #1)
Another way is to provide custom configuration files for XMvn: https://fedora-java.github.io/xmvn/configuration.html
See https://src.fedoraproject.org/rpms/flatpak-rpm-macros/pull-request/3 "Resolves: rhbz#1809931 Let %xmvn_install store artifacts under /app".
https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- FEDORA-FLATPAK-2020-bbf5eaefb5 has been submitted as an update to Fedora 31 Flatpaks. https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2020-bbf5eaefb5
https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- flatpak-runtime-f31-3120200318190325.1, flatpak-sdk-f31-3120200318190325.1 has been pushed to the Fedora 31 Flatpaks testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2020-bbf5eaefb5
https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA Last Closed| |2020-03-20 00:16:31
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- flatpak-runtime-f31-3120200318190325.1, flatpak-sdk-f31-3120200318190325.1 has been pushed to the Fedora 31 Flatpaks stable repository. If problems still persist, please make note of it in this bug report.
java-sig-commits@lists.fedoraproject.org