Bug 207303 - cannot rebuild gcc when build_java is 0
Summary: cannot rebuild gcc when build_java is 0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-20 15:51 UTC by John Reiser
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHSA-2007-0220
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 17:08:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch which adds required %if %{build_java} (1.16 KB, patch)
2006-09-20 15:51 UTC, John Reiser
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:0220 0 normal SHIPPED_LIVE Moderate: gcc security and bug fix update 2007-05-01 17:07:43 UTC

Description John Reiser 2006-09-20 15:51:08 UTC
Description of problem: Rebuilding gcc-3.4.6-3 fails when build_java is 0. 
There are two places in the .spec that need "%if %{build_java}".


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

How reproducible:
always

Steps to Reproduce:
1. Change build_java to 0 at line 10 of the .spec .
2. rpmbuild -ba --target i686 gcc.spec
3.
  
Actual results:
+ sed -i -e 's/lib: /&%{static:%eJava programs cannot be linked statically}/'
/var/tmp/gcc-3.4.6-3-root/usr/lib/gcc/i686-redhat-linux/3.4.6/libgcj.spec
sed: can't read
/var/tmp/gcc-3.4.6-3-root/usr/lib/gcc/i686-redhat-linux/3.4.6/libgcj.spec: No
such file or directory
   <<then, after fixing that problem, there is another:>>
+ mv -f /var/tmp/gcc-3.4.6-3-root/usr/share/java/libgcj-3.4.6.jar
/var/tmp/gcc-3.4.6-3-root/usr/share/java/libgcj-3.4.3.jar
mv: cannot stat `/var/tmp/gcc-3.4.6-3-root/usr/share/java/libgcj-3.4.6.jar': No
such file or directory


Expected results:
successful build


Additional info:  Patch will be attached.

Comment 1 John Reiser 2006-09-20 15:51:08 UTC
Created attachment 136750 [details]
patch which adds required %if %{build_java}

Comment 7 Red Hat Bugzilla 2007-05-01 17:08:28 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 the 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/RHSA-2007-0220.html



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