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 03-11-2024, 06:14 AM   #601
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075

Quote:
Originally Posted by sbolokanov View Post
> root@overlord:/etc/slackpkg# slackpkg update gpg
>
> 2024-03-11 12:44:02 URL:https://mirrors.bulgarsociety.org/sl...urrent/GPG-KEY [1572/1572] -> "/tmp/slackpkg.tQl1qz/gpgkey" [1]
> gpg: WARNING: no command supplied. Trying to guess what you mean ...

...

> gpg: key 5E56AAAFA75CBDA0: 25 signatures not checked due to missing keys
> gpg: key 5E56AAAFA75CBDA0: "Eric Hameleers <alien@slackware.com>" not changed


I guess it has to do with: slackpkg-15.0.10-noarch-3: core-functions.sh: use gpg2, not gpg.
But I might be wrong.

slackpkg+-1.9.f-noarch-2mt
http://ftp.slackware.com/pub/slackwa...urrent/GPG-KEY
Is a GPG v1 key, like every other 3rd party KEY obviously
Code:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
So, either all keys must be rebuilt as GPG v2 keys (as slackpkg now use gpg2), or slackpkg must continue to use gpg1

Last edited by marav; 03-11-2024 at 06:19 AM.
 
1 members found this post helpful.
Old 03-11-2024, 11:41 PM   #602
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
First off, before the change to core-functions.sh I was not having any issues running slackpkg with slackpkg+. I am excluding "gpg: WARNING: no command supplied. Trying to guess what you mean ..." as I don't consider this a problem and can safely be ignored.

How I upgraded with the gnupg, gnupg2 change. (The comma matches exact package name.)
Code:
CHECKGPG=off slackpkg upgrade gnupg, gnupg2,
slackpkg upgrade-all
If you don't want to see the "gpg: WARNING: no command supplied. Trying to guess what you mean ..." then add this patch.
Code:
# Add --quiet option to gpg.
--- /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.orig      2022-09-07 15:41:39.000000000 +0800
+++ /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.new       2024-03-12 12:23:25.314641954 +0800
@@ -1095,8 +1095,8 @@
     if [ $(basename $1) = "GPG-KEY" ];then
       mkdir -p ${WORKDIR}/gpg
       rm -f ${WORKDIR}/gpg/* 2>/dev/null
-      gpg $2
-      if gpg $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
+      gpg --quiet $2
+      if gpg --quite $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
         for PREPO in $(echo ${PRIORITY[*]}|sed 's/SLACKPKGPLUS_[^ ]*//g');do
           gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2
         done
@@ -1109,7 +1109,7 @@
         echo
         sleep 5
         echo "Fatal: Slackware repository does not contains the official gpg-key!!" >>$TMPDIR/error.log
-        gpg $2 >>$TMPDIR/error.log 2>&1
+        gpg --quite $2 >>$TMPDIR/error.log 2>&1
       fi
       for PREPO in ${REPOPLUS[*]};do
         if [ "${PREPO:0:4}" = "dir:" ];then
@@ -1132,7 +1132,7 @@
           $DOWNLOADER $2-tmp-$PREPO ${MIRRORPLUS[${PREPO/SLACKPKGPLUS_}]}GPG-KEY
         fi
         if [ $? -eq 0 ];then
-          gpg $2-tmp-$PREPO
+          gpg --quite $2-tmp-$PREPO
           gpg --import $2-tmp-$PREPO
           gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2-tmp-$PREPO
         else
I personally think changing gpg to gpg2 in core-functions.sh was not necessary, that said it doesn't hurt, unless gpg1 some day goes away and gpg2 becomes gpg.
 
Old 03-12-2024, 03:25 PM   #603
rherbert
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 102

Rep: Reputation: 65
Quote:
Originally Posted by chrisretusn View Post
If you don't want to see the "gpg: WARNING: no command supplied. Trying to guess what you mean ..." then add this patch.
Code:
# Add --quiet option to gpg.
--- /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.orig      2022-09-07 15:41:39.000000000 +0800
+++ /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.new       2024-03-12 12:23:25.314641954 +0800
@@ -1095,8 +1095,8 @@
     if [ $(basename $1) = "GPG-KEY" ];then
       mkdir -p ${WORKDIR}/gpg
       rm -f ${WORKDIR}/gpg/* 2>/dev/null
-      gpg $2
-      if gpg $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
+      gpg --quiet $2
+      if gpg --quite $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
         for PREPO in $(echo ${PRIORITY[*]}|sed 's/SLACKPKGPLUS_[^ ]*//g');do
           gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2
         done
@@ -1109,7 +1109,7 @@
         echo
         sleep 5
         echo "Fatal: Slackware repository does not contains the official gpg-key!!" >>$TMPDIR/error.log
-        gpg $2 >>$TMPDIR/error.log 2>&1
+        gpg --quite $2 >>$TMPDIR/error.log 2>&1
       fi
       for PREPO in ${REPOPLUS[*]};do
         if [ "${PREPO:0:4}" = "dir:" ];then
@@ -1132,7 +1132,7 @@
           $DOWNLOADER $2-tmp-$PREPO ${MIRRORPLUS[${PREPO/SLACKPKGPLUS_}]}GPG-KEY
         fi
         if [ $? -eq 0 ];then
-          gpg $2-tmp-$PREPO
+          gpg --quite $2-tmp-$PREPO
           gpg --import $2-tmp-$PREPO
           gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2-tmp-$PREPO
         else
Not "--quite"! But thanks for the patch. ;-)
 
  


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 03:03 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