LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-19-2017, 11:11 AM   #1
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 195

Rep: Reputation: 138Reputation: 138
Srange problem with slackpkg+, gen_repos_files.sh, and kernel-source


This should be a stupid question. I want to have a mini repository with just 3 packages: kernel-generic, kernel-modules, and kernel-source. I created the following directories with 3 txz-files (taken from -current):
Code:
kernel/
├── kernel-generic/
│   ├── kernel-generic-4.9.38-x86_64-1.txz
├── kernel-modules/
│   ├── kernel-modules-4.9.38-x86_64-1.txz
└── kernel-source/
    ├── kernel-source-4.9.38-noarch-1.txz
Gen_repos_files.sh produced the following:

Code:
kernel/
├── CHECKSUMS.md5
├── CHECKSUMS.md5.asc
├── CHECKSUMS.md5.gz
├── CHECKSUMS.md5.gz.asc
├── ChangeLog.rss
├── ChangeLog.txt
├── ChangeLog.txt.gz
├── FILELIST.TXT
├── GPG-KEY
├── MANIFEST.bz2
├── PACKAGES.TXT
├── PACKAGES.TXT.gz
├── kernel-generic/
│   ├── kernel-generic-4.9.38-x86_64-1.lst
│   ├── kernel-generic-4.9.38-x86_64-1.meta
│   ├── kernel-generic-4.9.38-x86_64-1.txt
│   ├── kernel-generic-4.9.38-x86_64-1.txz
│   ├── kernel-generic-4.9.38-x86_64-1.txz.asc
│   └── kernel-generic-4.9.38-x86_64-1.txz.md5
├── kernel-modules/
│   ├── kernel-modules-4.9.38-x86_64-1.lst
│   ├── kernel-modules-4.9.38-x86_64-1.meta
│   ├── kernel-modules-4.9.38-x86_64-1.txt
│   ├── kernel-modules-4.9.38-x86_64-1.txz
│   ├── kernel-modules-4.9.38-x86_64-1.txz.asc
│   └── kernel-modules-4.9.38-x86_64-1.txz.md5
└── kernel-source/
    ├── kernel-source-4.9.38-noarch-1.lst
    ├── kernel-source-4.9.38-noarch-1.meta
    ├── kernel-source-4.9.38-noarch-1.txt
    ├── kernel-source-4.9.38-noarch-1.txz
    ├── kernel-source-4.9.38-noarch-1.txz.asc
    └── kernel-source-4.9.38-noarch-1.txz.md5
Looks perfect. I added this new repositary to PKGS_PRIORITY in slackpkgplus.conf. And now the problem: slackpkg shows possible upgarde of kernel-generic and kernel-modules from the new repository (this is what I expect), but kernel-source it shows from patches.

How this happens?!
 
Old 07-19-2017, 11:45 AM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Can you post the following :

1. slackpkg+ version number.

2. your slackpkgplus.conf

3. Content of kernel/CHECKSUMS.md5

4. Content of /etc/slackpkg/blacklist

5. The output of command :
Code:
$ ls -l /var/log/packages/kernel-*
6. The output of command :
Code:
$ slackpkg -dialog=off -default_answer=no -batch=on upgrade kernel
7. The content of /var/lib/slackpkg/pkglist

--
SeB
 
1 members found this post helpful.
Old 07-19-2017, 12:26 PM   #3
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 195

Original Poster
Rep: Reputation: 138Reputation: 138
1. slackpkg+-1.7.0-noarch-4mt

2. slackpkgplus.conf ("example.org" below is my private site where the repository lives):
Code:
SLACKPKGPLUS=on
VERBOSE=1
ALLOW32BIT=on
USEBL=1
WGETOPTS="--timeout=20 --tries=2"
SEARCH_CLOG_INPARENT=on
CACHEUPDATE=off
ENABLENOTIFY=on
GREYLIST=on
SENSITIVE_SEARCH=on
WW_FILE_SEARCH=on
SHOWORDER=package
DETAILED_INFO=none
STRICTGPG=on
PKGS_PRIORITY=( multilib my_kernel my_SBo )
TAG_PRIORITY=off
REPOPLUS=( slackpkgplus )
MIRRORPLUS['multilib']=http://www.slackware.com/~alien/multilib/14.2/
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
MIRRORPLUS['my_SBo']=https://example.org/SBo/14.2/
MIRRORPLUS['my_kernel']=https://example.org/kernel/
3. kernel/CHECKSUMS.md5:
Code:
These are the MD5 message digests for the files in this directory.
If you want to test your files, use 'md5sum' and compare the values to
the ones listed here.

