LinuxQuestions.org
Review your favorite Linux distribution.
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 02-15-2016, 03:15 PM   #1
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25

Rep: Reputation: 2
Slackpkg+ issue on current


I'm running Slackware64_current as of 11/02/2016 and I'm getting an error when slackpkg+ is enabled via the on/off variable at th etop of slackpkgplus.conf

Installed versions are :-
Slackpkg-2.82.0-noarch-16
Slackpkg+-1.6.1p2-noarch-1mt

when slackpkg+ is enabled I get the following error,

ls: cannot access '*.t[blxg]z': No such file or directory

Everything seems to work OK ?

If it's my setup any hints on where to look for the problem will be gratefully received.
 
Old 02-15-2016, 03:27 PM   #2
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
I can't reproduce your problem. Please post the output of
Code:
$ grep -v "^#\|^#" /etc/slackpg{,plus}.conf
and show your changes in these files (compared to original ones).
 
Old 02-15-2016, 04:09 PM   #3
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25

Original Poster
Rep: Reputation: 2
Thanks for the prompt responce.

Can't find an unmolested slackpkgplus.conf in the package !

I've run the diff between the source and installed files :-

Code:
--- ../data1/slackpkg-2.82.0-noarch-16/etc/slackpkg/slackpkg.conf.new	2013-05-22 21:11:21.000000000 +0100
+++ ../../etc/slackpkg/slackpkg.conf	2016-02-04 19:08:49.558052347 +0000
@@ -44,7 +44,7 @@
 # The line is commented because slackpkg will try to find your 
 # architecture automagically.  If you want to override what slackpkg
 # finds, put the value after the = and uncomment this line
-#ARCH=
+ARCH=x86_64
 
 # The default PKGMAIN is "slackware", but some derived distros use other
 # names as the main directory.  PKGMAIN is the place with the slackware
@@ -65,16 +65,16 @@
 #SLACKKEY="Slackware Linux Project <security@slackware.com>"
 
 # Downloaded files will be in directory below:
-TEMP=/var/cache/packages
+TEMP=/home/data1/slackware64-14.2b/packages
 
 # Package lists, file lists, and others will be at WORKDIR:
-WORKDIR=/var/lib/slackpkg
+WORKDIR=/home/data1/slackware64-14.2b/slackpkg
 
 # Special options for wget (default is WGETFLAGS="--passive-ftp")
 WGETFLAGS="--passive-ftp"
 
 # If DELALL is "on", all downloaded files will be removed after install.
-DELALL=on
+DELALL=off
 
 # If CHECKMD5 is "on", the system will check the md5sums of all packages before
 # install/upgrade/reinstall is performed.
@@ -112,7 +112,7 @@
 # The ONOFF variable sets the initial behavior of the dialog interface.
 # If you set this to "on" then all packages will be selected by default.
 # If you prefer the opposite option (all unchecked), then set this to "off".
-ONOFF=on
+ONOFF=off
 
 # If this variable is set to "on", all files will be downloaded before the
 # requested operation (install or upgrade) is performed.   If set to "off",
For slackpkgplus it's the diff between my version and the .new suggested
Code:
--- ../../../etc/slackpkg/slackpkgplus.conf.new	2016-02-14 22:30:09.505423102 +0000
+++ ../../../etc/slackpkg/slackpkgplus.conf	2016-02-15 20:45:30.238352175 +0000
@@ -36,7 +36,7 @@
 
 # You can download-only by setting DOWNLOADONLY to 'on'. You may (you should) also use it in commandline
 # for example: "DOWNLOADONLY=on slackpkg upgrade-all". Useful for large upgrades.
-#DOWNLOADONLY=off
+#DOWNLOADONLY=on
 
 # Enable (on) / Disable (off) notification events (see notifymsg.conf)
 #ENABLENOTIFY=off
@@ -85,7 +85,8 @@
 
 # List repositories you want to use (defined below)
 # remember to launch 'slackpkg update' if you modify that row.
-REPOPLUS=( slackpkgplus restricted alienbob slacky )
+#REPOPLUS=( slackpkgplus restricted alienbob slacky )
+REPOPLUS=( slackpkgplus restricted alienbob )
 
 
 # Define mirrors (uncomment one or more mirror; remember to add it to REPOPLUS)
