For the proprietary JDK packages I'd like a way to cleanly disable repacking jars. (For various reasons, we install the JDK jars under /usr/lib, in arch-specific directories, so there is no need to adjust their contents' timestamps). I could use a hack like this: # HACK: disable brp-java-repack-jars %define __os_install_post \ /usr/lib/rpm/redhat/brp-compress \ %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ /usr/lib/rpm/brp-python-bytecompile \ %{nil} but I would prefer something like: %define _disable_jar_repacking 1 where %__os_install_post would contain: ... %{!?_disable_jar_repacking:/usr/lib/rpm/redhat/brp-java-repack-jars} \ ...
Will be in the next version of redhat-rpm-config; if you want it backported for RHEL5, reopen Mechanism to disable is %define __jar_repack 0 in the spec file
I would like this backported to RHEL-5 so that I can avoid repack attempts on signed jars in the JDK packages.
I have found a way to avoid running brp-java-repack-jars, by adding: %define __os_install_post %{nil} at the top of the spec file but it would be preferable to disable only the jar repacking script.
Adding patrickm to the cc list as the manager of the disabled user fitzsim who reported this bug
Thomas and Jeremy, We've had a similar RFE filed by Nortel: https://bugzilla.redhat.com/show_bug.cgi?id=497011 I intentially filed that bug as it's asking for a more generic way to disable not just brp-java-repack-jars, but also brp-python-bytecompile. Should we close this one as a dup? --jwest
My efforts to backport OOo 3.1.1 to RHEL-5 also re-trigger the problem of https://bugzilla.redhat.com/show_bug.cgi?id=465664 i.e. reordering the order of MANIFEST.MF in the .jar file -> no help search available, where the only fix is to disable the jar repacking, which is hard in RHEL-5
*** This bug has been marked as a duplicate of bug 497011 ***
Marking bugs as duplicate of another bug which is not visible outside RedHat is not very useful. You are not authorized to access bug #497011.