To test all these files, use this command:

tail +13 CHECKSUMS.md5 | md5sum --check | less

'md5sum' can be found in the GNU coreutils package on ftp.gnu.org in
/pub/gnu, or at any GNU mirror site.

MD5 message digest                Filename
d310cb58222962c46511a79ce0b2d8c1  ./ChangeLog.rss
e30586d475c8f389117d2097fe6cd182  ./ChangeLog.txt
1c885eb1d5ceb9ffa57ce9dd4b4ad6b2  ./ChangeLog.txt.gz
1783418e59c9cdceb4fd453b85e48008  ./FILELIST.TXT
135417f3fa7f3256637cce96c074a94a  ./GPG-KEY
9b8d98d07d066c5b0a1ac7b122927402  ./MANIFEST.bz2
c552b6dbf12ad8e022a4a38ad660e1c9  ./PACKAGES.TXT
6a7cb1acb95dd1875ed8c3c5d82a639c  ./PACKAGES.TXT.gz
8a0ba63d935ea83772d476fbc6254625  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.lst
f1e7c14134558014ef16c7554ad81ee8  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.meta
6a70b0d0c2208c0a2c20efd6750844a1  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.txt
796c653e598cfe379a1ebe2d8726de2a  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.txz
2adcd31015ee9a993d67ec7fa9ee500e  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.txz.asc
a02a29a637c8a23f409afecbde89827d  ./kernel-generic/kernel-generic-4.9.38-x86_64-1.txz.md5
15974faa246b2bd421f01087af403c83  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.lst
03689e2be85c56218d41ee17ddc6e9d3  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.meta
31971b1529af9fd95a143f2fb008e857  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.txt
e06ff787387c390cf7e0a39809c37b4e  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.txz
5cbadc7b06ff1a8f9f7967d2fdae3503  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.txz.asc
19b5997cb026d810d1ec5eedaf407562  ./kernel-modules/kernel-modules-4.9.38-x86_64-1.txz.md5
fe5c38cda7bc0eac70205c412b86178f  ./kernel-source/kernel-source-4.9.38-noarch-1.lst
f4e9b16dec66c40dfdd679709e0d77ad  ./kernel-source/kernel-source-4.9.38-noarch-1.meta
3f4d862740ecd7f90d20a420b15c3450  ./kernel-source/kernel-source-4.9.38-noarch-1.txt
890138205003b63a536d21bb8815ab5e  ./kernel-source/kernel-source-4.9.38-noarch-1.txz
068b8d2a649082e79983836f0c2dc0a2  ./kernel-source/kernel-source-4.9.38-noarch-1.txz.asc
62d86594612e7c19ca5a3c1a8b325113  ./kernel-source/kernel-source-4.9.38-noarch-1.txz.md5
4. /etc/slackpkg/blacklist is empty

I have
Code:
kernel-generic
kernel-modules
kernel-source
in /etc/slackpkg/greylist

5. ls -l /var/log/packages/kernel-*
Code:
-rw-r--r-- 1 root root   55990 Jun 27 18:51 /var/log/packages/kernel-firmware-20170626git-noarch-1
-rw-r--r-- 1 root root    1008 Jul  7 19:10 /var/log/packages/kernel-generic-4.9.36-x86_64-1_dusk
-rw-r--r-- 1 root root   25087 Jul  7 19:10 /var/log/packages/kernel-headers-4.4.75-x86-1
-rw-r--r-- 1 root root  262205 Jul  7 19:10 /var/log/packages/kernel-modules-4.9.36-x86_64-1_dusk
-rw-r--r-- 1 root root 3699606 Jul  7 19:11 /var/log/packages/kernel-source-4.9.36-noarch-1_dusk
6. slackpkg -dialog=off -default_answer=no -batch=on upgrade kernel

Code:
Checking local integrity... DONE
Looking for kernel in package list. Please wait... DONE

[ Repository               ] [ Package                                  ]
  my_kernel                  kernel-generic-4.9.38-x86_64-1.txz
  my_kernel                  kernel-modules-4.9.38-x86_64-1.txz
  patches                      kernel-source-4.4.75-noarch-1.txz

