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.
I tried re-compile xscreensaver package which included locale data of each languages.
Since I'm not heavy linux user, I have no idea whether following script is correct or not, but it worked anyway, so far.
Please let me know if there is anything I should fix in this script.
Is there a reason you changed "make install-strip" to "make install"?
Thank you for your comment.
There is no special reason, but when I add "install_strip" at that line, the slackbuild doesn't create $PKG/usr/share/locale.
I have not found its solution yet.
I appreciate any advice to workaround this.
I noticed that there were several missing locales to be created in po directory during compilation.
So, I modified my former slackbuild like below.
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:-3_test}
# 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
The created locale data with this workaround are
"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".
I know this looks dirty fix, but it creats most locale data (*.gmo) except "ca".
Fedora's spec file said that ca.po in xscreensaver-6.06/po/ seems to be broken. [Note]
For example in case of uk.po, almost all translation date at msgstr lines are empty.
So, even if uk.po is compiled to uk.gmo, its translation data will be almost the same as that of English.
I appreciate any advice and pointing.
Sorry for my poor English.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.