LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 07-03-2017, 02:50 AM   #2521
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 362

Rep: Reputation: 200Reputation: 200Reputation: 200

Quote:
Originally Posted by Didier Spaier View Post
I am not sure that the word locale be properly used in the README. I see nothing in the POSIX specification that defines a multi-byte locale.

Does the quoted sentence means that e.g. when LANG set to fr_FR.utf8 instead of fr_FR writing [0-9] was slower than writing [[:digit:]] before this release? Maybe. I didn't check. What puzzles me is that the digits 0-9 are represented with one byte in both cases.
I am quite certain that GNU grep developers really mean it when they write "locale". GNU grep behavior (and speed as a consequence) is highly affected by locale (see numerous advice on the web on speeding up grep with LC_ALL=C).

Regarding speed difference between [0-9] and [[:digit:]], I can't answer why the former was slower than the latter using multi-byte locales (I'd need to inspect the source code to understand that), but it doesn't really surprise me.
 
Old 07-03-2017, 03:02 AM   #2522
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,234

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
libinput-1.8.0:

https://lists.freedesktop.org/archiv...ly/034397.html
https://www.freedesktop.org/software...t-1.8.0.tar.xz
 
1 members found this post helpful.
Old 07-03-2017, 08:49 AM   #2523
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by Didier Spaier View Post
What puzzles me is that the digits 0-9 are coded with one byte in both cases (which is true for the whole ASCII character set).
I'm not sure if we are talking about the same thing, but characters in UTF8 can have variable number of bytes per displayed character.
I won't go into details, because I don't know them, but maybe that's what you are asking about?

--
Best regards,
Andrzej Telszewski
 
Old 07-03-2017, 09:03 AM   #2524
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by atelszewski View Post
I'm not sure if we are talking about the same thing, but characters in UTF8 can have variable number of bytes per displayed character.
Indeed. But the digits <zero> to <nine> (that make up the <digit> character class in the POSIX aka C locale, according to the POSIX locale specification) are coded using one byte in UTF8.

However in other encodings these characters are written using two or four bytes. And if the specification requires that only these ten characters be included in the digit class in the POSIX locale, and that they be included in all locale definitions, other classeslocales may include also other numerical digits. Thus in such locales '[[:digit:]]' can include more characters than '[0-9]'.

Sorry for the digression.

PS Reading /usr/share/i18n/i18n it seems that for <0>..<9> the reference for glibc be ISO C 99 (in this case at least consistent with POSIX) and that additional digits can be included in the 'outdigit' class:
Code:
% The "digit" class must only contain the BASIC LATIN digits, says ISO C 99
% (sections 7.25.2.1.5 and 5.2.1).
digit /
   <U0030>..<U0039>

% The "outdigit" information is by default "0" to "9".  We don't have to
% provide it here since localedef will fill in the bits and it would
% prevent locales copying this file define their own values.
% outdigit /
We can list the languages registered in glibc that include digits outside the <0>..<9> range:
Code:
grep -r outdigit /usr/share/i18n/locales

Last edited by Didier Spaier; 07-04-2017 at 06:25 AM. Reason: s/other classes/other locales/, sorry.
 
1 members found this post helpful.
Old 07-03-2017, 12:57 PM   #2525
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I don't know if someone would be interested by the slackware database with all the addresses I have collected?
Attached Files
File Type: txt slackware-current.txt (51.8 KB, 97 views)

Last edited by nobodino; 07-04-2017 at 12:03 AM. Reason: grammar
 
8 members found this post helpful.
Old 07-03-2017, 02:23 PM   #2526
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by nobodino View Post
I don't know if someone is interested by the slackware database with all addresses I have collected?
THANK YOU SO MUCH!! I have been collecting a similar list of URLs for my Slackhammer project. It is tedious work, and this will speed matters along nicely :-)
 
Old 07-04-2017, 05:16 AM   #2527
Bleikfisk
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
Hyper-v modules in huge-kernel

Newbie here, apologies if this has been discussed previously (tldr below).

I'm running Slackware 14.2 x64 as a VM in Hyper-V (using Windows at work) and I initially had some trouble booting after installation because the hv_vmbus and hv_storvsc modules required by Hyper-V aren't loaded by the huge-kernel. I'm loading these modules with an initrd, but after every kernel upgrade I have to re-make the initrd before rebooting. If I forget to do this I can't boot and I'll have to boot the installation media and chroot to the system so that i can re-make the initrd (I came to my senses and made a recovery boot in lilo with a specific kernel and initrd after having to do this a couple of times ).

Also after a kernel upgrade, if you try to use the mkinitrd_command_generator.sh, it'll complain about modules for the running kernel not being installed, so you basically have to run the mkinitrd command with the options manually, getting no help from the script (I just dump the output of the script to a file for later, add the modules and execute it after changing the kernel version before rebooting to a new kernel).

Tldr: Is it possible to have the huge-kernel include the Hyper-V modules (hv_vmbus and hv_storvsc)? It might save others from some extra work or even let them run Slackware under Hyper-V without any know-how.
 