Total package(s): 3

Do you wish to upgrade selected packages (Y/n)? n
7. cat /var/lib/slackpkg/pkglist | grep kernel
Code:
patches kernel-firmware 20170626git noarch 1 kernel-firmware-20170626git-noarch-1 ./patches/packages/linux-4.4.75 txz
patches kernel-generic 4.4.75 x86_64 1 kernel-generic-4.4.75-x86_64-1 ./patches/packages/linux-4.4.75 txz
patches kernel-headers 4.4.75 x86 1 kernel-headers-4.4.75-x86-1 ./patches/packages/linux-4.4.75 txz
patches kernel-huge 4.4.75 x86_64 1 kernel-huge-4.4.75-x86_64-1 ./patches/packages/linux-4.4.75 txz
patches kernel-modules 4.4.75 x86_64 1 kernel-modules-4.4.75-x86_64-1 ./patches/packages/linux-4.4.75 txz
patches kernel-source 4.4.75 noarch 1 kernel-source-4.4.75-noarch-1 ./patches/packages/linux-4.4.75 txz
slackware64 kernel-firmware 20160628git noarch 1 kernel-firmware-20160628git-noarch-1 ./slackware64/a txz
slackware64 kernel-generic 4.4.14 x86_64 1 kernel-generic-4.4.14-x86_64-1 ./slackware64/a txz
slackware64 kernel-huge 4.4.14 x86_64 1 kernel-huge-4.4.14-x86_64-1 ./slackware64/a txz
slackware64 kernel-modules 4.4.14 x86_64 1 kernel-modules-4.4.14-x86_64-1 ./slackware64/a txz
slackware64 kernel-headers 4.4.14 x86 1 kernel-headers-4.4.14-x86-1 ./slackware64/d txz
slackware64 kernel-source 4.4.14 noarch 1 kernel-source-4.4.14-noarch-1 ./slackware64/k txz
testing kernel-module-ecryptfs 4.4.14 x86_64 1 kernel-module-ecryptfs-4.4.14-x86_64-1 ./testing/packages txz
SLACKPKGPLUS_my_kernel kernel-generic 4.9.38 x86_64 1 kernel-generic-4.9.38-x86_64-1 ./SLACKPKGPLUS_my_kernel/kernel-generic txz
SLACKPKGPLUS_my_kernel kernel-modules 4.9.38 x86_64 1 kernel-modules-4.9.38-x86_64-1 ./SLACKPKGPLUS_my_kernel/kernel-modules txz
Here I filtered the list with "grep kernel" because the whole list is too long, is it OK?

Thank you for the help!
 
Old 07-19-2017, 12:54 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,083

Rep: Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881Reputation: 6881
Quote:
Originally Posted by slalik View Post
Code:
...

PKGS_PRIORITY=( multilib my_kernel my_SBo )
...
REPOPLUS=( slackpkgplus )
From the README:


Code:
CONFIGURATION

For the basic configuration:

* Edit /etc/slackpkg/slackpkgplus.conf
* Uncomment one or more mirrors and add them to the REPOPLUS list

Note that packages in these repository will not listed if they are present in
the official repositories (see below).

* Optionally, set PKGS_PRIORITY to give priority order for single packages 
  present in multiple repositories or to allow repositories to override
  official slackware packages
 
Old 07-19-2017, 01:18 PM   #5
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 195

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by Alien Bob View Post
Code:
* Uncomment one or more mirrors and add them to the REPOPLUS list
Do you mean that I have to list all 4 repositories in REPOPLUS? I tried but nothing changed. My understanding was that priority order is:
1) PKGS_PRIORITYís packages as listed;
2) SLACKWARE packages
3) REPOPLUSís as listed
Based on Matteo Rossini's post in your blog
 
Old 07-19-2017, 01:49 PM   #6
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,777

Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
REPOPLUS is the list that tells slackpkg+ which repositories to consider. That way you can have unused MIRRORPLUS lines in the configuration file if you want. Honestly, I'm not sure why packages from your repo are showing up at all if you haven't entered my_kernel in REPOPLUS. Maybe entering it in PKGS_PRIORITY automatically adds it to REPOPLUS too behind the scenes.
 
