sbopkg gui

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

sbopkg gui

Post#31 by beny » 23 Mar 2023, 22:50

francois is nothing i love the whole kernel source,when i compile one kernel...

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#32 by francois » 03 May 2023, 15:54

Hello beny. I am back. I had to resolve a few life problems. I think that what misses here is dealing with PyQt5_sip-12.11.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl. I understand that this package has to be used to produce a PyQt5-5.15.2-x86_64-5.xzm or something like that.
beny wrote:
19 Mar 2023, 18:54
hi francois:I did this to test which software was needed to run sbopkg_gui, so I removed all the modules from the modules directory and put the one you see back in one by one and the list maybe some things are not needed but sbopkg_gui starts without problems now the problem is only for this python package
PyQt5_sip-12.11.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl i had to install it with python-pip i find it in /home/guest/.local/lib/python3.9/site-packages but you have to make a package
you must have a SLACKBUILD.TXT to put in the directory /var/lib/SBo it serves as index for sbopkg_gui the unsquash-v6.2.7 package is the kernel and therefore it doesn't serve the problem and you must have the directory xcb-utils it serves for the problem that does not find the graphics engine ok try and see how it goes, ok when you run the sbopkg the slackbuild.txt is into the directory

Code: Select all

  
PyQt4_gpl_x11-4.12.3.xzm
PyQt5-5.15.2-x86_64-5.xzm
chromium-106.0.5249.91-x86_64-1alien.xzm
ok python-pip-21.3.1-x86_64-2.xzm
python3-3.9.10-x86_64-1.xzm
qt5-5.15.3_20211130_014c375b-x86_64-2.xzm
qt5-webkit-5.212.0_alpha4-x86_64-7.xzm
sbopkg-0.38.2-noarch-1_wsr.xzm
sbopkg_gui-20210512-noarch-1scr.xzm
slapt-get-0.11.8.x86_64.xzm
slapt-src-0.3.7.xzm
unsquahed-v6.2.7.xzm
xcb&co/                                                                            
I am not familiar working with python-pip. Here is the error code:

Code: Select all

root@porteus:/home/guest/Downloads/detruire/porteus# python3 -m pip install PyQt5_sip-12.12.1-cp311-cp311-win_amd64.whl
ERROR: PyQt5_sip-12.12.1-cp311-cp311-win_amd64.whl is not a supported wheel on this platform.
root@porteus:/home/guest/Downloads/detruire/porteus# 
Thanks.
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

sbopkg gui

Post#33 by beny » 03 May 2023, 17:58

hi francois the package you have is for window environment and i think for python3.11
https://www.wheelodex.org/projects/pyqt ... 86_64.whl/
maybe this is better to manage

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#34 by francois » 03 May 2023, 23:44

Hummmm! Thanks to your good eye sight. :)

sbopkg_gui just loaded fine.

Thanks so much. :D
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

sbopkg gui

Post#35 by beny » 04 May 2023, 14:59

hi francois remember that you need the SLACKBUILD.TXT inside the /var/lib/sbopkg/sbo you need it for the slackbuild index on gui,and if someone want to use it with porteux current version,work also for this version but we need to change something on the sbopkg_gui script and instead the sbo package we have to download the ponce one at this link:
https://github.com/Ponce/slackbuilds when ready you have to rename it like SBo-git and put at place we have two line that we have to change like this

Code: Select all

                                                                                           
 def __init__(self, settings):
        self.slackbuilds_dir = '/var/lib/sbopkg/SBo-git'
        self.sbo_tag = '_SBo'
        self.packages_dir = '/var/lib/pkgtools/packages'
        self.terminal_app = 'xterm -e'
and this:
 def load_settings(self):
        self.settings.beginGroup('Configuration')

        if self.settings.contains('slackbuilds_dir'):
            self.slackbuilds_dir = self.get_str('slackbuilds_dir')
        else:
            self.slackbuilds_dir = '/var/lib/sbopkg/SBo-git'
            branches = list()
            if os.path.isdir(self.slackbuilds_dir):
                for name in os.listdir(self.slackbuilds_dir):
                    if os.path.isdir(self.slackbuilds_dir+'/'+name):
                        if os.path.isfile(
                                self.slackbuilds_dir+'/'+name+'/SLACKBUILDS.TXT'):
                            branches.append(name)                                                                 
