LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2018, 03:54 AM   #1
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Rep: Reputation: 6
Sbopkg and installed SBo-git packages (Not appears)


Hello, when I try to check my installed packages from sbopkg...

When I select : Packages list/uninstall installed SBo-git packages

Appear : No packages found

I do not know how to fix it, I had some packages installed from Sbopkg.


Thanks.
 
Old 06-25-2018, 07:18 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,963

Rep: Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224
can you show the content of sbopkg.conf ?
 
Old 06-25-2018, 09:12 AM   #3
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by willysr View Post
can you show the content of sbopkg.conf ?
My /etc/sbopkg/sbopkg.conf ->

# $Id$
#
# Please read the sbopkg.conf(5) man page for information about this
# configuration file, including an explanation of how to set these
# variables.

# The following variables are used by sbopkg and by the SlackBuild
# scripts themselves. They must be exported for this reason.
export TMP=${TMP:-/tmp/SBo}
export OUTPUT=${OUTPUT:-/tmp}

# The following are variables used by sbopkg. Any of these variables
# could be exported, if desired.

# Path variables
LOGFILE=${LOGFILE:-/var/log/sbopkg/sbopkg-build-log}
QUEUEDIR=${QUEUEDIR:-/var/lib/sbopkg/queues}
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
SRCDIR=${SRCDIR:-/var/cache/sbopkg}

# sbopkg's temporary directory (where its internal temporary files are
# kept and where packages are made prior to being moved to OUTPUT)
# defaults to /tmp/sbopkg.XXXXXX where 'XXXXXX' is a random string. If
# /tmp is not a suitable containing directory, pass in an alternate
# TMPDIR or modify the following variable. This is actually a mktemp(1)
# variable.
export TMPDIR=${TMPDIR:-/tmp}

# Other variables:
CLEANUP=${CLEANUP:-NO}
DEBUG_UPDATES=${DEBUG_UPDATES:-0}
KEEPLOG=${KEEPLOG:-YES}
MKDIR_PROMPT=${MKDIR_PROMPT:-YES}
NICE=${NICE:-10}
REPO_BRANCH=${REPO_BRANCH:-current}
REPO_NAME=${REPO_NAME:-SBo-git}

# The following variable determines if multiple instances of sbopkg can
# be run simultaneously. It is *strongly* recommended that this value be
# set to NO. Do not set it to YES without first reading the
# sbopkg.conf(5) man page.
ALLOW_MULTI=${ALLOW_MULTI:-NO}

# The following variables are required and can be tweaked if desired,
# although this is not recommended. Note: rsync already uses
# --archive, --delete, --no-owner, and --exclude in the main sbopkg
# script so there is no need to add those flags here.
DIFF=${DIFF:-diff}
DIFFOPTS=${DIFFOPTS:--u}
RSYNCFLAGS="${RSYNCFLAGS:---verbose --timeout=30}"
WGETFLAGS="${WGETFLAGS:--c --progress=bar:force --timeout=30 --tries=5}"

# SRC_REPO defaults to "http://slackware.uk/sbosrcarch". To use
# a different repository, uncomment and edit this variable. The value
# must be the URL of the directory containing the by-name and by-md5
# sub directories, and should NOT have a trailing slash.
# SRC_REPO="http://slackware.uk/sbosrcarch"
 
Old 06-25-2018, 09:27 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,701

Rep: Reputation: Disabled
What is the output of this command (to show the installed third-party packages)
Code:
 $ ls -la /var/lib/pkgtools/packages/ | grep -v [1-9]$
I assume you have the latest current updates installed
 
1 members found this post helpful.
Old 06-25-2018, 09:30 AM   #5
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by ponce View Post
What is the output of this command (to show the installed third-party packages)
Code:
 $ ls -la /var/lib/pkgtools/packages/ | grep -v [1-9]$
I assume you have the latest current updates installed

I have multilib and current:

bash-4.4# ls -la /var/lib/pkgtools/packages/ | grep -v [1-9]$
drwxr-xr-x 2 root root 90112 jun 25 15:21 .
drwxr-xr-x 5 root root 4096 jun 19 23:13 ..
-rw-r--r-- 1 root root 12888 jun 20 15:46 bleachbit-1.12-x86_64-1ponce
-rw-r--r-- 1 root root 109807 jun 11 19:35 codeblocks-17.12-x86_64-1ponce
-rw-r--r-- 1 root root 984 jun 3 17:07 compat32-tools-3.7-noarch-19alien
-rw-r--r-- 1 root root 258468 jun 23 11:42 eric-4.5.25-x86_64-1ponce
-rw-r--r-- 1 root root 48108 jun 3 16:57 gcc-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 1205 jun 3 17:07 gcc-brig-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 44314 jun 3 16:57 gcc-g++-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2537 jun 3 16:57 gcc-gfortran-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 251963 jun 3 16:57 gcc-gnat-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 21039 jun 3 16:57 gcc-go-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 2275 jun 3 16:57 gcc-objc-7.3.0_multilib-x86_64-2alien
-rw-r--r-- 1 root root 34388 jun 17 17:00 glibc-2.27_multilib-x86_64-4alien
-rw-r--r-- 1 root root 515115 jun 17 17:00 glibc-i18n-2.27_multilib-x86_64-4alien
-rw-r--r-- 1 root root 1324 jun 17 17:00 glibc-profile-2.27_multilib-x86_64-4alien
-rw-r--r-- 1 root root 15613 jun 17 17:00 glibc-solibs-2.27_multilib-x86_64-4alien
-rw-r--r-- 1 root root 924 jun 25 09:30 neofetch-5.0.0-noarch-1ponce
-rw-r--r-- 1 root root 5116 jun 24 19:00 pkgtools-15.0-noarch-20
-rw-r--r-- 1 root root 252068 jun 3 23:17 qt-4.8.7-x86_64-10
-rw-r--r-- 1 root root 2006 jun 25 09:44 sbopkg-0.38.1-noarch-1_wsr
-rw-r--r-- 1 root root 21922 jun 24 20:02 slack-wallpapers-0.446-noarch-1ponce
-rw-r--r-- 1 root root 1460 jun 20 10:19 slackpkg+-1.7.0-noarch-8mt
-rw-r--r-- 1 root root 537379 jun 3 18:22 tetex-3.0-x86_64-10
-rw-r--r-- 1 root root 205837 jun 3 18:22 tetex-doc-3.0-x86_64-10
-rw-r--r-- 1 root root 6578 jun 25 09:31 uget-2.2.1-x86_64-1ponce
-rw-r--r-- 1 root root 5489 jun 15 20:09 unrar-5.6.1-x86_64-1ponce
-rw-r--r-- 1 root root 162299 jun 11 19:08 wxPython-2.8.12.1-x86_64-2ponce
-rw-r--r-- 1 root root 1109 jun 3 23:27 xf86-video-tseng-1.2.5-x86_64-10
 
Old 06-25-2018, 11:58 AM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,701

Rep: Reputation: Disabled
can you please post also the output of
Code:
$ cat /etc/sbopkg/repos.d/60-SBo-current.repo
 
1 members found this post helpful.
Old 06-25-2018, 02:07 PM   #7
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by ponce View Post
can you please post also the output of
Code:
$ cat /etc/sbopkg/repos.d/60-SBo-current.repo

bash-4.4# cat /etc/sbopkg/repos.d/60-SBo-current.repo
# DO NOT EDIT THIS FILE. CHANGES WILL BE OVERWRITTEN. See the README.
# Repo Branch Description Tag Tool Link CheckGPG
SBo-git current "UNSUPPORTED SBo git repository for -current" ponce git git://github.com/Ponce/slackbuilds.git@current ""
 
Old 06-25-2018, 02:28 PM   #8
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,701

Rep: Reputation: Disabled
This happens because with the recent updates to the package database in current sbopkg must be patched: modify /usr/sbin/sbopkg like this
Code:
--- sbopkg.orig 2018-06-25 21:23:47.300310594 +0200
+++ sbopkg      2018-06-25 21:26:03.206316744 +0200
@@ -491,7 +491,7 @@
     # least for right now, this is purely an auxilary function called from
     # list_packages().

-    find /var/log/packages -type f -name "*$REPO_TAG" \
+    find /var/log/packages/ -type f -name "*$REPO_TAG" \
         -printf "%P\n" 2> /dev/null | sort > $PKG_LIST
     sed 's/$/ "" OFF/' $PKG_LIST > $PKG_CHECKLIST
     nvabt2n $PKG_LIST $README_LIST
@@ -694,7 +694,7 @@
     # Reading from $substitutions...
     while read CANDIDATE; do
         [[ -z "$CANDIDATE" ]] && continue
-        INSTALLED=$(ls /var/log/packages |
+        INSTALLED=$(ls /var/log/packages/ |
             grep -x "$CANDIDATE-[^-]*-[^-]*-[^-]*")
         if [[ -n "$INSTALLED" ]]; then
             # Old-named installed package found, assume this is the correct
@@ -1236,7 +1236,7 @@
     while :; do
         # we use GNU grep extensions rather than egrep to avoid issues with
         # the '+' metacharacter which can be found in package names
-        INSTALLEDPACKAGE=$(ls /var/log/packages |
+        INSTALLEDPACKAGE=$(ls /var/log/packages/ |
             grep "^\($APP\|$OLDPKG\)-[^-]*-[^-]*-[^-]*\$")
         # Only get the first package (not that the same package should be
         # installed more than once on a sane system...)
@@ -2115,7 +2115,7 @@
         # note that this regex was missing the ^ as of r826 and this caused a
         # false match when running 'sbopkg -k -i queue' because 'foo' and
         # 'libfoo' matched
-        INSTALLED=$(ls -1 /var/log/packages |
+        INSTALLED=$(ls -1 /var/log/packages/ |
             grep "^$APP-[^-]*-[^-]*-[^-]*$REPO_TAG$")
         if [[ -n $INSTALLED ]]; then
             VERSION=$(sed 's:^.*-\([^-]*\)-[^-]*-[^-]*$:\1:'<<<$INSTALLED)
 
5 members found this post helpful.
Old 06-26-2018, 03:02 AM   #9
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by ponce View Post
This happens because with the recent updates to the package database in current sbopkg must be patched: modify /usr/sbin/sbopkg like this
Code:
--- sbopkg.orig 2018-06-25 21:23:47.300310594 +0200
+++ sbopkg      2018-06-25 21:26:03.206316744 +0200
@@ -491,7 +491,7 @@
     # least for right now, this is purely an auxilary function called from
     # list_packages().

-    find /var/log/packages -type f -name "*$REPO_TAG" \
+    find /var/log/packages/ -type f -name "*$REPO_TAG" \
         -printf "%P\n" 2> /dev/null | sort > $PKG_LIST
     sed 's/$/ "" OFF/' $PKG_LIST > $PKG_CHECKLIST
     nvabt2n $PKG_LIST $README_LIST
@@ -694,7 +694,7 @@
     # Reading from $substitutions...
     while read CANDIDATE; do
         [[ -z "$CANDIDATE" ]] && continue
-        INSTALLED=$(ls /var/log/packages |
+        INSTALLED=$(ls /var/log/packages/ |
             grep -x "$CANDIDATE-[^-]*-[^-]*-[^-]*")
         if [[ -n "$INSTALLED" ]]; then
             # Old-named installed package found, assume this is the correct
@@ -1236,7 +1236,7 @@
     while :; do
         # we use GNU grep extensions rather than egrep to avoid issues with
         # the '+' metacharacter which can be found in package names
-        INSTALLEDPACKAGE=$(ls /var/log/packages |
+        INSTALLEDPACKAGE=$(ls /var/log/packages/ |
             grep "^\($APP\|$OLDPKG\)-[^-]*-[^-]*-[^-]*\$")
         # Only get the first package (not that the same package should be
         # installed more than once on a sane system...)
@@ -2115,7 +2115,7 @@
         # note that this regex was missing the ^ as of r826 and this caused a
         # false match when running 'sbopkg -k -i queue' because 'foo' and
         # 'libfoo' matched
-        INSTALLED=$(ls -1 /var/log/packages |
+        INSTALLED=$(ls -1 /var/log/packages/ |
             grep "^$APP-[^-]*-[^-]*-[^-]*$REPO_TAG$")
         if [[ -n $INSTALLED ]]; then
             VERSION=$(sed 's:^.*-\([^-]*\)-[^-]*-[^-]*$:\1:'<<<$INSTALLED)

The file /usr/sbin/sbopkg have 4920 lines of code, where I put the patch?

Thanks.
 
1 members found this post helpful.
Old 06-26-2018, 03:21 AM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,701

Rep: Reputation: Disabled
the blocks where to apply the modifications are indicated in the patch (lines 491, 694 and 1236, actually three lines below the beginning of the blocks): they consist in just a slash added after the path "/var/log/packages" in three different lines.

Last edited by ponce; 06-26-2018 at 03:32 AM.
 
2 members found this post helpful.
Old 06-26-2018, 04:04 AM   #11
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 55

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by ponce View Post
the blocks where to apply the modifications are indicated in the patch (lines 491, 694 and 1236, actually three lines below the beginning of the blocks): they consist in just a slash added after the path "/var/log/packages" in three different lines.

It works perfectly, thanks Ponce.
 
Old 07-22-2018, 03:47 AM   #12
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 99

Rep: Reputation: 11
Somewhere I can get a prepatched version, I have this same issue or can someone give me a patch line for doing this?

NVM, did it already thanks

Last edited by dTd; 07-22-2018 at 03:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to rebuild all SBo packages installed on the system joenew Slackware 43 06-22-2018 05:45 PM
Can sbopkg track packages installed from other repositories? giomat Slackware 3 04-23-2018 12:07 PM
sbopkg and packages outside of SBo solarfields Slackware 1 03-22-2016 11:56 AM
[SOLVED] Keeping updated the packages installed via sbopkg. A couple of questions. disco_slack Slackware 8 07-19-2011 11:03 AM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM

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

All times are GMT -5. The time now is 09:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration