[Fixed] gcc now has package isl as a dependency

If you have any suggestions or ideas about improving Slackel, here's the place to post them.
Papasot
Posts: 231
Joined: 13 May 2016 22:32
Location: Patras, Greece

[Fixed] gcc now has package isl as a dependency

Post 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.
Last edited by Papasot on 17 Nov 2020 18:57, edited 2 times in total.
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

Re: gcc now has package isl as a dependency

Post 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.
Papasot
Posts: 231
Joined: 13 May 2016 22:32
Location: Patras, Greece

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

Post 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.
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

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

Post 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.
Papasot
Posts: 231
Joined: 13 May 2016 22:32
Location: Patras, Greece

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

Post 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.
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

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

Post 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
Papasot
Posts: 231
Joined: 13 May 2016 22:32
Location: Patras, Greece

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

Post 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
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

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

Post 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.
Papasot
Posts: 231
Joined: 13 May 2016 22:32
Location: Patras, Greece

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

Post 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.
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

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

Post 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.
Post Reply