LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2020, 01:09 PM   #1
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
Is the -current slackpkg out of date?


Hello all!

I'm wondering if slackpkg is still up to date. I looked through slackpkg scripts installed into my -current and found that it still uses /var/log/packages (mostly in /usr/libexec/slackpkg/core-functions.sh, but also in functions.d/). Well, of course one can create a symlink to /var/lib/pkgtools/packages, and it perfectly works, but personally I don't think this is a good way to resolve the problem, it must be in some way consistent with pkgtools. I see that the latest update of the stable version of slackpkg was in 2018, and even according to the beta changelog the /var/log path is mentioned only once since the last stable release:

> - Fix for /var/log/packages/ possibly being a symlink to elsewhere

so it still relies on the "old" path.

P.S. I tried to change the core-functions.sh script by `%s/\/var\/log\/packages/${PKGDIR}/g`, but it was too simple to resolve the problem.

P.P.S. I use Slackware just for one week and really enjoy it despite troubles I needed to fix.
 
Old 06-30-2020, 01:21 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
hi tauon, welcome to LQ!

I'm sorry but from your post isn't very clear what the problem is... what is not working there?
 
Old 06-30-2020, 01:24 PM   #3
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
Well there is the line

# slackpkg update

but there is a lot more than that kernels, stable or current mirror . I recommend reading :

https://docs.slackware.com/howtos:sl...:systemupgrade
 
Old 06-30-2020, 01:51 PM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It was pretty clear to me. He is saying that slackpkg on -current still has references to the deprecated /var/log/packages and /var/log/scripts directories.
 
Old 06-30-2020, 01:58 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by montagdude View Post
It was pretty clear to me. He is saying that slackpkg on -current still has references to the deprecated /var/log/packages and /var/log/scripts directories.
but is it actually a problem? IMHO it's not as it doesn't break anything.
it could be actually a choice for backward compatibility.
 
Old 06-30-2020, 03:06 PM   #6
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 ponce View Post
but is it actually a problem? IMHO it's not as it doesn't break anything.
it could be actually a choice for backward compatibility.
It doesn't break anything here, since by default /var/log/packages and /var/log/scripts are symlinked to the appropriate directories. I read it more as a notice, with the OP assuming it was an oversight. But you're right, it could be intentional.
 
Old 06-30-2020, 03:12 PM   #7
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
hi tauon, welcome to LQ!

I'm sorry but from your post isn't very clear what the problem is... what is not working there?
Thanks!

My problem was during the fresh install of 14.2 and then "blind" upgrade to -current the symlink wasn't automatically created. Well, on the one hand this is my fault, but on the other hand I'm afraid it can create problems in future.
 
Old 06-30-2020, 03:21 PM   #8
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
but is it actually a problem? IMHO it's not as it doesn't break anything.
it could be actually a choice for backward compatibility.
I assume it is fine as soon as this is written in the slackpkg documentation explicitly. Although, I personally dislike the usage of hard-coded path withing the scripts.
 
Old 07-01-2020, 03:53 AM   #9
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114
Quote:
I personally dislike the usage of hard-coded path withing the scripts.
Slackpkg's are the defaults and can be overridden -- see the $WORKDIR as set in /etc/slackpkg/slackpkg.conf and the $ROOT and $CONF as "inherited" from the pkgtools.
 
  


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
Unable to subtract current date and future date in YYYY-MM-DD format archie7 Linux - Newbie 11 05-11-2018 03:29 AM
Out of date glibc still on my machine after slackpkg update jkh2cpu Slackware 8 06-08-2017 02:39 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
current date - yesterday's date newbie_adm Linux - Newbie 4 09-04-2006 03:56 PM

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

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration