Page 1 of 2

[Fixed] gcc now has package isl as a dependency

Posted: 17 Nov 2020 14:05
by Papasot
In a recent gcc update on Slackware-Current,libisl.so.23 became necessary to compile any program with gcc. For full Slackel installations, this is irrelevant, but if you are using a "basic" Slackel installation where you added only the additional packages you need, you have to install isl now. Therefore, I guess the package isl should be added as a dependency for gcc.

By the way, the older libisl.so.22 remains installed, I am not sure if it is still needed or if it's safe to remove it.

Re: gcc now has package isl as a dependency

Posted: 17 Nov 2020 16:43
by djemos
Yes. And also all gcc-* packages have isl as a dep. I have created all new deps and upload them on repos.
It is safe to remove the old one.
Thanks.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 17 Nov 2020 19:03
by Papasot
Thank you Dimitri. I wonder where the old libisl.so.22 did come from though, since in my systems isl was not installed before. I am guessing it was part of the old gcc and it somehow remained after upgrading to the new gcc version. I deleted it manually, together with its symbolic link.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 17 Nov 2020 21:01
by djemos
It is part of aaa_elflibs. If you had deleted it is no harm but since it is part of aaa_elflibs can reinstall aaa_elflibs again to have it. It is included there for backward compatibility.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 06:53
by Papasot
I reinstalled aaa_elflibs but now something weird happens. Sound is always muted on boot. First time I see this and started happening right after reinstalling aaa_elflibs. I tried several ways to restore sound on boot but nothing works. I guess I could set sound volume in ~/.config/openbox/autostart.sh but that would be a patch covering the reason such a problem occurs.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 13:13
by djemos
I made an upgrade to a HP laptop i also have to the latest slackware current upgrades.
I also reinstalled aaa_elflibs package. Sound is working fine. Then i did a reboot and also sound has no problem.
Run volume control and unmute everything.
Sound is always goes to 46% if this is what you mean.
So if you want to put sound on whatever level on boot do this.
Add these lines in /etc/rc.d/rc.local if they are not exist. Make sure it is executable (755)

Code: Select all

rfkill unblock all
amixer set Master 75% unmute
amixer set Headphone 100% unmute
amixer set Speaker 100% unmute
amixer set PCM 100% unmute
Slackel has no tool to mute or umute sound on boot. This has to do with alsa default setting or pulseaudio default setting.
What is the output of these commands in your system

Code: Select all

cat /etc/rc.d/rc.local

Code: Select all

cat /etc/asound.conf

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 13:50
by Papasot
It is weird indeed. And happened right after reinstalling aaa_elflibs. I can unmute the sound with Volume Control (and it works as usual), but after reboot or cold turn on, it is muted again. I tried alsamixer too, same result.

Code: Select all

pap[~]$ cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

rfkill unblock all

#amixer set Master 75% unmute
#amixer set Headphone 100% unmute
#amixer set Speaker 100% unmute
#amixer set PCM 100% unmute
#nm-applet

#rfkill unblock all
#[ -x /etc/rc.d/rc.espeakup ] && /etc/rc.d/rc.espeakup start
#su --login djemos -c '/bin/bash -l -c startx &> /dev/null' &

Code: Select all

pap[~]$ cat /etc/asound.conf
# ALSA system-wide config file
# By default, redirect to PulseAudio:
pcm.default pulse
ctl.default pulse

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 13:58
by djemos
So uncomment these lines in /et/rc.d/rc.local

Code: Select all

amixer set Master 75% unmute
amixer set Headphone 100% unmute
amixer set Speaker 100% unmute
amixer set PCM 100% unmute
And can set master from 75% to 100%
Then

Code: Select all

sudo service restart local
Then on every boot sound level always be 100% or 75% or whatever you put there.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 15:53
by Papasot
djemos wrote:So uncomment these lines in /et/rc.d/rc.local

Code: Select all

amixer set Master 75% unmute
amixer set Headphone 100% unmute
amixer set Speaker 100% unmute
amixer set PCM 100% unmute
And can set master from 75% to 100%
Then

Code: Select all

sudo service restart local
Then on every boot sound level always be 100% or 75% or whatever you put there.
By the moment I saw those lines in /etc/rc.d/rc.local I thought this might be the solution (although I don't see how reinstalling aaa_elfibs commented them). However, uncommenting those lines doesn't solve the issue. With service restart the sound is unmuted temporarily. But every time I reboot the sound is muted again. In addition, I see this on startup:

Code: Select all

amixer: Unable to find simple control 'Headphone',0
amixer: Unable to find simple control 'Speaker',0
amixer: Unable to find simple control 'PCM',0
Which means setting volume does nothing since 'Speaker' is not found. I doubt those lines will solve the problem for another reason: On my other Slackel system, where I didn't reinstall aaa_elflibs, those lines are actually commented and I do have sound unmuted on boot.
I keep mentioning aaa_elflibs because once I reinstalled this package, I rebooted the system immediately - and then the problem started to appear.

Re: [Fixed] gcc now has package isl as a dependency

Posted: 18 Nov 2020 17:23
by djemos
I looked at alsa config and i have remembered why i have commented the lines in /etc/rc.d/rc.local because that not default to all sound cards. So comment these lines again and save the file.
Run alsamixerin a terminal and set your volume for all devices as you like can do the same with volume control but using alsamixer will see what are the names for your sound system.
then type in the terminal

Code: Select all

sudo rm /etc/asound.state
to be sure this file deleted if it exists.

Code: Select all

sudo alsactl store
This last command will save the sound settings in /var/lib/alsa/asound.state
Then reboot
And check if sound has your previous settings.
This worked for me.
If this is not working for your system then look at the names in alsamixer and replace the others in /erc/rc.d/rc.local with yours. But i am positive that it will work with the sudo alsactl store

Code: Select all

sudo alsactl restore
will restore settings e.g. if you low the level of speakers in volume control and then run sudo alsactl restore will see the bar to go to where you have it first.