Workaround that enable compilation of each LC_MESSAGES of xscreensaver-6.06.

     $ diff -Nru xscreensaver.SlackBuild.orig xscreensaver.SlackBuild
Code:
--- xscreensaver.SlackBuild.orig	2022-12-16 13:23:31.058053084 +0900
+++ xscreensaver.SlackBuild 2022-12-17 10:06:52.444811135 +0900
@@ -24,7 +24,7 @@

PKGNAM=xscreensaver
VERSION=${VERSION:-$(echo xscreensaver-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3jw}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -98,22 +98,38 @@
xml_config=/usr/bin/xml-config xml2_config=/usr/bin/xml2-config \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+
+autoreconf -fi
+
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
+ --localedir=/usr/share/locale \
--with-app-defaults=/etc/X11/app-defaults \
--with-text-file=/usr/doc/netdate/COPYRIGHT \
$USE_SHADOW \
$USE_PAM \
--without-kerberos \
+ --with-gtk \
--with-jpeg \
--with-gl \
--build=$ARCH-slackware-linux || exit 1

+# Fix po Makefile (force to create missing locales)
+sed -i "s|da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW|be da de el es et fi fr hu it ja ko lt nb nl pl pt pt_BR ru sk sv tr uk vi wa zh_CN zh_TW|" po/Makefile
+sed -i "s|@install_sh@|../install-sh -c|" po/Makefile
+
# Build:
-make $NUMJOBS || make || exit 1
-make install_prefix=$PKG install-strip || exit 1
+make $NUMJOBS || make all || exit 1
+make install install_prefix=$PKG || exit 1
+# Install po files
+( cd po
+make install-data DESTDIR=$PKG
+cd .. )
+
+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

if [ -z $USE_PAM ]; then
# Needed for password unlock:
@@ -139,6 +155,7 @@
cp -a \
README* \
$PKG/usr/doc/xscreensaver-$VERSION
+cp $CWD/xscreensaver.SlackBuild $PKG/usr/doc/xscreensaver-$VERSION

# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
[Update] 2022-12-17 : Added "strip" after install.

[Update] 2022-12-17 : Force to create missing locate data

Screenshot example: xscreensaver-6.06_with_locale-data


---