Old 07-04-2017, 06:16 AM   #2528
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by Bleikfisk View Post
Tldr: Is it possible to have the huge-kernel include the Hyper-V modules (hv_vmbus and hv_storvsc)? It might save others from some extra work or even let them run Slackware under Hyper-V without any know-how.
Most probably not.

Your best bet is to use generic kernel, then all the modules load without problem.
And if there's problem with loading modules into generic kernel, then you need to report it, because it's Slackware's error.

And module not loading into huge kernel isn't Slackware error.
Your problem most probably is related to duplicated symbols in modules and huge kernel.
Modules are built out of generic kernel and that cause some modules not to load into huge kernel.

--
Best regards,
Andrzej Telszewski
 
Old 07-04-2017, 10:09 AM   #2529
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,234

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
gnutls-3.5.14:

https://lists.gnupg.org/pipermail/gn...ly/008469.html
https://www.gnupg.org/ftp/gcrypt/gnu...-3.5.14.tar.xz

Robby, i have installed the new udisks-2.7.1, seem work correctly here, (just for info).

https://github.com/storaged-project/...-2.7.1.tar.bz2

Last edited by gmgf; 07-04-2017 at 10:14 AM.
 
1 members found this post helpful.
Old 07-04-2017, 10:20 AM   #2530
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Bleikfisk View Post
Also after a kernel upgrade, if you try to use the mkinitrd_command_generator.sh, it'll complain about modules for the running kernel not being installed, so you basically have to run the mkinitrd command with the options manually, getting no help from the script (I just dump the output of the script to a file for later, add the modules and execute it after changing the kernel version before rebooting to a new kernel).
The mkinitrd_command_generator.sh script does support the -k option allowing you to specify a different kernel than the one you're running. You can also use -m to have it add the required modules to the command it spits out as well.

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.75 -m "hv_vmbus:hv_storvsc"
Check out /usr/share/mkinitrd/mkinitrd_command_generator.sh --longhelp for more details.

Quote:
Originally Posted by atelszewski View Post
And module not loading into huge kernel isn't Slackware error.
Your problem most probably is related to duplicated symbols in modules and huge kernel.
Modules are built out of generic kernel and that cause some modules not to load into huge kernel.
I think you're misunderstanding (or maybe I am). The modules aren't included with huge, so it requires an initrd to load them. Once they use the initrd, whether loading the huge or generic, it works fine. They're just asking if the modules can be built-in on the huge kernel to prevent them from needing to rebuild the initrd every time a kernel upgrade is released.
 
Old 07-05-2017, 02:36 AM   #2531
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by bassmadrigal View Post
I think you're misunderstanding (or maybe I am).
It's me, definitely ;-)

--
Best regards,
Andrzej Telszewski
 
Old 07-05-2017, 09:31 PM   #2532
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh  -c > /etc/mkinitrd.conf
Do that once, edit /etc/mkinitrd.conf as needed (for additions/deletions/etcetera), and then do this thereafter:
Code:
mkinitrd -c -k kernel_version -F
I tend to pass "-o /boot/initrd-$version.gz" to mine as well.

I poked around in mkinitrd sources some time ago, intending to allow for a way to pass an option that would automatically append a kernel version string to the initrd name, but it didn't appear to be as trivial as I wanted, so I gave up. I'd rather not introduce bugs to accompany a feature that nobody else has ever requested :-)

Last edited by rworkman; 07-05-2017 at 09:34 PM.
 
3 members found this post helpful.
Old 07-05-2017, 11:41 PM   #2533
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,700

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
fontconfig-2.12.4

https://www.freedesktop.org/software...-2.12.4.tar.gz

This version cleanly compiles on -current, the glibc and gperf issues are fixed.
 
Old 07-06-2017, 02:35 AM   #2534
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,700

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
I bought Tomb Raider over Steam's summer sale since I haven't played a game in a while and it has Linux support. I had to add libunistring to multilib to get it working. I noticed that the version shipped with Slackware is 0.9.3 which is pushing 7 years old. The current version is 0.9.7, not sure if upgrading is necessarily needed but just FYI.
 
2 members found this post helpful.
Old 07-06-2017, 02:52 AM   #2535
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Indeed upgrading libunistring is welcome. As the NEWS file (attached) shows there have been a lot of enhancements and fixes since 0.9.3.
URL for downloads:
http://ftp.gnu.org/gnu/libunistring/...g-0.9.7.tar.xz
http://ftp.gnu.org/gnu/libunistring/...9.7.tar.xz.sig

PS https://www.gnu.org/software/libunis...unistring.html is worth reading.
Attached Files
File Type: txt NEWS.txt (4.2 KB, 16 views)

Last edited by Didier Spaier; 07-06-2017 at 05:33 AM.
 
  


Closed Thread



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
[SOLVED] how to show the current time at the top in the current shell Always ? rohitchauhan Linux - General 5 04-09-2014 03:05 PM
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 04:36 PM
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 06:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 08:26 AM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 01:02 PM

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

All times are GMT -5. The time now is 01:13 AM.

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