From: Martin Pitt Date: Fri, 12 Jul 2019 05:59:28 +0000 (+0200) Subject: build-devmock: make mock compatible with ostree's /home → /var/home structure X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=1a39075eb53fbc2cf34cc485ae40bc0b74522d3e;ds=sidebyside build-devmock: make mock compatible with ostree's /home → /var/home structure Create a /var/home → /home symlink, so that an outside cwd of /var/home/$user works in the mock. --- diff --git a/build-devmock b/build-devmock index 93daa84..2e50451 100755 --- a/build-devmock +++ b/build-devmock @@ -4,7 +4,7 @@ MOCK="mock -r ${OS:-default}" $MOCK --clean -# install cockpit's build deps +# install cockpit's build deps and other development tools $MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/upstream/cockpit/tools/cockpit.spec) \ npm fontconfig git valgrind chromium-headless \ libvirt-daemon-kvm libvirt-client python3-libvirt \ @@ -13,6 +13,7 @@ $MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/ups fedpkg /usr/bin/oc /usr/bin/genisoimage \ man-pages socat wget genisoimage vim-enhanced +# interactive shell sessions work as user martin, not builder $MOCK --unpriv --copyin /dev/stdin /builddir/.bashrc <