ps:also the sbopkg when you use with the git version you need to change the branch and the slackware version in sbopkg configure ok this is just for the slackware current version in slackware 15 no worry all work without changes

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#36 by francois » 04 May 2023, 22:01

I am not sure that I understand:
These last recommandations are necessary for sbopkg_gui to work over different sbopkg versions and porteus versions. Thus:

sbopkgMy sbopkg version is from salix (thru getmod wrapper). It is up to date. In /var/lib/sbopkg/SBo/15.0 the SLACKBUILD.TXT is there, not in /var/lib/sbopkg/SBo. I thought that with sbopkg_gui, the update command would simply update all the info of /var/lib/SBo/15.0.

sbopkg git.
For the git version of sbopkg I understand that you have to be sure that it is set to slackware 15 or current.

porteuX fixes.
For porteuX you propose some fixes. I do not work with it yet. So we will see for these users. But what I find interesting is that ponce slackbuilds could be used.
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

sbopkg gui

Post#37 by beny » 04 May 2023, 23:59

this link of ponce is only for slackware current, but maybe work also in slackware 15 ok try to work with,and report if it is ok.

rych
Warlord
Warlord
Posts: 621
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

sbopkg gui

Post#38 by rych » 26 May 2023, 10:48

I have successfully started sbopkg_gui after activating these 4 modules:

Code: Select all

PyQt5-5.15.2-x86_64-5.xzm (using getmod)
sip-4.19.25-x86_64-5.xzm (using getmod)
sbopkg-0.38.2-noarch-1_wsr.xzm (using tgz2xzm)
sbopkg_gui-20210512-noarch-1scr.xzm (using tgz2xzm)
It complained about not finding the SLACKBUILD.TXT and then shows me the GUI.

What else do I need to make it work? My goal is to try and build a working zoom module.

I pressed the Update button and it downloaded SBo into /var/lib/sbopkg/SBo -- a huge 100M folder, make sure you don't save it into changes. It doesn't help anyway: the GUI remains empty. Keeps complaining about SLACKBUILD.TXT

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

sbopkg gui

Post#39 by beny » 26 May 2023, 11:32

hi,https://www.mediafire.com/file/p6vm37pi ... XT.gz/file you have to put the SLACKBUILD.TXT into the sbopkg directory in /var/lib/sbopkg/sbo/15 when you refresh repository give you a backup of this file is mandatory for the packages and deps link

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#40 by francois » 26 May 2023, 14:34

@beny:
How come rych gets sbopkg_gui to work without all the dependencies that we had to add?

@rych:
1) Were you able to get sbopkg_gui to work with beny's suggestion?

2)I cannot reproduce your result with the four packages that you used.

I still get:

Code: Select all

root@porteus:/home/guest# sbopkg_gui
Traceback (most recent call last):
  File "/usr/bin/sbopkg_gui", line 34, in <module>
    from PyQt5.QtCore import Qt, QSettings, QVariant, QPoint, QSize
ModuleNotFoundError: No module named 'PyQt5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/sbopkg_gui", line 43, in <module>
    from PyQt4.QtCore import Qt, QSettings, QVariant, QPoint, QSize
ModuleNotFoundError: No module named 'PyQt4'
root@porteus:/home/guest# 
What desktop are you using and what modules do you have under porteus 5.0?

Thanks.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#41 by francois » 26 May 2023, 14:40

@rych:
spman sbo builder should work to build zoom:

Code: Select all

root@porteus:/home/guest# spman -f zoom
Package name:          xzoom
Repository:            sbo
Version:               0.3_26
Location:              accessibility
Package dependencies:  ---
Description:
xzoom (magnify part of X display, with real-time updates)

Package name:          zoom
Repository:            sbo
Version:               1.1.5
Location:              games
Package dependencies:  ---
Description:
zoom (play interactive fiction games)

Package name:          zoom-linux
Repository:            sbo
Version:               5.14.7.2928
Location:              network
Package dependencies:  ---
Description:
zoom-linux (Video conferencing client)

root@porteus:/home/guest#
See spman:
viewtopic.php?f=53&p=93195

spman is available with getmod:

Code: Select all

