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/)

rworkman 01-25-2020 02:42 AM

Quote:

Originally Posted by saxa (Post 6082355)
Thanks Robby, but I have only 2 files in my dir

bash-5.0$ ls .config/autostart/
xfce4-settings-helper-autostart.desktop xfconf-migration-4.6.desktop

So no one is for blueman seems to me, and both those files have Hidden=true in it.
Is that correct or am I missing something ?

Yes, you are missing something, but that's because my answer was missing something :-)
If there's not a desktop file for blueman in your $HOME/.config/autostart/ then that means the default systemwide one is being used; you'll need to copy that one into your $HOME/.config/autostart/ and then edit it to add the Hidden=true part. I knew what I meant when I was typing it, but that's of little importance to a reader... ;-)

rworkman 01-25-2020 02:46 AM

Quote:

Originally Posted by TurboBlaze (Post 6082743)
volkerdi, thanks for your attention.
I recorded this gif animation (active link) where is I reproduced this issue.

Code:

root# ls -lh /usr/man/man1/gimp-console.1.gz
lrwxrwxrwx 1 root root 22 Oct 29 01:03 /usr/man/man1/gimp-console.1.gz -> gimp-console-2.10.1.gz
root# ls -lh /usr/man/man1/gimp-console-2.10.1.gz
lrwxrwxrwx 1 root root 14 Oct 29 01:03 /usr/man/man1/gimp-console-2.10.1.gz -> gimp-2.10.1.gz
root# ls -lh /usr/man/man1/gimp-2.10.1.gz
-rw-r--r-- 1 root root 4.6K Oct 28 13:50 /usr/man/man1/gimp-2.10.1.gz

Seems fine here.

GazL 01-25-2020 03:21 AM

Quote:

Originally Posted by TurboBlaze (Post 6082743)
volkerdi, thanks for your attention.
I recorded this gif animation (active link) where is I reproduced this issue.

Regards,
Blaze

The package is fine in the "real thing". Perhaps you should take it up with the Porteus devs.

Didier Spaier 01-25-2020 03:32 AM

I had a look at the gif. This package is installed in Porteus using their getpkg (not installpkg). Probably in this case getpkg didn't work as it should have. Please only bring in this thread issues about Slackware-current, not derivatives.

bassmadrigal 01-25-2020 04:08 AM

Quote:

Originally Posted by TurboBlaze (Post 6082743)
volkerdi, thanks for your attention.
I recorded this gif animation (active link) where is I reproduced this issue.

Regards,
Blaze

As the others have said, it seems to work properly in Slackware.

Code:

root@craven-moorhead:~# installpkg gimp-2.10.14-x86_64-1.txz
Verifying package gimp-2.10.14-x86_64-1.txz.
Installing package gimp-2.10.14-x86_64-1.txz [REC]:
PACKAGE DESCRIPTION:
# gimp (The GNU Image Manipulation Program)
#
# The GIMP is a powerful tool for the preparation and manipulation of
# digital images. The GIMP provides the user with a wide variety of
# image manipulation, painting, processing, and rendering tools. The
# GIMP's open design and extensible architecture make for a very
# powerful end product for photo and image retouching, web graphics
# design, or digital illustration.
#
Executing install script for gimp-2.10.14-x86_64-1.txz.
Package gimp-2.10.14-x86_64-1.txz installed.

Time to take it up with porteus or switch to Slackware.

Didier Spaier 01-25-2020 06:44 AM

please ship nano in the installer
 
It's small, easier to get acquainted to than vi or such for most people and just needs the shared library libmagic.so as additional dependency (I didn't check in current's installer, at least that's the case for 14.2).

drgibbon 01-25-2020 01:28 PM

Quote:

Originally Posted by TurboBlaze (Post 6082743)
I recorded this gif animation (active link) where is I reproduced this issue.

You might be interested in this :) (also the program for it is on SBo).

ehartman 01-25-2020 01:39 PM

Quote:

Originally Posted by Didier Spaier (Post 6082785)
shared library libmagic.so as additional dependency

And libmagic.so needs /etc/magic which contains a lot of files.

Didier Spaier 01-25-2020 03:37 PM

Quote:

Originally Posted by ehartman (Post 6082898)
And libmagic.so needs /etc/magic which contains a lot of files.

No. It's /etc/file/magic not /etc/magic and if you (re)move this directory nano will still work, without syntax highlighting.

volkerdi 01-25-2020 05:02 PM

Quote:

Originally Posted by Didier Spaier (Post 6082928)
No. It's /etc/file/magic not /etc/magic and if you (re)move this directory nano will still work, without syntax highlighting.

Maybe busybox could be convinced to add a nano applet.

Didier Spaier 01-25-2020 05:30 PM

Quote:

Originally Posted by volkerdi (Post 6082946)
Maybe busybox could be convinced to add a nano applet.

Maybe. But until they do it's no big deal to ship the binary IMO. I do that in the Slint installer since a long time, with no issue so far.

avian 01-26-2020 06:16 AM

I'm a little late to the PHP 7.4 party, but I upgraded to it today on -current and noticed that php.ini removes the "extension=gd" line, despite the fact that PHP is (thankfully) compiled with GD support. Without it calls to GD functions fail. Adding it back in, a simple test like the following runs fine.

Code:

<?php

// dump array retrieved from gd_info
var_dump(gd_info());

?>

Additionally, I noticed the same with "extension=zip" (still compiled into php, but removed in latest php.ini). Just added the line back in and zip functions/support works fine.

Unless I'm missing something blatantly obvious, could I request the two lines be re-added to php.ini in -current.

upnort 01-26-2020 12:16 PM

Pat, please consider a policy that patches never overwrite /etc files, including /etc/rc.d scripts. The policy should include third party repos such SBo.

Not an exhaustive list but the following rc.d scripts are overwritten when patched:

rc.acpid
rc.alsa
rc.httpd
rc.messagebus
rc.ntpd
rc.sshd
rc.sysstat
rc.udev

Overwriting certain rc.d scripts might seem reasonable, but a fair counter offer is all /etc files should be left untouched to be reviewed by the user/admin.

Thanks!

ponce 01-26-2020 12:28 PM

Quote:

Originally Posted by upnort (Post 6083182)
Pat, please consider a policy that patches never overwrite /etc files, including /etc/rc.d scripts. The policy should include third party repos such SBo.

Not an exhaustive list but the following rc.d scripts are overwritten when patched:

rc.acpid
rc.alsa
rc.httpd
rc.messagebus
rc.ntpd
rc.sshd
rc.sysstat
rc.udev

Overwriting certain rc.d scripts might seem reasonable, but a fair counter offer is all /etc files should be left untouched to be reviewed by the user/admin.

Thanks!

actually, just for the sake of clarity:

- rc.ntpd and rc.httpd are not overwritten and the *.new file is left for evaluation

- rc.messagebus has this message in the doinst.sh script
Code:

# No, just install the thing.  Leaving it as .new will only lead to problems.
- in most other cases there's a message in the doinst.sh
Code:

# There's no reason for a user to edit rc.{udev,sysstat}, so overwrite it:
- for acpid, alsa-utils and openssh is overwritten silently

Skaendo 01-26-2020 12:30 PM

check 0.14.0

https://github.com/libcheck/check/releases/tag/0.14.0

Quote:

This release adds support for CMake's FetchContent.

Changes:

Add support for FetchContent in CMake
Issue #238
Rename CMake project from 'check' to 'Check'
Issue #232
Fix for checking for wrong tool when building docs in Autotools
Issue #231
Fix compiler warning with printf format
Issue #233

volkerdi 01-26-2020 12:43 PM

Quote:

Originally Posted by upnort (Post 6083182)
Pat, please consider a policy that patches never overwrite /etc files, including /etc/rc.d scripts. The policy should include third party repos such SBo.

Not an exhaustive list but the following rc.d scripts are overwritten when patched:

rc.acpid
rc.alsa
rc.httpd
rc.messagebus
rc.ntpd
rc.sshd
rc.sysstat
rc.udev

Overwriting certain rc.d scripts might seem reasonable, but a fair counter offer is all /etc files should be left untouched to be reviewed by the user/admin.

Thanks!

The majority of your list actually isn't overwritten. I think there's a reasonable balance currently, but feel free to make a case for individual files. Or you could always use chattr(1) to make some files immutable.

upnort 01-26-2020 02:50 PM

Quote:

