Script to make Slackware Compliant package of xz, deb
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#16 by Jack » 14 Jul 2016, 03:16
Jack
- francois
- Contributor
- Posts: 6514
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Script to make Slackware Compliant package of xz, deb
Post#17 by francois » 15 Jul 2016, 00:24
Give some details on what you did with bogomips scripts. This will encourage the use of his script.

And this is good to keep us with slackware.

francois
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#18 by Jack » 15 Jul 2016, 03:49
Here what I type to get it to work sh xz2txz.sh file name.xz after done then I type txz2xzm file name.txz to be a modules for Porteus Mate 64bit.
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:~$
Jack
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#19 by Jack » 16 Jul 2016, 03:49
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
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Script to make Slackware Compliant package of xz, deb
Post#20 by Bogomips » 16 Jul 2016, 20:52
Don't fully understand your question, so will need full description of what you are doing, and how you are going to use the end result, in as many words as possible.

NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#21 by Jack » 16 Jul 2016, 21:32
I use your script to convert xz to txz and I use Arch Linux to find the dependencies for glabels. Then I use tzx2xzm to creeate them to Porteus modules. The one I built was 27.3M which was big but I use the Lib files which I posted I think it a little over 7m in size but I don't that can be done that way.
I posted how I did it and thought it was enough for some one to use to build there own glabels if they wanted too.
Jack
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Script to make Slackware Compliant package of xz, deb
Post#22 by Bogomips » 17 Jul 2016, 13:12
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.

NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#23 by Jack » 17 Jul 2016, 15:10
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.
Jack
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#24 by Jack » 17 Jul 2016, 15:18
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
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Re: Script to make Slackware Compliant package of xz, deb
Post#25 by Jack » 09 Aug 2016, 16:14
I see this script can do xz, deb and rpm.
example:
sh xz2txz.sh file-name.xz
sh xz2txz.sh file-name.deb
sh xz2txz.sh file-name.rpm
Is those example right way to do them? If not can you show me a example how.
Jack
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Script to make Slackware Compliant package of xz, deb
Post#26 by Bogomips » 09 Aug 2016, 18:34
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
TO DO: Improve naming. Some packages names coming out funny, but they will work.
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
- FURRY_NOVA
- Black ninja
- Posts: 84
- Joined: 11 Aug 2016, 17:26
- Distribution: Porteus XFCE v3.2 i586
- Location: United Kingdom
Re: Script to make Slackware Compliant package of xz, deb
Post#27 by FURRY_NOVA » 06 Oct 2016, 01:36
Maybe better to move the script in the first post to make it easier to find, mate.


FURRY_NOVA
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Script to make Slackware Compliant package of xz, deb
Post#28 by Bogomips » 08 Oct 2016, 13:15
FURRY_NOVA wrote:Been trying out that script and the updated one.
- The Good News
That's what we like to see: comment/feedback. - The Bad News
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.- The leg work having been done, it should not have taken too much extra effort to provide the offending output backing up the above assertion.
- How to get the tar.xz in question, also helps.
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.
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
- Ed_P
- Contributor
- Posts: 8957
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Script to make Slackware Compliant package of xz, deb
Post#29 by Ed_P » 08 Oct 2016, 15:40
.

Having a bit of a down day Bogomips!! Come on cheer up, the day will get better.


Ed_P
- FURRY_NOVA
- Black ninja
- Posts: 84
- Joined: 11 Aug 2016, 17:26
- Distribution: Porteus XFCE v3.2 i586
- Location: United Kingdom
Re: Script to make Slackware Compliant package of xz, deb
Post#30 by FURRY_NOVA » 08 Oct 2016, 18:21

Inside the node-v4.6.0-linux-x86.tar.xz package are these directories and contents. I skipped deeper depths to make it readable:
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
When I run your script, the content result is:
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
/./
After converting it to xzm and activating it, the module doesn't work.
Code: Select all
guest@porteus:~$ node
bash: node: command not found
guest@porteus:~$
Current:
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
Then used your script to convert to txz where it shows:
Code: Select all
/install/
/include/
/bin/
/share/
/lib/
/./
Code: Select all
guest@porteus:~$ node
> console.log("hi");
hi
undefined
>

FURRY_NOVA