LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2021, 12:55 PM   #136
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352

Have you closed slackpkg with ctrl+C ?
the trace does not tell me that you reply with I at the question "Select your action (R/I)". (Yes, you had not the question since it was hidden)

you have to rerun the test, then press I to ignore, then press N to not upgrade. Even if you do not see the question.
 
Old 02-08-2021, 01:14 PM   #137
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
The trace may not show the response but I did respond "i" then enter. Dropped right to bash prompt after that. Just did it again to confirm and compare files.

blacklist attached.

Code:
VERBOSE=3 bash -x slackpkg upgrade-all >/tmp/slackpkg.trace 2>&1
Attached Files
File Type: txt blacklist.txt (1.3 KB, 8 views)

Last edited by Chuck56; 02-08-2021 at 01:15 PM. Reason: added command
 
Old 02-08-2021, 01:20 PM   #138
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
you have kernel commented on blacklist

#kernel-generic.*
#kernel-huge.*
#kernel-modules.*
#kernel-source
 
Old 02-08-2021, 01:35 PM   #139
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Doesn't matter if the kernel is commented out or not. Uncommented the kernel in blacklist are reran the trace.
Attached Files
File Type: txt blacklist.txt (1.3 KB, 11 views)
File Type: txt slackpkg.trace.txt (19.0 KB, 8 views)
 
Old 02-08-2021, 02:44 PM   #140
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 931

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Quote:
Originally Posted by zerouno View Post
Try that:
edit /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
at line 1735 replace "2.84" with "15.0"

then retry
Thank you very much, that fixed things here
and slackpkg upgraded slackpkg+ to 1.7.0d1-noarch-13mt
 
Old 02-08-2021, 03:13 PM   #141
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
The blacklist is used in two part of slackpkg/slackpkg+


The first is when slackpkg starts searching the duplicated packages.
In that moment the blacklist is used strictly as EXACT MATCH.

so if you have
kernel-modules-5.10.13-x86_64-1
kernel-modules-5.10.14-x86_64-1
in packages, it will find in blacklist the presence of "kernel-modules", not "kernel.*" nor "kernel-modules.*"
so if you put 'kernel-modules' in blacklist you will no longer have the warning of duplicated packages.
This is indipendent from slackpkg+ since is slackpkg code.


the second is when you search for packages to install/upgrade.
Here you can find the difference from slackpkg and slackpkg+, and the difference from a slackpkg+ with slackpkg on 14.2, on 15.0, on current prior last update, and beta.
To save backward compatibility slackpkg+ (both stable and dev) use a legacy blacklist method.
Now that slackpkg 15 was released, may be possible to develop something, but I don't know exactly what I will do.


The confusion is increased from the bug of slackpkg+1.7d1-12 that did not know slackpkg-15


I hope I explained all

if you want to be sure put "kernel-modules" without .* and you will solve all.
 
2 members found this post helpful.
Old 02-08-2021, 03:41 PM   #142
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by zerouno View Post
... in packages, it will find in blacklist the presence of "kernel-modules", not "kernel.*" nor "kernel-modules.*"
so if you put 'kernel-modules' in blacklist you will no longer have the warning of duplicated packages...
It works! That fixes my multiple kernel issue. Thanks zerouno!
 
Old 02-09-2021, 01:46 AM   #143
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
slackpkg - version 15.0 / slackpkg+ 1.7.0d1 -13mt

Kernels installed for reference:
Code:
USEBL=off slackpkg search kernel

Looking for kernel in package list. Please wait... DONE

The list below shows all packages with name matching "kernel".

[ Status    ] [ Repository  ] [ Package                                                              ]
  installed     slackware64     kernel-firmware-20210119_0578970-noarch-1                           
  installed     slackware64     kernel-generic-5.10.14-x86_64-1                                     
  installed     slackware64     kernel-headers-5.10.14-x86-1                                        
  installed     slackware64     kernel-huge-5.10.14-x86_64-1                                        
  installed     slackware64     kernel-modules-5.10.14-x86_64-1                                     
  installed     slackware64     kernel-source-5.10.14-noarch-1                                      
  upgrade       slackware64     kernel-generic-5.10.13-x86_64-1 --> kernel-generic-5.10.14-x86_64-1 
  upgrade       slackware64     kernel-headers-5.10.13-x86-1 --> kernel-headers-5.10.14-x86-1       
  upgrade       slackware64     kernel-modules-5.10.13-x86_64-1 --> kernel-modules-5.10.14-x86_64-1 
  upgrade       slackware64     kernel-source-5.10.13-noarch-1 --> kernel-source-5.10.14-noarch-1
