LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-25-2020, 05:14 PM   #76
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190

Quote:
Originally Posted by tramtrist View Post
A little confused... Is there an official new release of slackpkg+ out or is it still being tested?
Sorry for being such a newb
I'm searching feedback (tests, bugs, and proposal) to release slackpkg 1.8

Currently exists a development release slackpkg+1.7.0d0
To install it edit slackpkgplus.conf and modify

MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
in
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/

Then run slackpkg update and slackpkg upgrade slackpkg+
 
1 members found this post helpful.
Old 02-25-2020, 05:16 PM   #77
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 235

Rep: Reputation: 150Reputation: 150
ah ok!
I'll wait for 1.8 like a good boy .. please ignore me!
 
Old 02-25-2020, 11:44 PM   #78
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,100

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Not that it's an issue, but when using 'slackpkg download' it's a count, not a percentage. I personally am okay with this. I normally only use "download" with kernel packages. Just thought I'd mention it.
 
Old 03-01-2020, 10:59 PM   #79
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by chrisretusn View Post
Not that it's an issue, but when using 'slackpkg download' it's a count, not a percentage. I personally am okay with this. I normally only use "download" with kernel packages. Just thought I'd mention it.
Unfortunately the 'download' command is not 100% slackpkg+ compliant so it is not fully supported.

Use DOWNLOADONLY switch instead.
set it in slackpkgplus.conf or use
DOWNLOADONLY=on slackpkg install ...
 
Old 03-08-2020, 08:11 AM   #80
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
Sun Mar 8 13:58:45 CET 2020
pkg/slackpkg+-1.7.0d1-noarch-8mt.txz
- Extends percentage where possible.
- Align check-updates messages with slackpkg 2.84
- Catch errors and return exit status: 1 for warning, 2 for fatal
 
2 members found this post helpful.
Old 03-08-2020, 11:30 AM   #81
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
I'm sorry....


Sun Mar 8 17:28:40 CET 2020
pkg/slackpkg+-1.7.0d1-noarch-9mt.txz
- Regression due percentage improvements
+-------------------------+
 
Old 03-08-2020, 05:44 PM   #82
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
I'm testing a new feature...

Code:
wget -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh
it adds the httpdir:// httpsdir:// ftpdir:// repositories type.
Similar to dir:/ it allow to add in configuration repositories that have no metadata (single packages into a single directory)
for example:
Code:
MIRRORPLUS['slackpkg']=httpsdir://slackpkg.org/beta/
my configuration:
Code:
PKGS_PRIORITY=( slpkgbeta )
MIRRORPLUS['slpkgbeta']=httpsdir://slackpkg.org/beta/
Code:
# slackpkg search slackpkg

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

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

[ Status              ] [ Repository  ] [ Package                             ]
  installed               slpkgbeta       slackpkg-2.84.0_beta8-noarch-1_rlw 
  uninstalled(masked)     slackware64     slackpkg-2.83.0-noarch-4           
  uninstalled(masked)     slpkgbeta       slackpkg-2.52beta-noarch-2         
  uninstalled(masked)     slpkgbeta       slackpkg-2.52beta2-noarch-1
 
Old 03-09-2020, 09:20 AM   #83
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,100

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
Originally Posted by zerouno View Post
Unfortunately the 'download' command is not 100% slackpkg+ compliant so it is not fully supported.

Use DOWNLOADONLY switch instead.
set it in slackpkgplus.conf or use
DOWNLOADONLY=on slackpkg install ...
I only use 'slackpkg download kernel' and it works. Put the downloads in "/var/cache/packages/slackware64/*/*" This form also works 'slackpkg download kernel-generic kernel-headers kernel-modules kernel-source'

After I an done installing the packages I 'rm' them from "/var/cache/packages/slackware64/*/*"

I will try the DOWNLOADONLY switch next kernel update.
 
Old 03-09-2020, 09:50 AM   #84
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
slackpkg download is not fully supported by slackpkg+ but it should work in many cases.
 
Old 03-09-2020, 10:56 AM   #85
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,100

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
Originally Posted by zerouno View Post
slackpkg download is not fully supported by slackpkg+ but it should work in many cases.
Thanks, just wanted to let you know it does work (in at least my use case).

Quote:
Originally Posted by zerouno View Post
I'm testing a new feature...

it adds the httpdir:// httpsdir:// ftpdir:// repositories type.
Similar to dir:/ it allow to add in configuration repositories that have no metadata (single packages into a single directory)
Wow, that's a cool feature.

Working here. Tested "httpsdir://" with "slackpkg.org/beta".

