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 12-31-2019, 02:45 PM   #16
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619

Quote:
Originally Posted by bamunds View Post
My 0.38.1 version of /usr/sbin/sbopkg has more than three spots with /var/log/packages. Do they all need to be changed? Or is the logic for those three line instances the only critical ones? Thanks for the heads up. I wonder if anyone passed this on willysr? Cheers,
Willy already fixed it, there just hasn't been a new release yet.

Edit: nevermind, I see your edit.
 
Old 12-31-2019, 04:52 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by bamunds View Post
0.38.1 version for stable, /usr/sbin/sbopkg has more than three spots with /var/log/packages.
First is this even an issue for stable?
No, this works fine on 14.2. The issue is with /var/log/packages being a symlink to /var/lib/pkgtools/packages on -current, if you do an ls on /var/log/packages, it will show the symlink, where if you add the trailing slash, it will show the contents of the symlinked location.

Code:
jbhansen@febtober:~$ ls -l /var/log/packages
lrwxrwxrwx 1 root root 24 May 28  2019 /var/log/packages -> ../lib/pkgtools/packages/
jbhansen@febtober:~$ ls -l /var/log/packages/ | head -n10
total 28448
-rw-r--r-- 1 root root    3443 May 28  2019 ConsoleKit2-1.0.0-x86_64-4
-rw-r--r-- 1 root root   62507 May 28  2019 Cython-0.29.7-x86_64-1
-rw-r--r-- 1 root root   12496 May 28  2019 GConf-3.2.6-x86_64-4
-rw-r--r-- 1 root root    1824 May 28  2019 LibRaw-0.18.12-x86_64-1
-rw-r--r-- 1 root root   12181 May 28  2019 M2Crypto-0.33.0-x86_64-1
-rw-r--r-- 1 root root    7173 May 28  2019 MPlayer-20190418-x86_64-1
-rw-r--r-- 1 root root    8512 May 28  2019 Mako-1.0.10-x86_64-1
-rw-r--r-- 1 root root   10993 May 28  2019 ModemManager-1.10.0-x86_64-1
-rw-r--r-- 1 root root   43502 May 28  2019 NetworkManager-1.18.1-x86_64-1
Quote:
Originally Posted by bamunds View Post
Second, if answer to first is yes then do all occurrences need to change?
if no, then never mind nothing to see here... Cheers and Happy New Year!
The only thing that *needs* to change is anything with an ls for /var/log/packages without the trailing slash. If you add a trailing slash, it will then work properly on both 14.2 and -current.

Willy has changed this on sbopkg's master for when 15.0 is released, but this commit won't work on 14.2 and older since it changes the package database location from /var/log/packages to /var/lib/pkgtool/packages.
 
3 members found this post helpful.
Old 01-02-2020, 10:22 PM   #18
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by bassmadrigal View Post
No, this works fine on 14.2.
Thanks for the reply. Appreciate the clarity. Cheers.
 
Old 04-19-2020, 11:31 AM   #19
ardya
Member
 
Registered: Mar 2006
Distribution: Slackware since 1997
Posts: 89

Rep: Reputation: 18
Interesting. When I saw this behaviour the first thing I checked was did /var/log/packages become a symlink, sure enough it is, thus necessitating the need for the trailing slash on directory names.
 
  


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] Sbopkg and installed SBo-git packages (Not appears) Gugur Slackware 12 03-18-2022 12:03 AM
Sbopkg says I have no packages installed CyDFect Slackware 6 10-06-2019 01:11 AM
Can sbopkg track packages installed from other repositories? giomat Slackware 3 04-23-2018 12:07 PM
[SOLVED] Keeping updated the packages installed via sbopkg. A couple of questions. disco_slack Slackware 8 07-19-2011 11:03 AM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM

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

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