Skip to content

Commit

Permalink
Do not remove any header symlinks, since this removes also a valid sy…
Browse files Browse the repository at this point in the history
…mlink 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
  • Loading branch information
akhuettel committed Dec 16, 2017
1 parent b70dc6b commit 15606a1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions binutils-config
Expand Up @@ -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
Expand Down

0 comments on commit 15606a1

Please sign in to comment.