Bug 269481 - brp-java-repack-jars tries to repack empty (ghost) jars created by jpackage's sun nosrc rpms
Summary: brp-java-repack-jars tries to repack empty (ghost) jars created by jpackage's...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: redhat-rpm-config
Version: 5.0
Hardware: All
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Jon Masters
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-30 21:24 UTC by Kai Bolay
Modified: 2011-02-10 13:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:04:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Ignore size 0 JARs (353 bytes, patch)
2007-08-30 21:24 UTC, Kai Bolay
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0224 0 normal SHIPPED_LIVE redhat-rpm-config bug fix update 2009-01-20 16:06:24 UTC

Description Kai Bolay 2007-08-30 21:24:30 UTC
Description of problem:


Version-Release number of selected component (if applicable):


When trying to build RPMs using jpackage's nosrc rpms for Sun's JDK
brp-java-repack-jars tries (unsuccessfully) to rebuild
/usr/lib/jvm/java-x.y.z-sun-x.y.z.p/jre/lib/security/{local_policy,US_export_policy}.jar

Their spec file does this:

# jce policy file handling
install -d -m 755 $RPM_BUILD_ROOT%{_jvmprivdir}/%{name}/jce/vanilla
for file in local_policy.jar US_export_policy.jar; do
  mv $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/$file \
    $RPM_BUILD_ROOT%{_jvmprivdir}/%{name}/jce/vanilla
  # for ghosts
  touch $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/$file
done

%ghost %{_jvmdir}/%{jredir}/lib/security/local_policy.jar
%ghost %{_jvmdir}/%{jredir}/lib/security/US_export_policy.jar


I suggest a simple patch to get rid of those spurious and confusing errors:
Change brp-java-repack-jars to ignore "empty" (size 0) JARs. I've attached a
simple patch.

Comment 1 Kai Bolay 2007-08-30 21:24:30 UTC
Created attachment 182161 [details]
Ignore size 0 JARs

Comment 2 RHEL Program Management 2008-07-21 23:09:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 3 Kai Bolay 2008-07-22 00:10:30 UTC
(In reply to comment #2)

> If you would like this request to be reviewed for the next 
> minor release, ask your support representative to set the 
> next rhel-x.y flag to "?".

Please set the next rhel-x.y flag to "?".

Comment 5 RHEL Program Management 2008-07-28 19:52:48 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 Jon Masters 2008-09-17 19:55:20 UTC
In redhat-rpm-config-8_0_45-26_el5

Comment 13 errata-xmlrpc 2009-01-20 22:04:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0224.html


Note You need to log in before you can comment on or make changes to this bug.