Re: Script to make Slackware Compliant package of xz, deb
Posted: 14 Jul 2016, 03:16
I'm going to put this to good uses I have some xz programs to convert to xzm files.
Porteus User Forum
https://forum.porteus.org/
Code: Select all
guest@porteus:~/Downloads/glabels/glabels$ ls *.xz
barcode-0.99-3-x86_64.pkg.tar.xz
boost-libs-1.60.0-5-x86_64.pkg.tar.xz
db-5.3.28-3-x86_64.pkg.tar.xz
evolution-data-server-3.20.4-1-x86_64.pkg.tar.xz
glabels-3.4.0-1-x86_64.pkg.tar.xz
icu-57.1-1-x86_64.pkg.tar.xz
iec16022-0.2.5-1-x86_64.pkg.tar.xz
json-glib-1.2.0-1-x86_64.pkg.tar.xz
krb5-1.13.4-1-x86_64.pkg.tar.xz
libphonenumber-7.4.3-1-x86_64.pkg.tar.xz
protobuf-2.6.1-2-x86_64.pkg.tar.xz
qrencode-3.4.4-1-x86_64.pkg.tar.xz
guest@porteus:~/Downloads/glabels/glabels$
Code: Select all
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libebook-1.2.so.16: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libqrencode.so.3: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libiec16022.so.0: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libphonenumber.so.7: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libicui18n.so.57: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libjson-glib-1.0.so.0: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libprotobuf.so.9: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libboost_system.so.1.60.0: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
glabels-3: error while loading shared libraries: libdb-5.3.so: cannot open shared object file: No such file or directory
guest@porteus:~$ glabels-3
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gtk.vfs.GPhoto2VolumeMonitor exited with status 127 (g-dbus-error-quark, 25)
** (glabels-3:2839): WARNING **: AT-SPI: Could not obtain desktop path or name
(glabels-3:2839): Gtk-WARNING **: Failed to fetch network locations: The specified location is not mounted
** (glabels-3:2839): WARNING **: atk-bridge: GetRegisteredEvents returned message with unknown signature
** (glabels-3:2839): WARNING **: atk-bridge: get_device_events_reply: unknown signature
** (glabels-3:2839): WARNING **: atk-bridge: get_device_events_reply: unknown signature
guest@porteus:~$
libebook-1.2.so.16
libqrencode.so.3
libiec16022.so.0
libphonenumber.so.7
libicui18n.so.57
libjson-glib-1.0.so.0
libgssapi_krb5.so.2
libprotobuf.so.9
libboost_system.so.1.60.0
libdb-5.3.so
I understand this that was my plan but I wanted to show I did it first then I was going to show how to bundle it.Bogomips wrote:@ Jack
The only thing I can think of, is that there was no need to have a lot of modules. Could have just made one bundle from the txz packages, using the script http://forum.porteus.org/viewtopic.php?f=39&t=3841, If you have any questions how to do it, please post there.
I wanted to make it smaller that why I ask this question but no one to know or don't want to help out cause I don't know.Jack wrote:I have a question can I manually take out the needed lib files needed by glabels and put them in the glabels/lib directory to slim glabels down? This is just a idea and not sure. Here is the lib in question.
libebook-1.2.so.16
libqrencode.so.3
libiec16022.so.0
libphonenumber.so.7
libicui18n.so.57
libjson-glib-1.0.so.0
libgssapi_krb5.so.2
libprotobuf.so.9
libboost_system.so.1.60.0
libdb-5.3.so
Jack wrote: sh xz2txz.sh file-name.xz
sh xz2txz.sh file-name.deb
sh xz2txz.sh file-name.rpm
Code: Select all
sh xz2txz.sh file-name.xz
ln xz2txz.sh deb2xz.sh
sh deb2txz.sh file-name.deb
ln xz2txz.sh rpm2xz.sh
sh rpm2txz.sh file-name.rpm
Code: Select all
guest@porteus:~$ cp p10/Por/rpm2txz.sh .
guest@porteus:~$ ln rpm2txz.sh xz2txz.sh
guest@porteus:~$ ln xz2txz.sh deb2txz.sh
guest@porteus:~$ ls -l *.sh
-rw-r--r-- 3 guest users 5196 Aug 9 20:13 deb2txz.sh
-rw-r--r-- 3 guest users 5196 Aug 9 20:13 rpm2txz.sh
-rw-r--r-- 3 guest users 5196 Aug 9 20:13 xz2txz.sh
guest@porteus:~$ ls -i *.sh
29499 deb2txz.sh 29499 rpm2txz.sh 29499 xz2txz.sh
FURRY_NOVA wrote:Been trying out that script and the updated one.
Looks like an Assertion. Now, an assertion (not readily confirmable) in a bug report without accompanying documentation like diagnostic output to back it up, normally gets short shrift.FURRY_NOVA wrote: I've found that if the contents are inside a sub directory inside the tar.xz, it builds incorrectly. ... but after modifying the fake-root of the tar.xz content, it built the package and added the var folder content correctly.
Further clarification, please.FURRY_NOVA wrote:if the contents are inside a sub directory inside the tar.xz, it builds incorrectly. Low level users wouldn't know about that
To be quite honest, there is usually a dearth of comment or feedback, that these I do as a reference to myself, but sufficiently explanatory as to be shared, syncthing illustrating both points. Ususally not worth the effort to get everything hunky dory for no one to use. However as interest has been shown, will try for improved clarity.FURRY_NOVA wrote:Maybe better to move the script in the first post to make it easier to find, mate.
Code: Select all
/node-v4.6.0-linux-x86/
/node-v4.6.0-linux-x86/include/
/node-v4.6.0-linux-x86/bin/
/node-v4.6.0-linux-x86/share/
/node-v4.6.0-linux-x86/README.md
/node-v4.6.0-linux-x86/lib/
/node-v4.6.0-linux-x86/CHANGELOG.md
/node-v4.6.0-linux-x86/LICENSE
Code: Select all
/install/
/install/doinst.sh
/install/slack-desc
/node-v4.6.0-linux-x86/
/node-v4.6.0-linux-x86/include/
/node-v4.6.0-linux-x86/bin/
/node-v4.6.0-linux-x86/share/
/node-v4.6.0-linux-x86/README.md
/node-v4.6.0-linux-x86/lib/
/node-v4.6.0-linux-x86/CHANGELOG.md
/node-v4.6.0-linux-x86/LICENSE
/./
Code: Select all
guest@porteus:~$ node
bash: node: command not found
guest@porteus:~$
Code: Select all
/node-v4.6.0-linux-x86/include/
/node-v4.6.0-linux-x86/bin/
/node-v4.6.0-linux-x86/share/
/node-v4.6.0-linux-x86/README.md
/node-v4.6.0-linux-x86/lib/
/node-v4.6.0-linux-x86/CHANGELOG.md
/node-v4.6.0-linux-x86/LICENSE
Code: Select all
/include/
/bin/
/share/
/README.md
/lib/
/CHANGELOG.md
/LICENSE
Code: Select all
/install/
/include/
/bin/
/share/
/lib/
/./
Code: Select all
guest@porteus:~$ node
> console.log("hi");
hi
undefined
>