https://news.slashdot.org/story/22/09/05/0135254/
The egrep and fgrep commands have been deprecated since 2007.
Beginning with GNU Grep 3.8 today, calling these commands will now issue
a warning to the user that instead they should use
grep -E and grep -F, respectively
Creates /var/run/needs_restarting file if any "critical" package got
upgraded. As the /var/run/ is ephemeral and renewed each boot, the
file disappears after reboot.
The packages that flags the restart need are:
- kernel-generic, kernel-huge: as a new kernel needs a restart to be
running.
- glibc, glibc-solibs: Restart is the only way to be sure that all
running binaries are using the new glibc.
- eudev, elogind, dbus: those provides some very basic system
services.
- openssl, openssl-solibs: security bugs on those libs are dangerous,
the reboot makes sure that all running binaries are using the newer
version.
To make easier to do an unattended slackpkg update/upgrade process,
this commit provides different exit codes to many situations:
0 Successful slackpkg execution.
1 Something wrong happened.
20 No package found to be downloaded, installed, reinstalled,
upgraded, or removed.
50 Slackpkg itself was upgraded and you need to re-run it.
100 There are pending updates.
Code and the main manpage are updated accordingly.
In addition, this commit also:
- removes the ChangeLog.txt in doinst.sh, so the needed
'slackpkg update' after Slackpkg upgrade won't says it's all OK
and don't need to redo the package lists
- removes AUTHORS from manpage. Nowadays there are code from many
people in Slackpkg and shows a bit unfair to have only my and
Evaldo's name listed there.
Signed-off-by: Robby Workman <rworkman@slackware.com>
Make blacklist file a full package name regex.
Replace redundant 'print $0 } else { print $0' in cutpkg.awk.
Fix formatting on 'blacklist or ignore' message.
Merge server and local lists in subshell. Filter once.
This takes the server and local package lists, sorts, applies blacklist,
sorts again to make a large list of package names in blacklist.
Use internal printf rather than external ls to build local list.
Also pass local package list to blacklist
This creates a blacklist of package names from regexp in original
file (/etc/slackpkg/blacklist) and uses the precreated list for
later comparison
Signed-off-by: Robby Workman <rworkman@slackware.com>
As of slackpkg shipped with Slackware 15.0, it is no longer
supported to add packages to /etc/slackpkg/blacklist using
the slackpkg executable; this should only be done with an
editor pointing at /etc/slackpkg/blacklist
* Modify checkchangelog() function to only check CHECKSUMS.md5.asc.
* Remove unneeded check of ChangeLog.txt from checkchangelog() function.
* Move fetching of ChangeLog.txt to updatefilelists() function.
* Modify check-updates to output need to update to stderr so cron
jobs will notify sysadmin.
Signed-off-by: Robby Workman <rworkman@slackware.com>
This reverts commit fcc58ff506
because it breaks lxc container creation; ponce stated on LQ
that "seems that forcing $CONF under $ROOT is what break things
here: $CONF in the template is used to have a temporary location,
outside of the container, in which to store the template, a
blacklist and a mirror configuration for the container creation"
This adds ./$PKGMAIN/ to a blacklisted set line, which
ought to say turn kde/ into ./slackware64/kde as it listed in the
temp pkglist. I've tightened up the patches/pasture/extra etc. lines
too.
Signed-off-by: Robby Workman <rworkman@slackware.com>
Blacklisted sets now need a trailing / (eg. kde/)
Anything with a trailing slash is excluded from having \s added to it.
Then the slash is removed so the set is picked up by the old
functionality.
Signed-off-by: Robby Workman <rworkman@slackware.com>
In short, it seems impossible to blacklist some packages without
catching other undesirable packages. As an example, blacklisting
glibc will also catch glibc-zoneinfo (and the other glibc-*)
packages. It would be good to have the ability to blacklist only
the glibc package without it catching the others.
With this change, if sysadmin wants the blacklist to be "greedy,"
then adding "glibc.*" to the blacklist will do that.
Reported-by: Peter Hyman <pete@peterhyman.com>
Signed-off-by: Robby Workman <rworkman@slackware.com>