[Slackbuilds-users] Can't get this build right : trello-cli

Tonus tonus1 at free.fr
Sat Jan 20 16:12:04 UTC 2024


Hi all

I'm trying to update the trello-cli SlackBuild I maintain but fail to 
get it pass the sbopkglint tests.

I tryed to use the stripping binaries lines from the how-to but makes 
the build silently fail.

I don't know either how I should manage the symlinks.

If someone has a pointer or two...

Files are attached, sbopkglint output there :

┗━────◉ sbopkglint /tmp/trello-cli-1.0.6-x86_64-1_SBo.tgz 
Using tests from /usr/share/sbo-maintainer-tools/sbopkglint.d
Exploding /tmp/trello-cli-1.0.6-x86_64-1_SBo.tgz to /tmp/SBo/sbopkglint.cyELrX ...OK
Running pre-doinst test...
--- package contains actual symlinks:
lrwxrwxrwx 1 root root 40 janv. 20 17:04 ./usr/bin/trello -> ../lib64/node_modules/trello-cli/bin/run
lrwxrwxrwx 1 root root 18 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/acorn -> ../acorn/bin/acorn
lrwxrwxrwx 1 root root 22 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/cdl -> ../cardinal/bin/cdl.js
lrwxrwxrwx 1 root root 17 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ejs -> ../ejs/bin/cli.js
lrwxrwxrwx 1 root root 25 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/esparse -> ../esprima/bin/esparse.js
lrwxrwxrwx 1 root root 28 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/esvalidate -> ../esprima/bin/esvalidate.js
lrwxrwxrwx 1 root root 19 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/is-docker -> ../is-docker/cli.js
lrwxrwxrwx 1 root root 18 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/jake -> ../jake/bin/cli.js
lrwxrwxrwx 1 root root 25 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/js-yaml -> ../js-yaml/bin/js-yaml.js
lrwxrwxrwx 1 root root 27 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/json2csv -> ../json2csv/bin/json2csv.js
lrwxrwxrwx 1 root root 23 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/node-which -> ../which/bin/node-which
lrwxrwxrwx 1 root root 26 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/prebuild-install -> ../prebuild-install/bin.js
lrwxrwxrwx 1 root root 12 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/rc -> ../rc/cli.js
lrwxrwxrwx 1 root root 23 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/semver -> ../semver/bin/semver.js
lrwxrwxrwx 1 root root 22 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-node -> ../ts-node/dist/bin.js
lrwxrwxrwx 1 root root 26 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-node-cwd -> ../ts-node/dist/bin-cwd.js
lrwxrwxrwx 1 root root 26 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-node-esm -> ../ts-node/dist/bin-esm.js
lrwxrwxrwx 1 root root 29 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-node-script -> ../ts-node/dist/bin-script.js
lrwxrwxrwx 1 root root 32 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-node-transpile-only -> ../ts-node/dist/bin-transpile.js
lrwxrwxrwx 1 root root 40 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/ts-script -> ../ts-node/dist/bin-script-deprecated.js
lrwxrwxrwx 1 root root 21 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/tsc -> ../typescript/bin/tsc
lrwxrwxrwx 1 root root 26 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/tsserver -> ../typescript/bin/tsserver
lrwxrwxrwx 1 root root 19 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/yarn -> ../yarn/bin/yarn.js
lrwxrwxrwx 1 root root 19 janv. 20 17:04 ./usr/lib64/node_modules/trello-cli/node_modules/.bin/yarnpkg -> ../yarn/bin/yarn.js
FAILED
Installing /tmp/trello-cli-1.0.6-x86_64-1_SBo.tgz to /tmp/SBo/sbopkglint.cyELrX ...OK
Running test: 05-basic-sanity...OK
Running test: 10-docs...OK
Running test: 15-noarch...OK
Running test: 20-arch...
--- ELF object(s) not stripped:
-rwxr-xr-x 1 tonus 127 2038672 janv. 17 01:27 usr/lib64/node_modules/trello-cli/node_modules/better-sqlite3/build/Release/better_sqlite3.node
FAILED
Running test: 25-lafiles...OK
Running test: 30-manpages...OK
Running test: 35-desktop...OK
Running test: 40-newconfig...OK
Running test: 45-doinst...OK
Running test: 50-icons...OK
Running test: 60-usr_info...OK
Running test: 65-python...OK
Running test: 70-tmp_path...OK
Running test: 75-static_libs...OK
Running test: 85-perl...OK
!!! trello-cli-1.0.6-x86_64-1_SBo.tgz: 2 failures

-- 
Regards,

Tonus
-------------- next part --------------
#!/bin/bash

# Slackware build script for trello-cli

# Copyright 2020 Tonus
# 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=trello-cli
VERSION=${VERSION:-1.0.6}
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}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd package
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 {} \;

DESTDIR=$PKG npm install -g $CWD/$PRGNAM-$VERSION.tgz

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
  README.md \
  $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 n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
-------------- next part --------------
PRGNAM="trello-cli"
VERSION="1.0.6"
HOMEPAGE="https://github.com/mheap/trello-cli/"
DOWNLOAD="https://registry.npmjs.org/trello-cli/-/trello-cli-1.0.6.tgz"
MD5SUM="2c35fd4b8327a38229d3db96833c9ac6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="google-go-lang nodejs"
MAINTAINER="Tonus"
EMAIL="tonus1 at free.fr"


More information about the SlackBuilds-users mailing list