LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2023, 09:04 AM   #241
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Original Poster
Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619

Quote:
Originally Posted by francois.e View Post
How could one use sboui as a gui interface over slpkg package and sbo manager? What one had to provide as info to the custom options?

Would dependency resolution operate?

Thanks.
I don't know anything about those tools, but they could possibly work with sboui. Here are the requirements:
  1. They need to download a copy of the SBo repositority locally. You point to this directory with the repo_dir setting.
  2. They must have suitable commands to plug into sync_cmd, install_cmd, upgrade_cmd, and reinstall_cmd. (Some of these commands can be the same. That's the case with sbopkg, for example, which uses "sbopkg -B -i" for each of the last three commands listed.)
If these requirements are satisfied, dependency resolution will work, since sboui handles that.

Last edited by montagdude; 06-05-2023 at 09:07 AM.
 
Old 06-05-2023, 10:54 AM   #242
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 664
Blog Entries: 1

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
I think you must start by editing this file https://github.com/montagdude/sboui/...c/settings.cpp

for example
Code:
if (package_manager == "sbopkg")
      repo_dir = "/var/lib/sbopkg/SBo/15.0";
    else if (package_manager == "sbotools")
      repo_dir = "/usr/sbo/repo";
+   else if (package_manager == "slpkg")
+     repo_dir = "/var/lib/slpkg/repositories/sbo"; 
    else if (package_manager == "built-in")
      repo_dir = "/var/lib/sboui/repo";
    else

if ( (package_manager != "sbopkg") && (package_manager != "sbotools") &&
-      (package_manager != "built-in") && (package_manager != "custom") )
+      (package_manager != "built-in") && (package_manager != "slpkg") )


if (package_manager == "sbopkg")
      sync_cmd = "sbopkg -r";
+   else if (package_manager == "slpkg")
+     sync_cmd = "slpkg -uy";
    else if (package_manager == "sbotools")
      sync_cmd = "sbosnap update";
    else if (package_manager == "built-in")
      sync_cmd = "sboui-backend update";
    else

if (package_manager == "sbopkg")
      install_cmd = "sbopkg -B -i";
+   else if (package_manager == "slpkg")
+     install_cmd = "slpkg -iy";
    else if (package_manager == "sbotools")
      install_cmd = "sboinstall -r";
    else if (package_manager == "built-in")
      install_cmd = "sboui-backend install -f";
    else


if (package_manager == "sbopkg")
      reinstall_cmd = "sbopkg -B -i";
+   else if (package_manager == "slpkg")
+     reinstall_cmd = "slpkg -iry";
    else if (package_manager == "sbotools")
      reinstall_cmd = "sboinstall --reinstall -r";
    else if (package_manager == "built-in")
      reinstall_cmd = "sboui-backend install -f";
    else
these are some examples... But it not need lot of work. Before start do man slpkg to learn the exactly commands options for each time...

EDIT: this example assume that your /etc/slpkg/repository.toml has default repo SBo repo.

Last edited by rizitis; 06-05-2023 at 11:02 AM.
 
Old 06-05-2023, 04:35 PM   #243
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Original Poster
Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by rizitis View Post
I think you must start by editing this file https://github.com/montagdude/sboui/...c/settings.cpp

for example
Code:
if (package_manager == "sbopkg")
      repo_dir = "/var/lib/sbopkg/SBo/15.0";
    else if (package_manager == "sbotools")
      repo_dir = "/usr/sbo/repo";
+   else if (package_manager == "slpkg")
+     repo_dir = "/var/lib/slpkg/repositories/sbo"; 
    else if (package_manager == "built-in")
      repo_dir = "/var/lib/sboui/repo";
    else

if ( (package_manager != "sbopkg") && (package_manager != "sbotools") &&
-      (package_manager != "built-in") && (package_manager != "custom") )
+      (package_manager != "built-in") && (package_manager != "slpkg") )


if (package_manager == "sbopkg")
      sync_cmd = "sbopkg -r";
