LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2023, 06:15 AM   #2776
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568

Quote:
Originally Posted by perrin4869 View Post
oh cool, so I guess it's safe to delete /etc/iproute2 (as long as it didn't have changes to the defaults)
I removed it here.
 
2 members found this post helpful.
Old 09-07-2023, 01:11 PM   #2777
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 582

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Noticed it here also on all of my slackware64-current systems.

Was able to hit 'scroll lock' on one of 'em and grab the whole thing.
Code:
Installing package iproute2-6.5.0-x86_64-1.txz:
PACKAGE DESCRIPTION:
# iproute2 (IP routing utilities)
#
# These are tools used to administer many advanced IP routing features
# in the kernel.
#
# These utilities were written by Alexey Kuznetsov. The current
# maintainer of iproute2 is Stephen Hemminger.
#
Executing install script for iproute2-6.5.0-x86_64-1.txz.
main: line 5: [: too many arguments
cat: 'etc/iproute2/*.new': No such file or directory
Package iproute2-6.5.0-x86_64-1.txz installed.
Package iproute2-6.4.0-x86_64-1 upgraded with new package ./iproute2-6.5.0-x86_64-1.txz.
 
1 members found this post helpful.
Old 09-07-2023, 09:39 PM   #2778
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 797

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
Quote:
Originally Posted by 0XBF View Post
Building the newer libcgroup does fix those issues as you suggest, but it needs a bit of work vs its current libcgroup package. Here's a few I found just starting out:
- The init and conf patches need to be rebased to the newer code since they dont apply anymore.
- I haven't checked the "git" patch on the older 0.41 version, but I would suspect it would no longer be needed.
- The build needs to have --enable-systemd=no set to complete.
- The cgconfig service cannot be stopped in their provided init script now, and cgclear is removed
- The rc.cgred service fails to start out of the box since the default init script they provide only checks
for cgroup (v1) filesystems, and not cgroup2 filesystems. Can be patched locally but why is it still provided like this?
- The above point would be further complicated if the cgroup fs type is switchable between v1 and v2, requiring further patching.

Overall the package needs some work to fix up the service scripts, and introduces a few changes to catch up on. There might be some more gotchas in the box since I've just been looking at this fairly recently. (I've been hacking on it to get a little more familiar with control groups v1 and v2 in general)
I patched up the libcgroup build for 3.1.0 and have the init scripts working. I'll attach the new patches, slackbuild, and doisnt.sh to this post if anyone is interested in looking at it. The gist is the old patches that bypassed LSB functions can be dropped, since upstream added support for logging without LSB. Still have to adjust the config file path for the /etc/cgred.conf file, and I added a patch to allow the rc.cgred service to properly start with v1 or v2 cgroup mounts.

One other quirk I noticed is that the 'cpu' controller can't be utilized in v2 hierarchy, until the system is also booted with 'cgroup_no_v1=all' on the command line (along with the modified rc.S script to mount the cgroup2 fs).

Once booting with the proper kernel options and the cgroup2 fs mounted, cgroups can be managed with the libcgroup tools (e.g. cgcreate/lscgroup/etc.), managed manually (eg mkdir/cat/echo directly in the /sys/fs/cgroup dir), or automatically with a properly configured /etc/{cgconfig.conf,cgrules.conf} setup with the cgred daemon. I didn't bother testing the pam_cgroup.so module yet, and the package should probably be tested further but creating basic cgroups, adding and using controllers, and the cgrulesdaemon are working AFAICT.

A couple nitpicks:
- Documentation in the package is mostly about v1 still, so examples of commands may not be relevant when running cgroup2, requiring reading a little more online
- I tried using the '--enable-opaque-hierarchy=NAME' build option to hide the elogind cgroups, but no success. It's done with systemd in the documentation. I thought I'd try for elogind, since a multiuser system with many sessions will end up with a pile of elogind session cgroups in /sys/fs/cgroup/ or in 'lscgroup's output.

Cheers,
Bob
Attached Files
File Type: txt libcgroup.SlackBuild.txt (6.2 KB, 3 views)
File Type: txt doinst.sh.txt (1.5 KB, 2 views)
File Type: txt libcgroup.conf.diff.new.txt (456 Bytes, 2 views)
File Type: txt libcgroup.init.diff.new.txt (472 Bytes, 4 views)
File Type: txt libcgroup.cgred.detect_v1_or_v2.diff.txt (507 Bytes, 6 views)

Last edited by 0XBF; 09-10-2023 at 08:39 AM.
 
2 members found this post helpful.
Old 09-08-2023, 12:11 AM   #2779
gsl
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Slackware
Posts: 76

Rep: Reputation: 44
java.SlackBuild in extra/source/java

Is there any point in keeping extra/source/java/ in current? I think the java.SlackBuild only works properly for Oracle Java 7 and 8 which requires (free?) sign up with Oracle in order to access archived releases. It tries to install the Java browser plugin which hasn't been supported (since Firefox 52) or available (since Java 8u271) for a while. Oracle no longer do a 32-bit release, only x86_64 and aarch64 for Linux. There is no longer a separate JDK and JRE, just the modular JDK.

There are a bunch of alternative JDK SlackBuilds on slackbuilds.org that either repackage Oracle Java or build openjdk. AlienBob also provides openjdk{7,8,11} 32-bit and 64-bit packages.

Geoff.
 
2 members found this post helpful.
Old 09-08-2023, 04:22 AM   #2780
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by gsl View Post
Is there any point in keeping extra/source/java/ in current? I think the java.SlackBuild only works properly for Oracle Java 7 and 8 which requires (free?) sign up with Oracle in order to access archived releases. It tries to install the Java browser plugin which hasn't been supported (since Firefox 52) or available (since Java 8u271) for a while. Oracle no longer do a 32-bit release, only x86_64 and aarch64 for Linux. There is no longer a separate JDK and JRE, just the modular JDK.

