LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Is the -current slackpkg out of date? (https://www.linuxquestions.org/questions/slackware-14/is-the-current-slackpkg-out-of-date-4175677910/)

tauon 06-30-2020 01:09 PM

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.

ponce 06-30-2020 01:21 PM

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?

captain_sensible 06-30-2020 01:24 PM

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

montagdude 06-30-2020 01:51 PM

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.

ponce 06-30-2020 01:58 PM

Quote:

Originally Posted by montagdude (Post 6139812)
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.

montagdude 06-30-2020 03:06 PM

Quote:

Originally Posted by ponce (Post 6139816)
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.

tauon 06-30-2020 03:12 PM

Quote:

Originally Posted by ponce (Post 6139786)
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.

tauon 06-30-2020 03:21 PM

Quote:

Originally Posted by ponce (Post 6139816)
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.

burdi01 07-01-2020 03:53 AM

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.
:D


All times are GMT -5. The time now is 12:05 AM.