Ignore:
Timestamp:
Oct 7, 2009, 6:49:32 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b26f0a1
Parents:
7b1df577
Message:

Hack around gdb >= 7.0 trying to globally install syscall/*linux.xml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/gdb/install.add

    r7b1df577 r2b22160f  
    2727  rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
    2828
     29%if "%{gdb_version}" >= "7.0"
     30# Bug in gdb-7.0, bogusly installs linux-only files
     31  somethinguseful=0
     32  for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     33    case $f in
     34    *linux.xml) rm -f $f;;
     35    *.xml) somethinguseful=1;;
     36    esac
     37  done
     38  if test $somethinguseful -eq 0; then
     39    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     40  fi
     41%endif
     42
    2943  cd ..
    3044
Note: See TracChangeset for help on using the changeset viewer.