root@porteus:/home/guest# getmod -s spman
spman-2.2.3-x86_64-1salix15.0  (Slackware package manager)
root@porteus:/home/guest#
Prendre son temps, profiter de celui qui passe.

rych
Warlord
Warlord
Posts: 621
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

sbopkg gui

Post#42 by rych » 27 May 2023, 10:30

francois wrote:
26 May 2023, 14:34
1) Were you able to get sbopkg_gui to work with beny's suggestion?
Yes. Thank you beny. And I was able to build and install zoom. Again, after activating the qt5-dev-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm for the missing Qt5 libs and running it like so:

Code: Select all

root@porteus:~# LD_LIBRARY_PATH=/opt/zoom/cef      /opt/zoom/zoom
we encounter same incompatibility errors as in viewtopic.php?p=94061#p94061 :

Code: Select all

/opt/zoom/zoom: symbol lookup error: /opt/zoom/zoom: undefined symbol: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEPKcmm, version Qt_5
but this discussion belongs to that thread.

Now, after saving the produced zoom_x86_64.pkg.tar.xz (I wish they added the -5.4.17.2928 to the filename), I press Remove in the sbopkg_gui to see if it cleans up and restores my Porteus to the state before. And voilà! It's all cleaned-up. The .tar.xz. 'module' could be expanded and converted to an xzm I guess, perhaps after removing conflicting Qt5 libs to make zoom actually work.

Anyway, sbopkg_gui works then.
Last edited by rych on 27 May 2023, 10:49, edited 2 times in total.

rych
Warlord
Warlord
Posts: 621
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

sbopkg gui

Post#43 by rych » 27 May 2023, 10:36

francois wrote:
26 May 2023, 14:34
2)I cannot reproduce your result with the four packages that you used.

I still get:

Code: Select all

root@porteus:/home/guest# sbopkg_gui
Traceback (most recent call last):
  File "/usr/bin/sbopkg_gui", line 34, in <module>
    from PyQt5.QtCore import Qt, QSettings, QVariant, QPoint, QSize
ModuleNotFoundError: No module named 'PyQt5'
Oh, that's so strange: it asked for PyQt5, we gave it PyQt5-5.15.2-x86_64-5.xzm! Then on my Porteus 5.0 x64 OpenBox with qt5-base-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm etc. sbopkg_gui runs from root with those 4 xzm modules. Not sure what's different on your system.

rych
Warlord
Warlord
Posts: 621
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

sbopkg gui

Post#44 by rych » 27 May 2023, 10:47

francois wrote:
26 May 2023, 14:40
spman sbo builder should work to build zoom:
maybe but it misses some dependencies to actually run:

Code: Select all

root@porteus:~# spman -f zoom
For some repositories missing files PACKAGES.TXT, SLACKBUILDS.txt or ChangeLog.txt
'spman -u' or 'spman --update' for update libraries.
root@porteus:~# spman -u
Traceback (most recent call last):
  File "/usr/sbin/spman", line 46, in <module>
    sys.exit(start())
  File "/usr/sbin/spman", line 41, in start
    Main().start()
  File "/usr/lib64/python3.9/site-packages/spman/main.py", line 116, in start
    self.commands[self.args[0]]()
  File "/usr/lib64/python3.9/site-packages/spman/main.py", line 149, in update
    from .update import Update
  File "/usr/lib64/python3.9/site-packages/spman/update.py", line 23, in <module>
    from .download import Download
  File "/usr/lib64/python3.9/site-packages/spman/download.py", line 25, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
I know there is a solution in that thread, but why bother when sbopkg_gui works? Which should I pursue, sbopkg_gui or spman? sbopkg_gui is a GUI, and I love buttons Install and Remove.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

sbopkg gui

Post#45 by francois » 27 May 2023, 11:40

@rych:
Do I understand well.
qt5-dev-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm will get sbokpkg_gui to work with the other four packages (libraries) that you had already mentioned?
PyQt5-5.15.2-x86_64-5.xzm (using getmod)
sip-4.19.25-x86_64-5.xzm (using getmod)
sbopkg-0.38.2-noarch-1_wsr.xzm (using tgz2xzm)
sbopkg_gui-20210512-noarch-1scr.xzm (using tgz2xzm)

Where do you get
qt5-dev-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm
:)
Prendre son temps, profiter de celui qui passe.

Post Reply