Skip to content

Commit

Permalink
Fix make install when already installed
Browse files Browse the repository at this point in the history
Previously the ln commands would fail because the symlinks already
existed.

(cherry picked from commit c97ad3a)
  • Loading branch information
DemiMarie authored and marmarek committed May 12, 2023
1 parent c97b0d7 commit a0535aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ all-base:
install-base: all-base
+$(MAKE) install -C libqrexec
$(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --skip-build --root $(DESTDIR)
ln -s qrexec-policy-exec $(DESTDIR)/usr/bin/qrexec-policy
ln -sf qrexec-policy-exec $(DESTDIR)/usr/bin/qrexec-policy
install -d $(DESTDIR)/usr/lib/qubes -m 755
install -t $(DESTDIR)/usr/lib/qubes -m 755 lib/*
install -d $(DESTDIR)/etc/qubes-rpc -m 755
ln -s /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Ask
ln -s /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Notify
ln -sf /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Ask
ln -sf /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Notify
install -d $(DESTDIR)/etc/xdg/autostart -m 755
install -m 644 policy-agent-extra/qrexec-policy-agent.desktop \
$(DESTDIR)/etc/xdg/autostart/qrexec-policy-agent.desktop
Expand All @@ -51,7 +51,7 @@ install-dom0: all-dom0
for RPCNAME in \
policy.List policy.Get policy.Replace policy.Remove \
policy.include.List policy.include.Get policy.include.Replace policy.include.Remove; \
do ln -s /usr/bin/qubes-policy-admin $(DESTDIR)/etc/qubes-rpc/$$RPCNAME; \
do ln -sf /usr/bin/qubes-policy-admin $(DESTDIR)/etc/qubes-rpc/$$RPCNAME; \
done

install -d $(DESTDIR)/etc/qubes-rpc/policy -m 775
Expand Down
4 changes: 2 additions & 2 deletions agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ install: all
install qrexec-client-vm $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/share/man/man1
install qrexec-client-vm.1.gz $(DESTDIR)/usr/share/man/man1
ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec-client-vm
ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec_client_vm
ln -sf ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec-client-vm
ln -sf ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec_client_vm
install qrexec-fork-server $(DESTDIR)/usr/bin
ifeq ($(os), Debian)
install -D -m 0644 qrexec.pam.debian $(DESTDIR)/etc/pam.d/qrexec
Expand Down
2 changes: 1 addition & 1 deletion daemon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install: all
install -t $(DESTDIR)/usr/sbin -m 755 qrexec-daemon
install -t $(DESTDIR)/usr/bin -m 755 qrexec-client
install -d $(DESTDIR)/usr/lib/qubes
ln -s ../../bin/qrexec-client $(DESTDIR)/usr/lib/qubes/qrexec-client
ln -sf ../../bin/qrexec-client $(DESTDIR)/usr/lib/qubes/qrexec-client
.PHONY: all clean install

qrexec-daemon qrexec-client: %: %.o
Expand Down

0 comments on commit a0535aa

Please sign in to comment.