The majority of your list actually isn't overwritten
I lazily created the list from the following:

Code:

for pkg in $(find source -name doinst.sh.gz); do zgrep rc.d $pkg | grep mv | grep "new etc"; done
I ran that one-liner on the original source tree and not the patches tree. I did not individually inspect each doinst.sh. As ponce noted, some of the doinst.sh scripts contain comments explaining why the script is overwritten.

Quote:

feel free to make a case for individual files
While there is the mantra of "read the change log," perhaps when the rc.d script is overwritten rather than install a *.new file, the original file is preserved with an *.old file. Users/admins can compare changes.

rworkman 01-26-2020 03:50 PM

Quote:

Originally Posted by upnort (Post 6083224)
I lazily created the list from the following:

Code:

for pkg in $(find source -name doinst.sh.gz); do zgrep rc.d $pkg | grep mv | grep "new etc"; done
I ran that one-liner on the original source tree and not the patches tree. I did not individually inspect each doinst.sh. As ponce noted, some of the doinst.sh scripts contain comments explaining why the script is overwritten.


While there is the mantra of "read the change log," perhaps when the rc.d script is overwritten rather than install a *.new file, the original file is preserved with an *.old file. Users/admins can compare changes.

I'd be inclined to say that if you can make a reasonable case as to *why* one of the currently-overwritten init scripts would *need* to be edited by the sysadmin, i.e. the edit could not be better accomplished by a change elsewhere, then that could be convincing.

As it stands, the "just in case" thing has bitten us in the ass at least once or twice (this is at least why rc.udev is overwritten).

EDIT for additions: I seem to recall the same for rc.messagebus, and for rc.sshd, there was a "lock you out of the system" bug in it many years ago that necessitated overwriting the old one. That one in particular is a good example of "pretty much anything you think might require an rc.sshd edit is instead configurable in /etc/ssh/*"

upnort 01-26-2020 04:47 PM

Quote:

As it stands, the "just in case" thing has bitten us in the ass at least once or twice (this is at least why rc.udev is overwritten).
Yes, I vaguely remember such moments.

That still leaves open the idea of creating *old files when there is an upstream decision to explicitly overwrite the files. Not arguing or frothing, just offering an idea. :)

bifferos 01-26-2020 04:52 PM

zerofree
 
There's a program called zerofree that's very handy when distributing virtual machines. It zeroes out unused disk blocks which can usually then be compressed by a tool provided with your virtualisation software.

The most convenient way to use it is from a bootable DVD where you don't have the fs mounted, unless you want to deal with the caveats of a read-only fs. For this reason I'd love to see it make its way into the Slackware initrd, or perhaps as a bare executable in the /extra directory (this latter being what I now do with all my generated -current ISO images). It's not very large:

Code:

bash-5.0# ls -l `which zerofree`
-rwxr-xr-x 1 root root 14432 Jan 10 23:12 /usr/sbin/zerofree

thanks for your consideration,
Biff.

upnort 01-26-2020 08:52 PM

I don't know if you are aware, but zerofree is available at SBo.

USUARIONUEVO 01-27-2020 04:20 PM

ninja-1.10.0 released
https://github.com/ninja-build/ninja...v1.10.0.tar.gz

sqlite-3.31.1
https://www.sqlite.org/2020/sqlite-a...on-3310100.zip

qpdf-9.1.1
https://github.com/qpdf/qpdf/archive...f-9.1.1.tar.gz

USUARIONUEVO 01-27-2020 06:40 PM

cups-filters-1.27.0
http://openprinting.org/download/cup...-1.27.0.tar.xz

bassmadrigal 01-28-2020 01:11 PM

Looks like the bump of gnome-doc-utils in linuxdoc-utils has a broken xml2po. Most everything has switched to python3, but it still compiles the xml2po module with python2. I found it is due to the ./configure for gnome-doc-utils uses the default system python (which is obviously python2 on Slackware), but that can be overridden by passing PYTHON=python3 to the ./configure in the gnome-doc-utils section of the linuxdocs-utils.build script and this will produce a python3 xml2po module.

Code:

--- ./source/ap/linuxdoc-tools/trackbuild.linuxdoc-tools
+++ ./source/ap/linuxdoc-tools/trackbuild.linuxdoc-tools
@@ -1047,6 +1047,7 @@
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 CPPFLAGS="$SLKCFLAGS" \
+PYTHON=python3 \
 ./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \

See this post for where the issue was reported.

USUARIONUEVO 01-28-2020 03:01 PM

Quote:

Originally Posted by bassmadrigal (Post 6083853)
Looks like the bump of gnome-doc-utils in linuxdoc-utils has a broken xml2po. Most everything has switched to python3, but it still compiles the xml2po module with python2. I found it is due to the ./configure for gnome-doc-utils uses the default system python (which is obviously python2 on Slackware), but that can be overridden by passing PYTHON=python3 to the ./configure in the gnome-doc-utils section of the linuxdocs-utils.build script and this will produce a python3 xml2po module.

Code:

--- ./source/ap/linuxdoc-tools/trackbuild.linuxdoc-tools
+++ ./source/ap/linuxdoc-tools/trackbuild.linuxdoc-tools
@@ -1047,6 +1047,7 @@
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 CPPFLAGS="$SLKCFLAGS" \
+PYTHON=python3 \
 ./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \

See this post for where the issue was reported.

Maybe , as some people request , do python3 the default python , python2 goes deprecated fast , i see projects removing python2 support, or no build tools if no python3 the python system...but this need some big work and test under slackbuild scripts.

bassmadrigal 01-28-2020 04:06 PM

Quote:

Originally Posted by USUARIONUEVO (Post 6083894)
Maybe , as some people request , do python3 the default python , python2 goes deprecated fast , i see projects removing python2 support, or no build tools if no python3 the python system...but this need some big work and test under slackbuild scripts.

I think Pat's plan is to keep python pointing to python2 until python2 is removed. python3 doesn't create a symlink like python2 did, so once python2 is sent to pasture/ or removed completely, /usr/bin/python will no longer exist.

https://www.linuxquestions.org/quest...ml#post6049725

USUARIONUEVO 01-28-2020 05:53 PM

Quote:

Originally Posted by bassmadrigal (Post 6083921)
I think Pat's plan is to keep python pointing to python2 until python2 is removed. python3 doesn't create a symlink like python2 did, so once python2 is sent to pasture/ or removed completely, /usr/bin/python will no longer exist.

https://www.linuxquestions.org/quest...ml#post6049725

like archlinux do ..we can

Code:

  # Why are these not done by default...
  ln -s python3              "${pkgdir}"/usr/bin/python
  ln -s python3-config        "${pkgdir}"/usr/bin/python-config
  ln -s idle3                "${pkgdir}"/usr/bin/idle
  ln -s pydoc3                "${pkgdir}"/usr/bin/pydoc
  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1

and later, python2 ..as only python2 .... like python3 does now.

bassmadrigal 01-28-2020 07:02 PM

Quote:

Originally Posted by USUARIONUEVO (Post 6083939)
like archlinux do ..we can

Code:

  # Why are these not done by default...
  ln -s python3              "${pkgdir}"/usr/bin/python
  ln -s python3-config        "${pkgdir}"/usr/bin/python-config
  ln -s idle3                "${pkgdir}"/usr/bin/idle
  ln -s pydoc3                "${pkgdir}"/usr/bin/pydoc
  ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1

and later, python2 ..as only python2 .... like python3 does now.

In python2, the symlinks are automatically created, in python3, they are not. Pat tries to keep things vanilla, so changing what upstream intends for something like this seems contrary to what Slackware aims to do. There's no technical issue that requires a /usr/bin/python symlink, but it does simplify (and complicate) some situations. If everyone just specifically referenced the python version they want to use in their code, this problem would never exist.

Plus if the symlink for python3 is made, it could cause issues with any legacy software that actually requires python2 and doesn't work with python3.

And then in 10 years when python3 is EOL and python4 is out, we'd have to go through the same process... ;)

drmozes 01-29-2020 03:18 AM

Quote:

Originally Posted by bassmadrigal (Post 6083853)
Looks like the bump of gnome-doc-utils in linuxdoc-utils has a broken xml2po. Most everything has switched to python3, but it still compiles the xml2po module with python2. I found it is due to the ./configure for gnome-doc-utils uses the default system python (which is obviously python2 on Slackware), but that can be overridden by passing PYTHON=python3 to the ./configure in the gnome-doc-utils section of the linuxdocs-utils.build script and this will produce a python3 xml2po module.

