[Slackbuilds-users] sboinstall chromprint fails
Ed Fletcher
ed at fletcher.ca
Sat Jun 24 06:43:25 UTC 2023
Hi Matteo:
Yes, but I was hoping that having a .current repo might explain my
printer problem. Oh well.
This might be a pointless exercise and I don't want to waste your time.
VLC is working for me, which is what depends on chromaprint. Just had
to install chromaprint the old way. I only posted this originally in
case someone involved with sbotools might be interested.
diff shows the two files to be identical. So I don't think the problem
is here. Regardless, this is the file
/tmp/SBo/package-chromaprint/usr/doc/chromaprint-1.5.1/chromaprint.SlackBuild
#!/bin/bash
# Slackware build script for chromaprint
# Copyright 2012-2022 Matteo Bernardini <ponce at slackbuilds.org>, Pisa, Italy
# 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=chromaprint
VERSION=${VERSION:-1.5.1}
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
if pkg-config --exists libavcodec; then tools="-DBUILD_TOOLS=ON"; else
tools=""; fi
DOCS="LICENSE.md NEWS.txt README.md"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
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 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
$tools \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared
object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild >
$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
There's a third copy here
/usr/doc/chromaprint-1.5.1/chromaprint.SlackBuild
diff shows it as identical to the other two.
Ed
On 6/23/23 22:04, Matteo Bernardini wrote:
> Hi Ed,
>
> I start by saying that I don't use sbotools so I don't know how it works.
>
> if you have the possibility to paste the content of
> chromaprint.SlackBuild as cointained in your local repository used by
> sbotools (not the one you downloaded manually) it might help.
>
> FWIW let me say that chromaprint has nothing to do with printers (please
> have a look at its README)...
>
> Matteo
>
> Il giorno sab 24 giu 2023 alle ore 02:43 Ed Fletcher <ed at fletcher.ca
> <mailto:ed at fletcher.ca>> ha scritto:
>
> I don't think so. I've got sbotools v2.7 and didn't make any
> configuration changes. My understanding is that sbo gets the
> version of
> slackware from the system it's running on and uses that to get the
> correct packages. Perhaps from /etc/slackware-version? Mine says
> Slackware 15.0 and doesn't mention 64.
>
> The only place I can find current mentioned is in the README in
> /usr/sbo/repo, which points to
> https://github.com/Ponce/slackbuilds/wiki
> <https://github.com/Ponce/slackbuilds/wiki>
>
> That page mentions configuring the current repository with sbopkg in
> /etc/sbopkg/sbopkg.conf but that page is old, from before 15.0.
>
> I don't have that directory in /etc so I don't see where to point
> sbotools to current.
>
> Thanks for looking at this Matteo. I was hoping it was an easy fix. I
> don't need it for chromaprint or vlc but I thought it might help me
> with
> my printer.
>
> Ed
>
> On 6/22/23 23:35, Matteo Bernardini wrote:
> > hi Ed,
> >
> > could it be that you have configured with sbotools a repository for
> > Slackware current while you are running slackware 15.0?
> >
> > Matteo
> >
> > Il giorno gio 22 giu 2023 alle ore 23:59 Ed Fletcher
> <ed at fletcher.ca <mailto:ed at fletcher.ca>
> > <mailto:ed at fletcher.ca <mailto:ed at fletcher.ca>>> ha scritto:
> >
> > While using sbo to put vlc on a freshly installed and updated
> > Slackware64-15.0 (sboinstall vlc), the process failed on
> > chromaprint. I
> > tried chromaprint by itself (sboinstall chromaprint) but it
> failed with
> > the same error:
> >
> > In file included from
> > /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:18,
> > from
> /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> > /usr/include/libavcodec/avcodec.h:3047:5: note: declared here
> > 3047 | int avcodec_decode_audio4(AVCodecContext *avctx,
> AVFrame
> > *frame,
> > | ^~~~~~~~~~~~~~~~~~~~~
> > make[2]: *** [src/cmd/CMakeFiles/fpcalc.dir/build.make:76:
> > src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o] Error 1
> > make[1]: *** [CMakeFiles/Makefile2:244:
> > src/cmd/CMakeFiles/fpcalc.dir/all] Error 2
> > make: *** [Makefile:136: all] Error 2
> > Failures:
> > chromaprint: chromaprint.SlackBuild return non-zero
> >
> > What I find strange is that downloading the source and the
> slackbuild
> > let me install it successfully. This let sboinstall finish
> installing
> > vlc. So I have everything working, just left with a puzzle.
> >
> > Ed
> > --
> > Ed Fletcher
> >
> > "When I became a man I put away childish things, including
> the fear of
> > childishness and the desire to be very grown up.”
> > ― C.S. Lewis
> > _______________________________________________
> > SlackBuilds-users mailing list
> > SlackBuilds-users at slackbuilds.org
> <mailto:SlackBuilds-users at slackbuilds.org>
> > <mailto:SlackBuilds-users at slackbuilds.org
> <mailto:SlackBuilds-users at slackbuilds.org>>
> > https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>
> >
> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>>
> > Archives -
> > https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>
> > <https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>>
> > FAQ - https://slackbuilds.org/faq/
> <https://slackbuilds.org/faq/> <https://slackbuilds.org/faq/
> <https://slackbuilds.org/faq/>>
> >
> >
> > _______________________________________________
> > SlackBuilds-users mailing list
> > SlackBuilds-users at slackbuilds.org
> <mailto:SlackBuilds-users at slackbuilds.org>
> > https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>
> > Archives -
> https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>
> > FAQ - https://slackbuilds.org/faq/ <https://slackbuilds.org/faq/>
> >
>
> --
> Ed Fletcher
>
> "When I became a man I put away childish things, including the fear of
> childishness and the desire to be very grown up.”
> ― C.S. Lewis
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> <mailto:SlackBuilds-users at slackbuilds.org>
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>
> Archives -
> https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>
> FAQ - https://slackbuilds.org/faq/ <https://slackbuilds.org/faq/>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
--
Ed Fletcher
"When I became a man I put away childish things, including the fear of
childishness and the desire to be very grown up.”
― C.S. Lewis
More information about the SlackBuilds-users
mailing list