SliTaz SliTaz Forum

You are not logged in.

#651 2025-12-19 09:11:36

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: [Current version (6.0) dev thread] - Usage of SliTaz 4.0 / rolling

Hi Shann, let's see if I understand something.

1) Please bear with me, but although Cook is a useful tool for automating package creation processes, I find it rather difficult to use when searching for compilation errors.

Cook runs a set of scripts following the package's receipt.

When an error occurs during compilation (./configure, make), Cook continues to read the receipt. At that point, since the compilation was not successful, the files needed to create the package are missing. And here, messages appear that have nothing to do with the cause of the compilation error.

The only way to trace the cause is to examine the log in /home/slitaz/log/, hoping that there is information about that error.

2) I cleaned up the wok folder

I changed in /etc/slitaz/cook.conf from:

WOK_URL="http://hg.slitaz.org/wok"

to

WOK_URL=“http://hg.slitaz.org/wok-current”

Given a cook setup wok

I find myself with the wok folder containing the various packages that should be the current ones (current64/slitaz-6-x86_64)

Here, examining the libconfuse receipt, I find that it does not save anything

genpkg_rules()

{

    get_dev_files

}

If I download the package from the repositories with tazpkg and extract it, I find

{

    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/*.so* $fs/usr/lib

}

3)The sane-backends cook fails with:

Creating full cpio archive...                                          Fatto

Restoring original package tree...                                    tar: can't create symlink 'var/www/tazpanel/menu.d/hardware/sane' to '../../sane.cgi'

Summary for: sane-backends 1.0.32

After several attempts, this receipt seems to work just like the one I filled out myself.

# SliTaz package receipt.

PACKAGE="sane-backends"

VERSION="1.0.32"

CATEGORY="system-tools"

SHORT_DESC="Scanner Access Now Easy."

MAINTAINER="pankso@slitaz.org"

LICENSE="GPL2"

WEB_SITE="http://www.sane-project.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"

WGET_URL="https://anduin.linuxfromscratch.org/BLFS/sane/$TARBALL"

CONFIG_FILES="/etc/sane.d"

DEPENDS="jpeg libgphoto2 libltdl tiff zlib"

BUILD_DEPENDS="file autoconf-archive openssl-dev libgphoto2-dev net-snmp-dev jpeg-dev libtool libusb-compat-dev

     tiff-dev zlib-dev automake"

SUGGESTED="gocr imagemagick sane-backends-lang tesseract-ocr"

HOST_ARCH="i486 x86_64"

current_version()

{

    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \

    sed '/tar.gz/!d;s|.*/backends-\(.*\).tar.gz".*|\1|;q'

}

# Rules to configure and make the package.

compile_rules()

{

    # 1.0.24: no longer needed

#    sed -i 's|prefix}/doc|prefix}/share/doc|' configure

    # 1.0.24: no longer needed

#    patch -Np1 -i $stuff/libv4l-0.8.3.patch

    # 1.0.24: no longer needed

    # fix https://bugs.archlinux.org/task/26114

#    patch -Np1 -i $stuff/xerox_mfp_fix_usb_devices.patch

    ./autogen.sh

    ./configure                        \

        --prefix=/usr                    \

                --docdir=/usr/share/doc/$PACKAGE-$VERSION     \

        --sysconfdir=/etc                \

        --localstatedir=/var                \

        --mandir=/usr/share/man                \

        $CONFIGURE_ARGS &&

    make &&

    make -j 1 DESTDIR=$DESTDIR install

    # copy the missing udev rule

    [ ! -d $DESTDIR/etc/udev/rules.d ] &&

        mkdir -p $DESTDIR/etc/udev/rules.d

    cp -a $src/tools/udev/libsane.rules    \

        $DESTDIR/etc/udev/rules.d/55-sane.rules

}

# Rules to gen a SliTaz package suitable for Tazpkg.

genpkg_rules()

