LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Requests for -current (14.2-->15.0) (https://www.linuxquestions.org/questions/slackware-14/requests-for-current-14-2-15-0-a-4175620463/)

gouttegd 04-20-2021 02:28 PM

Quote:

Originally Posted by Thom1b (Post 6243060)
I'm just curious why we still have gnupg-1.4. I know it's still supported but it's very old. In my case, I removed it and recompiled gnupg2 without "--enable-gpg-is-gpg2" and it works fine.
Maybe gnupg-1.4 can move in pasture tree?

I wholeheartedly support such a move. The only raison d’ętre for GnuPG 1.4 is for those who need to still be able to decrypt old messages or archives from the 1990s. Everybody else should be using GnuPG 2 (and even those needing GnuPG 1.4 for compatibility should use GnuPG 2 most of the time, and use GnuPG 1.4 only when decrypting old messages).

It would be very nice if invoking gpg on Slackware gave you GnuPG 2.

(Full disclosure: I am a GnuPG contributor.)

average_user 04-20-2021 03:09 PM

Quote:

Originally Posted by biker_rat (Post 6243051)
Only absolute must change to the stock build instructions from swaywm.org is alter the stupid default of alacritty to xterm in the default sway configuration or everyone will think sway is broken (if alacritty is not installed).

But why switch to Wayland and use terminal emulator straight from the dark days of X?

biker_rat 04-20-2021 04:07 PM

Using xterm as default has the advantage that xterm is installed outside of xfce or kde package series. It is essential that if sway is installed whichever terminal is the sway default is also installed or else the sway DE will be unusable until you manually configure the default to be a terminal that you do have installed (unless you also install a launcher with it like bemenu or dmenu_wayland - but then that package has to be installed and the default sway config must point to it or you still have the same issue). Configuration changes using a text editor in console to sway are simple, but I believe most distros want to ship a DE that usually works immediately post install without a prerequisite of tinkering with config files to start it the first time. Personally my sway slackbuild points at xfce4-terminal as default terminal, but my slackbuild leans toward doing as much as possible in wayland natively. As LuckyCyborg pointed out, going the other way and pointing at xwayland whenever possible yields a better user experience on a lot of hardware.

baldzhang 04-20-2021 09:16 PM

Quote:

Originally Posted by baldzhang (Post 6231433)
issue 1)
/proc was mounted twice


issue 2)
when add more NICs after installation, /etc/udev/rules.d/70-persistent-net.rules was not updated

still there

cthibal 04-21-2021 02:54 AM

Hello,

Would it be possible to modify default /etc/inputrc to prevent highlighting pasted text when pasting from middle-click in xterm ?

IMHO it only add confusion: is it the text we selected (old fashion) or is it the text we pasted (new fashion) ?

Old fashion was not confusing, everything selected in xterm was staying highlighted, period.

Line to add in /etc/inputrc:
set enable-bracketed-paste off

BR

Larry

GazL 04-21-2021 05:30 AM

Quote:

Originally Posted by gbschenkel (Post 6242963)
Hey Pat, any chance to enable Automatic Process Group Scheduling(SCHED_AUTOGROUP=y) on Kernel? Cheers.

Probably not a bad idea, especially as there seems to be a parameter to disable it at boot-time but not one to enable it. However, this is a significant user visible change in system behaviour that will impact anyone who currently uses nice values to manage system-wide relative task performance in the traditional manner.

Migration actions will be required for such folk, even if it's only to add noautogroup to their boot parameters.

This one is CHANGES_AND_HINTS worthy.

LuckyCyborg 04-21-2021 06:07 AM

Quote:

Originally Posted by GazL (Post 6243309)
Probably not a bad idea, especially as there seems to be a parameter to disable it at boot-time but not one to enable it. However, this is a significant user visible change in system behaviour that will impact anyone who currently uses nice values to manage system-wide relative task performance in the traditional manner.

Migration actions will be required for such folk, even if it's only to add noautogroup to their boot parameters.

This one is CHANGES_AND_HINTS worthy.

AND, what impact will have this SCHED_AUTOGROUP kernel option on the mode how elogind works?

After all, the elogind uses CGROUPS to do its job. And LXC too.

gsl 04-21-2021 06:16 AM

Remove TokuDB stuff from rc.mysqld?
 
MariaDB no longer builds the TokuDB plugin by default (so it's no longer at /usr/lib64/mysql/plugin/ha_tokudb.so) and it seems it is deprecated in MariaDB 10.5 and will be removed in 10.6, so perhaps the TOKUDB parameter can be removed from rc.mysqld?

Geoff.

GazL 04-21-2021 08:29 AM

Quote:

Originally Posted by LuckyCyborg (Post 6243316)
AND, what impact will have this SCHED_AUTOGROUP kernel option on the mode how elogind works?

None I would expect as elogind uses its own cgroup controller, where as autogroup interacts with the cpu controller, but I'm not much of an expert on cgroups or elogind for that matter, so best if someone else confirms that.

What I'm not yet clear on with AUTOGROUP is how group niceness values (as opposed to thread/task niceness values) interact with the cpu.shares values in the cpu controller. I might have to play sometime.

drumz 04-21-2021 09:55 AM

Quote:

Originally Posted by wowbaggerHU (Post 6209448)
Could you please add thin-provisioning-tools to -current?
It is necessary for activating cache LVs on reboot, and without it, the LV can't be mounted.

Quote:

Originally Posted by majekw (Post 6241915)
+1 for this.
thin-provisioning tools are already in Slackbuilds https://slackbuilds.org/repository/1...sioning-tools/, so integrrating should be easier.
Keep in mind that there is also patch for mkinitrd for boot support from thin or cached volume.

Quote:

Originally Posted by drumz (Post 6241924)
Is this still true?

Quote:

Originally Posted by majekw (Post 6241937)
You could be right :-)
I checked changelog of LVM2 and found:

Code:

Allow activation of pools when thin/cache_check tool is missing.
So, for activation I think it shouldn't be necessary.
Thank you for testing.

So I'm revisiting this. While I don't think it's required to have the cache_check binary (provided by thin-provisioning-tools), it probably would be nice to have. Manually deactivating a volume gives this warning message:

Code:

# lvchange -an /dev/vg_storage/lv_slow
  /usr/sbin/cache_check: execvp failed: No such file or directory
  WARNING: Check is skipped, please install recommended missing binary /usr/sbin/cache_check!


gmgf 04-21-2021 04:31 PM

Quote:

Originally Posted by baldzhang (Post 6243226)
still there

(issue 2)
when add more NICs after installation, /etc/udev/rules.d/70-persistent-net.rules was not updated)

i compil 'eudev' without the option '--enable-rule_generator' and it work, without problem here ;)

Tonus 04-21-2021 07:01 PM

mcabber 1.5..4 (Bugfix release from january)

With OTR (Off-The-Record messaging) enabled ?

As said before it would just be a matter of adding --enable-otr :)

mumahendras3 04-21-2021 08:25 PM

Quote:

ap/slackpkg-15.0.2-noarch-1.txz: Upgraded.
Fix break error messages (dive)
Remove now pointless if/then/else (dive)
Safer config sourcing (dive)
files/slackpkg: replace #!/bin/sh with #!/bin/bash (Eugen Wissner)
Don't create blacklist when running update (dive)
Add show-changelog & help to non-root commands (dive)
Improve search blacklisting (dive)
Fix package duplicate bug (PiterPunk)
Thanks to Robby Workman.
Since #!/bin/sh has been replaced with #!/bin/bash in slackpkg, it might be worth to mention that /etc/rc.d/rc.S and /etc/rc.d/rc.M contain some commands that use brace expansion and arrays (in rc.S) which are not defined by POSIX. This will make systems that have /bin/sh symlinked to strictly POSIX-compliant shell (like dash) fail to boot. So, either #!/bin/sh needs to be replaced with #!/bin/bash or below changes need to be applied.

Thanks!

Code:

--- a/etc/rc.d/rc.S    2021-04-22 07:23:31.648589723 +0700
+++ b/etc/rc.d/rc.S    2021-04-22 12:35:38.186323351 +0700
@@ -137,11 +137,10 @@ if [ -f /etc/crypttab -a -x /sbin/crypts
  fi
  # NOTE: we only support LUKS formatted volumes (except for swap)!
  cat /etc/crypttab | grep -v "^#" | grep -v "^$" | while read line; do
-    eval LUKSARRAY=( $line )
-    LUKS="${LUKSARRAY[0]}"
-    DEV="${LUKSARRAY[1]}"
-    PASS="${LUKSARRAY[2]}"
-    OPTS="${LUKSARRAY[3]}"
+    LUKS="$(echo "$line" | tr '\t' ' ' | tr -s ' ' | cut -f1 -d' ')"
+    DEV="$(echo "$line" | tr '\t' ' ' | tr -s ' ' | cut -f2 -d' ')"
+    PASS="$(echo "$line" | tr '\t' ' ' | tr -s ' ' | cut -f3 -d' ')"
+    OPTS="$(echo "$line" | tr '\t' ' ' | tr -s ' ' | cut -f4 -d' ')"
    LUKSOPTS=""
    if echo $OPTS | grep -wq ro ; then LUKSOPTS="${LUKSOPTS} --readonly" ; fi
    if echo $OPTS | grep -wq discard ; then LUKSOPTS="${LUKSOPTS} --allow-discards" ; fi
@@ -302,7 +301,7 @@ fi # Done checking root filesystem
 if [ ! -L /etc/mtab -o ! -r /etc/mtab ]; then
  # /etc/mtab is a file (or doesn't exist), so we'll handle it the old way:
  # Any /etc/mtab that exists here is old, so we start with a new one:
-  /bin/rm -f /etc/mtab{,~,.tmp} && /bin/touch /etc/mtab
+  /bin/rm -f /etc/mtab* && /bin/touch /etc/mtab
  # Add /, /proc, /sys, and /dev/shm mounts to /etc/mtab:
  /sbin/mount -f -w /
  if [ -d /proc/sys ]; then
@@ -386,7 +385,7 @@ fi
 # Clean up some temporary files:
 rm -f /etc/nologin /etc/dhcpc/*.pid /etc/forcefsck /etc/fastboot \
  /var/state/saslauthd/saslauthd.pid /tmp/.Xauth* 1> /dev/null 2> /dev/null
-rm -rf /tmp/{kde-[a-zA-Z]*,ksocket-[a-zA-Z]*,hsperfdata_[a-zA-Z]*,plugtmp*}
+rm -rf /tmp/kde-[a-zA-Z]* /tmp/ksocket-[a-zA-Z]* /tmp/hsperfdata_[a-zA-Z]* /tmp/plugtmp*
 if [ -d /var/lib/pkgtools/setup/tmp ]; then
  ( cd /var/lib/pkgtools/setup/tmp && rm -rf * )
 elif [ -d /var/log/setup/tmp ]; then

Code:

--- a/etc/rc.d/rc.M    2021-04-22 07:23:31.648589723 +0700
+++ b/etc/rc.d/rc.M    2021-04-22 07:56:08.818683244 +0700
@@ -313,7 +313,7 @@ fi
 # Check quotas and then turn quota system on:
 if grep -q quota /etc/fstab ; then
  for quotafs in $(awk '/quota/ {print $2}' /etc/fstab) ; do
-    /bin/rm -f $quotafs/{a,}quota.{group,user}.new
+    /bin/rm -f $quotafs/*quota.*.new
  done
  if [ -x /sbin/quotacheck ]; then
    echo "Checking filesystem quotas:  /sbin/quotacheck -avugm"


Daedra 04-21-2021 10:58 PM

mesa-21.0.3

saxa 04-22-2021 03:54 PM

glib-networking-2.68.1
https://download.gnome.org/sources/g...-2.68.1.tar.xz

cwizardone 04-22-2021 06:27 PM

PipeWire-0.3.26
Many bug fixes and improvements,
https://gitlab.freedesktop.org/pipew...eleases/0.3.26

Nobby6 04-22-2021 08:12 PM

Postfix install script breaks systems
 
Postfix install script is overwriting aliases file on updates


Pat,

please DO NOT symlink /etc/postfix/aliases to /etc/aliases if/etc/postfix/aliases exists,
every update breaks custom settings.

USUARIONUEVO 04-22-2021 10:00 PM

ap/slackpkg-15.0.2-noarch-1.txz: Upgraded.

revert this.

Try to install some txz , under custom folder ...it fails ever if custom destination not have installed the pkgtools.

As a little example this change breaks the scripts to make liveslak , cuase when try to put some pkg series under custom dir to make separate series this fails ever if not install first pkgtools on our custom folder , and remove it later.

franzen 04-23-2021 01:50 AM

Quote:

Originally Posted by Nobby6 (Post 6244001)
Postfix install script is overwriting aliases file on updates


Pat,

please DO NOT symlink /etc/postfix/aliases to /etc/aliases if/etc/postfix/aliases exists,
every update breaks custom settings.

If you make custom settings in /etc/aliases everything should work after an update.
Or set alias_maps in main.cf to where you like.

Nobby6 04-23-2021 02:48 AM

Quote:

Originally Posted by franzen (Post 6244047)
If you make custom settings in /etc/aliases everything should work after an update.
Or set alias_maps in main.cf to where you like.

I am very aware of how postfix works, I've been using and contributing to it since we left sendmail around 2005-6.

Every postfix install ever puts alias file in /etc/postfix

Pat's install makes that a symlink to /etc/aliases which wipes out our /etc/aliases, changing main.cf will make zero difference, since it is already correctly setup

I understand Pat wants to keep it painless for those used to sendmail, but this is one part he has nastily overlooked.

I only picked this up now because we custom source build postfix for our primary mail servers, but tend to use package versions for less important ( web/dns/usenet/etc ) servers since they do nothing but forward root mail to ops people.

saxa 04-23-2021 05:34 AM

gtk+-3.24.29
https://download.gnome.org/sources/g...3.24.29.tar.xz

chrisretusn 04-23-2021 08:23 AM

Quote:

Originally Posted by Nobby6 (Post 6244001)
Postfix install script is overwriting aliases file on updates


Pat,

please DO NOT symlink /etc/postfix/aliases to /etc/aliases if/etc/postfix/aliases exists,
every update breaks custom settings.

I am not seeing this. My /etc/aliases was last modified November 20, 2017, it has never been over written since I modified it.

GazL 04-23-2021 09:25 AM

This one is kind of trivial, but may I suggest a minor tweak to the recent rc.S change relating to the conditional mounting of /proc:

Instead of checking /proc/self/mounts which has to resolve and traverse the process specific "self" symlink, I suggest checking ! -d /proc/sys. It's really not a big deal, but avoids a very small amount of unnecessary processing (not that anyone would notice the difference).

Also, IMO it would be nice to have the same style of check for the mounting of /sys to keep things consistent, rather than having to launch grep twice to look in the contents of /proc/filesystems and /proc/mounts.

suggested patch:
Code:

--- rc.S.orig        2021-04-23 14:39:13.910092216 +0100
+++ rc.S        2021-04-23 14:43:21.766325752 +0100
@@ -8,17 +8,13 @@
 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
 
 # Mount /proc if it is not already mounted:
-if [ ! -r /proc/self/mounts ]; then
+if [ ! -d /proc/sys ]; then
  /sbin/mount -v proc /proc -n -t proc 2> /dev/null
 fi
 
-# Mount sysfs next, if the kernel supports it:
-if [ -d /sys ]; then
-  if grep -wq sysfs /proc/filesystems ; then
-    if ! grep -wq sysfs /proc/mounts ; then
-      /sbin/mount -v sysfs /sys -n -t sysfs
-    fi
-  fi
+# Mount /sys if it is not already mounted:
+if [ ! -d /sys/kernel ]; then
+  /sbin/mount -v sysfs /sys -n -t sysfs 2> /dev/null
 fi
 
 # If /run exists, mount a tmpfs on it (unless the

The above will assume that the kernel supports sysfs, but at this point I think that is pretty much a given, and even if it didn't, explicitly checking really doesn't serve much of a purpose as the mount will just harmlessly fail.

Markus Wiesner 04-23-2021 10:58 AM

Quote:

Originally Posted by GazL (Post 6244142)
Also, IMO it would be nice to have the same style of check for the mounting of /sys to keep things consistent, rather than having to launch grep twice to look in the contents of /proc/filesystems and /proc/mounts.

What about using stat which is a part of coreutils?

Code:

if [ "$(stat -f -c %T /sys)" != "sysfs" ] ; then
  /sbin/mount -v sysfs /sys -n -t sysfs 2> /dev/null
fi

One-line check and it also guarantees that it is the correct filesystem type and not just any kind of directory (-d) or "something readable" (-r) at that path.

GazL 04-23-2021 11:09 AM

[ -d ] is a shell-builtin. I always try and avoid using external tools where possible. If you're gonna use an external tool anyway, then /bin/mountpoint might be the thing for the job (assuming it works without /proc being mounted: i'd have to check that).

lagavulin16 04-23-2021 11:17 AM

rtkit-0.13 as dependency of pipewire and pulseaudio packages.
https://github.com/heftig/rtkit/releases/tag/v0.13

Markus Wiesner 04-23-2021 11:58 AM

Quote:

Originally Posted by GazL (Post 6244174)
[ -d ] is a shell-builtin. I always try and avoid using external tools where possible. If you're gonna use an external tool anyway, then /bin/mountpoint might be the thing for the job (assuming it works without /proc being mounted: i'd have to check that).

Good point about the shell-builtin. But /bin/mountpoint has more dependencies and would only check if "something" is mounted there and not if it is really the sysfs. So if we accept the overhead of an external tool, stat looks like the the better/safer solution to me compared to grep and mountpoint. Both stat and mountpoint work here when used inside a chroot without /proc.

gmgf 04-23-2021 12:45 PM

proc is mounted by default on slackware in /etc/fstab

(proc /proc proc defaults 0 0)

volkerdi 04-23-2021 01:50 PM

Quote:

Originally Posted by Nobby6 (Post 6244059)
Pat's install makes that a symlink to /etc/aliases which wipes out our /etc/aliases,

How does making a symlink in /etc/postfix wipe out your /etc/aliases? I'm not seeing that happen here.

If what you mean is that you're creating an /etc/postfix/aliases *file* and that gets overwritten by the symlink, yes that's the current behavior. Is there a reason that you can't make your edits in /etc/aliases?

GazL 04-23-2021 07:27 PM

Quote:

Originally Posted by Markus Wiesner (Post 6244193)
Good point about the shell-builtin. But /bin/mountpoint has more dependencies and would only check if "something" is mounted there and not if it is really the sysfs. So if we accept the overhead of an external tool, stat looks like the the better/safer solution to me compared to grep and mountpoint. Both stat and mountpoint work here when used inside a chroot without /proc.

I respect your idea, but while stat does give one more certainty, IMO not needing to call external utilities is worth the trade-off. In my suggested patch, if /sys/kernel/ is not found, it'll mount sysfs on /sys. I'd argue that it's not unreasonable to assume that /sys will be empty if sysfs is not mounted this early in the boot process.

mumahendras3 04-23-2021 08:24 PM

Another important scripts that I found using #!/bin/sh but use non-POSIX commands are /sbin/removepkg (extended globbing, pushd, and some other more), /sbin/pkgdiff (brace expansion), /sbin/makepkg (echo flags), /sbin/installpkg (brace expansion), and /sbin/pkgtool (passing arguments with the dot command). Probably need to be changed to #!/bin/bash too.

Thanks!

atelszewski 04-24-2021 03:30 AM

NFSv4 only server
 
Hi,

could an option to disable starting of these two services from /etc/rc.d/rc.nfsd:

Code:

/etc/rc.d/rc.rpc
/usr/sbin/rpc.rquotad

be added? For example to /etc/default/nfs.

They are not required for NFSv4-only setups.

NFSv2 and v3 can already be nicely (cleanly) disabled with:

Code:

RPC_NFSD_OPTS="-N 2 -N 3 -U"
RPC_MOUNTD_OPTS="-N 2 -N 3 -u"

put in /etc/default/{nfs,rpc}.

To be NFSv4-only super-clean, it should be possible to not start rpc* services from /etc/rc.d/rc.rpc as well.

BTW:

Code:

/usr/sbin/rpc.mountd
is required and should be left as is in /etc/rc.d/rc.nfsd.

Thanks!

--
Best regards,
Andrzej Telszewski

atelszewski 04-24-2021 03:36 AM

Setup support for NFSv4
 
Hi,

currently, setup only supports NFSv3.

v3 is forced with:

Code:

mount -r -t nfs -o vers=3 $REMOTE_IPADDR:$REMOTE_PATH /var/log/mount
in usr/lib/setup/INSNFS.

Could the protocol version forcing be removed to allow v4 as well?

--
Best regards,
Andrzej Telszewski

Fellype 04-24-2021 11:14 AM

Suggestion (cosmetic)

Change line 20 in /etc/inittab
from:
# 4 = X11 with KDM/GDM/XDM (session managers)

to:
# 4 = X11/Wayland with SDDM/KDM/GDM/XDM (session managers)

or something more appropriate :)


Regards,
Fellype

P.S.: I haven't checked if this was already suggested before

TommyC7 04-24-2021 12:24 PM

Temporarily, may we revert back to file-5.39?

File 5.40 incorrectly detects XZ compressed data.

This has been noted in other distributions too:

https://bugs.gentoo.org/784773

https://bugs.archlinux.org/task/70261

vovim 04-24-2021 06:25 PM

Cups and usblp
 
Would it be possible to remove the blacklist of usblp from the file /lib/modprobe.d/cups-blacklist-usblp.conf
That would allow the use of the escputil command with "--raw-device /dev/usb/lp0" for getting ink levels etc., without having to copy the blacklist file to /etc/modprobe.d and comment out the blacklist line.

I also read in the CUPS/Troubleshooting ArchWiki web page (https://wiki.archlinux.org/index.php...roubleshooting) the following :

Warning: As of cups version 1.6.0, it should no longer be necessary to blacklist the usblp kernel module. If you find out this is the only way to fix a remaining issue please report this upstream to the CUPS bug tracker and maybe also get in contact with Till Kamppeter (Debian CUPS maintainer). See upstream bug for more info.

Thanks.

Ser Olmy 04-25-2021 11:42 AM

I'm going to drag this up one final time: Samba in -current is broken, and it's due to these options in samba.SlackBuild:
Code:

# Choose correct options depending on whether PAM is installed:
if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
  PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security --with-system-mitkrb5 --with-experimental-mit-ad-dc"
  unset SHADOW_OPTIONS
else
  unset PAM_OPTIONS
  SHADOW_OPTIONS="--without-pam"
fi

"--with-system-mitkrb5" prevents Samba from being built against embedded Heimdal. This removes all AD DC functionality unless "--with-experimental-mit-ad-dc" is also specified, but as mentioned earlier in this thread, "experimental" in this case means "broken due to MIT KRB5 bugs, will not be fixed, will not receive security patches".

I don't know of any reason why these two build options can't simply be removed and "--builtin-libraries=heimdal" be put back in.

Nobby6 04-25-2021 07:48 PM

Quote:

Originally Posted by chrisretusn (Post 6244128)
I am not seeing this. My /etc/aliases was last modified November 20, 2017, it has never been over written since I modified it.

I've confirmed it on two machines with the latest postfix.

and postfix usually expects /etc/postfix/aliases, those used to postfix will normally be using that location.
slackwares version puts it in /etc and then symlinks it to /etc/postfix - wiping out the real version that postfix expects.

...and if you think I'm going to run around hundreds of servers changing it to /etc just to appease a difference in slackware, I can assure you, you're sadly mistaken

volkerdi 04-25-2021 07:54 PM

Quote:

Originally Posted by Ser Olmy (Post 6244781)
I'm going to drag this up one final time: Samba in -current is broken, and it's due to these options in samba.SlackBuild:
Code:

# Choose correct options depending on whether PAM is installed:
if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
  PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security --with-system-mitkrb5 --with-experimental-mit-ad-dc"
  unset SHADOW_OPTIONS
else
  unset PAM_OPTIONS
  SHADOW_OPTIONS="--without-pam"
fi

"--with-system-mitkrb5" prevents Samba from being built against embedded Heimdal. This removes all AD DC functionality unless "--with-experimental-mit-ad-dc" is also specified, but as mentioned earlier in this thread, "experimental" in this case means "broken due to MIT KRB5 bugs, will not be fixed, will not receive security patches".

I don't know of any reason why these two build options can't simply be removed and "--builtin-libraries=heimdal" be put back in.

1) what's broken again?

2) let me know when Red Hat quits using those options... that will help convince me.

Nobby6 04-25-2021 08:09 PM

Quote:

Originally Posted by volkerdi (Post 6244244)
How does making a symlink in /etc/postfix wipe out your /etc/aliases? I'm not seeing that happen here.

If what you mean is that you're creating an /etc/postfix/aliases *file* and that gets overwritten by the symlink, yes that's the current behavior. Is there a reason that you can't make your edits in /etc/aliases?

That's where it's always been, just looked at the default source confs which do reference /etc/aliases (back in the day I'm sure they didnt) it's why we (and about 50% others I asked on IRC) use /etc/postfix and not /etc

Perhaps the installer could look to see if /etc/postfix/aliases exists as a real_file, if so, don't create symlink?
That way nothing else would need changing.

chrisretusn 04-25-2021 08:40 PM

Quote:

Originally Posted by chrisretusn (Post 6244128)
I am not seeing this. My /etc/aliases was last modified November 20, 2017, it has never been over written since I modified it.

Quote:

Originally Posted by Nobby6 (Post 6244863)
I've confirmed it on two machines with the latest postfix.

and postfix usually expects /etc/postfix/aliases, those used to postfix will normally be using that location.
slackwares version puts it in /etc and then symlinks it to /etc/postfix - wiping out the real version that postfix expects.

...and if you think I'm going to run around hundreds of servers changing it to /etc just to appease a difference in slackware, I can assure you, you're sadly mistaken

Well I don't expect you too. Wow! you have hundreds of slackware servers? Amazing. I wish I had a tenth of that. ;)

I don't have a lot of changes in my /etc/aliases file. I don't claim to be an expert in postfix. Strange though that /etc/aliases is referenced a lot in the documentation.
From the /etc/postfix/main.cf file:
Code:

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible.  Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi".  This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

From man 5 postconf:
Code:

alias_database (default: see postconf -d output)
      The  alias  databases for local(8) delivery that are updated with "newaliases" or with "sendmail
      -bi".

      This is a separate configuration parameter because not all the tables specified with $alias_maps
      have to be local files.

      Examples:

      alias_database = hash:/etc/aliases
      alias_database = hash:/etc/mail/aliases

alias_maps (default: see postconf -d output)
      The  alias  databases  that  are  used for local(8) delivery. See aliases(5) for syntax details.
      Specify zero or more "type:name" lookup tables, separated by whitespace or comma. Tables will be
      searched in the specified order until a match is found.  Note: these lookups are recursive.

      The  default  list is system dependent.  On systems with NIS, the default is to search the local
      alias database, then the NIS alias database.

      If you change the alias database, run "postalias /etc/aliases" (or wherever your  system  stores
      the mail alias file), or simply run "newaliases" to build the necessary DBM or DB file.

      The  local(8) delivery agent disallows regular expression substitution of $1 etc. in alias_maps,
      because that would open a security hole.

      The local(8) delivery agent will silently ignore requests to use the proxymap(8)  server  within
      alias_maps.  Instead  it  will open the table directly. Before Postfix version 2.2, the local(8)
      delivery agent will terminate with a fatal error.

      Examples:

      alias_maps = hash:/etc/aliases, nis:mail.aliases
      alias_maps = hash:/etc/aliases

postconf -d output (-d Print main.cf default parameter settings instead of actual settings.):
Code:

postconf -d | grep aliases
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, nis:mail.aliases
newaliases_path = /usr/bin/newaliases

From http://www.postfix.org/STANDARD_CONF...ON_README.html [Postfix on a local network]
Code:

In the latter case, each user has an alias on the mailhost that forwards mail to her preferred machine:

    /etc/aliases:
        joe:    joe@joes.preferred.machine
        jane:  jane@janes.preferred.machine

On some systems the alias database is not in /etc/aliases. To find out the location for your system, execute the command "postconf alias_maps".


ctrlaltca 04-26-2021 09:08 AM

Tried the new kernel 5.12.0 package in testing/
There'a a change in the config: CONFIG_DM_CRYPT=m, while on 5.10/11 it was =y.
Mkinitrd doesn't automatically add the dm-crypt module in the initrd, so the kernel won't boot anymore from encrypted volumes.

Please either add the module to mkinitrd (around line 650) or change the config back to CONFIG_DM_CRYPT=y; this last option will require some more config change, see this post: https://www.linuxquestions.org/quest...ml#post6236116

AlexSlack 04-26-2021 11:30 AM

Samba AD DC
 
Quote:

Originally Posted by volkerdi (Post 6244865)
1) what's broken again?

2) let me know when Red Hat quits using those options... that will help convince me.

Good day,

According to RedHat documentation here https://access.redhat.com/documentat...pes-of-servers:

Quote:

Red Hat does not support running Samba as an AD domain controller (DC).
Samba can be used as AD DC with MIT KDC https://wiki.samba.org/index.php/Run...T_Kerberos_KDC ; however it still has some issues https://wiki.samba.org/index.php/Roadmap_MIT_KDC

I've been using Samba AD DC for the last 4 years in Slackware current, I rebuild the samba package with internal heimdal KDC and it is working properly on domain controllers and domain members.

I'm thankful having dnspython and krb5. in current :)

lagavulin16 04-26-2021 11:47 AM

open-vm-tools-11.2.5 is essential to be a base package, imo.
https://github.com/vmware/open-vm-tools/releases

You can take Slackbuild from version 10.2.0 as an example, but I do not have enough knowledge to change it for the current version - both in the program and in Slackware itself there have been many changes since then.
https://slackbuilds.org/repository/1...open-vm-tools/
Code:

#!/bin/sh

# Slackware build script for open-vm-tools

# Copyright 2017 Jeremy HOCDE
# Copyright 2018 Alexander VERBOVETSKY
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=open-vm-tools
VERSION=${VERSION:-10.2.0_7253323} # Remember to change VERSION - to _ !!!
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}

SRCVER=$(echo $VERSION | tr _ -)

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

VGAUTH=${VGAUTH:-no}
case "$VGAUTH" in
  no)
    VGAUTH_OPTS="--disable-vgauth"
    ;;
  yes)
    VGAUTH_OPTS=""
    ;;
  xmlsec)
    VGAUTH_OPTS="--enable-xmlsec1"
    ;;
  *)
    echo "eRRoR with VGAUTH parameter"
    exit 1
    ;;
esac

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

autoreconf -i
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LIBS=-lcrypt \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --without-pam \ - this string should be edited as well
  --with-x \
  $VGAUTH_OPTS \
  --build=$ARCH-slackware-linux

make
make install DESTDIR=$PKG

mkdir -p $PKG/etc/rc.d
cp $CWD/rc.vmtoolsd $PKG/etc/rc.d/rc.vmtoolsd.new

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
        INSTALL LICENSE README docs/ \
  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}


drumz 04-26-2021 01:03 PM

mcelog
 
Package mcelog installs /etc/rc.d/rc.mcelog, but nothing else in /etc/rc.d/* references it. (This was also pointed out here: https://www.linuxquestions.org/quest...mcelog-883391/)

This comment is wrong in /etc/rc.d/rc.mcelog:
Code:

# additional options to pass to the daemon
# this only works in daemon mode
# see the manpage for details. settings can be also
# set in /etc/mcelog.conf
MCELOG_OPTIONS=""

It should be:
Code:

/etc/mcelog/mcelog.conf
Currently in rc.local and rc.local_shutdown I have:

Code:

if [ -x /etc/rc.d/rc.mcelog ]; then
        /etc/rc.d/rc.mcelog start
fi

Code:

if [ -x /etc/rc.d/rc.mcelog ]; then
        /etc/rc.d/rc.mcelog stop
fi

Would it make sense to start mcelog from one of the official startup scripts? (rc.S, I guess)

Note: I don't remember if rc.mcelog gets installed with the executable bit set or not. By the principle of least surprise, I think it would make sense to install it without the executable bit (or add it to the list during setup for the user to decide).

marco70 04-26-2021 02:10 PM

kernel-5.12.0 ACPI error
 
Upgrade testing 5.11.16 to 5.12.0
My bios MSI Z370 TOMAHAWK 7B47v19 date 2020-01-08

Code:

Apr 26 19:55:23 linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PR00._CPC], AE_NOT_FOUND (20210105/psargs-330)
Apr 26 19:55:23 linux kernel: ACPI Error: Aborting method \_SB.PR01._CPC due to previous error (AE_NOT_FOUND) (20210105/psparse-529)
Apr 26 19:55:23 linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PR00._CPC], AE_NOT_FOUND (20210105/psargs-330)
Apr 26 19:55:23 linux kernel: ACPI Error: Aborting method \_SB.PR02._CPC due to previous error (AE_NOT_FOUND) (20210105/psparse-529)
Apr 26 19:55:23 linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PR00._CPC], AE_NOT_FOUND (20210105/psargs-330)
Apr 26 19:55:23 linux kernel: ACPI Error: Aborting method \_SB.PR03._CPC due to previous error (AE_NOT_FOUND) (20210105/psparse-529)
Apr 26 19:55:23 linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PR00._CPC], AE_NOT_FOUND (20210105/psargs-330)
Apr 26 19:55:23 linux kernel: ACPI Error: Aborting method \_SB.PR04._CPC due to previous error (AE_NOT_FOUND) (20210105/psparse-529)
Apr 26 19:55:23 linux kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PR00._CPC], AE_NOT_FOUND (20210105/psargs-330)
Apr 26 19:55:23 linux kernel: ACPI Error: Aborting method \_SB.PR05._CPC due to previous error (AE_NOT_FOUND) (20210105/psparse-529)

kernel-5.11.16 all ok

Ser Olmy 04-26-2021 04:23 PM

Quote:

Originally Posted by volkerdi (Post 6244865)
1) what's broken again?

The Active Directory Domain Controller part of Samba. As mentioned, tt's considered "experimental" (link).
Quote:

Originally Posted by volkerdi (Post 6244865)
2) let me know when Red Hat quits using those options... that will help convince me.

I haven't checked, but I'd be surprised to learn that Red Hat uses the --with-experimental-mit-ad-dc build option, as their position is that they don't "support" using Samba as a Domain Controller. I'm sure they build Samba against system MIT Kerberos, as again, they don't care about AD DCs on Linux.

I have no idea why Red Hat would commit to a position where they are actively crippling their product in such a way that it cannot offer functionality that would directly compete with Windows Server and Microsoft's AD cloud offerings.

tramtrist 04-26-2021 07:42 PM

Quote:

Originally Posted by ctrlaltca (Post 6245078)
Tried the new kernel 5.12.0 package in testing/
There'a a change in the config: CONFIG_DM_CRYPT=m, while on 5.10/11 it was =y.
Mkinitrd doesn't automatically add the dm-crypt module in the initrd, so the kernel won't boot anymore from encrypted volumes.

Please either add the module to mkinitrd (around line 650) or change the config back to CONFIG_DM_CRYPT=y; this last option will require some more config change, see this post: https://www.linuxquestions.org/quest...ml#post6236116

Ah thank goodness... I thought I did something wrong when I upgraded to /testing kernel
Thanks for the report ctrlaltca and the fix PV

Gerard Lally 04-26-2021 08:12 PM

Software I would like to see added to Slackware at some point, not necessarily to the next release, since it is imminent.

vile and xvile -- a solid and maintained editor which uses nvi as its vi reference implementation.

arno-iptables-firewall -- activated by default at setup. I do understand that no services run by default out of the box in Slackware, but the minute you install, sync and run sbopkg or sbotools -- as root -- you really do need a stateful firewall to ensure no trickery from sites like Sourceforge, where many of the SBo source files are hosted;

aria2 -- a clever download utility which allows you to download in parallel from multiple sources. Its only dependency is c-ares, which is now in -current.

icewm and openbox (with tint2 and jgmenu) -- for those among us who don't have much time for KDE and are getting increasingly tired of the direction Gnome is forcing GTK desktops like Xfce to move in.

Nobby6 04-26-2021 08:15 PM

Quote:

Originally Posted by chrisretusn (Post 6244879)
Well I don't expect you too. Wow! you have hundreds of slackware servers? Amazing. I wish I had a tenth of that. ;)

I don't have a lot of changes in my /etc/aliases file. I don't claim to be an expert in postfix. Strange though that /etc/aliases is referenced a lot in the documentation.
From the /etc/postfix/main.cf file:
Code:

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible.  Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi".  This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

From man 5 postconf:
Code:

alias_database (default: see postconf -d output)
      The  alias  databases for local(8) delivery that are updated with "newaliases" or with "sendmail
      -bi".

      This is a separate configuration parameter because not all the tables specified with $alias_maps
      have to be local files.

      Examples:

      alias_database = hash:/etc/aliases
      alias_database = hash:/etc/mail/aliases

alias_maps (default: see postconf -d output)
      The  alias  databases  that  are  used for local(8) delivery. See aliases(5) for syntax details.
      Specify zero or more "type:name" lookup tables, separated by whitespace or comma. Tables will be
      searched in the specified order until a match is found.  Note: these lookups are recursive.

      The  default  list is system dependent.  On systems with NIS, the default is to search the local
      alias database, then the NIS alias database.

      If you change the alias database, run "postalias /etc/aliases" (or wherever your  system  stores
      the mail alias file), or simply run "newaliases" to build the necessary DBM or DB file.

      The  local(8) delivery agent disallows regular expression substitution of $1 etc. in alias_maps,
      because that would open a security hole.

      The local(8) delivery agent will silently ignore requests to use the proxymap(8)  server  within
      alias_maps.  Instead  it  will open the table directly. Before Postfix version 2.2, the local(8)
      delivery agent will terminate with a fatal error.

      Examples:

      alias_maps = hash:/etc/aliases, nis:mail.aliases
      alias_maps = hash:/etc/aliases

postconf -d output (-d Print main.cf default parameter settings instead of actual settings.):
Code:

postconf -d | grep aliases
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, nis:mail.aliases
newaliases_path = /usr/bin/newaliases

From http://www.postfix.org/STANDARD_CONF...ON_README.html [Postfix on a local network]
Code:

In the latter case, each user has an alias on the mailhost that forwards mail to her preferred machine:

    /etc/aliases:
        joe:    joe@joes.preferred.machine
        jane:  jane@janes.preferred.machine

On some systems the alias database is not in /etc/aliases. To find out the location for your system, execute the command "postconf alias_maps".


Before you wasted your time on this copy paste you should have read my reply to Pat first :)


All times are GMT -5. The time now is 11:45 AM.