From Bugzilla Helper: User-Agent: Mozilla/4.73 [en] (X11; I; SunOS 5.7 sun4u) Description of problem: Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Comments to the patch in "Additional information" 1. When running rpmbuild -b ..... --target < anything but i386>, the patch2 isn't applied, which I _think_ is not what you wanted. 2. The point here is make ... tooldir=$RPM_BUILD_ROOT%{_prefix} .... install Without tooldir set in 'make install' ${tooldir}/lib/ldscripts will actually be ${prefix}/${target_arch}/lib/ldscripts, and %files rules won't pick up the whole ldscripts directory. Check your binutils-2.11.92.0.12-9.i386.rpm files list. Regards, Sergey Ostrovsky. Additional info: --- binutils.spec.orig Wed Jan 30 10:32:35 2002 +++ binutils.spec Wed Jan 30 11:16:36 2002 @@ -47,7 +47,7 @@ %prep %setup -q %patch1 -p0 -b .glibc21 -%ifarch i386 alpha ia64 sparc sparc64 s390 s390x ppc +%ifarch %{ix86} alpha ia64 sparc sparc64 s390 s390x ppc %patch2 -p0 -b .combreloc-default %endif %patch3 -p0 -b .ia64unwind @@ -76,8 +76,15 @@ %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_prefix} -%makeinstall -make prefix=${RPM_BUILD_ROOT}%{_prefix} infodir=${RPM_BUILD_ROOT}%{_infodir} install-info +make prefix=${RPM_BUILD_ROOT}%{_prefix} \ + exec_prefix=$RPM_BUILD_ROOT%{_prefix} \ + tooldir=$RPM_BUILD_ROOT%{_prefix} \ + infodir=${RPM_BUILD_ROOT}%{_infodir} \ + mandir=${RPM_BUILD_ROOT}%{_mandir} \ + includedir=$RPM_BUILD_ROOT%{_prefix}/include \ + libdir=$RPM_BUILD_ROOT%{_prefix}/lib \ + bindir=$RPM_BUILD_ROOT%{_prefix}/bin \ + install install-info strip ${RPM_BUILD_ROOT}%{_prefix}/bin/* gzip -q9f ${RPM_BUILD_ROOT}%{_infodir}/*.info*
What do you need ldscripts for? ld has them built in and can be dumped any time using --verbose.
Uhm, well, I had no clue what I was talking about. I just noticed that binutils installed from the tar ball have ldscripts dir, Suse not only has them but additionally puts %^&$load of symlinks over it. Thanks for the info. 2. I noticed something else in binutils.spec # Binutils come with its own custom libtool %define __libtoolize echo a. Macro expansion happens on .spec file only. b. It is not useful until the construct %__libtoolize is used. Am I missing something ?
Sorry. It's used in %configure. Best regards.
%{ix86} is in 2.11.93.0.2-2, I don't think we need to ship ldscripts.