diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-05-03 23:08:19 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-05-04 19:29:31 -0500 |
commit | 50b70d037b41846e3e50d40693b7890402b7f94e (patch) | |
tree | 7b6bc122384bc08a46b57298cf95e767e51dfc2b /system/qemu/qemu.SlackBuild | |
parent | 9cea6526435a7a7c381e661abfefe1a69d26d20f (diff) |
system/qemu: Updated for version 6.0.0.
Added the optional dependency liburing
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/qemu/qemu.SlackBuild')
-rw-r--r-- | system/qemu/qemu.SlackBuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index e2e1bae37f004..895748fb012e5 100644 --- a/system/qemu/qemu.SlackBuild +++ b/system/qemu/qemu.SlackBuild @@ -59,7 +59,8 @@ # 6.2 16-Nov-2020 version update, 14.2 final release. PRGNAM=qemu -VERSION=${VERSION:-5.2.0} +VERSION=${VERSION:-6.0.0} +SRCVER=$(echo $VERSION | tr _ - ) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -102,14 +103,17 @@ fi # Needed to build man pages if built after plain "su" export PATH=$PATH:/usr/share/texmf/bin +# Autodetect liburing support +uring="dis" ; if pkg-config --exists liburing ; then uring="en" ; fi + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.xz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -135,11 +139,6 @@ else with_vnc="--disable-vnc" fi -# temp fix until upstream catches up. -# ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?) -# https://lists.gnu.org/archive/html/qemu-devel/2020-12/msg03684.html -patch -p1 < $CWD/linker-no-pie.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -156,6 +155,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-sdl \ --enable-jemalloc \ --enable-nettle \ + --${uring}able-linux-io-uring \ --audio-drv-list=${AUDIODRIVERS} \ $with_vnc \ $targets @@ -193,7 +193,7 @@ fi # Add docs to the proper location mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING* CODING_STYLE.rst LICENSE MAINTAINERS README.rst docs/* \ +cp -a COPYING* LICENSE MAINTAINERS README.rst docs/* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |