LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-16-2014, 01:32 AM   #256
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 254

Rep: Reputation: 69

sorry.

fixed in slackpkg+-1.3.1-noarch-2mt.txz

thankyou
 
1 members found this post helpful.
Old 04-16-2014, 04:30 AM   #257
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 284

Rep: Reputation: 162Reputation: 162
Hello

@zerouno:

Following this thread, I'm wondering why the CHECKSUMS.md5 from slackware "repository" is blanked when the gpg verification of the CHECKSUM.md5 from any of the configured repositories fails ? (the code snippets below is from current stable slackpkg+)

Code:
203:  if [ $(checkgpg ${TMPDIR}/CHECKSUMS.md5-$PREPO) -ne 1 ];then
204: echo
205: echo " !!! F A T A L !!!"
206: echo " Repository '$PREPO' FAILS the CHECKSUMS.md5 signature check"
207: echo " The file may be corrupted or the gpg key may be not valid."
208: echo " Remember to import keys by launching 'slackpkg update gpg'."
209: echo
210: sleep 5
211: echo > ${TMPDIR}/CHECKSUMS.md5
212: fi
When one of the configured 3rd party repository is down, this statement leads slackpkg to exit because the gpg of CHECKSUMS.md5 is wrong , so /var/lib/slackpkg/pkglist is not updated, even if all others repositories (even slackware mirror) are ok. The snippet below is from slackpkg (function updatefilelists lines #988-#1008) :
Code:
	getfile ${SOURCE}CHECKSUMS.md5 ${TMPDIR}/CHECKSUMS.md5
	getfile ${SOURCE}CHECKSUMS.md5.asc ${TMPDIR}/CHECKSUMS.md5.asc
	if ! [ -e "${TMPDIR}/CHECKSUMS.md5" ]; then
		echo -e "\
\n\t\tWARNING: Your mirror appears incomplete and is missing the\n\
\t\t         CHECKSUMS.md5 file. We recommend you change your mirror\n\
\t\t         so that package integrity can be verified against \n\
\t\t         CHECKSUMS.md5.\n"
		sleep 10
	else
		if [ "$CHECKGPG" = "on" ]; then
			ISOK=$(checkgpg ${TMPDIR}/CHECKSUMS.md5)
			if [ "$ISOK" = "0" ]; then 
				rm $TMPDIR/CHECKSUMS.md5
				rm $TMPDIR/CHECKSUMS.md5.asc
				echo -e "\
\n\t\tERROR: Verification of the  gpg signature on CHECKSUMS.md5\n\
\t\t       failed! This could mean that the file is out of date\n\
\t\t       or has been tampered with.\n"
				cleanup # <= this call leads slackpkg to exit
			fi
ATM, to workaround this, users can run slackpkg -checkgpg=off update. But it would be better to reset only the CHECKSUMS.md5 of the unavailable repository, so that /var/lib/slackpkg/pkglist will be updated with data from the valid repositories. So, slackpkg+ must be updated this way :

Code:
203:  if [ $(checkgpg ${TMPDIR}/CHECKSUMS.md5-$PREPO) -ne 1 ];then
204: echo
205: echo " !!! F A T A L !!!"
206: echo " Repository '$PREPO' FAILS the CHECKSUMS.md5 signature check"
207: echo " The file may be corrupted or the gpg key may be not valid."
208: echo " Remember to import keys by launching 'slackpkg update gpg'."
209: echo
210: sleep 5
211: echo > ${TMPDIR}/CHECKSUMS.md5-$PREPO
212: fi
Hope this helps.

Cheers.

--
SeB
 
Old 04-17-2014, 05:06 AM   #258
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 254

Rep: Reputation: 69
fixed.

Now failed repository will be skipped in the update process.
 
1 members found this post helpful.
Old 04-19-2014, 02:20 PM   #259
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
@zerouno and @phenixia2003,

Have you noticed this thread Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write?

I have experienced the same problem on slackware 14.1 32bits.

I'm using package slackpkg+-1.3.1-noarch-3mt

Last edited by gegechris99; 04-19-2014 at 02:24 PM. Reason: reference to my version of slackpkg+
 
Old 04-20-2014, 04:17 AM   #260
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 284

Rep: Reputation: 162Reputation: 162
Hello,

Quote:
Originally Posted by gegechris99 View Post
@zerouno and @phenixia2003,

Have you noticed this thread Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write?

I have experienced the same problem on slackware 14.1 32bits.

I'm using package slackpkg+-1.3.1-noarch-3mt

As a temporary workaround you can use this patch slackpkgplus-1.3.1-3mt_20140420.patch.txt (for slackpkg+1.3.1-3mt) which disables the install.log update. I guess zerouno will provide a better solution ASAP:

Code:
$ su -
$ cd /usr/libexec/slackpkg/functions.d
$ patch -p0</path/to/slackpkgplus-1.3.1-3mt_20140420.patch.txt

Cheers.

--
SeB

Last edited by phenixia2003; 04-20-2014 at 04:18 AM.
 
1 members found this post helpful.
Old 04-21-2014, 06:05 AM   #261
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,373

Rep: Reputation: 164Reputation: 164
Thanks phenixia2003! Works much better now.
 
Old 04-21-2014, 08:53 AM   #262
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 254

Rep: Reputation: 69
Really...
isn't very needed a full packages rescan at every update process, so I removed it.
But an install log may be useful to track (and remember in future) the installed packages so if you want a full install.log you only need to run /usr/libexec/slackpkg/makeinstlog.sh manually the first time you install slackpkg. After that slackpkg will update it (as incremental) ONLY in the install/upgrade/remove process.
However when I will apply the new upgrade-all method (when I will have a decent time to spend for slackpkg+), that may just deprecate the current install.log



The info.log and the 'not remove tmpdir' remains becouse they are used only in the highest verbose mode.
 
Old 04-21-2014, 09:27 AM   #263
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Package slackpkg+-1.3.1-noarch-4mt solved the "slow to write" update issue for me.

Thanks phenixia2003 and zerouno for the quick fix.
 
Old 04-22-2014, 11:19 AM   #264
bamunds
LQ Newbie
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64Multilib
Posts: 27

Rep: Reputation: Disabled
Thanks everyone for fixing the install.log slow write. My slackware 14.1 x86_64 with multilib is working great now. Thank you for the clue about what it was doing also. I'll have to keep this in mind the next time I install slackware on the four computers I'm switching over this month from WinXP to Slackware. For the future features: Is there a way for slackpkg+ to test if it is the first install or if the install.log already exists and then not attempt the install.log process?
Best Regards, Brian A in Minnesota
 
Old 07-12-2014, 04:11 AM   #265
Panagiotis Nik
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Rep: Reputation: Disabled
Smile

Hi!

I use this tool long time ago and it is wonderful...

The beginning of this year i start to building a repository for
me and my few friends and add few important packages from SBo.
Some time ago I learned about a new tool slackrepo:
https://idlemoor.github.io/slackrepo/index.html

Slackrepo is a highly automated SlackBuild package builder
and helps you to make a package repository.
Also use Alienbob gen_repos_files.sh script.
Now i have almost build all packages from SBo and upload to my repo:
http://slackonly.com/pub/packages/14.1-x86_64/

This repo is puplic and you can use it.
With slackpkg+ now is very easy to add new packages.

Thanks @zerouno and @idlemoor...
 
1 members found this post helpful.
Old 07-13-2014, 10:21 AM   #266
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 254

Rep: Reputation: 69
Patched slackpkg+ to add $ROOT and $CONF support reflecting slackpkg-2.28.0-13
 
Old 07-16-2014, 07:04 AM   #267
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 243

Rep: Reputation: 63
Feature request

Is it possible to implement generate-template in slackpkg+ as well?
I tried using install-template and it works, but generate-template is restricted to official packages.

The templates are just text files with a list of package names which are easy enough to create with a script (how I do it now), but I would like to generate them with slackpkg+ if possible.

It is a very useful feature and I use it all the time:
  • Create a VM with a minimal install of slackware and then add the required packages for the task that machine will perform
  • Make a template with slackpkg
  • Remake slackware-minimal install media with new template added to /etc/slackpkg/templates/
  • Boot new media on as many machines (or VMs) as needed and install minimal-slackware
  • boot minimal-slackware and use slackpkg to install required template for the task (ie: slackpkg install-template webserver)

It saves me a lot of time
 
Old 07-16-2014, 07:18 AM   #268
zerouno
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 254

Rep: Reputation: 69
Code:
# slackpkg generate-template test
# grep slackpkg slackpkg test.template
slackpkg+
slackpkg
it currently works!
 
Old 07-16-2014, 08:15 AM   #269
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 243

Rep: Reputation: 63
Quote:
Originally Posted by zerouno View Post
Code:
# slackpkg generate-template test
# grep slackpkg slackpkg test.template
slackpkg+
slackpkg
it currently works!
Again, my bad
I grep for a package that I usually install (vlc) but somehow was not present on this box
Sorry for the trouble
 
  


Reply

Tags
slackpkg


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
Holding a package update from slackpkg gazj Slackware 2 01-25-2011 04:58 PM
Where can I find a 3rd Party Repository for RHEL 5? tightlikethat Linux - Newbie 3 02-27-2010 08:46 PM
Best 3rd Party RPM Repository for FC9 kromberg Fedora 11 11-13-2008 08:04 PM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
3rd party package managers? crontab Slackware 3 10-06-2007 10:34 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration