LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-25-2023, 01:12 PM   #2401
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 glennmcc View Post
Question: Does any 'average user' actually need to rotate their logs every day ?

IMO, logrotate should not be in /etc/cron.daily but rather in /etc/cron.weekly
or even in /etc/cron.monthly as it is here on my systems.

To keep my systems working the way I want, the script I use the do upgrades
includes a line to delete /etc/cron.daily/logrotate just in case that package
was upgraded.
Would it be good enough if you changed 'weekly' to 'monthly' or 'yearly' in /etc/logrotate.conf:
Code:
# For more details, see "man logrotate".

# rotate log files weekly:
weekly
 
Old 06-25-2023, 03:23 PM   #2402
lostintime
Member
 
Registered: Dec 2021
Posts: 210

Rep: Reputation: Disabled
Quote:
Question: Does any 'average user' actually need to rotate their logs every day ?
Probably one of those lovable discussions of 'that depends' -- on the definition of 'average' and what each user needs.

If certain logs do not fill quickly then a conf file in /etc/logrotate.d will change rotations to weekly, monthly, based on size, etc. This is how I manage rotations. I let logrotate run daily but many of my conf files are configured for longer rotation periods and those logs do not get rotated daily.

Daily probably works well for many people. If the computer is not powered on when weekly or monthly cron jobs are scheduled, or as often is the case with many people running laptops and the device is in sleep mode, then without customizing or something like anacron, those cron jobs never launch and logs will never rotate. Running logrotate daily provides a reasonable attempt to rotate logs at least some of the time.

Likely 'average' users do not want the default Slackware cron job times that are based on server usage and run in the early AM when many people are sleeping. Many 'average' users probably do not have their computers powered on at that time. So the 'average' user probably wants to change those default cron job times.
 
1 members found this post helpful.
Old 06-25-2023, 07:11 PM   #2403
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0, slackware64-current, slackware-14.0
Posts: 585

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
Well then, I guess it's fine the way it is
because any of us who want it done differently can easily customize it to our liking.
 
1 members found this post helpful.
Old 06-27-2023, 01:30 PM   #2404
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by opty View Post
Use

Code:
tabooext + .new .old .orig .bak
before

Code:
# some packages install log rotation information in this directory:
include /etc/logrotate.d
in /etc/logrotate.conf instead of IMHO not necessary logrotate source code patch or explain the reason(s) for the latter please.
The original reason for the patch was that there was no "tabooext" directive supported in logrotate.conf for many years while we used the patch. The current reason is that the patch still works fine.

While it would seem that this could replace the patch, it could also cause issues for anyone who would upgrade to a newer package without the patch who had files with these extensions and didn't pay proper attention to the logrotate.conf.new file.
 
3 members found this post helpful.
Old 06-28-2023, 03:39 PM   #2405
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Good News , since last release of linux-firmwares , the support for XZ and ZSTD , are included by default , no need extra patches and no need touch the kernel config cause we have enabled "firmware" compress , with support boot xz+zstd.

Example for zstd compressed firmwares...
Quote:
make DESTDIR=$PKG FIRMWAREDIR=/lib/firmware install-zst
Example for xz firmware compression..
Quote:
make DESTDIR=$PKG FIRMWAREDIR=/lib/firmware install-xz
The reduction for final package are good with xz , but personally i testing zstd cause better for low resources machines.

Testing here kernel with zstd modules compression + firmware compression , ...are nice , no impact.


Checking dmesg , all fine...all firmwares loaded and system running smooth.

Quote:
dmesg|grep -i firmware
[ 0.091166] Spectre V2 : Enabling Speculation Barrier for firmware calls
[ 0.240511] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.248939] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-7f] only partially covers this bridge
[ 1.578837] Bluetooth: hci0: Firmware revision 0.1 build 19 week 44 2021
[ 1.579504] iwlwifi 0000:01:00.0: loaded firmware version 36.ca7b901d.0 8265-36.ucode op_mode iwlmvm
[ 1.679981] [drm] Loading DMUB firmware via PSP: version=0x01010027
[ 1.682994] [drm] Found VCN firmware Version ENC: 1.20 DEC: 5 VEP: 0 Revision: 3
[ 1.683007] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware

Last edited by USUARIONUEVO; 06-28-2023 at 03:45 PM.
 
2 members found this post helpful.
Old 06-28-2023, 07:01 PM   #2406
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
Good News , since last release of linux-firmwares , the support for XZ and ZSTD , are included by default , no need extra patches and no need touch the kernel config cause we have enabled "firmware" compress , with support boot xz+zstd.
Thanks for the heads-up. I see that Arch dropped the patch for xz compression two days ago. I will do that also for Slint, comparing the sizes for xz and zstd compression. I also consider splitting the package in several ones as they do to avoid overloading the installer, being too lazy for cherry-picking

Last edited by Didier Spaier; 06-29-2023 at 01:58 AM. Reason: Typo fix.
 
Old 06-28-2023, 11:29 PM   #2407
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 487

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
pkgtools & zstd

Quote:
Originally Posted by Thom1b View Post
Hi,

I think it could be nice to support zst format to make and install packages.
I just wrote two very simple patches for pkgtools and slackpkg slackbuilds. They both support the ".tzz" extension. I'd like to name it ".tzst" but I'm not good to rewrite the sed patterns, so ".tzz" is fine.