+   else if (package_manager == "slpkg")
+     sync_cmd = "slpkg -uy";
    else if (package_manager == "sbotools")
      sync_cmd = "sbosnap update";
    else if (package_manager == "built-in")
      sync_cmd = "sboui-backend update";
    else

if (package_manager == "sbopkg")
      install_cmd = "sbopkg -B -i";
+   else if (package_manager == "slpkg")
+     install_cmd = "slpkg -iy";
    else if (package_manager == "sbotools")
      install_cmd = "sboinstall -r";
    else if (package_manager == "built-in")
      install_cmd = "sboui-backend install -f";
    else


if (package_manager == "sbopkg")
      reinstall_cmd = "sbopkg -B -i";
+   else if (package_manager == "slpkg")
+     reinstall_cmd = "slpkg -iry";
    else if (package_manager == "sbotools")
      reinstall_cmd = "sboinstall --reinstall -r";
    else if (package_manager == "built-in")
      reinstall_cmd = "sboui-backend install -f";
    else
these are some examples... But it not need lot of work. Before start do man slpkg to learn the exactly commands options for each time...

EDIT: this example assume that your /etc/slpkg/repository.toml has default repo SBo repo.
No need to edit the source file. Just set package_manager = custom and set the commands appropriately in ~/.sboui.conf (or via the Options dialog in sboui itself).
 
1 members found this post helpful.
Old 06-06-2023, 01:25 AM   #244
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 664
Blog Entries: 1

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
@montagdude thank you!
1 minute needed from sboui dialog to setup sboui with slpkg and ponce repo for slackware-current.
So now slpkg have ui and sboui support ponce repo for current since slpkg create SLACKBUILD.TXT for ponce current

edit: since I changed repo sboui asked me to hit 's' to updated repo database. it works ok, but since slpkg can support
several repo it update all of them if updates are on. Thats why you can see "alien repo updated" in image 2 . But thats not a problem for sboui it works fine with the default slpkg repo if its SBo or ponce in slpkg repozitories.toml
Attached Thumbnails
Click image for larger version

Name:	sboui-slpkg.png
Views:	30
Size:	130.0 KB
ID:	41153   Click image for larger version

Name:	sboui-slpkg-update.png
Views:	21
Size:	40.7 KB
ID:	41154   Click image for larger version

Name:	sboui-slpkg-reinstall.png
Views:	25
Size:	123.5 KB
ID:	41155   Click image for larger version

Name:	sboui-ok.png
Views:	20
Size:	115.4 KB
ID:	41156  

Last edited by rizitis; 06-06-2023 at 01:30 AM. Reason: explain better
 
1 members found this post helpful.
Old 06-06-2023, 01:39 PM   #245
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Original Poster
Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by rizitis View Post
@montagdude thank you!
1 minute needed from sboui dialog to setup sboui with slpkg and ponce repo for slackware-current.
So now slpkg have ui and sboui support ponce repo for current since slpkg create SLACKBUILD.TXT for ponce current

edit: since I changed repo sboui asked me to hit 's' to updated repo database. it works ok, but since slpkg can support
several repo it update all of them if updates are on. Thats why you can see "alien repo updated" in image 2 . But thats not a problem for sboui it works fine with the default slpkg repo if its SBo or ponce in slpkg repozitories.toml
Great! Glad it worked out with no trouble. Maybe I'll put together a new release with slpkg as one of the ones in the list. Gotta check my TODO list and see if there are any other features or bugs I should address at the same time.
 
2 members found this post helpful.
Old 06-07-2023, 10:55 PM   #246
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Rep: Reputation: 3
@rizitis
Great to hear about slpkg compatibility with sboui. And what about Spman compatibility.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Call for Testers: MATE 1.17 willysr Slackware 25 04-21-2017 12:55 PM
[SOLVED] Call for Testers: MATE 1.14 for -Current willysr Slackware 13 05-27-2016 08:08 AM
Updating w3af to version 1.6.49 in SBo, need testers mralk3 Slackware 3 12-12-2015 05:54 PM
Call for Testers: MATE 1.8 willysr Slackware 137 08-06-2014 01:50 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration