From 15606a1b5c4603179bfb7e686fa1bb82dc03833a Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 16 Dec 2017 19:24:07 +0100 Subject: Do not remove any header symlinks, since this removes also a valid symlink installed by binutils-libs, bug 584296 binutils-libs is stable since Sat Apr 2 20:55:45 2016, thus it's unlikely someone still needs to convert to the split packages --- binutils-config | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/binutils-config b/binutils-config index e6c5fac..945295c 100644 --- a/binutils-config +++ b/binutils-config @@ -167,15 +167,7 @@ switch_profile() { INCPATH=${LIBPATH}/include if [[ -d ${ROOT}/${INCPATH} ]] ; then cd "${ROOT}/${INCPATH}" || exit 1 - if [[ ${HOST} == ${TARGET} ]] ; then - # The binutils-lib package handles these files now. - for x in libiberty "${HEADERS[@]}" ; do - x="${EROOT}/usr/include/${x}" - if [[ -L ${x} ]] ; then - rm "${x}" - fi - done - else + if [[ ${HOST} != ${TARGET} ]] ; then # Clean out old path -- cannot use '-exec {} +' syntax here find . -type f -exec rm -f "${EROOT}/usr/${TARGET}/usr/include/{}" \; rmdir "${EROOT}/usr/${TARGET}/usr/include" >& /dev/null -- cgit v1.2.3-65-gdbad