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.
--- NetworkManager.SlackBuild 2024-02-23 02:49:52.589076742 +0100
+++ NetworkManager.SlackBuild.1 2024-04-15 17:31:17.070756579 +0200
@@ -98,11 +98,6 @@
zcat $dfile | patch -p1 --verbose || exit 1
done
-# For git-patched builds
-autoreconf -vif
-automake
-./autogen.sh
-
# Configuring --enable-json-validation --enable-ovs requires the Jansson
# json-c library. If there's any interest or usefulness with that, let me
# know. The library is fairly small, but in order to actually use team
@@ -111,34 +106,41 @@
# Update September 2018: Added those options since we needed Jansson
# already for HTTP/2 support.
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+mkdir meson-build
+cd meson-build
+meson setup \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
- --with-udev-dir=/lib/udev \
- --with-pppd-plugin-dir=/usr/lib${LIBDIRSUFFIX}/pppd/$PPPD \
- --with-crypto=nss \
- --enable-more-warnings=no \
- --without-resolvconf \
- --with-dhcpcd=/sbin/dhcpcd \
- --with-dhclient=yes \
- --with-modem-manager-1=yes \
- --with-nmtui=yes \
- --enable-json-validation \
- --enable-ovs \
- --with-consolekit=no \
- --with-session-tracking=elogind \
- --with-suspend-resume=elogind \
- --with-hostname-persist=slackware \
- --build=$TARGET || exit 1
-
-make $NUMJOBS || exit 1
-make install DESTDIR=$PKG || exit 1
+ -Dudev_dir=/lib/udev \
+ -Dpppd_plugin_dir=/usr/lib${LIBDIRSUFFIX}/pppd/$PPPD \
+ -Dsession_tracking=elogind \
+ -Dsuspend_resume=elogind \
+ -Dnmtui=true \
+ -Dovs=true \
+ -Dresolvconf='' \
+ -Ddhcpcd=/sbin/dhcpcd \
+ -Dconfig_dhcp_default=dhcpcd \
+ -Dcrypto=nss \
+ -Dsystemd_journal=false \
+ -Ddbus_conf_dir=/usr/share/dbus-1/system.d \
+ -Ddhclient=/sbin/dhclient \
+ -Dmodem_manager=true \
+ -Dmore_logging=false \
+ -Dhostname_persist=slackware \
+ -Dsystemd_journal=false \
+ -Dsystemdsystemunitdir=no \
+ -Dselinux=false \
+ -Dlibaudit=no \
+ -Dqt=false \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
@@ -190,6 +192,9 @@
cp -a \
AUTHORS CONTRIBUTING COPYING ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$PKGNAM-$VERSION
+cp -a \
+ $PKG/usr/share/doc/NetworkManager/* $PKG/usr/doc/$PKGNAM-$VERSION
+ rm -rf $PKG/usr/share/doc/NetworkManager
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
Well, bellow is my take on a a Meson build of NetworkManager. The result is a quasi-identical package with the stock one, but with the session_tracking properly set to elogind.
However, the NetworkManager is still plagued by that issue after the system sleeping.
But let's see the bright side: this one I believe it's better (or rather, more correctly) made.
Code:
--- NetworkManager.SlackBuild.orig 2024-04-15 21:32:55.157870369 +0300
+++ NetworkManager.SlackBuild 2024-04-15 23:44:18.515847584 +0300
@@ -27,7 +27,7 @@
PKGNAM=NetworkManager
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
MARCH=$( uname -m )
@@ -98,11 +98,6 @@
zcat $dfile | patch -p1 --verbose || exit 1
done
-# For git-patched builds
-autoreconf -vif
-automake
-./autogen.sh
-
# Configuring --enable-json-validation --enable-ovs requires the Jansson
# json-c library. If there's any interest or usefulness with that, let me
# know. The library is fairly small, but in order to actually use team
@@ -111,35 +106,44 @@
# Update September 2018: Added those options since we needed Jansson
# already for HTTP/2 support.
+mkdir meson-build
+cd meson-build
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+meson setup \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
- --with-udev-dir=/lib/udev \
- --with-pppd-plugin-dir=/usr/lib${LIBDIRSUFFIX}/pppd/$PPPD \
- --with-crypto=nss \
- --enable-more-warnings=no \
- --without-resolvconf \
- --with-dhcpcd=/sbin/dhcpcd \
- --with-dhclient=yes \
- --with-modem-manager-1=yes \
- --with-nmtui=yes \
- --enable-json-validation \
- --enable-ovs \
- --with-systemd-logind=no \
- --with-consolekit=no \
- --with-session-tracking=elogind \
- --with-suspend-resume=elogind \
- --with-hostname-persist=slackware \
- --build=$TARGET || exit 1
-
-make $NUMJOBS || exit 1
-make install DESTDIR=$PKG || exit 1
+ --buildtype=release \
+ -Dudev_dir=/lib/udev \
+ -Dpppd_plugin_dir=/usr/lib${LIBDIRSUFFIX}/pppd/$PPPD \
+ -Dsession_tracking_consolekit=false \
+ -Dsession_tracking=elogind \
+ -Dsuspend_resume=elogind \
+ -Dnmtui=true \
+ -Dovs=true \
+ -Dresolvconf='' \
+ -Ddhcpcd=/sbin/dhcpcd \
+ -Dconfig_dhcp_default=dhcpcd \
+ -Dcrypto=nss \
+ -Dsystemd_journal=false \
+ -Ddbus_conf_dir=/usr/share/dbus-1/system.d \
+ -Ddhclient=/sbin/dhclient \
+ -Dmodem_manager=true \
+ -Dmore_logging=false \
+ -Dhostname_persist=slackware \
+ -Dsystemd_journal=false \
+ -Dsystemdsystemunitdir=no \
+ -Dselinux=false \
+ -Dlibaudit=no \
+ -Dqt=false \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
@@ -191,6 +195,9 @@
cp -a \
AUTHORS CONTRIBUTING COPYING ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$PKGNAM-$VERSION
+cp -a \
+ $PKG/usr/share/doc/NetworkManager/* $PKG/usr/doc/$PKGNAM-$VERSION
+ rm -rf $PKG/usr/share/doc
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
Last edited by LuckyCyborg; 04-15-2024 at 03:52 PM.
Anyway, I did not get better results even after jumping on latest NetworkManager-1.47.4 . Of course, I talk about that issue after the system sleeping.
Last edited by LuckyCyborg; 04-15-2024 at 04:49 PM.
henca
This thread might not be the right place for support questions about installpkg, xz and performance. People will probably be more willing trying to help in a separate thread.
regards Henrik
saturday, I asked Michael the moderator to move the discussion in a new thread.
But I believe in this thread There is very competent personn knowing if if txz use the multithread.
Well, elogind-255.4_r2-x86_64-1 from current's Tue Apr 16 18:50:13 UTC 2024 and it's new 'SuspendMode=deep s2idle' broke things here. Sleep stalls and I need to force a cold boot.
The above is after commenting the change locally (i.e '#SuspendMode=deep s2idle'). On the current mode ([s2idle] deep), system sleeps and wakeup almost cleanly, except for NetworkManager not providing WiFI that was fixed with:
Code:
$ cat /lib64/elogind/system-sleep/states.sh
#!/bin/bash
# See https://wiki.gentoo.org/wiki/Elogind#Suspend.2FHibernate_Resume.2FThaw_hook_scripts
case $1/$2 in
pre/*)
# Put here any commands expected to be run when suspending or hibernating.
;;
post/*)
# Put here any commands expected to be run when resuming from suspension or thawing from hibernation.
/etc/rc.d/rc.networkmanager restart
;;
esac
With s2idle the system power LED blinks as it should when the lid is closed (indicates sleep). On the other hand, on deep LED stays lit and doesn't resume when lid is open, so I need to press and hold power button to turn it off then cold boot again.
This is a pretty new system, as such I don't know if some quirks are required in the kernel so elogin could work as expected with the new prefered 'deep' mode.
EDIT: must add that I use LUKS and LVM from README_CRYPT for full device encription with swap serving as hibernation storage. Booth sleep and hibernation works fine on this system when set to 's2idle'. While on 'deep' sleep fails and I didn't even bother to test hibernation.
Well, elogind-255.4_r2-x86_64-1 from current's Tue Apr 16 18:50:13 UTC 2024 and it's new 'SuspendMode=deep s2idle' broke things here. Sleep stalls and I need to force a cold boot.
The above is after commenting the change locally (i.e '#SuspendMode=deep s2idle'). On the current mode ([s2idle] deep), system sleeps and wakeup almost cleanly, except for NetworkManager not providing WiFI that was fixed with:
Code:
$ cat /lib64/elogind/system-sleep/states.sh
#!/bin/bash
# See https://wiki.gentoo.org/wiki/Elogind#Suspend.2FHibernate_Resume.2FThaw_hook_scripts
case $1/$2 in
pre/*)
# Put here any commands expected to be run when suspending or hibernating.
;;
post/*)
# Put here any commands expected to be run when resuming from suspension or thawing from hibernation.
/etc/rc.d/rc.networkmanager restart
;;
esac
With s2idle the system power LED blinks as it should when the lid is closed (indicates sleep). On the other hand, on deep LED stays lit and doesn't resume when lid is open, so I need to press and hold power button to turn it off then cold boot again.
This is a pretty new system, as such I don't know if some quirks are required in the kernel so elogin could work as expected with the new prefered 'deep' mode.
EDIT: must add that I use LUKS and LVM from README_CRYPT for full device encription with swap serving as hibernation storage. Booth sleep and hibernation works fine on this system when set to 's2idle'. While on 'deep' sleep fails and I didn't even bother to test hibernation.
Just comment the last line from /etc/elogind/sleep.conf.d/10-elogind.conf - which contains SuspendMode= and restart the computer. It's a config file, so this change will be preserved when upgrading the elogind package.
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070
Rep:
Considering Pat's alpha state comment in the changelog, maybe it would be better if we revert to elogind-252.23 (and polkit-123?) and put later version(s) in /testing?
I had a look at pkgs.org and noted that Slackware -current and Debian Sid are the only repos offering 255.4.x - all others use versions older than 252.
Since there doesn't seem to be any security issues with the older versions (Slackware-15.0 still uses v246.10), reverting would hardly have any negative consequences.
An issue has been raised at github.com/elogind and is under investigation.
Personally I'll stay with elogind-252.23 and polkit-123 till further development solves the issue.
Considering Pat's alpha state comment in the changelog, maybe it would be better if we revert to elogind-252.23 (and polkit-123?) and put later version(s) in /testing?
I had a look at pkgs.org and noted that Slackware -current and Debian Sid are the only repos offering 255.4.x - all others use versions older than 252.
Since there doesn't seem to be any security issues with the older versions (Slackware-15.0 still uses v246.10), reverting would hardly have any negative consequences.
An issue has been raised at github.com/elogind and is under investigation.
The one which works properly right now (and not only as integration with the NetworkManager) is elogind-252.9 and it works without downgrades of polkit or whatever else.
However, I do not think that's good to tuck the tail between legs and ran in an older version.
Because while that s2idle (which works only on some new laptops) vs. deep is a well known thing on the communities of the Linux distros which uses systemd (so 99% of them), however that NetworkManager issues seems to be Slackware-only. So, we need a wide testing as possible, which I'm afraid that's not possible with putting that new elogind in /testing.
Last edited by LuckyCyborg; 04-17-2024 at 01:16 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.