LinuxQuestions.org
Visit Jeremy's Blog.
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
LQ Newbie
 
Registered: Jun 2020
Distribution: Debian, Arch, Slackware
Posts: 3

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: 5,469

Rep: Reputation: Disabled
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: 239

Rep: Reputation: 68
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: 1,760

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
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: 5,469

Rep: Reputation: Disabled
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: 1,760

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
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
LQ Newbie
 
Registered: Jun 2020
Distribution: Debian, Arch, Slackware
Posts: 3

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
LQ Newbie
 
Registered: Jun 2020
Distribution: Debian, Arch, Slackware
Posts: 3

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, Xubuntu LTS
Posts: 343

Rep: Reputation: 62
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


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
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 04:14 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