Here is my PKGS_PRIORITY, REPOPLUS, MIRRORPLUS.
Code:
PKGS_PRIORITY=( nonslack testing slackpkgbeta slackpkgplus multilib ktown restricted )
PKGS_PRIORITY+=( slackware64:id3lib )
PKGS_PRIORITY+=( slackware64:brotli )
PKGS_PRIORITY+=( slackware64:hyphen )
PKGS_PRIORITY+=( slackware64:qt5-webkit )
PKGS_PRIORITY+=( slackware64:woff2 )
PKGS_PRIORITY+=( alienbob )

REPOPLUS=( nonslack slackpkgbeta slackpkgplus multilib ktown restricted alienbob )

MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/
MIRRORPLUS['nonslack']=file://home/non-slack/slackbuilds/
MIRRORPLUS['multilib']=file://home/non-slack/multilib/current/
MIRRORPLUS['ktown']=file://home/non-slack/ktown/current/testing/x86_64/
MIRRORPLUS['alienbob']=file://home/non-slack/alienbob/
MIRRORPLUS['restricted']=file://home/non-slack/alienbob_restricted/
MIRRORPLUS['slackpkgbeta']=httpsdir://slackpkg.org/beta/
'slackpkg search slackpkg' list the following and correct listing:
Code:
[ Status              ] [ Repository   ] [ Package                             ]
  installed               slackpkgbeta     slackpkg-2.84.0_beta8-noarch-1_rlw 
  installed               slackpkgplus     slackpkg+-1.7.0d1-noarch-9mt       
  uninstalled(masked)     slackpkgbeta     slackpkg-2.52beta-noarch-2         
  <snip>
  uninstalled(masked)     slackpkgbeta     slackpkg-2.84.0_beta7-noarch-1_rlw 
  uninstalled(masked)     slackware64      slackpkg-2.83.0-noarch-4
I have discovered, that in my "PKGS_PRIORITY" above, if I place "slackpkgbeta" anywhere in the array before the "slacware64:..." entries it works as expected. Placing "slackpkgbeta" at the end or before "alienbob" produces:
Code:
[ Status              ] [ Repository   ] [ Package                                                                       ]
  installed               slackpkgplus     slackpkg+-1.7.0d1-noarch-9mt                                                 
  uninstalled(masked)     slackpkgbeta     slackpkg-2.52beta-noarch-2                                                   
  <snip>
  uninstalled(masked)     slackpkgbeta     slackpkg-2.84.0_beta7-noarch-1_rlw                                           
  upgrade                 slackware64      slackpkgbeta:slackpkg-2.84.0_beta8-noarch-1_rlw --> slackpkg-2.83.0-noarch-4
I can see the "slackware64:... alienbob" items being together since I am specifically overriding those packages in "alienbob". I would think that placing "slackpkgbeta" at the end though should show the correct list. Now that's not normally were I would put "slackpkgbeta" anyway but on my first run with the new feature, that is were I placed it.

BTW, I think slackpkg+ is the greatest thing since sliced bread. I've been using it for sometime now. Love it.

Last edited by chrisretusn; 03-09-2020 at 10:57 AM.
 
1 members found this post helpful.
Old 03-09-2020, 03:00 PM   #86
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 948

Rep: Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870
Hello,

Quote:
Originally Posted by chrisretusn View Post

I have discovered, that in my "PKGS_PRIORITY" above, if I place "slackpkgbeta" anywhere in the array before the "slacware64:..." entries it works as expected. Placing "slackpkgbeta" at the end or before "alienbob" produces:
Code:
[ Status              ] [ Repository   ] [ Package                                                                       ]
  installed               slackpkgplus     slackpkg+-1.7.0d1-noarch-9mt                                                 
  uninstalled(masked)     slackpkgbeta     slackpkg-2.52beta-noarch-2                                                   
  <snip>
  uninstalled(masked)     slackpkgbeta     slackpkg-2.84.0_beta7-noarch-1_rlw                                           
  upgrade                 slackware64      slackpkgbeta:slackpkg-2.84.0_beta8-noarch-1_rlw --> slackpkg-2.83.0-noarch-4
I can see the "slackware64:... alienbob" items being together since I am specifically overriding those packages in "alienbob". I would think that placing "slackpkgbeta" at the end though should show the correct list. Now that's not normally were I would put "slackpkgbeta" anyway but on my first run with the new feature, that is were I placed it.

BTW, I think slackpkg+ is the greatest thing since sliced bread. I've been using it for sometime now. Love it.

my bad. there's a (stupid) bug in searchPackages(). The patch below (also in attachment) solves this. However, it would be better to make further tests before applying it to slackpkg+ stable.

Code:
--- slackpkgplus.sh.orig	2020-03-09 21:06:56.680005136 +0100
+++ slackpkgplus.sh	2020-03-09 21:06:56.680005136 +0100
@@ -1155,7 +1155,7 @@
         # extract the pattern from $i, if and only if "$i" is to the syntax <repo>:<pattern>. Without
         # this, PAT would be set to $DIR when $i is to the syntax <repo>.
         #
-        [[ "$DIR" =~ [:][:alnum:]+ ]] && PAT=${i/*:/} 
+        [[ "$i" =~ [:][[:alnum:]]+ ]] && PAT=${i/*:/} 
 
         # when the current priority is of kind <REPO>:<PATTERN>, the loop must be short-circuited
         # when SEARCHSTR does not match PATTERN, otherwise, some packages could be mistakenly
--
SeB
Attached Files
File Type: txt slackpkgplus-search-fix-20200309.patch.txt (636 Bytes, 3 views)
 
Old 03-09-2020, 03:13 PM   #87
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
@chrisretusn
thank you for the big configuration test

@phenixia2003
pushed on test branch. Thankyou
 
Old 03-09-2020, 03:46 PM   #88
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
seems to not work well with file-search

Code:
The list below shows the packages that contains "slackpkg" file.

[ Status    ] [ Repository   ] [ Package                                                                       ]
  installed     extra            bash-completion-2.10-noarch-1                                                
  installed     slackpkgplus     slackpkg+-1.7.0d1-noarch-9mt                                                 
  upgrade       slackware64      slackpkgbeta:slackpkg-2.84.0_beta8-noarch-1_rlw --> slackpkg-2.83.0-noarch-4 

You can search specific packages using "slackpkg search package".
 
Old 03-09-2020, 04:32 PM   #89
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 630

Original Poster
Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by zerouno View Post
seems to not work well with file-search
it's correct!
httpsdir has no MANIFEST.bz2 !!!!

sorry.
 
1 members found this post helpful.
Old 03-10-2020, 05:37 AM   #90
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,100

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Applied the patch. Tried it with slackpkgbeta in different locations. Listing was correct in all test.

This is my PKGS_PRIORITY, the slackpkgbeta's in blue are the locations I tested. (Actually I tested with all in place too. <grin>)
Code:
PKGS_PRIORITY=( nonslack testing slackpkgbeta slackpkgplus multilib ktown restricted )
PKGS_PRIORITY+=( slackware64:id3lib slackpkgbeta )
PKGS_PRIORITY+=( slackware64:brotli )
PKGS_PRIORITY+=( slackpkgbeta slackware64:hyphen )
PKGS_PRIORITY+=( slackware64:qt5-webkit )
PKGS_PRIORITY+=( slackware64:woff2 )
PKGS_PRIORITY+=( slackpkgbeta alienbob slackpkgbeta )
This patch also appears to have solved another issue I was seeing. The placement of "repository:package". If you note in the above codebox, I have the "slackware64:package" entries before the "alienbob" repository entry. If I am reading the slackpkg+ docs correctly the "slackware64:package" priority must be before "alienbob" because I am telling slackpkg+ to give priority to "slackware64" over "alienbob". This placement also makes sense to me as only "alienbob" is being overridden.

The issue I WAS seeing is, if I placed the "slackware64:package entries anywhere else I would get "upgrade" in the list for alienbob instead of "installed".
Code:
Example
[ Status  ] [ Repository ] [ Package                                                           ]
  upgrade     alienbob       slackware64:id3lib-3.8.3-x86_64-2 --> id3lib-3.8.3-x86_64-1alien
Now, no matter where I place those "slackware64:package" entries, except of course after "alienbob" it works as I think it should. An extreme example follows:
Code:
PKGS_PRIORITY=( slackware64:id3lib )
PKGS_PRIORITY+=( slackware64:brotli )
PKGS_PRIORITY+=( slackware64:hyphen )
PKGS_PRIORITY+=( slackware64:qt5-webkit )
PKGS_PRIORITY+=( slackware64:woff2 )
PKGS_PRIORITY+=( nonslack testing slackpkgbeta slackpkgplus multilib ktown restricted alienbob )

Produces:
[ Status              ] [ Repository  ] [ Package                     ]
  installed               slackware64     id3lib-3.8.3-x86_64-2      
  uninstalled(masked)     alienbob        id3lib-3.8.3-x86_64-1alien
At first, even with the patch installed, I was seeing the issue I just described; however, now I cannot reproduce it. Just to be sure I cleared the cache and also data directories (probably overkill but doesn't hurt). Seems to be working correctly.
 
1 members found this post helpful.
  


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] [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 07:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration