]> piware.de Git - bin.git/commitdiff
build-cockpit-toolbox: Add flatpak-builder
authorMartin Pitt <martin@piware.de>
Sun, 12 Dec 2021 15:44:32 +0000 (16:44 +0100)
committerMartin Pitt <martin@piware.de>
Sun, 12 Dec 2021 15:44:32 +0000 (16:44 +0100)
For building cockpit-client. Add a hack to install in toolbox, which the
next flatpak release will fix.

build-cockpit-toolbox

index d233b7869fa20ed090873ca7f8c2d5e3383791aa..b7fb4b3be2ae02eba2b68aa8e492c3f1178ba2f0 100755 (executable)
@@ -16,13 +16,17 @@ sudo hostname -F /etc/hostname
 # enable manpages
 sudo sed -i s/nodocs// /etc/dnf/dnf.conf
 
+# hack for flatpak-builder
+sudo mkdir -p /usr/lib/rpm/macros.d
+echo "%_netsharedpath /dev:/media:/mnt:/proc:/sys:/tmp:/var/lib/flatpak:/var/lib/libvirt" | sudo tee /usr/lib/rpm/macros.d/macros.toolbox
+
 sudo dnf install -y ansible man-pages moreutils \
     python3-boto python3-boto3 libnotify \
     pandoc texlive-ec texlive-pdfjam \
     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
     kpcli \
     calibre qt5-qtwayland \
-    dbus-daemon tmt tmt-provision-virtual
+    dbus-daemon tmt tmt-provision-virtual flatpak-builder
 
 # debugging cockpit crashes
 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls