diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-11-05 17:08:10 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-11-05 17:08:10 +0000 |
commit | 156764a6b0abe3c59f531a073c746b3f7133ee50 (patch) | |
tree | 7af4ace2aef2516651b06fb23a72466cb2c95de9 /contrib | |
parent | Upgrade to binutils-2.19, gcc-4.2.4. (diff) | |
download | rtems-156764a6b0abe3c59f531a073c746b3f7133ee50.tar.bz2 |
Filter find-debuginfo.sh not to mistreat foreign binaries.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/gcc/rpm-install.add | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/crossrpms/gcc/rpm-install.add b/contrib/crossrpms/gcc/rpm-install.add index 002ecff610..b6014fd66a 100644 --- a/contrib/crossrpms/gcc/rpm-install.add +++ b/contrib/crossrpms/gcc/rpm-install.add @@ -47,3 +47,26 @@ EOF chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires %define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires + +# Extract %%__debug_install_post into debug_install_post~ +cat << \EOF > debug_install_post~ +%__debug_install_post +EOF + +# Generate customized debug_install_post script +cat debug_install_post~ | while read a x y; do +case $a in +# Prevent find-debuginfo.sh* from trying to handle foreign binaries +*/find-debuginfo.sh) + b=$(basename $a) + sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b + chmod a+x $b + ;; +esac +done + +sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \ +< debug_install_post~ > debug_install_post +%define __debug_install_post . ./debug_install_post + + |