Script to make Slackware Compliant package of xz, deb

Post tutorials, HOWTO's and other useful resources here.
Bogomips
Full of knowledge
Full of knowledge
Posts: 2562
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#31 by Bogomips » 08 Oct 2016, 21:19

@FURRY_NOVA Thanks for clarification. There's more than one way to skin a cat! :)
FURRY_NOVA wrote:In the File System, that contains bin, dev, etc and home and stuff. It has a node-v4.6.0-linux-x86 folder. The contents of that folder should be outside in the File System.

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
Should be:

Code: Select all

/include/
/bin/
/share/
/README.md
/lib/
/CHANGELOG.md
/LICENSE
Starting back at the tar.xz. I made the file structure look like the last code area above this paragraph with Xarchiver application. I deleted README.md, CHANGELOG.md and LICENSE since those aren't created in File System when activating other modules. I don't know if they supposed to be places somewhere else though.
The story so far (Have to do better job of renaming. So far sorted the debs.):
  • Code: Select all

    guest@porteus:~$ sh xz2txz.sh -nv node-v4.6.0-linux-x86.tar.xz
    ->  node-v4.6.0-linux-x86.x-z-z-.txz
    <slack-desc>
    node-v4.6.0-linux-x86.tar.x: (node-v4.6.0-linux-x86.tar.xz)
    
    Slackware package maker, version 3.141593.
    
    Searching for symbolic links:
    node-v4.6.0-linux-x86/bin/npm	../lib/node_modules/npm/bin/npm-cli.js
    
    Making symbolic link creation script:
    ( cd node-v4.6.0-linux-x86/bin ; rm -rf npm )
    ( cd node-v4.6.0-linux-x86/bin ; ln -sf ../lib/node_modules/npm/bin/npm-cli.js npm )
    ...
    Removing symbolic links:
    removed './node-v4.6.0-linux-x86/bin/npm'
    ...
    Slackware package /home/guest/node-v4.6.0-linux-x86.x-z-z-.txz created.
    
    Installation Files List: /tmp/Sat_21:50/xz_5845.lst
    ______________________________________________________________________________
    root@porteus:/home/guest# txz2xzm node-v4.6.0-linux-x86.x-z-z-.txz
    Verifying package node-v4.6.0-linux-x86.x-z-z-.txz.
    Installing package node-v4.6.0-linux-x86.x-z-z-.txz:
    PACKAGE DESCRIPTION:
    Executing install script for node-v4.6.0-linux-x86.x-z-z-.txz.
    Package node-v4.6.0-linux-x86.x-z-z-.txz installed.
    
    Creating /home/guest/node-v4.6.0-linux-x86.x-z-z-.xzm
    
    root@porteus:/home/guest# activate node-v4.6.0-linux-x86.x-z-z-.xzm
    Quiet mode: off
    Adding 10 new loop devices
    Updating shared library links:  /sbin/ldconfig
    
  • Code: Select all

    guest@porteus:~$ which node
    which: no node in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/usr/lib/qt/bin:/usr/lib/qt/bin:/usr/lib/qt/bin)
    
    guest@porteus:~$ ls /
    M/    etc/   media/                  opt/   run/   sys/  var/
    bin/  home/  mnt/                    proc/  sbin/  tmp/
    dev/  lib/   node-v4.6.0-linux-x86/  root/  srv/   usr/
    
    guest@porteus:~$ PATH+=:/node-v4.6.0-linux-x86/bin/
    guest@porteus:~$ which node
    /node-v4.6.0-linux-x86/bin/node
    
    guest@porteus:~$ node
    > console.log("hi");
    hi
    undefined
    > guest@porteus:~$
    
    or

    Code: Select all

    guest@porteus:~$ which node
    which: no node in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/usr/lib/qt/bin:/usr/lib/qt/bin:/usr/lib/qt/bin)
    
    guest@porteus:~$ /node-v4.6.0-linux-x86/bin/node 
    > console.log("hi");
    hi
    undefined
    > guest@porteus:~$ 
    
    :wink:
FURRY_NOVA wrote:Then used your script to convert to txz where it shows:

Code: Select all

/install/
/include/
/bin/
/share/
/lib/
/./
Then I txz2xzm it, activated xzm and tried it again:

Code: Select all

guest@porteus:~$ node
> console.log("hi");
hi
undefined
>  
Last edited by Bogomips on 09 Oct 2016, 01:10, edited 1 time in total.
Reason: Alt invoke
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5521
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Script to make Slackware Compliant package of xz, deb

Post#32 by brokenman » 08 Oct 2016, 21:26

I read no malice in Bogomips post at all. Just neutral facts. In fact, if EVERYBODY followed his advice development would come much easier and faster.

It is one thing to just report a bug. (Hey man, XYZ don't work. I tried to start it and it gave an error.)
It is quite another thing to dig deeper, find the error and give advice about fixing it. This is what helps the community more. It is the way Bogomips reports bugs and, for the most part, FURRY_NOVA usually does too. Thanks guys!

PS: I usually don't like to make noise in threads, however, I felt the need here to reinforce correct bug reporting procedure.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Script to make Slackware Compliant package of xz, deb

Post#33 by francois » 11 Oct 2016, 10:18

@brokenman and bogomips:
Agreed upon that topic of being more constructive. This saves work to the developper and help forum members to get a bigger IT IQ. :twisted:
Voltaire: Le mieux est l'ennemi du bien.

Post Reply