Bug 64018

Summary: compiling glibc rpm for --target athlon fails
Product: [Retired] Red Hat Linux Reporter: Wilton Wong <wwong>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 9CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.2-27.9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-17 17:15:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wilton Wong 2002-04-23 20:31:13 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020401

Description of problem:
compiling glibc rpm for --target athlon fails because prelink is never
decompressed and libs aldo end up in /lib/i686 and not /lib/athlon

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


How reproducible:
Always

Steps to Reproduce:
1.rpm -ba --target athlon glibc-2.2.5-....


Actual Results:  %build will fail at prelink portion

Expected Results:  sucessful compile and rpm build

Additional info:

change the lines in glibc.spec: 
<SNIP>
%ifarch i686
mkdir prelink
tar x --bzip2 -C prelink -f %{SOURCE2}
%endif
</SNIP>
to
<SNIP>
%ifarch i686 athlon
mkdir prelink
tar x --bzip2 -C prelink -f %{SOURCE2}
%endif
</SNIP>

and change the lines:
<SNIP>
%ifarch i686 athlon
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/{libc,libm,libpthread}[-.]*.so*
cp -a $RPM_BUILD_ROOT/%{_lib}/%{_target_cpu}/lib*.so*
$RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/
%endif
</SNIP>
to
<SNIP>
%ifarch i686 athlon
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/{libc,libm,libpthread}[-.]*.so*
cp -a $RPM_BUILD_ROOT/%{_lib}/i686/lib*.so* $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/
%endif
</SNIP>

Comment 1 Ulrich Drepper 2003-04-17 17:15:40 UTC
The glibc .spec file doesn't contain these lines anymore.  It'll use an already
installed prelink package.