Page 1 of 2
slpkg & tar2xzm > txz2xzm
Posted: 02 Apr 2019, 03:44
by Ed_P
So I've downloaded slpkg-3.4.2.tar.gz, extracted slpkg-3.4.2.tar and as both guest and root tried to convert it to a xzm module using tar2xzm. Surprise, Porteus doesn't have a tar2xzm function. I thought it did.
So, how do I create a slpkg xzm module??
tar2xzm
Posted: 02 Apr 2019, 05:13
by donald
So, how do I create a slpkg xzm module?
Hi Ed
Activate 05-devel.xzm
Download the SlackBuild archive and extract it.
https://slackbuilds.org/repository/14.2/system/slpkg/
After extracting the slpkg.tar.gz archive, you should have the following directory tree:
./slpkg
|-- README
|-- slpkg.info
|-- slpkg.SlackBuild
|-- slack-desc
|-- doinst.sh
Next, download the source of the application slpkg-3.4.2.tar.gz
and place it in the slpkg directory listed above.
Make the script executable with chmod if necessary:
chmod +x slpkg.SlackBuild
Then run the script (as root):
./slpkg.SlackBuild
slackware package (*.tgz) will be in /tmp -- run
tgz2xzm txz2xzm
Or, much easier,
Activate 05-devel.xzm and run:
Code: Select all
root@porteus:/home/guest# usm sbo -s slpkg
tar2xzm
Posted: 02 Apr 2019, 10:21
by beny
tar2xzm
Posted: 02 Apr 2019, 10:36
by Kulle
Hi Donald,
I did the following
1.) activate 05-devel.xzm
2.) usm sbo -s slpkg
result:
Slackware package /tmp/slpkg-3.4.2-x86_64-1_SBo.tgz created.
3.) txz2xzm
result:
slpkg-3.4.2-x86_64-1_SBo.xzm
4.) activate and run in terminal
Code: Select all
guest@porteus:~$ slpkg
Traceback (most recent call last):
File "/usr/bin/slpkg", line 35, in <module>
from slpkg.main import main
File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 60, in <module>
from slpkg.sbo.network import SBoNetwork
File "/usr/lib64/python2.7/site-packages/slpkg/sbo/network.py", line 27, in <module>
import pydoc
ImportError: No module named pydoc
A python2.7 error like here:
gespeaker: python-error
tar2xzm
Posted: 02 Apr 2019, 14:52
by Ed_P
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# usm -g slpkg
Nothing found for: slpkg
donald wrote: ↑02 Apr 2019, 05:13
Or, much easier,
Activate 05-devel.xzm and run:
Code: Select all
root@porteus:/home/guest# usm sbo -s slpkg
Wow, thank you
donald.
Did as you suggested.
Code: Select all
root@porteus:/home/guest# usm sbo -s slpkg
NAME : slpkg
CATEG: system
DESC :
VERS : 3.4.2
Would you like to attempt to build this from source? [y/n]
Downloading: slpkg.tar.gz DONE
/tmp/usmsbo /home/guest
Downloading: slpkg-3.4.2.tar.gz DONE
slpkg-3.4.2/
slpkg-3.4.2/.gitignore
slpkg-3.4.2/.travis.yml
:
:
Many, many, many more lines
:
:
usr/lib64/python2.7/site-packages/slpkg/binary/greps.py
usr/lib64/python2.7/site-packages/slpkg/binary/dependency.py
usr/lib64/python2.7/site-packages/slpkg/binary/check.py
usr/lib64/python2.7/site-packages/slpkg/binary/__init__.py
Slackware package /tmp/slpkg-3.4.2-x86_64-1_SBo.tgz created.
root@porteus:/home/guest#
Code: Select all
root@porteus:/home/guest# cd /tmp
root@porteus:/tmp# tgz2xzm *.tgz
bash: tgz2xzm: command not found
root@porteus:/tmp#
tar2xzm
Posted: 02 Apr 2019, 17:02
by donald
@ Ed
Command is txz2xzm (Work with txz/tgz packages). Sorry Ed.
@ Kulle
Python 2.7 is missing.
@ beny
Thanks!
tar2xzm
Posted: 02 Apr 2019, 17:12
by Ed_P
donald wrote: ↑02 Apr 2019, 17:02
Command is
txz2xzm (Work with txz/tgz packages). Sorry Ed.
No problem, I mistype things all the time.
Code: Select all
root@porteus:/tmp# txz2xzm *.tgz
Verifying package slpkg-3.4.2-x86_64-1_SBo.tgz.
Installing package slpkg-3.4.2-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# slpkg (Slackware Packaging Tool)
#
# Slpkg is a powerful software package manager that installs, updates
# and removes packages on Slackware based systems. It automatically
# computes dependencies and figures out what things should occur
# to install packages. Slpkg makes it easier to maintain groups of
# of machines without having to manually update.
#
# Homepage: https://dslackw.gitlab.io/slpkg
#
Executing install script for slpkg-3.4.2-x86_64-1_SBo.tgz.
Package slpkg-3.4.2-x86_64-1_SBo.tgz installed.
Creating /tmp/slpkg-3.4.2-x86_64-1_SBo.xzm
root@porteus:/tmp#
Thank you
donald.
tar2xzm
Posted: 02 Apr 2019, 20:10
by Rava
Ed_P, mind uploading slpkg-3.4.2-x86_64-1_SBo.xzm for others to use?
tar2xzm
Posted: 02 Apr 2019, 20:13
by Ed_P
Since it's easy to create it I don't see much need for that.
Besides...
Code: Select all
guest@porteus:~$ slpkg
Traceback (most recent call last):
File "/usr/bin/slpkg", line 35, in <module>
from slpkg.main import main
File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 60, in <module>
from slpkg.sbo.network import SBoNetwork
File "/usr/lib64/python2.7/site-packages/slpkg/sbo/network.py", line 27, in <module>
import pydoc
ImportError: No module named pydoc
guest@porteus:~$ su
Password:
root@porteus:/home/guest# slpkg
Traceback (most recent call last):
File "/usr/bin/slpkg", line 35, in <module>
from slpkg.main import main
File "/usr/lib64/python2.7/site-packages/slpkg/main.py", line 60, in <module>
from slpkg.sbo.network import SBoNetwork
File "/usr/lib64/python2.7/site-packages/slpkg/sbo/network.py", line 27, in <module>
import pydoc
ImportError: No module named pydoc
root@porteus:/home/guest# ls -d /mnt/live/memory/images/05*
/mnt/live/memory/images/05-devel.xzm/
root@porteus:/home/guest# python
Python 2.7.14 (default, Sep 22 2017, 11:31:09)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+ Stopped python
root@porteus:/home/guest#
root@porteus:/home/guest# ls /usr/lib64/python2.7/site-packages/slpkg/sbo/n*
/usr/lib64/python2.7/site-packages/slpkg/sbo/network.py
/usr/lib64/python2.7/site-packages/slpkg/sbo/network.pyc
root@porteus:/home/guest# cat /usr/lib64/python2.7/site-packages/slpkg/sbo/network.py
:
:
25. import os
26. import sys
27. import pydoc
:
:
tar2xzm
Posted: 03 Apr 2019, 00:10
by ncmprhnsbl
pydoc is part of python2.7 that gets removed in the stripping process(because it's not used by much)
here's an xzm module(for x86_64):
pydoc.xzm
there's a good chance slkpkg might need some other python modules.. run and see..
tar2xzm
Posted: 03 Apr 2019, 00:40
by Ed_P
Code: Select all
guest@porteus:~$ slpkg
slpkg: Error: Must have root privileges
guest@porteus:~$ su
Password:
root@porteus:/home/guest# slpkg
Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
Commands:
[update, --repositories=[...]]
[upgrade, --repositories=[...]]
[repo-add [repository name] [URL]]
[repo-remove [repository]]
:
:
:
[-d [package...]]
For more information try 'slpkg -h, --help' or view manpage
root@porteus:/home/guest# slpkg -h
slpkg - version 3.4.2 | Slackware release: stable - 14.2
Slpkg is a user-friendly package manager for Slackware installations
Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
_ _
___| |_ __ | | ____ _
/ __| | '_ \| |/ / _` |
\__ \ | |_) | < (_| |
|___/_| .__/|_|\_\__, |
|_| |___/
_Slackware package manager_______
Commands:
:
:
:
Thank you
ncmp.
tar2xzm
Posted: 03 Apr 2019, 15:11
by Ed_P
ncmp your pydoc module contains 3 pydoc files; pydoc.py, pydoc.pyc and pydoc.pyo. Are all 3 needed?
(BTW I did a Rava and renamed your module to 005-pydoc.xzm since it is related to Porteus's python which is in 005-devel.xzm.
)
tar2xzm
Posted: 03 Apr 2019, 15:27
by Kulle
Thank you ncmprhnsbl.
slpkg-3.4.2-x86_64-1_SBo.xzm + pydoc.xzm works.
But pydoc.xzm does not work here:
gespeaker: python-error
Why? what can I do?
slpkg & tar2xzm > txz2xzm
Posted: 04 Apr 2019, 06:03
by ncmprhnsbl
Ed_P wrote: ↑03 Apr 2019, 15:11
ncmp your pydoc module contains 3 pydoc files; pydoc.py, pydoc.pyc and pydoc.pyo. Are all 3 needed?
good question... don't know ... a process of elimination might tell you...
slpkg & tar2xzm > txz2xzm
Posted: 04 Apr 2019, 23:24
by Ed_P
I renamed /usr/lib64/python2.7/pydoc.pyc and pydoc.pyo to pydocX.pyc and pydocX.pyo and slpkg still works.