LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg+ issue on current (https://www.linuxquestions.org/questions/slackware-14/slackpkg-issue-on-current-4175572336/)

v8dave 02-15-2016 03:15 PM

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.

yars 02-15-2016 03:27 PM

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).

v8dave 02-15-2016 04:09 PM

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......

yars 02-15-2016 04:40 PM

Your slackpkgplus.conf is inconsistent.
1. If you want a download-only mode, uncomment DOWNLOADONLY option.
2. Keep in REPOPLUS only respective MIRRORPLUS entries.

phenixia2003 02-16-2016 02:35 AM

Quote:

Originally Posted by v8dave (Post 5500725)
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

v8dave 02-16-2016 01:46 PM

Quote:

Originally Posted by phenixia2003 (Post 5500922)
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......

yars 02-16-2016 02:03 PM

I think it would be good idea, to use find instead of ls.


All times are GMT -5. The time now is 12:37 PM.