From 3bc8fa746f408f75aaf36ecfb41737f8d3727dde Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Fri, 26 Jul 2013 01:05:12 -0400 Subject: [PATCH] Reorder middle-phase install steps. Testing showed that unstripped libbsd.a was missing from the list of common debuginfo files. The fix is to move the "Misc" phase to before the phase that adds files to the debuginfo. This way the debuginfo files are computed after all files are in place. --- glibc.spec | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/glibc.spec b/glibc.spec index a8dd4f2..c73a87d 100644 --- a/glibc.spec +++ b/glibc.spec @@ -909,19 +909,6 @@ truncate -s 0 $RPM_BUILD_ROOT/etc/gai.conf truncate -s 0 $RPM_BUILD_ROOT%{_prefix}/%{_lib}/gconv/gconv-modules.cache chmod 644 $RPM_BUILD_ROOT%{_prefix}/%{_lib}/gconv/gconv-modules.cache -############################################################################## -# Install debug copies of unstripped static libraries -############################################################################## - -# If we are building a debug package then copy all of the static archives -# into the debug directory to keep them as unstripped copies. -%if 0%{?_enable_debug_packages} -mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib} -cp -a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.a \ - $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/ -rm -f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/*_p.a -%endif - ############################################################################## # Misc... ############################################################################## @@ -945,6 +932,21 @@ strip -g $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.o # XXX: Ugly hack for buggy rpm. What bug? BZ? Is this fixed? ln -f ${RPM_BUILD_ROOT}%{_sbindir}/iconvconfig{,.%{_target_cpu}} +############################################################################## +# Install debug copies of unstripped static libraries +# - This step must be last in order to capture any additional static +# archives we might have added. +############################################################################## + +# If we are building a debug package then copy all of the static archives +# into the debug directory to keep them as unstripped copies. +%if 0%{?_enable_debug_packages} +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib} +cp -a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.a \ + $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/ +rm -f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/*_p.a +%endif + ############################################################################## # Build the file lists used for describing the package and subpackages. ##############################################################################