Thanks for the report and patch.

bifferos 01-29-2020 03:38 AM

Quote:

Originally Posted by upnort (Post 6083295)
I don't know if you are aware, but zerofree is available at SBo.

Sorry for the late reply, yes I am, however it needs to be on a (not necessarily the Slackware) bootable DVD, or accessible from there so I can easily run it with my rootfs unmounted.

So I have been:

1) Compiling zerofree from slackbuilds (as in your link)
2) Dumping my install ISO contents
3) Copying zerofree into the slackware /extra directory
4) Re-building my Slackware install DVD ISO.

Then I just boot the Slackware DVD and execute zerofree from extra.

Latterly I've been putting it directly in the initrd. I've written some (fairly crude) code to 'install' my packages into the uncompressed initrd (less manual pages, header files etc...) so I don't have to do it manually:
https://github.com/bifferos/vagaslac...lpkg_initrd.py
Because that wasn't the only thing I wanted to add.

qunying 01-29-2020 07:19 PM

May I suggest to split cache generation parts of rc.M into separate rc files?

What I am referring are:
Code:

# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
  echo "Updating X font indexes:  /usr/bin/fc-cache -f &"
  /usr/bin/fc-cache -f &
fi
...
# Update any existing icon cache files:
if find /usr/share/icons -maxdepth 2 2> /dev/null | grep -q icon-theme.cache ; then
  for theme_dir in /usr/share/icons/* ; do
    if [ -r ${theme_dir}/icon-theme.cache ]; then
      echo "Updating icon-theme.cache in ${theme_dir}..."
      /usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null &
    fi
  done
  # This would be a large file and probably shouldn't be there.
  if [ -r /usr/share/icons/icon-theme.cache ]; then
    echo "Deleting icon-theme.cache in /usr/share/icons..."
    #/usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null &
    rm -f /usr/share/icons/icon-theme.cache
  fi
fi

# Update mime database:
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
  echo "Updating MIME database:  /usr/bin/update-mime-database /usr/share/mime &"
  /usr/bin/update-mime-database /usr/share/mime 1> /dev/null 2> /dev/null &
fi
...

# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
  echo "Updating gtk.immodules:"
  echo "  /usr/bin/update-gtk-immodules &"
  /usr/bin/update-gtk-immodules > /dev/null 2>&1 &
fi
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  echo "Updating gdk-pixbuf.loaders:"
  echo "  /usr/bin/update-gdk-pixbuf-loaders &"
  HOME=/root /usr/bin/update-gdk-pixbuf-loaders > /dev/null 2>&1 &
fi
if [ -x /usr/bin/update-pango-querymodules ]; then
  echo "Updating pango.modules:"
  echo "  /usr/bin/update-pango-querymodules &"
  /usr/bin/update-pango-querymodules > /dev/null 2>&1 &
fi
if [ -x /usr/bin/glib-compile-schemas ]; then
  echo "Compiling GSettings XML schema files:"
  echo "  /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &"
  /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas >/dev/null 2>&1 &
fi

For my case, I frequently restart my machine, and it does not need to re-run them every time. If those commands are in separate rc files, I could simply disable the executable attribute and run it if necessary.

upnort 01-29-2020 07:44 PM

Quote:

May I suggest to split cache generation parts of rc.M into separate rc files?
I discovered performance issues on my office system.

While Slackware often has a server reputation and focus more than a desktop, and servers are not rebooted as often as desktops, I second the idea of moving those tasks to a different rc.d script. A simple chmod solves the problem for both types of users.

GazL 01-30-2020 03:18 AM

Quote:

Originally Posted by qunying (Post 6084281)
May I suggest to split cache generation parts of rc.M into separate rc files?

Here's one I made earlier.
Code:

#!/bin/sh
#
#  Script to run system maintenance tasks.
#
#  Run this script from rc.M, rc.local or add the following to your
#  /etc/inittab to run this script in the background at system boot:
#      # Maintenance scripts
#      m1:34:once:/etc/rc.d/rc.maintenance

exec >/var/log/maintenance.log 2>&1

# Update the fontconfig system-wide font cache:
/usr/bin/fc-cache -v -s -f

# Update any existing icon cache files:
rm -f /usr/share/icons/icon-theme.cache
find /usr/share/icons -maxdepth 2 -name 'icon-theme.cache' \
  -printf '%h\0' \
 | xargs -0r -I'{}' /usr/bin/gtk-update-icon-cache -t -f '{}'

# Update mime database:
/usr/bin/update-mime-database /usr/share/mime

# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
[ -x /usr/bin/update-gtk-immodule ] && /usr/bin/update-gtk-immodules --verbose
[ -x /usr/bin/update-gdk-pixbuf-loaders ] && HOME=/root /usr/bin/update-gdk-pixbuf-loaders --verbose
[ -x /usr/bin/update-pango-querymodules ] && /usr/bin/update-pango-querymodules --verbose
[ -x /usr/bin/glib-compile-schemas ] && /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

# All done.

I re-wrote the icon-cache stuff to be more efficient.

Been running this for a number of years now ;)

franzen 01-30-2020 03:54 AM

Quote:

Originally Posted by GazL (Post 6084376)
find /usr/share/icons -maxdepth 2 -name 'icon-theme.cache' \
-printf '%h\0' \
| xargs -0r -I'{}' /usr/bin/gtk-update-icon-cache -t -f '{}'

Suggestion for the find part:

Code:

find /usr/share/icons/ -maxdepth 2 -type f -name 'icon-theme.cache' -exec \
  /usr/bin/gtk-update-icon-cache -t -f '{}' + 1> /dev/null 2> /dev/null


GazL 01-30-2020 04:14 AM

Sometimes I use find -exec other times I reach for xargs out of habbit. ;)

Actually, now you mention it, I don't know whether the gtk-update-icon-cache command can take more than one path at a time, so '\;' might be safer than '+' and my xargs should probably use a "-n 1".

SCerovec 01-30-2020 04:52 AM

There is that ionice stuff that can go there too along these lines.

Since it usually does not need be done the instance the user logs on, but usually has some 40-50 seconds lee way.

This helps like bring the login prompt sooner up - so like 15 seconds off the 45 second startup - where applicable (spinning storage media).

HTH

alex14641 02-01-2020 08:38 AM

Glibc 2.31
Release notes and download links: https://lists.gnu.org/archive/html/i.../msg00001.html

alex14641 02-01-2020 08:41 AM

Binutils 2.34
Release notes and links: https://lists.gnu.org/archive/html/i.../msg00000.html

volkerdi 02-01-2020 01:41 PM

Quote:

Originally Posted by alex14641 (Post 6085162)
Binutils 2.34
Release notes and links: https://lists.gnu.org/archive/html/i.../msg00000.html

This changes the libbfd API such that oprofile and perf (and probably others) no longer compile.

volkerdi 02-01-2020 01:42 PM

Quote:

Originally Posted by alex14641 (Post 6085160)
Glibc 2.31
Release notes and download links: https://lists.gnu.org/archive/html/i.../msg00001.html

Incompatible time handling means we'll need to be cautious with this one as well. A full make world will be needed to see how extensive the fallout is.

Richy_T 02-01-2020 06:47 PM

Quote:

Originally Posted by upnort (Post 6084286)
While Slackware often has a server reputation and focus more than a desktop, and servers are not rebooted as often as desktops, I second the idea of moving those tasks to a different rc.d script. A simple chmod solves the problem for both types of users.

This being the case, it probably suggests that they should be some kind of cron job instead of just during boots. They don't seem boot-related. I'm still not convinced about cleaning out /tmp on boot (I was most disconcerted the first time I came across this (not on Slackware)). If the aim is to run them when the software is not running then they should be tied into the lifecycle of the software. The aim of the boot process is to get the machine into a user-usable state and not perform maintenance tasks (exceptions apply, of course) in my opinion.

franzen 02-02-2020 01:57 AM

s-nail-14.9.17
Announcement

I adressed to upstream, that "make test" did fail on the last release. This is fixed and "make test" may be added back to the buildscript.

SCerovec 02-02-2020 03:24 AM

Quote:

Originally Posted by Richy_T (Post 6085290)
This being the case, it probably suggests that they should be some kind of cron job instead of just during boots. They don't seem boot-related. I'm still not convinced about cleaning out /tmp on boot (I was most disconcerted the first time I came across this (not on Slackware)). If the aim is to run them when the software is not running then they should be tied into the lifecycle of the software. The aim of the boot process is to get the machine into a user-usable state and not perform maintenance tasks (exceptions apply, of course) in my opinion.

Provided cron does perform tasks, missed while being offline, immediately, there will be little if any differences out of the box. Also i happen to agree strongly with the proposed purpose of boot:

It is an unavoidable evil, let's get over it as soon as practical.

TurboBlaze 02-02-2020 05:37 AM

If it possible I have request to build xsane package with GTK3 and skip GTK2.

Thanks.

Markus Wiesner 02-02-2020 07:20 AM

xsane as gimp plugin
 
Since you just mentioned xsane ;) My previous post may have gotten lost between all the others: Applying this little patch to xsane.SlackBuild will add xsane (which is already compiled with GIMP support) as plugin to GIMP. With this you get a new menu entry (FileCreateX-Sane: Device dialog…) to scan directly from GIMP and don't have to create a temporary file in xsane first.

Code:

--- xsane.SlackBuild.orig      2019-09-30 01:48:34.701502651 +0200
+++ xsane.SlackBuild    2020-02-02 13:36:22.440294539 +0100
@@ -51,12 +51,16 @@
 
 if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+  LIBDIRSUFFIX=""
 elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
+  LIBDIRSUFFIX=""
 elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
+  LIBDIRSUFFIX="64"
 else
  SLKCFLAGS="-O2"
+  LIBDIRSUFFIX=""
 fi
 
 rm -rf $PKG
@@ -114,6 +118,9 @@
 rm -f $PKG/usr/doc/xsane-$VERSION/xsane.spec*
 ( cd $PKG/usr/doc/xsane-$VERSION ; ln -s /usr/share/sane/xsane/doc html )
 
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins
+( cd $PKG/usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins ; ln -s /usr/bin/xsane xsane )
+
 # Compress and link manpages, if any:
 if [ -d $PKG/usr/man ]; then
  ( cd $PKG/usr/man

Of course, the link can easily be created manually without being part of the package, but it would certainly be very helpful to set it by default. :)

-----------

And inotify-tools got just a few hours after 3.20.2.1 a second bugfix update to 3.20.2.2

cwizardone 02-02-2020 08:12 AM

Quote:

Originally Posted by Markus Wiesner (Post 6085409)
Since you just mentioned xsane ;) My previous post may have gotten lost between all the others: Applying this little patch to xsane.SlackBuild will add xsane (which is already compiled with GIMP support) as plugin to GIMP. With this you get a new menu entry (FileCreateX-Sane: Device dialog…) to scan directly from GIMP and don't have to create a temporary file in xsane first..................

Excellent idea!
:hattip:
As I think about it, and I could be wrong (it wouldn't be the first time :) ), but didn't that use to be the default?
It is only recently I noticed it was no longer possible to scan directly from within The GIMP.

Markus Wiesner 02-02-2020 08:44 AM

Quote:

Originally Posted by cwizardone (Post 6085419)
As I think about it, and I could be wrong (it wouldn't be the first time :) ), but didn't that use to be the default?
It is only recently I noticed it was no longer possible to scan directly from within The GIMP.

I only know it working in Windows-GIMP “out of the box”. But as both Gentoo and Arch "manually" add the symlink in their package build scripts, that's probably the “right” way and not a missing option in Slackwares ./configure or make install of xsane or GIMP.

franzen 02-03-2020 06:48 AM

announcements/postfix-3.4.9
postfix-3.4.9.tar.gz

upnort 02-03-2020 01:46 PM

/etc/rc.d/rc.nfsd does not check for /etc/exports.d
 
The /etc/rc.d/rc.nfsd script exits without checking /etc/exports.d and provides no helpful messages why the script terminated.

This affects 14.2 too.

From exportfs.c:

Code:

if (f_export && ! f_ignore) {
  if (! (export_read(_PATH_EXPORTS) +
      export_d_read(_PATH_EXPORTS_D))) {
    if (f_verbose)
      xlog(L_WARNING, "No file systems exported!");
  }
}

Looks like the exportfs command will check both locations before warning. Possible patch:

Code:

--- rc.nfsd        2020-02-03 13:23:14.669756589 -0600
+++ rc.nfsd.new        2020-02-03 13:44:18.729846694 -0600
@@ -8,12 +8,32 @@
 # Written for Slackware Linux by Patrick J. Volkerding <volkerdi@slackware.com>.
 
 nfsd_start() {
-  # Sanity checks.  Exit if there's no /etc/exports, or if there aren't any
-  # shares defined in it.
-  if [ ! -r /etc/exports ]; then # no config file, exit:
+  # Sanity checks. Look for valid exports files. Valid exports can exist
+  # in /etc/exports, /etc/exports.d/*.exports, or both.
+  if [ ! -a /etc/exports ]; then
+    # /etc/exports does not exist.
+    EXPORTS_VALID="false"
+  else
+    # /etc/exports exists.
+    if [ -r /etc/exports ] && [ "$(grep -v '^#' /etc/exports | grep '^/')" = "" ] ; then
+      # The file is readable but contains no valid exports.
+      EXPORTS_VALID="false"
+    fi
+  fi
+  # If /etc/exports is not valid then check /etc/exports.d.
+  if [ "$EXPORTS_VALID" = "false" ] && [ ! -d /etc/exports.d ]; then
+    # /etc/exports is not valid and /etc/exports.d does not exist.
+    EXPORTS_D_VALID="false"
+  else
+    # /etc/exports is not valid and /etc/exports.d exists.
+    if [ "$EXPORTS_VALID" = "false" ] && [ "$(grep -v '^#' /etc/exports.d/*.exports | grep '^/')" = "" ] ; then
+      # /etc/exports.d contains no valid exports.
+      EXPORTS_D_VALID="false"
+    fi
+  fi
+  if [ "$EXPORTS_VALID" = "false" ] || [ "$EXPORTS_D_VALID" = "false" ]; then
+    echo "No valid exports found in /etc/exports or /etc/exports.d/*.exports. Exiting."
    exit
-  elif ! grep -v '^#' /etc/exports | grep '/' 1> /dev/null 2> /dev/null ; then
-    exit # no uncommented shares in /etc/exports
  fi
 
  # If we do not detect nfsd support built into the kernel (or previously
@@ -69,6 +89,7 @@
 }
 
 nfsd_stop() {
+  echo "Stopping NFS server daemons."
  killall rpc.mountd 2> /dev/null
  killall nfsd 2> /dev/null
  sleep 1
@@ -94,5 +115,5 @@
  nfsd_restart
  ;;
 *)
-  echo "usage $0 start|stop|restart"
+  echo "Usage: $0 start|stop|restart"
 esac


upnort 02-05-2020 11:33 AM

Double TigerVNC menu items
 
The TigerVNC 1.10 package in /extra installs two *.desktop files:

/usr/share/applications/tigervnc.desktop
/usr/share/applications/vncviewer.desktop

The result is two TigerVNC Viewer items in the Internet menu.

The sources come with a vnciewer.desktop file. The tigervnc.desktop file created in the SlackBuild no longer is necessary. Proposed patch:

Code:

--- tigervnc.SlackBuild        2020-02-05 11:30:29.949404267 -0600
+++ tigervnc.SlackBuild.new        2020-02-05 11:30:43.932209520 -0600
@@ -309,24 +309,6 @@
  install -m644 media/icons/tigervnc_${PSIZE}.png \
    $PKG/usr/share/icons/hicolor/${PSIZE}x${PSIZE}/apps/tigervnc.png
 done
-cat <<EOT > $PKG/usr/share/applications/tigervnc.desktop
-[Desktop Entry]
-Encoding=UTF-8
-Name=TigerVNC Viewer
-GenericName=VNCViewer (RFB Client)
-Comment=Connect to remote desktop
-SwallowExec=
-Exec=vncviewer
-MimeType=
-Icon=tigervnc
-Path=
-TerminalOptions=
-Terminal=false
-Type=Application
-Categories=Network;
-StartupWMClass=VNC Viewer: Connection Details
-EOT
-
 # Add this to the doinst.sh:
 ! [ -d $PKG/install ] && mkdir -p $PKG/install
 cat <<EOT >> $PKG/install/doinst.sh



All times are GMT -5. The time now is 10:40 AM.