SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Latest upgrade of slackpkg on current broke slackpkg+ sorry.
Code:
ap/slackpkg-2.83.0-noarch-3.txz: Rebuilt.
Don't remove ChangeLog.txt upon upgrade/reinstall.
Use CHECKSUMS.md5.asc to determine if ChangeLog.txt is unchanged.
slackpkg+ is hugely based on the slackpkg 2.82.x, so I need some adjustment to fix it.
Yikes! Just finished doing an update. Phew... still at slackpkg-2.83.0-noarch-1, the June 15 updates have not made it to the mirror I mirror from. My 1600 cron job, had nothing new. Will see it tomorrow, I will hold up with upgrading slackpkg. OH and thanks a million for slackpkg+, best thing since sliced bread and cold beer.
I knew slackpkg was not upgraded, just more fun to write it this way.
Last edited by chrisretusn; 06-15-2018 at 03:54 AM.
# cd /usr/libexec/slackpkg/functions.d/
# patch -p0 < slackpkgplus-slackpkg283.diff.txt
before upgrade slackpkg backup the file /usr/libexec/slackpkg/core-functions.sh
If you need to redowngrade slackpkg restore that file without reinstall slackpkg 2.83.0-2
Code:
--- slackpkgplus.sh 2018-06-15 11:22:04.692308480 +0200
+++ slackpkgplus.sh 2018-06-14 09:14:10.150812814 +0200
@@ -472,23 +472,10 @@
# The new getfile() download all file needed from all defined repositories
# then merge all in a format slackpkg-compatible
function getfile(){
- if [ "$DOWNLOADCHANGELOG" = "force" -a $(basename $1) = "CHECKSUMS.md5.asc" ];then
- echo "force to download ChangeLog"
- DOWNLOADCHANGELOG=no
- getfile "$(echo "$1"|sed 's/CHECKSUMS.md5.asc$/ChangeLog.txt/')" "$(echo "$2"|sed 's/CHECKSUMS.md5.asc$/ChangeLog.txt/')"
- >$TMPDIR/changelogdownloaded
- echo "PGP" >$TMPDIR/CHECKSUMS.md5.asc
- return
- fi
local URLFILE
URLFILE=$1
if [ $(basename $1) = "ChangeLog.txt" ];then
- if [ -e $TMPDIR/changelogdownloaded ];then
- echo " Done."
- return
- fi
- rm -f $TMPDIR/CHECKSUMS.md5.asc
echo " ChangeLogs"
fi
@@ -1612,7 +1599,6 @@
# answer to "Do you really want to download all other files"
# if there are new changes
ANSWER="Y"
- DOWNLOADCHANGELOG=force
fi
if [ "$UPARG" != "gpg" ]&&[ "$CHECKGPG" = "on" ]&& ! ls -l $WORKDIR/gpg/GPG-KEY-slackware*.gpg >/dev/null 2>&1;then
edit: note that I've tested this patch with only the development version o slackpkg+ but it should work (with warning) on slackpkg stable.
Also there is some regression in slackpkg check-updates not solved by that patch.
I had never touched that SLACKPKG thing in my entire life, BUT maybe I have a suggestion for you.
So, as I read in another threads, our BDFL is focused right now (also) in a better handling of ChangeLog.txt by SLACKPKG, to avoid its entire downloading if possible...
You do not think you need to implement a similar mechanism on your extension?
Last edited by Darth Vader; 06-15-2018 at 05:40 AM.
I have checked the patch on my productive system with slackpkg+-1.7.0-noarch-6mt.txz installed. I have modified it like below (slackpkgplus.sh.diff). Then it works OK.
# cd /usr/libexec/slackpkg/functions.d/
# patch -p0 slackpkgplus.sh < slackpkgplus.sh.diff
# cd /usr/libexec/slackpkg/functions.d/
# patch -p0 < slackpkgplus-slackpkg283.diff.txt
edit: note that I've tested this patch with only the development version o slackpkg+ but it should work (with warning) on slackpkg stable.
Also there is some regression in slackpkg check-updates not solved by that patch.
# patch -p0 < slackpkgplus-slackpkg283.diff.txt
patching file slackpkgplus.sh
Hunk #1 FAILED at 472.
Hunk #2 FAILED at 1612.
2 out of 2 hunks FAILED -- saving rejects to file slackpkgplus.sh.rej
Code:
--- slackpkgplus.sh 2018-06-15 11:22:04.692308480 +0200
+++ slackpkgplus.sh 2018-06-14 09:14:10.150812814 +0200
@@ -472,23 +472,10 @@
# The new getfile() download all file needed from all defined repositories
# then merge all in a format slackpkg-compatible
function getfile(){
- if [ "$DOWNLOADCHANGELOG" = "force" -a $(basename $1) = "CHECKSUMS.md5.asc" ];then
- echo "force to download ChangeLog"
- DOWNLOADCHANGELOG=no
- getfile "$(echo "$1"|sed 's/CHECKSUMS.md5.asc$/ChangeLog.txt/')" "$(echo "$2"|sed 's/CHECKSUMS.md5.asc$/ChangeLog.txt/')"
- >$TMPDIR/changelogdownloaded
- echo "PGP" >$TMPDIR/CHECKSUMS.md5.asc
- return
- fi
local URLFILE
URLFILE=$1
if [ $(basename $1) = "ChangeLog.txt" ];then
- if [ -e $TMPDIR/changelogdownloaded ];then
- echo " Done."
- return
- fi
- rm -f $TMPDIR/CHECKSUMS.md5.asc
echo " ChangeLogs"
fi
@@ -1612,7 +1599,6 @@
# answer to "Do you really want to download all other files"
# if there are new changes
ANSWER="Y"
- DOWNLOADCHANGELOG=force
fi
if [ "$UPARG" != "gpg" ]&&[ "$CHECKGPG" = "on" ]&& ! ls -l $WORKDIR/gpg/GPG-KEY-slackware*.gpg >/dev/null 2>&1;then
Sorry I missed the patches fun earlier, was sawing logs, so says my wife anyway. Got the update this morning on running slackpkg update. Manually refreshed my local slackware64-current mirror (scheduled for 1600 its 1020 now) and tested, no issues.
==============================================================================
WARNING! One or more errors occurred while slackpkg was running
------------------------------------------------------------------------------
Repository 'alienbob' FAILS the CHECKSUMS.md5 signature check.
Try to run 'slackpkg update gpg'
Repository 'slackpkgplus' FAILS the CHECKSUMS.md5 signature check.
Try to run 'slackpkg update gpg'
Repository 'restricted' FAILS the CHECKSUMS.md5 signature check.
Try to run 'slackpkg update gpg'
Try to run 'slackpkg update gpg'
This is what I see after importing gpg keys:
Code:
bash-4.4# slackpkg update gpg
2018-06-16 06:20:18 URL: ftp://ftp.osuosl.org/.2/slackware/slackware64-current/GPG-KEY [1572] -> "/tmp/slackpkg.Gjzmq4/gpgkey" [1]
pub 1024D/40102233 2003-02-26 Slackware Linux Project <security@slackware.com>
sub 1024g/4E523569 2003-02-26 [expires: 2038-01-19]
2018-06-16 06:20:19 URL:http://bear.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/GPG-KEY [17372/17372] -> "/tmp/slackpkg.Gjzmq4/gpgkey-tmp-alienbob" [1]
pub 1024D/A75CBDA0 2003-01-17 Eric Hameleers <alien@slackware.com>
uid Eric Hameleers (IBM Linux) <alien@linux.vnet.ibm.com>
uid Eric Hameleers (Thuis) <e.hameleers@chello.nl>
uid Eric Hameleers (IBM Linux) <alien@nl.ibm.com>
uid Eric Hameleers <eric.hameleers@int.greenpeace.org>
uid Eric Hameleers <alien@sox.homeip.net>
uid [jpeg image of size 3054]
uid Eric Hameleers (SBo) <alien@slackbuilds.org>
uid Eric Hameleers <eric.hameleers@alienbase.nl>
sub 1792g/7CBDC819 2003-01-17
gpg: key A75CBDA0: "Eric Hameleers <alien@slackware.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
2018-06-16 06:20:20 URL:http://slakfinder.org/slackpkg+/GPG-KEY [1805/1805] -> "/tmp/slackpkg.Gjzmq4/gpgkey-tmp-slackpkgplus" [1]
pub 2048R/ED123FBC 2011-01-01 Matteo Rossini <zerouno@slacky.it>
sub 2048R/2B41569A 2011-01-01
gpg: key ED123FBC: "Matteo Rossini <zerouno@slacky.it>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
2018-06-16 06:20:20 URL:http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/GPG-KEY [17372/17372] -> "/tmp/slackpkg.Gjzmq4/gpgkey-tmp-restricted" [1]
pub 1024D/A75CBDA0 2003-01-17 Eric Hameleers <alien@slackware.com>
uid Eric Hameleers (IBM Linux) <alien@linux.vnet.ibm.com>
uid Eric Hameleers (Thuis) <e.hameleers@chello.nl>
uid Eric Hameleers (IBM Linux) <alien@nl.ibm.com>
uid Eric Hameleers <eric.hameleers@int.greenpeace.org>
uid Eric Hameleers <alien@sox.homeip.net>
uid [jpeg image of size 3054]
uid Eric Hameleers (SBo) <alien@slackbuilds.org>
uid Eric Hameleers <eric.hameleers@alienbase.nl>
sub 1792g/7CBDC819 2003-01-17
gpg: key A75CBDA0: "Eric Hameleers <alien@slackware.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Slackware Linux Project's GPG key added
And lastly, this bit:
Code:
bash-4.4# ==============================================================================
bash: ==============================================================================: command not found
bash-4.4# WARNING! One or more errors occurred while slackpkg was running
bash: WARNING!: command not found
bash-4.4# ------------------------------------------------------------------------------
bash: ------------------------------------------------------------------------------: command not found
bash-4.4# Repository 'alienbob' FAILS the CHECKSUMS.md5 signature check.
bash: Repository: command not found
bash-4.4# Try to run 'slackpkg update gpg'
bash: Try: command not found
bash-4.4#
bash-4.4# Repository 'slackpkgplus' FAILS the CHECKSUMS.md5 signature check.
bash: Repository: command not found
bash-4.4# Try to run 'slackpkg update gpg'
bash: Try: command not found
bash-4.4#
bash-4.4# Repository 'restricted' FAILS the CHECKSUMS.md5 signature check.
bash: Repository: command not found
bash-4.4# Try to run 'slackpkg update gpg'
bash: Try: command not found
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.