SBo scripts not building on current (read 1st post, pls)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've attached a patch for libmp4v2 that fixes a gcc "Narrowing" warning/error.
After I wrote it, I noticed that Ponce already has a patch in his repo using static_cast<> to avoid the build failure.
My approach might be slightly safer as I actually fix the type mismatch rather than just cast it: I'm not sure what happens when you cast a unsigned int to int like that when the value is > INT_MAX, which is likely as the enum start value is defined as 0xF0000000 for some reason (which is why C++ is promoting the enum in the first place).
Anyway, patch to slackbuild attached for your consideration/testing. Please let me know if I missed something.
Mailspring builds but fails to start. Complains about libsecret and gnome-keyring.
mailspring on SBo just repackages a debian binary, doesn't actually build from source: that's why the version for 14.2 won't run on current.
you can try to version-bump it to 1.9.1, maybe the newer debian package is built against newer libraries and runs on current (I haven't tried it myself).
mailspring on SBo just repackages a debian binary, doesn't actually build from source: that's why the version for 14.2 won't run on current.
you can try to version-bump it to 1.9.1, maybe the newer debian package is built against newer libraries and runs on current (I haven't tried it myself).
I've attached a patch for libmp4v2 that fixes a gcc "Narrowing" warning/error.
After I wrote it, I noticed that Ponce already has a patch in his repo using static_cast<> to avoid the build failure.
My approach might be slightly safer as I actually fix the type mismatch rather than just cast it: I'm not sure what happens when you cast a unsigned int to int like that when the value is > INT_MAX, which is likely as the enum start value is defined as 0xF0000000 for some reason (which is why C++ is promoting the enum in the first place).
Anyway, patch to slackbuild attached for your consideration/testing. Please let me know if I missed something.
Since the upgrade to gcc-11.2.0, gcc5 no longer builds. The error is:
Code:
../../gcc-5.5.0/gcc/reload1.c: In function ‘void init_reload()’:
../../gcc-5.5.0/gcc/reload1.c:115:24: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
115 | (this_target_reload->x_spill_indirect_levels)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Adding -std=c++14 or -std=c++11 (or gnu++ for that matter) does no good, it still insists on using c++17. The web search turns up nothing useful. Any ideas?
it's fixed now in my branch, thanks for the report!
and edited the Slackbuild to use this four patches:
Code:
#!/bin/bash
# Slackware build script for scummvm
# Copyright 2006 Halim Issa <yallaone@gmail.com>
# Copyright 2008, 2010, 2012-2020 Carlos Corbacho <carlos@strangeworlds.co.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=scummvm
VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
DOCS="AUTHORS COPYING* COPYRIGHT NEWS.md README.md TODO"
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
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# 20210819 bkw: This is necessary for fluidsynth-2.2.x Based on upstream's
# git commits.
patch -p1 < $CWD/2.2.0-fluidsynth_loghandler.patch
patch -p1 < $CWD/2.2.0-fluidsynth_loghandler_fix.patch
patch -p1 < $CWD/2.2.0-fluidsynth2.0.patch
patch -p1 < $CWD/2.2.0-fluidsynth2.2.patch
# avoid linking breakage on i?86
if [[ $ARCH == i?86 ]]; then linker=bfd; else linker=gold; fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-fuse-ld=$linker" \
./configure \
--prefix=/usr \
--bindir=/usr/games \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--disable-debug
make
make install DESTDIR=$PKG
# The .desktop file for the menu is not being installed
install -D -m 0644 dists/scummvm.desktop \
$PKG/usr/share/applications/scummvm.desktop
# Hardcode the location for the .desktop icon
sed -i s%Icon=%Icon=/usr/share/pixmaps/% \
$PKG/usr/share/applications/scummvm.desktop
strip --strip-unneeded $PKG/usr/games/scummvm 2> /dev/null
# Compress the man page(s)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
# We don't need these - they're redundant
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
and edited the Slackbuild to use this four patches:
Code:
#!/bin/bash
# Slackware build script for scummvm
# Copyright 2006 Halim Issa <yallaone@gmail.com>
# Copyright 2008, 2010, 2012-2020 Carlos Corbacho <carlos@strangeworlds.co.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=scummvm
VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
DOCS="AUTHORS COPYING* COPYRIGHT NEWS.md README.md TODO"
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
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# 20210819 bkw: This is necessary for fluidsynth-2.2.x Based on upstream's
# git commits.
patch -p1 < $CWD/2.2.0-fluidsynth_loghandler.patch
patch -p1 < $CWD/2.2.0-fluidsynth_loghandler_fix.patch
patch -p1 < $CWD/2.2.0-fluidsynth2.0.patch
patch -p1 < $CWD/2.2.0-fluidsynth2.2.patch
# avoid linking breakage on i?86
if [[ $ARCH == i?86 ]]; then linker=bfd; else linker=gold; fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-fuse-ld=$linker" \
./configure \
--prefix=/usr \
--bindir=/usr/games \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--disable-debug
make
make install DESTDIR=$PKG
# The .desktop file for the menu is not being installed
install -D -m 0644 dists/scummvm.desktop \
$PKG/usr/share/applications/scummvm.desktop
# Hardcode the location for the .desktop icon
sed -i s%Icon=%Icon=/usr/share/pixmaps/% \
$PKG/usr/share/applications/scummvm.desktop
strip --strip-unneeded $PKG/usr/games/scummvm 2> /dev/null
# Compress the man page(s)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
# We don't need these - they're redundant
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
after that scummvm 2.2.0 build fine.
hi adcdam,
this thread is dedicated to scripts on SBo not building on current: ATM there's scummvm 2.1.2 on SBo and that builds fine as-is...
if you have updates to propose you should direct them to the maintainers of the interested SlackBuilds.
im having problems with mpd i cant build version 0.21.22 or version 0.22.10 in current, all the same error after linking target mpd, it fail to install.
best regards!
im having problems with mpd i cant build version 0.21.22 or version 0.22.10 in current, all the same error after linking target mpd, it fail to install.
best regards!
I think you missed reading the README of google-go-lang
Code:
The tools are added to the path by putting go.sh and go.csh files in
/etc/profile.d and letting the system's /etc/profile or /etc/csh.login
pick it up.
that means after the google-go-lang package installation you have to open a new root shell with "su -" before trying to build fzf or your environment will keep using the go compiler from gcc
Thanks Ponce for your response!.
Trying to install google-go-lang, I am getting this, maybe temporal or does it need a new URL to Download?. I make sure I have internet and access to https://dl.google.com, but no go and "bootstrap.." file present (checked via browser)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.