Applicable section from my blacklist:
Code:
kernel-generic
kernel-huge
kernel-modules
kernel-headers
kernel-source
This is what did the trick:
Quote:
Originally Posted by zerouno View Post
Try that:
edit /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
at line 1735 replace "2.84" with "15.0"
So that it's not using the legacy blacklist, which I note that the code now checks for "15.0" in -13mt.

"slackpkg update-all"
"slackpkg upgrade-kernel"

Work as expected.
Code:
slackpkg upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall
This also works with blacklist as follows:
Code:
kernel-generic.*
kernel-huge.*
kernel-modules.*
kernel-headers.*
kernel-source
However, changing "kernel-source" to "kernel-source.*" produces:
Code:
slackpkg upgrade kernel

Checking local integrity... DONE
You have a broken /var/log/packages/ - with two versions of the same package.
The list of packages duplicated in your machine is shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

kernel-source-5.10.13-noarch-1
kernel-source-5.10.14-noarch-1

You can (R)emove, or (I)gnore these packages.
Select your action (R/I): i
Is there a reason that kernel-source treated differently that the other kernel-* packages?

All in all, everything looks good in all of my testing with slackpkg - version 15.0 / slackpkg+ 1.7.0d1 -13mt
 
Old 02-09-2021, 02:02 AM   #144
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
After reading some other threads in the forum about slackpkg / slackpkg+ issues in particular this post https://www.linuxquestions.org/quest...ml#post6217989 by @zerouno

I am keeping my blacklist for kernel packages as:
Code:
kernel-generic
kernel-huge
kernel-modules
kernel-headers
kernel-source
 
Old 02-09-2021, 06:21 PM   #145
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Pat just pushed out the patch (by PiterPUNK, original slackpkg author!) from slackpkg git to fixup the new-config usage after upgrade. As far as I know, the only other issue that's surfaced is the duplicate kernel packages (but it could be *any* dupe packages) being blacklisted but still showing up in results. I'm open to suggestions (more open to patches) on exactly how to fix that.
 
