]> piware.de Git - bin.git/commitdiff
build-devmock: Set up proper $HOME for interactive shell
authorMartin Pitt <martin@piware.de>
Tue, 9 Jul 2019 21:25:53 +0000 (23:25 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 9 Jul 2019 21:25:53 +0000 (23:25 +0200)
Also add a few useful packages

build-devmock

index d288959d1f27f571dcca9d260359305c6292b499..54729fcb625a520e03e1de66c77b8615a7a1b2b8 100755 (executable)
@@ -8,5 +8,19 @@ mock --clean
 $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 \
 $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 \
+    virt-viewer libguestfs-tools-c \
     expect python3-pycodestyle python3-pyflakes \
     expect python3-pycodestyle python3-pyflakes \
-    fedpkg /usr/bin/oc
+    fedpkg /usr/bin/oc /usr/bin/genisoimage \
+    man-pages socat wget genisoimage vim-enhanced
+
+$MOCK --unpriv --copyin /dev/stdin /builddir/.bashrc <<EOF
+export HOME=/home/martin
+export TERM=xterm
+cd
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+       . /etc/bashrc
+fi
+. ~/.bashrc
+EOF