SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For me it's not that big a deal. I can live with it.
The only time I'd use that repository is when I know there is a beta to pull. Easy enough to just uncomment slackpkgplug.conf when needed.
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 slackpkgplus slackpkg+-1.7.5-noarch-2mt
installed slackware64 slackpkg-15.0.2-noarch-1
Is there a way to combine sections of package names like name and version only?
use regex
slackpkg-2.*
Code:
# All of the following will be checked for the regex:
# Package series, name, version, arch, build, and fullname
...
# To blacklist *all* of the "xorg-server-*" packages, use this:
# xorg-server.*
Tried that, does not work, it blacklist slackpkg completely.
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 slackpkgplus slackpkg+-1.7.5-noarch-2mt
Using VERBOSE=3 and looking at the contents of /tmp/slackpkg.0FHQxb/blacklist
Tested with patch. Only duplicate programs I have installed are the kernel packages. Three of them 5.10.34, 5.12.0 and 5.12.1, the running kernel is 5.12.1
slackpkg w/slackpkg+ worked fine before this patch for those packages. It also works with the patch.
Code:
slackpkg search kernel
Looking for kernel in package list. Please wait... DONE
The list below shows all packages with name matching "kernel".
[ Status ] [ Repository ] [ Package ]
installed slackware64 kernel-firmware-20210503_ecdfcf8-noarch-1
installed testing kernel-headers-5.12.1-x86-1
uninstalled(masked) slackware64 kernel-headers-5.10.34-x86-1
LEGACYBL=on slackpkg search kernel
Looking for kernel in package list. Please wait... DONE
The list below shows all packages with name matching "kernel".
[ Status ] [ Repository ] [ Package ]
installed slackware64 kernel-firmware-20210503_ecdfcf8-noarch-1
installed testing kernel-headers-5.12.1-x86-1
uninstalled(masked) slackware64 kernel-headers-5.10.34-x86-1
Regarding the slackpkgbeta repository.
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 slackpkgplus slackpkg+-1.7.5-noarch-2mt
installed slackware64 slackpkg-15.0.2-noarch-1
uninstalled(masked) slackpkgbeta slackpkg-15.0.1_beta1-noarch-1
<< snip >>
uninstalled(masked) slackpkgbeta slackpkg-2.84.0_beta9-noarch-1_rlw
LEGACYBL=on 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 slackpkgplus slackpkg+-1.7.5-noarch-2mt
installed slackware64 slackpkg-15.0.2-noarch-1
uninstalled(masked) slackpkgbeta slackpkg-15.0.1_beta1-noarch-1
However I'm reviewing that.
In this legacy system I used 'grep -E'
Slackpkg 2.82.1 (slackware 14.2) uses 'grep -Ew' (and greylist uses it too).
So the new patch (available to test branch on git too) does reintroduces 'grep -Ew'
Code:
--- a/src/slackpkgplus.sh
+++ b/src/slackpkgplus.sh
@@ -17,6 +17,7 @@ CLOG_SEPREGEX="^[+][-]+[+][ ]*$"
if [ -e $CONF/slackpkgplus.conf ];then
# You can override GREYLIST WGETOPTS SLACKPKGPLUS VERBOSE USEBL ALLOW32BIT SENSITIVE_SEARCH from command-line
+ EXTLEGACYBL=$LEGACYBL
EXTGREYLIST=$GREYLIST
EXTALLOW32BIT=$ALLOW32BIT
EXTSLACKPKGPLUS=$SLACKPKGPLUS
@@ -55,6 +56,7 @@ if [ -e $CONF/slackpkgplus.conf ];then
c_mask="${c_mask:-$c_gry}"
c_unin="${c_unin:-$c_blu}"
+ LEGACYBL=${EXTLEGACYBL:-$LEGACYBL}
GREYLIST=${EXTGREYLIST:-$GREYLIST}
ALLOW32BIT=${EXTALLOW32BIT:-$ALLOW32BIT}
SLACKPKGPLUS=${EXTSLACKPKGPLUS:-$SLACKPKGPLUS}
@@ -128,7 +130,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
##### ===== BLACKLIST FUNCTIONS === #####
# Patching makelist() original function to accept pkglist-pre
- eval "$(type makelist | sed -e $'1d;2c\\\nmakelist()\n' -e 's,cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist,cat $TMPDIR/pkglist-pre ${WORKDIR}/pkglist > ${TMPDIR}/pkglist,')"
+ eval "$(type makelist | sed -e $'1d;2c\\\nmakelist()\n' -e 's,cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist,cat $TMPDIR/pkglist-pre ${WORKDIR}/pkglist | applyblacklist > ${TMPDIR}/pkglist,')"
# Adds the pattern given by $(1) into the internal blacklist
# ${TMPDIR}/blacklist.slackpkgplus
@@ -147,7 +149,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
>${TMPDIR}/blacklist
fi
cat > ${TMPDIR}/inblacklist
- grep -vE -f ${TMPDIR}/blacklist -f ${TMPDIR}/blacklist.slackpkgplus ${TMPDIR}/inblacklist >${TMPDIR}/outblacklist
+ grep -vE ${BLKLOPT} -f ${TMPDIR}/blacklist -f ${TMPDIR}/blacklist.slackpkgplus ${TMPDIR}/inblacklist >${TMPDIR}/outblacklist
cat ${TMPDIR}/outblacklist
cat $TMPDIR/greylist.* >$TMPDIR/greylist
grep -qvEw -f $TMPDIR/greylist $TMPDIR/pkglist-pre >$TMPDIR/unchecklist
@@ -1141,7 +1143,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
printf "%s\n" $ROOT/var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
sed -i 's/^^/:/' $TMPDIR/blacklist
- cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist
+ cat ${WORKDIR}/pkglist | applyblacklist > ${TMPDIR}/pkglist
touch ${TMPDIR}/waiting
echo -n "Looking for $PATTERN in package list. Please wait... "
@@ -1985,6 +1987,10 @@ if [ "$SLACKPKGPLUS" = "on" ];then
if [ -e $TMPDIR/blacklist ];then
sed -i 's/^/^/' $TMPDIR/blacklist
fi
+ if [ "$LEGACYBL" == "on" ];then
+ BLKLOPT=-w
+ grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist > ${TMPDIR}/blacklist
+ fi
touch ${TMPDIR}/priority.filters
If I not forgotten something, now it should work EXACTLY as slackware 14.2 work, vanishing all the work made to allow slackpkg to not generate false positive on blacklist from three years to now.
Quote:
Sun Dec 2 06:46:33 UTC 2018
---------------
- 2.84.0_beta1
- Allow blacklisting of individual packages without collateral
damage (e.g. glibc ---> glibc-*). ...
If I not forgotten something, now it should work EXACTLY as slackware 14.2 work, vanishing all the work made to allow slackpkg to not generate false positive on blacklist from three years to now.
Wed May 12 00:02:47 CEST 2021
pkg/slackpkg+-1.7.6-noarch-1mt.txz: Upgrade
- Added LEGACYBL to allow slackpkg+ to use the previous blacklist system
- Fix 'continue' error message with -dialog=off
- Print "Package:" on the same line of progress counter in downloading
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.