LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   weird behaviour of slackpkg (slackpkgplus?) compared to slapt-get (https://www.linuxquestions.org/questions/slackware-14/weird-behaviour-of-slackpkg-slackpkgplus-compared-to-slapt-get-4175693461/)

nobodino 04-10-2021 10:04 AM

weird behaviour of slackpkg (slackpkgplus?) compared to slapt-get
 
While I was trying the package slapt-get and tested it, I was surprised to see that:
- slapt-get showed me python-docutils to upgrade from 0.16 to 0.17 version
- I looked at /var/log/packages to see if python-docutils was really 0.16, and it was
- "slackpkg upgrade-all" didn't show me python-docutils to upgrade

I have no package of that sort in blacklist of greylist of slackpkg.
I have the same mirror for slackpkg and SOURCE for slapt-get.

Can someone make the same test as me?
Is it a corner case?

hendrickxm 04-10-2021 10:13 AM

Some mirrors still seem to have 0.16 so could be that slapt-get checked another mirror first.

chrisretusn 04-10-2021 10:24 AM

Here is my slackpkg (w/slackpkg+) result. I don't use slapt-get.
Code:

slackpkg search python-docutils

Looking for python-docutils in package list. Please wait... DONE

The list below shows all packages with name matching "python-docutils".

[ Status    ] [ Repository  ] [ Package                        ]
  installed    slackware64    python-docutils-0.17-x86_64-1

ls -l /var/lib/pkgtools/packages/python-docutils*
-rw-r--r-- 1 root root 29527 Apr  4 17:18 /var/lib/pkgtools/packages/python-docutils-0.17-x86_64-1

What mirror are you using?

I am using a mirror of slackware.mirrors.tds.net locally.

nobodino 04-10-2021 11:09 AM

for slackpkg in mirrors I selected: http://slackware.uk/slackware/slackware64-current/
for slapt-get in slapt-getrc I chose: SOURCE=http://slackware.uk/slackware/slackware64-current/:OFFICIAL

they are with the same mirror, and python-docutils-0.17 is dated "Sat Apr 3 18:28:05 UTC 2021" which is not yesterday.

tadgy 04-10-2021 11:27 AM

I just manually checked the directory on the mirror, and the version of that package which is on the server is the .17.

Did you run 'slackpkg update' before you did the 'upgrade-all'?

nobodino 04-10-2021 12:03 PM

I always exec: "slackpkg update && slackpkg upgrade-all"

phenixia2003 04-10-2021 12:15 PM

Hello,

Quote:

Originally Posted by nobodino (Post 6239562)
I always exec: "slackpkg update && slackpkg upgrade-all"

what's the output of :

Code:

$ grep python-docutils /var/lib/slackpkg/pkglist
--
SeB

nobodino 04-10-2021 02:20 PM

slackware64 python-docutils 0.17 x86_64 1 python-docutils-0.17-x86_64-1 ./slackware64/l txz

I re-explain what I did:

I always use "slackpkg update && slackpkg upgrade-all", so I was suprised when I used "slapt-get --upgrade" to see there was a package which was not updated.
So I re-ran "slackpkg update && slackpkg upgrade-all" and nothing was to upgrade.
Then I listed the packages installed:
# ls /var/log/packages/python-docutils*

it was version 0.16 of the package:
- so "slapt-get --upgrade" was right
- "slackpkg upgrade-all" was wrong.

gargamel 04-10-2021 05:44 PM

Quote:

Originally Posted by nobodino (Post 6239615)
[...]
# ls /var/log/packages/python-docutils*

it was version 0.16 of the package:
- so "slapt-get --upgrade" was right
- "slackpkg upgrade-all" was wrong.

I don't really know much about how slackpkg works, but I would assume that "slackpkg upgrade-all" works totally correctly, but "slackpkg update" checked a mirror that hadn't been synchronised with the authoritative source. My humble understanding is that "slackpkg update" creates a list of things to be updated, and "slackpkg upgrade-all" reads that list and upgrades what's listed.

I just considered the idea to enhance "slackpkg update" for a function to check all available mirrors for the most recent version, and then create the update list from that mirror, BUT I don't think it would be a great idea, because
(1) Whenever the original Slackware server gets some updates it would be overrun, because it always will take the mirrors a while to get sync'ed
(2) The first mirrors updated will share that fate, and mirror operators won't be too happy about that
(3) It would take a while to scan all the mirrors, so I would expect a noticeable decrease of slackpkg performance

So if, and only if, slackpkg would be extended in that way, it should be possible to invoke it with that function alone, independent of update, upgrade-all etc., and it would have to be possible to exclude the original Slackware server and some authoritative mirrors from the list of mirrors to be scanned in order to ensure smooth and scalable mirror operation.

Just my 0.02 EUR.

nobodino 04-10-2021 10:29 PM

the mirror site is exactliy the same, and before upgrade I checked on the mirror the presence of the package: it was there!
- "slackpkg upgrade-all" didn't see it
- "slapt-get --upgrade" saw it

Your hypothesis of a non synced mirror is wrong.

chrisretusn 04-11-2021 03:08 AM

When you run "slackpkg update" have you tried answering "y" to this prompt?
Code:

No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?

Based on:
Quote:

Originally Posted by nobodino (Post 6239526)
I have no package of that sort in blacklist of greylist of slackpkg.

I assume you have slackpkg+ installed.

What does 'SLACKPKGPLUS=off slackpkg search python-docutils' produce?

What does 'ls -l /var/lib/pkgtools/packages/python-docutils*' produce?

nobodino 04-11-2021 03:09 AM

Do you really want to download all other files (y/N)? : Y

Now I have upgraded that package with "slapt-get --upgrade".

I can try to downgrade to 0.16 and see if I have the same result.

nobodino 04-11-2021 03:17 AM

You know what?

nobodino 04-11-2021 03:23 AM

2 Attachment(s)
Exactly the same result after downgrade:
- slackpkg upgrade-all: nothing
- slapt-get --upgrade : python-docutils

I enclosed my slackpkgplus.conf and slapt-getrc files, if someone can do the same thing I did: downgrade to 0.16 from cumulative mirror (http://slackware.uk/cumulative/slack.../slackware64/l) and use the same mirror. Tell me what's the result on your side.

nobodino 04-11-2021 03:30 AM

root@XXXXX:~/Downloads# SLACKPKGPLUS=off slackpkg search python-docutils

Looking for python-docutils in package list. Please wait... DONE

The list below shows all packages with name matching "python-docutils".

[ upgrade ] - python-docutils-0.16-x86_64-6 --> python-docutils-0.17-x86_64-1

You can search specific files using "slackpkg file-search file".
---------------------------------------
Either the problem is in slackpkgplus or in my slackpkgplus.conf?
Any idea?

bortolotto 04-11-2021 04:32 AM

Quote:

Originally Posted by nobodino (Post 6239804)
root@XXXXX:~/Downloads# SLACKPKGPLUS=off slackpkg search python-docutils
Either the problem is in slackpkgplus or in my slackpkgplus.conf?
Any idea?

I just downgraded python-docutils and shifted my slackpkgplus.conf to that you attached.
Did a slackpkg update and slackpkg upgrade-all. It includes python-docutils-0.17. :confused:

Code:

  alienbob                    python-dateutil-1.5-x86_64-1alien.tgz   
  slackware64                  python-docutils-0.17-x86_64-1.txz       
  slackware64                  python-setuptools-56.0.0-x86_64-1.txz   
  cf                          python-webencodings-0.5.1-x86_64-5cf.txz

For comparison, these are slackpkg versions I've installed:
Code:

[inst] slackpkgplus : slackpkg+-1.7.5-noarch-1mt
[inst] slackware64  : slackpkg-15.0.1-noarch-1


chrisretusn 04-11-2021 04:39 AM

The output of 'SLACKPKGPLUS=off slackpkg search python-docutils' shows that slackpkg is recognizing that you have python-docutils 0.16 installed and that is need to be upgraded.

What does 'slackpkg search python-docutils' produce?

I don't see anything is your slackpkgplus.conf file that would cause this.
That said, I don't think the ':*' is needed at all. You have 'kernel:testing' in there twice.

I cannot comment on the slap-getrc since I don't use it.

chrisretusn 04-11-2021 04:41 AM

You could try to rebuild the slackpkg database.

Code:

rm -rf /var/lib/slackpkg
rm -rf /var/cache/packages
slackpkg update gpg
slackpkg update


nobodino 04-11-2021 06:07 AM

rm -rf /var/lib/slackpkg
rm -rf /var/cache/packages
slackpkg update gpg
slackpkg update

Didn't change anything.
-----------------
root@XXXXXX:~/Downloads# slackpkg search python-docutils

Looking for python-docutils in package list. Please wait... DONE

The list below shows all packages with name matching "python-docutils".

[upgr] slackware64 : python-docutils-0.16-x86_64-6 --> python-docutils-0.17-x86_64-1

You can search specific files using "slackpkg file-search file".
-----------------
only: SLACKPKGPLUS=off slackpkg upgrade-all
allows to update python-docutils to version 0.17
-----------------
on my side:
[inst] slackware64 : slackpkg-15.0.1-noarch-1
[inst] slackpkgplus : slackpkg+-1.7.5-noarch-1mt
-----------------

Can you post your slackpkgplus.conf?

chrisretusn 04-11-2021 08:35 AM

Quote:

Originally Posted by nobodino (Post 6239850)
Can you post your slackpkgplus.conf?

This is certainly a strange problem.

Here is my slackpkgplug.conf.
Code:

SLACKPKGPLUS=on
VERBOSE=0
USETERSE=off
TERSESEARCH=off
ALLOW32BIT=on
USEBL=on
WGETOPTS="--timeout=20 --tries=2"
SEARCH_CLOG_INPARENT=on
CACHEUPDATE=off
ENABLENOTIFY=on
GREYLIST=on
SENSITIVE_SEARCH=off
WW_FILE_SEARCH=off
SHOWORDER=package
DETAILED_INFO=basic
STRICTGPG=on
PKGS_PRIORITY=( slackware64:id3lib ) # 2018-01-09, also in alienbob
PKGS_PRIORITY+=( slackware64:gcc ) # 2020-09-17, give slackware packages priority over multilib.
PKGS_PRIORITY+=( justpkgs )
PKGS_PRIORITY+=( nonslack )
#PKGS_PRIORITY+=( slackpkgbeta )
PKGS_PRIORITY+=( slackpkgplus multilib restricted alienbob )
TAG_PRIORITY=off
REPOPLUS=( justpkgs )
REPOPLUS+=( nonslack )
REPOPLUS+=( slackpkgbeta ) # Commented out to keep beta from getting priority.
REPOPLUS+=( slackpkgplus multilib restricted alienbob )
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/
MIRRORPLUS['nonslack']=file://home/non-slack/slackbuilds/
MIRRORPLUS['justpkgs']=dir://home/non-slack/justpkgs/
MIRRORPLUS['multilib']=file://home/non-slack/multilib/current/
MIRRORPLUS['alienbob']=file://home/non-slack/alienbob/current/x86_64/
MIRRORPLUS['restricted']=file://home/non-slack/alienbob_restricted/current/x86_64/
MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/



All times are GMT -5. The time now is 04:34 PM.