Skip to content

Commit 761b05f

Browse files
vtjnashKristofferC
authored andcommitted
deps: fix rpath of 7z after moving to libexecdir (#60098)
(cherry picked from commit 8795edd)
1 parent 954df87 commit 761b05f

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
@@ -530,7 +530,6 @@ ifneq ($(DARWIN_FRAMEWORK),1)
530530
endif
531531
else ifneq (,$(findstring $(OS),Linux FreeBSD))
532532
for j in $(JL_PRIVATE_EXES) ; do \
533-
[ $$j = 7z ] && continue; \
534533
[ -L $(DESTDIR)$(private_libexecdir)/$$j ] && continue; \
535534
$(PATCHELF) $(PATCHELF_SET_RPATH_ARG) '$$ORIGIN/$(reverse_private_libexecdir_rel)' $(DESTDIR)$(private_libexecdir)/$$j || exit 1; \
536535
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)