Old 02-09-2021, 11:27 PM   #146
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
I upgraded to the dev version (slackpkg+-1.7.0d1-noarch-13mt on -current), no blacklist problems, but I notice that `slackpkg update` now always results in a full download (even when there aren't any ChangeLog differences):
Code:
# slackpkg update

Updating the package lists...
        Downloading...
force to download ChangeLog
                ChangeLogs
2021-02-10 13:16:36 URL:http://mirrors.us.kernel.org/slackware/slackware64-current/ChangeLog.txt [1295130/1295130] -> "/tmp/slackpkg.7Otyb3/ChangeLog.txt" [1]
2021-02-10 13:16:51 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5 [1592/1592] -> "/tmp/slackpkg.7Otyb3/CHECKSUMS.md5-slackpkgplus" [1]
2021-02-10 13:17:17 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5 [232240/232240] -> "/tmp/slackpkg.7Otyb3/CHECKSUMS.md5-alienbob" [1]
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.7Otyb3/CHECKSUMS.md5.asc differ
Also, with VERBOSE=3, it seems that with slackpkg+ `slackpkg check-updates` is grabbing the full ChangeLog; shouldn't it only compare the CHECKSUMS.md5.asc files like slackpkg does?

Last edited by drgibbon; 02-10-2021 at 02:02 AM.
 
Old 02-10-2021, 01:46 AM   #147
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
I am also seeing the "slackpkg update" problem with slackpkg+

Using "SLACKPKGPLUS=off slackpkg update" works as expected.

Blacklist look to be fixed aside from this issue reported here:
https://www.linuxquestions.org/quest...le-4175690187/

Last edited by chrisretusn; 02-10-2021 at 01:47 AM.
 
Old 02-10-2021, 05:05 AM   #148
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
slackpkg 15 introduce a new way to check if there are news on changelog.
Unfortunately this is incompatible with slackpkg prior 15.0, and unfortunately slackpkg+ have to work both with slackware current and slackware 14.2
So it use an ibrid way to check it.

My suggest is to use CACHEUPDATE=on in slackpkgplus.conf, so it will not really redownload all files any time.

I hope to find a solution to fix that saving the compatibility with slackware 14.2.
 
Old 02-10-2021, 05:34 AM   #149
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Quote:
Originally Posted by zerouno View Post
My suggest is to use CACHEUPDATE=on in slackpkgplus.conf, so it will not really redownload all files any time.
Unfortunately I've been testing with CACHEUPDATE=on
 
Old 02-10-2021, 06:12 AM   #150
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Original Poster
Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Quote:
Originally Posted by chrisretusn View Post
Unfortunately I've been testing with CACHEUPDATE=on
Run the first time
Code:
# slackpkg update

Updating the package lists...
        Downloading...
force to download ChangeLog
                ChangeLogs
    File: slackware            -> ChangeLog.txt        .. Downloading... 
    File: multilib             -> ChangeLog.txt        .. Downloading... 
    File: slackpkgplus         -> ChangeLog.txt        .. Downloading... 
    File: multilib             -> CHECKSUMS.md5        .. Downloading... 
    File: slackpkgplus         -> CHECKSUMS.md5        .. Downloading... 
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.Pk8nSz/CHECKSUMS.md5.asc differ

        Downloading...
                Done.
                List of all files
    File: patches              -> MANIFEST.bz2         .. Cached.
    File: slackware64          -> MANIFEST.bz2         .. Downloading... 
    File: extra                -> MANIFEST.bz2         .. Cached.
    File: pasture              -> MANIFEST.bz2         .. Cached.
    File: testing              -> MANIFEST.bz2         .. Downloading... 
    File: multilib             -> MANIFEST.bz2         .. Downloading... 
    File: slackpkgplus         -> MANIFEST.bz2         .. Downloading... 
                Checksums
    File: slackware            -> CHECKSUMS.md5        .. Downloading... 
    File: slackware            -> CHECKSUMS.md5.asc    .. Downloading... 
    File: multilib             -> CHECKSUMS.md5.asc    .. Downloading... 
    File: slackpkgplus         -> CHECKSUMS.md5.asc    .. Downloading... 
                Package List
    File: slackware            -> FILELIST.TXT         .. Downloading... 
    File: SBo                  -> SLACKBUILDS.TXT.gz   .. Cached.
                Package descriptions
    File: patches              -> PACKAGES.TXT         .. Cached.
    File: slackware64          -> PACKAGES.TXT         .. Downloading... 
    File: extra                -> PACKAGES.TXT         .. Cached.
    File: pasture              -> PACKAGES.TXT         .. Cached.
    File: testing              -> PACKAGES.TXT         .. Downloading... 
    File: multilib             -> PACKAGES.TXT         .. Downloading... 
    File: slackpkgplus         -> PACKAGES.TXT         .. Downloading... 
        Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
                Package descriptions
Run second time:
Code:
# slackpkg update

Updating the package lists...
        Downloading...
force to download ChangeLog
                ChangeLogs
    File: slackware            -> ChangeLog.txt        .. Cached.
    File: multilib             -> ChangeLog.txt        .. Cached.
    File: slackpkgplus         -> ChangeLog.txt        .. Cached.
    File: multilib             -> CHECKSUMS.md5        .. Cached.
    File: slackpkgplus         -> CHECKSUMS.md5        .. Cached.
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.lsyv5E/CHECKSUMS.md5.asc differ

        Downloading...
                Done.
                List of all files
    File: patches              -> MANIFEST.bz2         .. Cached.
    File: slackware64          -> MANIFEST.bz2         .. Cached.
    File: extra                -> MANIFEST.bz2         .. Cached.
    File: pasture              -> MANIFEST.bz2         .. Cached.
    File: testing              -> MANIFEST.bz2         .. Cached.
    File: multilib             -> MANIFEST.bz2         .. Cached.
    File: slackpkgplus         -> MANIFEST.bz2         .. Cached.
                Checksums
    File: slackware            -> CHECKSUMS.md5        .. Cached.
    File: slackware            -> CHECKSUMS.md5.asc    .. Cached.
    File: multilib             -> CHECKSUMS.md5.asc    .. Cached.
    File: slackpkgplus         -> CHECKSUMS.md5.asc    .. Cached.
                Package List
    File: slackware            -> FILELIST.TXT         .. Cached.
    File: SBo                  -> SLACKBUILDS.TXT.gz   .. Cached.
                Package descriptions
    File: patches              -> PACKAGES.TXT         .. Cached.
    File: slackware64          -> PACKAGES.TXT         .. Cached.
    File: extra                -> PACKAGES.TXT         .. Cached.
    File: pasture              -> PACKAGES.TXT         .. Cached.
    File: testing              -> PACKAGES.TXT         .. Cached.
    File: multilib             -> PACKAGES.TXT         .. Cached.
    File: slackpkgplus         -> PACKAGES.TXT         .. Cached.
        Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
                Package descriptions
slackpkg will recheck all files but it will not really redownload it.
 
1 members found this post helpful.
  


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] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[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

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

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