Skip to content

Commit 8795edd

Browse files
authored
deps: fix rpath of 7z after moving to libexecdir (#60098)
1 parent b05afe0 commit 8795edd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ ifneq ($(DARWIN_FRAMEWORK),1)
548548
endif
549549
else ifneq (,$(findstring $(OS),Linux FreeBSD))
550550
for j in $(JL_PRIVATE_EXES) ; do \
551-
[ $$j = 7z ] && continue; \
552551
[ -L $(DESTDIR)$(private_libexecdir)/$$j ] && continue; \
553552
$(PATCHELF) $(PATCHELF_SET_RPATH_ARG) '$$ORIGIN/$(reverse_private_libexecdir_rel)' $(DESTDIR)$(private_libexecdir)/$$j || exit 1; \
554553
done

deps/p7zip.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,14 @@ $(eval $(call bb-install,p7zip,P7ZIP,false))
5151
# move from bindir to shlibdir, where we expect to install it
5252
install-p7zip: post-install-p7zip
5353
uninstall-p7zip: pre-uninstall-p7zip
54-
post-install-p7zip: $(build_prefix)/manifest/p7zip
54+
post-install-p7zip: $(build_prefix)/manifest/p7zip $(PATCHELF_MANIFEST)
5555
mkdir -p $(build_private_libexecdir)/
5656
[ ! -e $(build_bindir)/7z$(EXE) ] || mv $(build_bindir)/7z$(EXE) $(build_private_libexecdir)/7z$(EXE)
5757
[ -e $(build_private_libexecdir)/7z$(EXE) ]
58+
ifneq (,$(findstring $(OS),Linux FreeBSD))
59+
[ -L $(build_private_libexecdir)/7z ] || \
60+
$(PATCHELF) $(PATCHELF_SET_RPATH_ARG) '$$ORIGIN/$(reverse_build_private_libexecdir_rel)' $(build_private_libexecdir)/7z$(EXE)
61+
endif
5862
pre-uninstall-p7zip:
5963
-rm -f $(build_private_libexecdir)/7z$(EXE)
6064

0 commit comments

Comments
 (0)