{

    mkdir -p $fs/etc/sane.d

    mkdir -p $fs/usr/lib

    mkdir -p $fs/usr/share

    mkdir -p $fs/var/lock/sane

    mkdir -p $fs/var/www/tazpanel/lib

    mkdir -p $fs/var/www/tazpanel/menu.d/hardware

    mkdir -p $fs/var/www/tazpanel/report.d

    mkdir -p $fs/var/www/tazpanel/styles/default/images

    cp -a $install/etc/sane.d    $fs/etc

    cp -a $install/usr/bin        $fs/usr

    cp -a $install/usr/sbin        $fs/usr

    cp -a $install/usr/lib/*.so*    $fs/usr/lib

    cp -a $install/usr/lib/sane    $fs/usr/lib

    cp -a $install/usr/share/sane    $fs/usr/share

    cp $stuff/tazpanel/sane.cgi    $fs/var/www/tazpanel/

    cp $stuff/tazpanel/sane        $fs/var/www/tazpanel/report.d/

    cp $stuff/tazpanel/crop.js    $fs/var/www/tazpanel/lib/

    cp $stuff/tazpanel/drag.gif    $fs/var/www/tazpanel/styles/default/images/

    cp $stuff/tazpanel/sane.cgi    $fs/var/www/tazpanel/menu.d/hardware/sane

    # fix groups and permissions on /var/lock/sane ; add it to scanner group

    chmod 775 "$fs/var/lock/sane"

    chgrp 96 "$fs/var/lock/sane"

    # fix hp officejets

    echo "hpaio" >> "$fs/etc/sane.d/dll.conf"

    cook_config_dotnew

}

post_install()

{

    tazpkg reconfigure udev --root="$1"

    # add group scanner

    if ! grep -q scanner "$1/etc/group"

      then

        chroot "$1/" addgroup -g 96 scanner

    fi

    chroot "$1/" chgrp scanner    /usr/bin/scanimage

    chmod 4750            $1/usr/bin/scanimage

    echo

    echo " ADD user(s) to group scanner to use sane: addgroup <user> scanner"

    rm -f "$1"/var/cache/tazpanel/* 2> /dev/null

    [ -e "$1/var/www/tazpanel/tmp" ] ||

        ln -s /tmp "$1/var/www/tazpanel/tmp"

    config_dotnew "$CONFIG_FILES"

}

Offline

#652 2025-12-19 10:22:43

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: [Current version (6.0) dev thread] - Usage of SliTaz 4.0 / rolling

Hi gibor,

no problem, thanks for report.

Shame on me, i see that don't push changes pending on my local wok (include fix libconfuse receipt).

For sane-backends, i update receipt for autoconf-archive.

I don't see issue for create tarball archive, but think why, you certainly use tar busybox and not tar gnu. package cookutils have now tar as depends (xz installed too, required by tar)

Pack: sane-backends 1.0.32-x86_64

==================================================================================================================

Executing: genpkg_rules

Copying dotnew files...                                                                                  Done

Copying "receipt"...                                                                                     Done

Executing strip on all files...                                                                          Done

  Time: 3.65s. Size: 12364941 B -> 10821013 B. Save: 1508 KB.

Creating the list of files...                                                                            Done

Creating md5sum of files...                                                                              Done

Compressing the FS...                                                                                    Done

Updating receipt sizes...                                                                                Done

Creating full cpio archive...                                                                            Done

Restoring original package tree...                                                                       Done

QA: checking for empty package...                                                                        Done

Removing old package "sane-backends-1.0.32-x86_64.tazpkg"                                                Done

==================================================================================================================

Package "sane-backends-1.0.32-x86_64.tazpkg" created

(current64) root@eretria:/home/slitaz/wok# ls -l sane-backends/taz/sane-backends-1.0.32/fs/var/www/tazpanel/menu.d

/hardware/sane

lrwxrwxrwx    1 root     root            14 Dec 19 10:05 sane-backends/taz/sane-backends-1.0.32/fs/var/www/tazpanel/menu.d/hardware/sane -> ../../sane.cgi

I push pending changes to wok, and push rebuild sane-backends package.

Offline

#653 2025-12-19 11:15:49

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: [Current version (6.0) dev thread] - Usage of SliTaz 4.0 / rolling

No directly related of dev thread, it's about migration plan.

Not sure all stuff are done for January, but in good direction, remain stuff around backup / rsync process (wait provider team about issue happen with iscsi backup storage not connect).

Both servers are installed with softraid. Each locate different DCs.

Below Spice page (wip), deal with websocket proxy to have secure connection and not open wss port.

Ask credentials, and can connect both vm.

In example it's one vm installed on disk and another in live at time

I check in local that all stuff work as expected, specially remote access (through spice), traffic forward and iptables rules, also rules on web server to retrieve real ip and not proxy ip.

[attachment=53558,3768] [attachment=53558,3769] [attachment=53558,3770]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.031 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]