I tested them with my own repo successfully. I didn't need to patch slackpkg+.
I don't think it's a fully zst support, anyway it's a working start.
Hi again, just to say I use my patch since 3 months now, it works like a charm!
 
Old 06-29-2023, 01:58 AM   #2408
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
@Thom1b: The file extension is zst according to RFC8878 and pretty much everyone uses it, so zstd compressed file names should end in .zst. Other than that , +1.
 
Old 06-29-2023, 04:15 AM   #2409
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by Didier Spaier View Post
@Thom1b: The file extension is zst according to RFC8878 and pretty much everyone uses it, so zstd compressed file names should end in .zst. Other than that , +1.
But Slackware packages use .t?z suffixes, where g (.tgz) for gzip, b (.tbz) for bzip2, l (.tlz) for lzip, x (.txz) for xz.
So z (.tzz) for zstd goes this way in package name ;-)

.tar.zst goes for zstd-compressed tarballs (or .zst for any files).

Last edited by bormant; 06-29-2023 at 04:23 AM.
 
1 members found this post helpful.
Old 06-29-2023, 07:37 AM   #2410
opty
Member
 
Registered: Mar 2021
Posts: 183

Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
The original reason for the patch was that there was no "tabooext" directive supported in logrotate.conf for many years while we used the patch.
tabooext got added in 1997, long before logrotate in Slackware:

Code:
Sun Apr  7 18:15:16 PDT 2002
[...]
a/logrotate-3.6.2-i386-1.tgz:  Added by popular demand.  ;-)
Quote:
Originally Posted by volkerdi View Post
The current reason is that the patch still works fine.

While it would seem that this could replace the patch, it could also cause issues for anyone who would upgrade to a newer package without the patch who had files with these extensions and didn't pay proper attention to the logrotate.conf.new file.
While this could seem reasonable, it should have never happened in the first place. :-)
 
Old 06-29-2023, 07:39 AM   #2411
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 487

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Quote:
Originally Posted by Didier Spaier View Post
@Thom1b: The file extension is zst according to RFC8878 and pretty much everyone uses it, so zstd compressed file names should end in .zst. Other than that , +1.
You're right! Like @bormant said, I choose "tzz" because of convention package name in slackware, but I don't care about extension. If Pat wants to support zst format, he can choose whatever extension name, it's fine for me
 
1 members found this post helpful.
Old 06-29-2023, 04:07 PM   #2412
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
I see people no understand the linux-firmware compression support.

THAT ONLY AFFECT THE FIRMWARE FILES ........

example ...

NO COMPRESSED FIRMWARES
/lib/firmware/3com/typhoon.bin

COMPRESSED FIRMWARE
/lib/firmware/3com/typhoon.bin.zst

The kernel have hability to load

*.fw --> no compressed
*.bin --> no compressed
*.zst --> zstd firmware compressed
*.xz --> xz firmware compressed

Thats totally different thing , compared with the "FINAL" package ...linux-firmware.txz

Its a double compression , firmwares and later as a single package.

That reduce the final size of firmware folder...cause all single files are compressed.

---------------------

If i undertand bad and are talking around change the type os slackware packages compression , then sorry.

But are two diferent things , i post linux-firmware provides officially support to conpress all firmwares to save disk space , thats not same thing as slackware provide the packages compressed.

Last edited by USUARIONUEVO; 06-29-2023 at 04:12 PM.
 
Old 06-29-2023, 04:33 PM   #2413
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
If i undertand bad and are talking around change the type os slackware packages compression , then sorry.

But are two diferent things , i post linux-firmware provides officially support to conpress all firmwares to save disk space, thats not same thing as slackware provide the packages compressed.
I have built a kernel-packages kernel-firmware-20230625_ee91452-noarch-1slint.txz using the SlackBuild from Slackware with COMPRESSION=xz and indeed individual files are compressed.

Code:
grep COMPRESSED /var/lib/pkgtools/packages/kernel-firmware-20230625_ee91452-noarch-1slint 
COMPRESSED PACKAGE SIZE:     340M
UNCOMPRESSED PACKAGE SIZE:     359M
The previous package I have provided for Slint had just a few less M in both lines, using the same patch as did Arch since a few days, so the result is the same, but we now get zstd compression in addition to xz.

Last edited by Didier Spaier; 06-30-2023 at 01:35 AM.
 
Old 06-29-2023, 05:03 PM   #2414
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
@Didier Spaier

The more relevant point ,is cause we get "officially" from installer , not need extra patches or solutions , thats all , im happy cause its on provided makefile , and as extra , receive zstd.

I write other explanation cause i think people confused , that with the type os final packages from slackware and are different things.

We can compress firmwares with zstd , and provided in a classic as ever *.txz

For some clarifications, thats like compressed man pages , ...can compress or not , that no affect for the last point of package creation...but can reduce the final size.

Last edited by USUARIONUEVO; 06-29-2023 at 05:05 PM.
 
Old 06-29-2023, 06:40 PM   #2415
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 468

Rep: Reputation: 244Reputation: 244Reputation: 244
glib-networking-2.76.1

Quote:
2.76.1 - June 29, 2023
======================

- Fix proxy tests when built against libproxy 0.5
- Updated translations
https://download.gnome.org/sources/g...-2.76.1.tar.xz
https://download.gnome.org/sources/g...76.1.sha256sum

This is a trivial update to Glib Networking
 
  


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 10:25 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