Changeset 156764a in rtems


Ignore:
Timestamp:
Nov 5, 2008, 5:08:10 PM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
05c66cf
Parents:
95a9a73
Message:

Filter find-debuginfo.sh not to mistreat foreign binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/gcc/rpm-install.add

    r95a9a73 r156764a  
    4848%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
    4949
     50
     51# Extract %%__debug_install_post into debug_install_post~
     52cat << \EOF > debug_install_post~
     53%__debug_install_post
     54EOF
     55
     56# Generate customized debug_install_post script
     57cat debug_install_post~ | while read a x y; do
     58case $a in
     59# Prevent find-debuginfo.sh* from trying to handle foreign binaries
     60*/find-debuginfo.sh)
     61  b=$(basename $a)
     62  sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
     63  chmod a+x $b
     64  ;;
     65esac
     66done
     67
     68sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
     69< debug_install_post~ > debug_install_post
     70%define __debug_install_post . ./debug_install_post
     71
     72
Note: See TracChangeset for help on using the changeset viewer.