@@ -95,21 +96,28 @@
 
 # Slackware 14.1 - x86_64
 #MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/14.1/
-MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86_64/
-MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.1/x86_64/
-MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.1/
+#MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/14.1/x86_64/
+#MIRRORPLUS['alienbob']=http://www.slackware.com/~alien/slackbuilds/
+#MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.1/x86_64/
+#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-14.1/
 
 # use this to keep the slackpkg+ package updated
 MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
 
 # Slackware current - x86_64
-#MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/current/
+MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/current/
+MIRRORPLUS['alienbob']=http://taper.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
+#MIRRORPLUS['alienbob']=http://www.slackware.com/~alien/slackbuilds/
+MIRRORPLUS['restricted']=http://taper.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
+#MIRRORPLUS['slacky']=http://repository.slacky.eu/slackware64-current/
+#MIRRORPLUS['zerouno']=http://www.z01.eu/repo-slack/slackware64-current/
 
 # Local repository:
 #MIRRORPLUS['alienbob']=file://repositories/alien/sbrepos/14.1/x86/
 #
 # Local packages (you do not need metadata nor 'slackpkg update' command):
 #MIRRORPLUS['myrepo']=dir://repositories/mypackages/
+MIRRORPLUS['local']=dir://home/data1/slackware/packages/
 
 
 #
Could be I've got a simple typo......
 
Old 02-15-2016, 04:40 PM   #4
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
Your slackpkgplus.conf is inconsistent.
1. If you want a download-only mode, uncomment DOWNLOADONLY option.
2. Keep in REPOPLUS only respective MIRRORPLUS entries.
 
Old 02-16-2016, 02:35 AM   #5
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Quote:
Originally Posted by v8dave View Post
when slackpkg+ is enabled I get the following error,

Code:
ls: cannot access '*.t[blxg]z': No such file or directory
I've run the diff between the source and installed files :-


For slackpkgplus it's the diff between my version and the .new suggested
Code:
--- ../../../etc/slackpkg/slackpkgplus.conf.new	2016-02-14 22:30:09.505423102 +0000
+++ ../../../etc/slackpkg/slackpkgplus.conf	2016-02-15 20:45:30.238352175 +0000

<snip>

+MIRRORPLUS['local']=dir://home/data1/slackware/packages/
 #
The ls command returns an error because the directory /home/data1/slackware/packages/ is (certainly) empty.

To prevent this, the lines #1088 and #1143 in slackpkg+ (1.6.1p2) should be changed as below (in bold) :

Code:
1088: ls 2>/dev/null -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
1143: ls 2>/dev/null -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
P.S: The corresponding lines in slackpkg+/devel are #1389 and #1456.


--
SeB

Last edited by phenixia2003; 02-16-2016 at 02:38 AM.
 
Old 02-16-2016, 01:46 PM   #6
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 25

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by phenixia2003 View Post
The ls command returns an error because the directory /home/data1/slackware/packages/ is (certainly) empty.

To prevent this, the lines #1088 and #1143 in slackpkg+ (1.6.1p2) should be changed as below (in bold) :

Code:
1088: ls 2>/dev/null -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
1143: ls 2>/dev/null -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
P.S: The corresponding lines in slackpkg+/devel are #1389 and #1456.


--
SeB
Thank you, the edit suggested does stop the error message.
However the directory /home/data1/slackware/packages is not empty from a pedantic point of view, but there are no packages files in the folder or it's sub-folders so it is empty in the context of the search pattern.

Now I've just got to make this thread solved......
 
Old 02-16-2016, 02:03 PM   #7
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
I think it would be good idea, to use find instead of ls.
 
  


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] slackpkg+ and -current ymf331 Slackware 2 08-26-2014 02:11 AM
[SOLVED] slackpkg mirror from current to 14.1 krakanut Slackware 3 05-28-2014 08:51 PM
slackpkg updated from current rotke Slackware 2 11-05-2012 01:30 PM
Slackware64-Current / slackpkg slackass Slackware 31 06-06-2009 10:51 PM
Updating to -current with slackpkg macbeth8 Slackware 8 04-04-2008 07:14 PM

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

All times are GMT -5. The time now is 06:00 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