Don't run chrpath for libclang on sparc and sparc64

This commit is contained in:
John Paul Adrian Glaubitz 2023-11-09 09:57:13 +01:00
parent 2840ec0456
commit 738814be41
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View File

@ -4,6 +4,9 @@ llvm-toolchain-16 (1:16.0.6-18) UNRELEASED; urgency=medium
[ Steve Langasek ] [ Steve Langasek ]
* Add noble as supported Ubuntu release * Add noble as supported Ubuntu release
[ John Paul Adrian Glaubitz ]
* Don't run chrpath for libclang on sparc and sparc64
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 25 Oct 2023 08:10:35 +0200 -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 25 Oct 2023 08:10:35 +0200
llvm-toolchain-16 (1:16.0.6-17exp1) experimental; urgency=medium llvm-toolchain-16 (1:16.0.6-17exp1) experimental; urgency=medium

2
debian/rules vendored
View File

@ -1024,7 +1024,7 @@ override_dh_auto_install:
# Only run on executable, not script # Only run on executable, not script
chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable -exec file -i '{}' \; | grep 'x-executable; charset=binary'|cut -d: -f1` chrpath -d `find $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/ -type f -executable -exec file -i '{}' \; | grep 'x-executable; charset=binary'|cut -d: -f1`
ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe)) ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe sparc sparc64))
ifneq (,$(filter $(DEB_HOST_ARCH_OS),linux)) ifneq (,$(filter $(DEB_HOST_ARCH_OS),linux))
# To fix custom-library-search-path # To fix custom-library-search-path
chrpath -d $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION)*/lib/linux/*.so chrpath -d $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/clang/$(LLVM_VERSION)*/lib/linux/*.so