There are a bunch of alternative JDK SlackBuilds on slackbuilds.org that either repackage Oracle Java or build openjdk. AlienBob also provides openjdk{7,8,11} 32-bit and 64-bit packages.

Geoff.
Here i use JDK 17 cuase is LTS.
 
Old 09-08-2023, 09:18 AM   #2781
mistfire
Member
 
Registered: Jun 2021
Posts: 45

Rep: Reputation: Disabled
Make flatpak official in slackware packages

Please make flatpak become official part of slackware packages
 
Old 09-08-2023, 09:40 AM   #2782
prejudices_mars
Member
 
Registered: Feb 2022
Distribution: Slackware
Posts: 79

Rep: Reputation: 49
Quote:
Originally Posted by mistfire View Post
Please make flatpak become official part of slackware packages
This will be a very good move, but usage of flatpak is so low.
 
Old 09-08-2023, 10:58 AM   #2783
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,730

Rep: Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393
Quote:
Originally Posted by mistfire View Post
Please make flatpak become official part of slackware packages
In the maeantime slackbuilds.org has flatpak packages and so does Alien Bob. I prefer to use Alien Bob's packages
https://alien.slackbook.org/blog/flatpak-on-slackware/
 
4 members found this post helpful.
Old 09-08-2023, 11:11 AM   #2784
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 708
Blog Entries: 1

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Also in GFS for current there is also builds-packages for flatpak, flahub, flatpak-builder gnome-builder (if you want to build your own flapaks) etc... also gui gnome-software app which working very fast and properly like flathub. So When 15.1 will be out all these will be part of SlackBuilds.org if something not exist already.
These days I m checking what deps needed to run gnome-software in a Slackware system whithout install a gnome Desktop if you dont like. I think its not hard we can have it with few deps...

https://imgur.com/KtzyGue.png
https://imgur.com/1fZBTUH.png
 
1 members found this post helpful.
Old 09-08-2023, 11:13 AM   #2785
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,441

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by mistfire View Post
Please make flatpak become official part of slackware packages
the next step is probably to ask for another init ...
 
1 members found this post helpful.
Old 09-08-2023, 11:35 AM   #2786
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
I'm a little surprised that no one has yet asked for the nix package manager to be included in Slackware 15.1. This would give access to a really huge repository

As an aside I have tried in VirtualBox the demo of nixOS provided as an OVA file. The concept of installing all files of a package in a single directory is interesting, albeit unusual and not at all compliant to the FHS. To know more, read the Nix Reference Manual.

Last edited by Didier Spaier; 09-08-2023 at 11:44 AM. Reason: Typo fix.
 
Old 09-08-2023, 04:27 PM   #2787
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by mistfire View Post
Please make flatpak become official part of slackware packages
No thanks
 
6 members found this post helpful.
Old 09-08-2023, 05:53 PM   #2788
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 797

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
Quote:
Originally Posted by 0XBF View Post
- I tried using the '--enable-opaque-hierarchy=NAME' build option to hide the elogind cgroups, but no success. It's done with systemd in the documentation. I thought I'd try for elogind, since a multiuser system with many sessions will end up with a pile of elogind session cgroups in /sys/fs/cgroup/ or in 'lscgroup's output.
The '--enable-opaque-hierarchy="name=elogind"' option only seems to work under cgroup-v1 hierarchy to disable seeing elogind in the 'lscgroup' output. Seems pretty useless otherwise, since you can still see the cgroup under the mounted cgroup filesystem at '/sys/fs/cgroup', and it all shows up in lscgroup if using cgroup-v2.

Otherwise the last thing I'll say is to summarize that with a patch like this to rc.S:

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

Along with a newer libcgroup with these changes to the build and patches:

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

Will allow a newer libcgroup package, and allow for freely switching between cgroup v1 or v2 with boot options. The default would be to use v1 the same as it ever was (enabled, but doing nothing). To switch to v2 would use boot options "cgroup=v2 cgroup_no_v1=all", which sets up a cgroup2 fs instead (and also defaults to do nothing beyond that). Perhaps a better rc.S patch would be to overload the cgroup_no_v1=all option so it does the "cgroup=v2" option's job of mounting a cgroup2 fs in rc.S, and also prevents mounting controllers under v1, which causes them to be unavailable in v2 (which is why the option is set when using v2). However, the linked patch also works, though with two options needed to be set.

The newer libcgroup tools are compatible with either version, although due to the essentially inverted hierarchys between them, the commands are entered differently depending if cgroup v1 or v2 is in use. The cgred daemon works for either v1 or v2 (with the patch), although the config file syntax is different between the two versions, and the examples are v1 based. Still its fairly easy to make a config with cgsnapshot for either version.

It would be nice to have an option to use either cgroup type, since its currently limited to v1 by the rc.S script and age of libcgroup tools. The linked patches can do so, although I'll defer to Pat's final decision as always. All I'm trying to do here is see how that might work moving forward.

I'll show myself out now and stop bringing up cgroup/libcgroup now
 
1 members found this post helpful.
Old 09-09-2023, 07:29 AM   #2789
mistfire
Member
 
Registered: Jun 2021
Posts: 45

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
the next step is probably to ask for another init ...
Nope sysvinit is enough
 
Old 09-09-2023, 07:39 AM   #2790
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,226

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
glib-2.78.0
https://download.gnome.org/sources/g...-2.78.0.tar.xz

Since we have also gtk 4.12 lets update glib too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration