LinuxQuestions.org
Help answer threads with 0 replies.
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 12-20-2015, 11:20 AM   #1
bormant
Member
 
Registered: Jan 2008
Posts: 337

Rep: Reputation: 196Reputation: 196
[BUG] slackpkgplus: 'slackpkg search' doesn't find package


'slackpkg search' cannot find some packages.

For ex.:
Code:
# slackpkg search libdbusmenu
...
[ Status           ] [ Repository               ] [ Package                                  ]
   installed                                        libdbusmenu-qt-0.9.2-i486-2
cannot find libdbusmenu from mleddesktop, but 'slackpkg install' can:
Code:
# slackpkg -dialog=off install libdbusmenu
...
[ Repository               ] [ Package                                  ]
  mleddesktop                  libdbusmenu-12.10.2-i486-1_microlinux.txz  
Total package(s): 1
Do you wish to install selected packages (Y/n)?
/etc/slackpkgplus.conf without comments here:
Code:
# grep ^[^#] /etc/slackpkg/slackpkgplus.conf
SLACKPKGPLUS=on
VERBOSE=1
USEBL=1
WGETOPTS="--timeout=20 --tries=2"
CACHEUPDATE=off
GREYLIST=on
SENSITIVE_SEARCH=on
SHOWORDER=package
TAG_PRIORITY=on
REPOPLUS=( slackpkgplus restricted alienbob )
MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86/
MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.1/x86/
MIRRORPLUS['mleddesktop']=http://www.microlinux.fr/microlinux/desktop-14.1-32bit/
MIRRORPLUS['mledextras']=http://www.microlinux.fr/microlinux/extras-14.1-32bit/
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
slackpkg+-1.6.0-noarch-1mt

Last edited by bormant; 12-20-2015 at 11:46 AM.
 
Old 12-20-2015, 12:47 PM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 889

Rep: Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772
Hello,

Quote:
Originally Posted by bormant View Post
'slackpkg search' cannot find some packages.

For ex.:
Code:
# slackpkg search libdbusmenu
...
[ Status           ] [ Repository               ] [ Package                                  ]
   installed                                        libdbusmenu-qt-0.9.2-i486-2
cannot find libdbusmenu from mleddesktop, but 'slackpkg install' can:
Code:
# slackpkg -dialog=off install libdbusmenu
...
[ Repository               ] [ Package                                  ]
  mleddesktop                  libdbusmenu-12.10.2-i486-1_microlinux.txz  
Total package(s): 1
Do you wish to install selected packages (Y/n)?
/etc/slackpkgplus.conf without comments here:
Code:
# grep ^[^#] /etc/slackpkg/slackpkgplus.conf
SLACKPKGPLUS=on
VERBOSE=1
USEBL=1
WGETOPTS="--timeout=20 --tries=2"
CACHEUPDATE=off
GREYLIST=on
SENSITIVE_SEARCH=on
SHOWORDER=package
TAG_PRIORITY=on
REPOPLUS=( slackpkgplus restricted alienbob )
MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86/
MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.1/x86/
MIRRORPLUS['mleddesktop']=http://www.microlinux.fr/microlinux/desktop-14.1-32bit/
MIRRORPLUS['mledextras']=http://www.microlinux.fr/microlinux/extras-14.1-32bit/
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
slackpkg+-1.6.0-noarch-1mt
Thats's because of this commit :
Code:
+ INSTPKG=$(ls -1 /var/log/packages | grep -e "^${BASENAME}-[^-]\+-[^-]\+-[^-]\+")
+ #INSTPKG=$(ls -1 /var/log/packages | grep -e "^${BASENAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[^-]\+")
Note that you already reported that issue in this post, and, in reply, I have sent a patch to fix this in this post, but it seems it has been forgotten.

After applying this patch, search works as expected :
Code:
patch -p0</home/seb/sandbox/tmp/slackpkgplus_search_patch_20150207.patch.txt 
patching file slackpkgplus.sh
Hunk #1 succeeded at 606 (offset 97 lines).
root@blackdog [functions.d] >slackpkg search libdbusmenu

DONE

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

[ Status           ] [ Repository               ] [ Package                                  ]
   installed                                        libdbusmenu-qt-0.9.2-x86_64-2             
  uninstalled          mleddesktop                  libdbusmenu-12.10.2-x86_64-1_microlinux   

You can search specific files using "slackpkg file-search file".


--
SeB
 
Old 12-20-2015, 01:30 PM   #3
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 574

Rep: Reputation: 164Reputation: 164
slackpkg+-1.6.1-noarch-2mt should solve.
thankyou
 
Old 12-20-2015, 03:25 PM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 337

Original Poster
Rep: Reputation: 196Reputation: 196
@phenixia2003, @zerouno,
big thanks.


'slackpkg search' is seems ok now but I've got something strange on 'slackpkg upgrade-all' (may be it isn't related):
Code:
sed: -e expression #2, char 3: expected \ after `a', `c' or `i'
sed: -e expression #2, char 3: expected \ after `a', `c' or `i'
... the same line more and more ...

 slackpkg 2.81.1 / slackpkg+ 1.6.1
 -----------------------------------------------------------------------
 +-----------------------------upgrade-------------------------------+
 | Choose packages to upgrade:                                       |
 | +---------------------------------------------------------------+ |
 | |[*] fpc-2.6.4-i386-1_microlinux.txz           1750:mledextras  | |
 | |[*] fpc-source-2.6.4-noarch-1_microlinux.txz  1751:mledextras  | |
 | |[*] lazarus-1.2.6-i386-1_microlinux.txz       1755:mledextras  | |
 | |[*] sbopkg-0.37.0-noarch-1_microlinux.txz     1950:mleddesktop | |
Are any thoughts about this?

Last edited by bormant; 12-20-2015 at 03:31 PM.
 
Old 12-20-2015, 03:48 PM   #5
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 574

Rep: Reputation: 164Reputation: 164
Try to put
TAG_PRIORITY=off
in slackpkgplus.conf
 
Old 12-21-2015, 12:45 AM   #6
bormant
Member
 
Registered: Jan 2008
Posts: 337

Original Poster
Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by zerouno View Post
Try to put
TAG_PRIORITY=off
in slackpkgplus.conf
Yes, this removes sed errors.
 
Old 12-21-2015, 02:39 PM   #7
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 574

Rep: Reputation: 164Reputation: 164
This patch should fix, and you can reenable TAG_PRIORITY

Code:
--- a/src/slackpkgplus.sh
+++ b/src/slackpkgplus.sh
@@ -384,6 +384,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
     unset NAME
     unset FULLNAME
     unset PKGDATA
+    unset LINEIDX

     AUTOP=no
     if [[ "$CMD" == "upgrade" || "$CMD" == "upgrade-all" ]];then
tell me if it works.
 
Old 12-21-2015, 03:27 PM   #8
bormant
Member
 
Registered: Jan 2008
Posts: 337

Original Poster
Rep: Reputation: 196Reputation: 196
@zerouno,
yes, adding "unset LINEIDX" fixes sed errors.
Great work, thanks.
 
  


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] Slackpkg check-updates doesn't find any upgrade to do freakTux Slackware 11 02-05-2014 02:03 AM
[SOLVED] Find URL in Debian package index via awk/sed (=find a line, then search from there) maddes.b Linux - Software 11 06-28-2013 07:37 AM
[SOLVED] bug in slackpkg search? swatnio Slackware 9 05-27-2013 07:14 PM
[SOLVED] Slackpkg package search function ADX Slackware 3 07-15-2011 12:49 PM
Bug in slackpkg -- fail to find installed package? grissiom Slackware 8 07-16-2009 05:26 AM

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

All times are GMT -5. The time now is 01:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration