summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Edward W. Koenig <kingbeowulf@linuxgalaxy.org>2023-01-01 18:51:27 -0800
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-07 08:13:53 +0700
commit6a50ad559c35e0dddbbc2e86c6a05ae269292103 (patch)
tree74a03f9c7b2f4a1d404a7a0c8aa7bfc54918e617 /system
parenta161baf57b123f798d7fde52b5bc5443f458eae3 (diff)
downloadslackbuilds-6a50ad559c35e0dddbbc2e86c6a05ae269292103.tar.gz
slackbuilds-6a50ad559c35e0dddbbc2e86c6a05ae269292103.tar.xz
system/qemu: Fix slirp option and usage
Signed-off-by: Edward W. Koenig <kingbeowulf@linuxgalaxy.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/qemu/README5
-rw-r--r--system/qemu/qemu.SlackBuild9
2 files changed, 14 insertions, 0 deletions
diff --git a/system/qemu/README b/system/qemu/README
index 6693735188..c457cef088 100644
--- a/system/qemu/README
+++ b/system/qemu/README
@@ -45,6 +45,11 @@ libslirp (user mode networking), libcacard, spice, usbredir, virglrenderer,
libnfs, snappy, device-tree-compiler, glusterfs, and vde2 are optional
dependencies.
+To enable user mode networking, install libslirp (availale on SBO), then
+compile qemu:
+
+SLIRP=yes ./qemu/SlackBuild
+
libiscsi (to access iSCSI targets directly) is optional dependency,
and will be picked up, if present, during the compilation.
diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild
index d6d8128ce9..e93678ed04 100644
--- a/system/qemu/qemu.SlackBuild
+++ b/system/qemu/qemu.SlackBuild
@@ -37,6 +37,7 @@ TARGETS=${TARGETS:-all}
VNC_ENABLE=${VNC_ENABLE:-yes}
AUDIODRIVERS=${AUDIODRIVERS:-pa,alsa,oss,sdl}
BRIDGE_HELPER_SETUID=${BRIDGE_HELPER_SETUID:-no}
+SLIRP=${SLIRP:-=no}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -111,6 +112,13 @@ else
with_vnc="--disable-vnc"
fi
+# To enable user mode networking use SLIRP=yes
+if [ "$SLIRP" = "yes" ]; then
+ with_slirp="--enable-slirp"
+else
+ with_slirp=""
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -129,6 +137,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-nettle \
--${uring}able-linux-io-uring \
--audio-drv-list=${AUDIODRIVERS} \
+ $with_slirp \
$with_vnc \
$targets