LinuxQuestions.org
Visit Jeremy's Blog.
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 03-19-2022, 01:27 AM   #1
DaBrze
LQ Newbie
 
Registered: Mar 2018
Location: Lodz, PL
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
SBOTOOLS - patch for Slackware 15.0


Hi,

I recently noticed that sbotools does not properly recognize Slackware 15.0. As a result, when this version is defined in sbtools.conf, the current git repository is still used. Before a developer releases a new version of sbotools, the correct repo must be directly defined in the sbotools.conf file instead of the version number. As a temporary solution, I created a small patch for sbotools SlackBuild to overcome this problem.

Code:
diff -ruN a/sbotools/15.0.patch b/sbotools/15.0.patch
--- a/sbotools/15.0.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/sbotools/15.0.patch	2022-03-18 21:30:09.011858824 +0100
@@ -0,0 +1,14 @@
+diff -ruN a/SBO-Lib/lib/SBO/Lib/Util.pm b/SBO-Lib/lib/SBO/Lib/Util.pm
+--- a/SBO-Lib/lib/SBO/Lib/Util.pm	2019-04-28 18:34:19.000000000 +0200
++++ b/SBO-Lib/lib/SBO/Lib/Util.pm	2022-03-18 21:26:42.729869947 +0100
+@@ -205,8 +205,8 @@
+   '14.0' => 'rsync://slackbuilds.org/slackbuilds/14.0/',
+   '14.1' => 'rsync://slackbuilds.org/slackbuilds/14.1/',
+   '14.2' => 'rsync://slackbuilds.org/slackbuilds/14.2/',
+-  '14.2+' => 'https://github.com/Ponce/slackbuilds.git',
+-  '15.0' => 'https://github.com/Ponce/slackbuilds.git',
++  '15.0' => 'rsync://slackbuilds.org/slackbuilds/15.0/',
++  '15.0+' => 'https://github.com/Ponce/slackbuilds.git',
+   current => 'https://github.com/Ponce/slackbuilds.git',
+ );
+
diff -ruN a/sbotools/sbotools.SlackBuild b/sbotools/sbotools.SlackBuild
--- a/sbotools/sbotools.SlackBuild	2022-03-11 06:34:47.000000000 +0100
+++ b/sbotools/sbotools.SlackBuild	2022-03-18 21:38:53.233830555 +0100
@@ -8,7 +8,7 @@

 PRGNAM=sbotools
 VERSION=${VERSION:-2.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}

@@ -36,6 +36,7 @@
 rm -rf $SRCNAM-$VERSION
 tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
 cd $SRCNAM-$VERSION
+patch -p1 < $CWD/15.0.patch
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
 
Old 03-31-2022, 04:09 PM   #2
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 115

Rep: Reputation: Disabled
Have you considered opening an issue for this or doing a PR at https://github.com/pink-mist/sbotools?
 
2 members found this post helpful.
Old 04-12-2022, 12:16 AM   #3
OTB
Member
 
Registered: Jul 2019
Distribution: Slackware 15
Posts: 43

Rep: Reputation: 110Reputation: 110
I wasn’t aware that sbotools was having this issue but I’ve actually been adding the url from the Slackware.uk mirror for Slackware 15 directly into sbotools.conf, just in case of problems. It’s been a while since the last release and there doesn’t appear to have been much activity on the git page of sbotools.
 
1 members found this post helpful.
Old 07-09-2022, 12:20 PM   #4
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
It would be good if sbotools gets some maintenance, but as OTB mentioned another way of fixing this is to set REPO in /etc/sbotools/sbotools.conf
For example:
Code:
REPO=https://gitlab.com/SlackBuilds.org/slackbuilds.git
or whichever mirror you like to use.
 
  


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
sbotools following files missing from kit Altiris Slackware - ARM 2 06-15-2015 07:13 AM
announcement: sbotools - scripts to interface with slackbuilds.org d4wnr4z0r Slackware 0 06-01-2012 05:45 PM

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

All times are GMT -5. The time now is 05:15 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