Old 07-19-2017, 01:52 PM   #7
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Quote:
Originally Posted by slalik View Post
7. cat /var/lib/slackpkg/pkglist | grep kernel
Code:
patches kernel-firmware 20170626git noarch 1 kernel-firmware-20170626git-noarch-1 ./patches/packages/linux-4.4.75 txz
...
SLACKPKGPLUS_my_kernel kernel-generic 4.9.38 x86_64 1 kernel-generic-4.9.38-x86_64-1 ./SLACKPKGPLUS_my_kernel/kernel-generic txz
SLACKPKGPLUS_my_kernel kernel-modules 4.9.38 x86_64 1 kernel-modules-4.9.38-x86_64-1 ./SLACKPKGPLUS_my_kernel/kernel-modules txz
So, your kernel's kernel-source package is not in pkglist which implies there's something wrong in slackpkg.

I looked at this and found the issue comes from /usr/libexec/slackpkg/pkglist.awk, which automatically exclude all packages from any directory whose name ends with string "source" :
Code:
!/source\// && !/\.asc$/ {
                INPUT=$NF
                fs=FS  
                FS="/" ; OFS="/"
                $0=INPUT
                if ( $2 != "var" ) {
                        DIR=$2   
                        FULLPACK=$NF
                } else {
                        DIR="local"
                        FULLPACK=$NF".tgz"
                }
.....
This script is used by slackpkg to generate the file /var/lib/slackpkg/pkglist from /var/lib/slackpkg/CHECKSUMS.md5 this way :
Code:
grep "\.t[blxg]z$" /var/lib/slackpkg/CHECKSUMS.md5| \
                awk -f /usr/libexec/slackpkg/pkglist.awk
For instance, with your CHECKSUMS.md5, you'll have the following result :
Code:
$ grep "\.t[blxg]z$" /tmp/my_kernel-CHECKSUMS.md5| awk -f /usr/libexec/slackpkg/pkglist.awk
kernel-generic kernel-generic 4.9.38 x86_64 1 kernel-generic-4.9.38-x86_64-1 ./kernel-generic txz
kernel-modules kernel-modules 4.9.38 x86_64 1 kernel-modules-4.9.38-x86_64-1 ./kernel-modules txz
As you can see, kernel-source has been excluded. Now, if I update my_kernel-CHECKSUMS.md5 so that the kernel-source package is referenced as being in directory 'kernel-sources' instead of 'kernel-source', I get this :
Code:
grep "\.t[blxg]z$" /tmp/my_kernel-CHECKSUMS.md5| awk -f /usr/libexec/slackpkg/pkglist.awk
kernel-generic kernel-generic 4.9.38 x86_64 1 kernel-generic-4.9.38-x86_64-1 ./kernel-generic txz
kernel-modules kernel-modules 4.9.38 x86_64 1 kernel-modules-4.9.38-x86_64-1 ./kernel-modules txz
kernel-sources kernel-source 4.9.38 noarch 1 kernel-source-4.9.38-noarch-1 ./kernel-sources txz

Therefore, to solve your issue, rename the directory in which the kernel-sources package belong to, to something else, like "kernel-sources" or "ksources", but avoid any names ending by "source".

--
SeB
 
4 members found this post helpful.
Old 07-19-2017, 02:25 PM   #8
slalik
Member
 
Registered: Nov 2014
Location: Moscow, Russia
Distribution: Slackware
Posts: 195

Original Poster
Rep: Reputation: 138Reputation: 138
Yes, it works! I renamed the directory to kernel-src and everything is OK now! Thank you phenixia2003 and everybody for help!
 
  


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
[SOLVED] gen_repos_files doesn't use the repo's owner GPG key to sign packages cendryon Slackware 7 08-01-2014 01:34 AM
[SOLVED] HELP - 14.1 upgrade from 14.0 with slackpkg kernel-module links to wrong kernel? bamunds Slackware 4 12-05-2013 07:22 PM
Ubuntu 7.10, Ati driver problem (radeon 9550) srange 3D stefan_rogin2000 Ubuntu 3 04-04-2008 04:41 PM
Srange happenings after installing KDE 3.5 BobNutfield Fedora 3 01-13-2006 09:53 PM
Srange MPlayer problem piggyaugu Linux - Software 1 07-30-2005 03:44 AM

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

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