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>
The glibc .spec file doesn't contain these lines anymore. It'll use an already installed prelink package.