2015-04-29

Slitaz -- get-scripts / tazpkg



Also, the current get script pulls a lot of dependencies: qcad,
which itself pulls many libQt*, nvidia-173xx, mesa-wayland
(which pulls wayland). Do we really need all this stuff?
1.
tux@slitaz:~$ tazpkg info qcad
TazPKG information
=========================================================
Package : qcad
Version : 3.7.5
Category : network
Short desc : The Open Source CAD System For Everyone.
Maintainer : pankso@slitaz.org
License : GPL3
Depends : libQtWebkit libQtGui libQtDesigner libQtXml libQtDeclarative libQtCore libQtScript libQtNetwork libQtClucene libQtOpenGL libQtDBus libQtScriptTools libQtHelp libQtSvg libQtSql libQtTest libQtMultimedia
Web site : http://www.qcad.org
Size : 23M/134.7M
=========================================================



2.
TazPkg: Install
Installing: FoxitReader

Tracking dependencies for package "FoxitReader"

Missing package "qcad"



3.
tux@slitaz:~$ ldd /usr/bin/FoxitReader | grep libqcad*

tux@slitaz:~$ ldd /usr/bin/FoxitReader

/usr/bin/FoxitReader:
 linux-gate.so.1 =>  (0xffffe000)
 libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xf7357000)
 libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xf72b8000)
 libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xf7297000)
 libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xf7285000)
 libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xf7266000)
 libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xf725a000)
 libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xf70ed000)
 libcairo.so.2 => /usr/lib/libcairo.so.2 (0xf6ff0000)
 libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xf6fac000)
 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf6f33000)
 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xf6f01000)
 libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xf6ebf000)
 libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xf6ebc000)
 libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xf6dc9000)
 libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xf6dc6000)
 libcups.so.2 => /usr/lib/libcups.so.2 (0xf6d67000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf6ca1000)
 libm.so.6 => /lib/libm.so.6 (0xf6c74000)
 libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xf6c5c000)
 libc.so.6 => /lib/libc.so.6 (0xf6ae6000)
 libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xf6ae0000)
 libX11.so.6 => /usr/lib/libX11.so.6 (0xf69c4000)
 libpthread.so.0 => /lib/libpthread.so.0 (0xf69a9000)
 libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xf69a6000)
 libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xf699d000)
 libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xf6993000)
 libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xf6990000)
 libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xf698d000)
 libXrender.so.1 => /usr/lib/libXrender.so.1 (0xf6985000)
 libXext.so.6 => /usr/lib/libXext.so.6 (0xf6975000)
 libffi.so.6 => /usr/lib/libffi.so.6 (0xf696e000)
 libpcre.so.1 => /usr/lib/libpcre.so.1 (0xf6934000)
 librt.so.1 => /lib/librt.so.1 (0xf692b000)
 libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0xf68e6000)
 libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0xf68d5000)
 libxml2.so.2 => /usr/lib/libxml2.so.2 (0xf67b9000)
 libdl.so.2 => /lib/libdl.so.2 (0xf67b4000)
 libz.so.1 => /usr/lib/libz.so.1 (0xf67a1000)
 libresolv.so.2 => /lib/libresolv.so.2 (0xf6788000)
 libpng12.so.0 => /usr/lib/libpng12.so.0 (0xf6766000)
 libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xf66dd000)
 libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0xf66da000)
 libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0xf66d8000)
 libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xf66cf000)
 libxcb.so.1 => /usr/lib/libxcb.so.1 (0xf66af000)
 libXau.so.6 => /usr/lib/libXau.so.6 (0xf66ab000)
 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xf66a6000)
 libEGL.so.1 => /usr/lib/libEGL.so.1 (0xf6689000)
 libGL.so.1 => /usr/lib/libGL.so.1 (0xf6630000)
 libcrypt.so.1 => /lib/libcrypt.so.1 (0xf65fd000)
 /lib/ld-linux.so.2 => /lib/ld-2.14.1.so (0xf775d000)
 libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0xf65f8000)
 libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0xf65f1000)
 libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0xf65ed000)
 libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0xf65e4000)
 libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0xf65d7000)
 libgbm.so.1 => /usr/lib/libgbm.so.1 (0xf65d2000)
 libglapi.so.0 => /usr/lib/libglapi.so.0 (0xf65b4000)
 libudev.so.0 => /lib/libudev.so.0 (0xf65a6000)
 libdrm.so.2 => /usr/lib/libdrm.so.2 (0xf659b000)
 libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xf6584000)
 libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xf657f000)

tux@slitaz:~$ 

Slitaz -- javajre


Short answer : try 'tazpkg get-install javajre'
get-scripts are lighter: common parts are in tazpkg.
They are safer: tazpkg automagicaly detects the depends.

root@slitaz:/home/tux# java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object



root@slitaz:/home/tux# tazpkg info javajre
TazPKG information
==============================================================================
Package : javajre
Version : 1.8.0_40
Category : non-free
Short desc : Java Platform Standard Edition Runtime Environment
Maintainer : nobody@slitaz.org
Depends : zlib xorg-libXxf86vm xorg-libXtst xorg-libXrender xorg-libXrandr xorg-libXinerama xorg-libXi xorg-libXfixes xorg-libXext xorg-libXdmcp xorg-libXdamage xorg-libXcursor xorg-libXcomposite xorg-libXau xorg-libX11 qcad pixman pcre pango nvidia-173xx libxslt libxml2 libxcb libpng libgio libffi harfbuzz gtk+ glib-dev glib gdk-pixbuf fontconfig ffmpeg-compat cairo-gl bzlib atk alsa-lib
Web site : http://java.com/en/download/linux_manual.jsp?locale=en
==============================================================================


root@slitaz:/home/tux# uname -a
Linux slitaz 3.2.53-slitaz #4 SMP Wed Mar 25 11:33:01 CET 2015 i686 GNU/Linux


Ref:

Get-scripts are pushed to the get repo on mirror which is mirror/slitaz/packages/get folder.

Tazpkg uses download_get_script function to download get-script from packages/get folder on mirror.
The get-scripts are listed for download in tazpanel/packages -> extra categorie
tazpkg recharge pulls the extra.list with contents of get repo.
I see no way to list or search the extra list from tazpkg.
It appears the user would have to know the exact name of the script to fetch it unless there is a tazpkg of the exact name.

Thanks Pascal!
tazpkg searchs extra.list