Script to make Slackware Compliant package of xz, deb

Post tutorials, HOWTO's and other useful resources here.

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

Postby Bogomips » 08 Oct 2016, 22: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, 02: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2162
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

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

Postby brokenman » 08 Oct 2016, 22: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.
brokenman
Site Admin
Site Admin
 
Posts: 5333
Joined: 27 Dec 2010, 04:50
Location: Brazil
Distribution: Porteus v3.2rcX all desktops

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

Postby francois » 11 Oct 2016, 11: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.
User avatar
francois
Contributor
Contributor
 
Posts: 4580
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Previous

Return to Tutorials



Who is online

Users browsing this forum: Google [Bot] and 2 guests