Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 57368 - Spec file patch to build with _arch != i386 in ~/.rpmmacros
Spec file patch to build with _arch != i386 in ~/.rpmmacros
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc-kernheaders (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Depends On:
  Show dependency treegraph
Reported: 2001-12-10 18:51 EST by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-10 18:52:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-12-10 18:51:55 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011113

Description of problem:
glibc-kernheaders-2.4-6.3 fails to build with _arch defined as for example
i686. Also the %install commands had to be modified for a successful build
from source.

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

How reproducible:

Steps to Reproduce:
1.Recompile from source

Actual Results:  Different errors, depending on if _arch is defined in
~/.rpmmacros and if --target (i386,i686)  is given when building. The last
part of the patch (%install) is necessary to get a correct package build.

Additional info:

Spec file patch: (some extra newlines are inserted by the web browser)
diff -uN  /usr/src/redhat/SPECS/glibc-kernheaders.spec
--- /usr/src/redhat/SPECS/glibc-kernheaders.spec        Sun Dec  9 10:18:26
+++ /usr/src/redhat/SPECS/glibc-kernheaders.spec.new    Tue Dec 11 00:29:32
@@ -12,7 +12,9 @@
 Prereq: fileutils initscripts >= 5.83
 BuildRoot: %{_tmppath}/glibc-kernheaders-root
+%ifarch i386 i586 i686
+%define _arch i386
 Source0: glibc-kernheaders.tar.bz2
@@ -33,8 +35,9 @@
+mkdir -p $RPM_BUILD_ROOT
 tar -cf -  usr | tar -xf - -C $RPM_BUILD_ROOT
-mv $RPM_BUILD_ROOT/usr/include/asm-%{_arch} $RPM_BUILD_ROOT/usr/include/asm
+mv usr/include/asm-%{_arch} $RPM_BUILD_ROOT/usr/include/asm
Comment 1 Arjan van de Ven 2001-12-13 04:08:45 EST
Makes sense; applied

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