View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1568
|
Posted: Fri Dec 27, 2024 1:56 pm Post subject: 0 byte sized firmware files in linux-firmware[solved] |
|
|
firmware installed by linux-firmware is zero sized, how can I resolve this?:
Code: | root@localhost $ emerge linux-firmware -pv
* IMPORTANT: config file '/etc/portage/savedconfig/sys-kernel/linux-firmware-20241210-r1' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 25.26 s (backtrack: 0/20).
[ebuild R ] sys-kernel/linux-firmware-20241210-r1::gentoo USE="savedconfig -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -redistributable (-unknown-license)" 0 Ki
|
Code: | root@localhost $ ls -lh /lib/firmware/rtlwifi/
total 12K
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723aufw_A.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723aufw_B.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723aufw_B_NoBT.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723befw.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723befw_36.bin
lrwxrwxrwx 1 root root 23 Dec 27 13:35 rtl8723bs_ap_wowlan.bin -> rtl8723bu_ap_wowlan.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723bs_bt.bin
lrwxrwxrwx 1 root root 17 Dec 27 13:35 rtl8723bs_nic.bin -> rtl8723bu_nic.bin
lrwxrwxrwx 1 root root 20 Dec 27 13:35 rtl8723bs_wowlan.bin -> rtl8723bu_wowlan.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723bu_ap_wowlan.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723bu_nic.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723bu_wowlan.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723defw.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723fw.bin
-rw-r--r-- 1 root root 0 Dec 27 13:34 rtl8723fw_B.bin |
Last edited by Adel Ahmed on Sat Dec 28, 2024 8:58 am; edited 1 time in total |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4682 Location: Germany
|
Posted: Fri Dec 27, 2024 9:06 pm Post subject: |
|
|
Not sure, but don't disable USE=redistributable should probably help. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1568
|
Posted: Sat Dec 28, 2024 8:58 am Post subject: |
|
|
definitely helped, do not understand why but the size is now non-zero, I have another machine with -redistributable and did not encounter that problem.
I'm happy it worked, thank you josef for your help |
|
Back to top |
|
|
hdcg Tux's lil' helper
Joined: 07 Apr 2013 Posts: 121
|
Posted: Sat Dec 28, 2024 9:29 am Post subject: |
|
|
The size shown, is the download size. If the files are already available in distfiles, the size is always zero. Bottom line of emerge output shows this explicit:
Code: |
~ # emerge linux-firmware -pv
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-kernel/linux-firmware-20241210-r1::gentoo USE="redistributable -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -savedconfig (-unknown-license)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
~ # rm /var/cache/distfiles/linux-firmware-20241210.tar.xz
~ # emerge linux-firmware -pv
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-kernel/linux-firmware-20241210-r1::gentoo USE="redistributable -bindist -compress-xz -compress-zstd -deduplicate -dist-kernel -initramfs -savedconfig (-unknown-license)" 401,798 KiB
Total: 1 package (1 reinstall), Size of downloads: 401,798 KiB
|
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2541
|
Posted: Sat Dec 28, 2024 10:05 am Post subject: |
|
|
Adel Ahmed wrote: | definitely helped, do not understand why |
Redistributable includes files that are non-free but redistributable i.e. files with problematic licenses. It's by default enabled, you should have disabled it yourself.
hdcg wrote: | The size shown, is the download size. If the files are already available in distfiles, the size is always zero. Bottom line of emerge output shows this explicit:
|
The original question addresses the files, not the distfiles.
p.s. I just filed a bug on that: https://bugs.gentoo.org/947106
Best Regards,
Georgi |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22893
|
Posted: Sat Dec 28, 2024 3:00 pm Post subject: |
|
|
OP: if you revert to the USE flags you used originally, does the problem reappear? It would be good to understand whether your first problem was an errant bad install (perhaps related to an ill-timed system crash) that would have been fixed by rebuilding with the same options or is a reproducible defect in the package. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3807 Location: Rasi, Finland
|
Posted: Sat Dec 28, 2024 3:52 pm Post subject: |
|
|
Thanks for filling the bug report.
I too was confused because of the naming. I thought redistributable was another bindist, or so... _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1568
|
Posted: Sun Dec 29, 2024 11:07 am Post subject: |
|
|
yeah the problem reappears if I revert to the flags I used originally |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2541
|
Posted: Mon Dec 30, 2024 5:04 am Post subject: |
|
|
Adel Ahmed wrote: | yeah the problem reappears if I revert to the flags I used originally |
Do you have ACCEPT_LICENSE set in your make.conf? Also do you remember why did you disable the redistributable flag?
Zucca wrote: | Thanks for filling the bug report.
I too was confused because of the naming. I thought redistributable was another bindist, or so... |
I don't like the direction the discussion is taking, could I have your input on the bug please?
Best Regards,
Georgi |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1568
|
Posted: Mon Dec 30, 2024 1:21 pm Post subject: |
|
|
yes I have this accept_license:
I disable all redistributable flags by default, there is no reason for disabling this particular use flag |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2541
|
Posted: Mon Dec 30, 2024 1:24 pm Post subject: |
|
|
Adel Ahmed wrote: | I disable all redistributable flags by default |
That doesn't make much sense, there are only 3 packages having this flag in ::gentoo and ::guru combined. Better not make your life more interesting than it should be.
Best Regards,
Georgi |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3807 Location: Rasi, Finland
|
Posted: Mon Dec 30, 2024 2:06 pm Post subject: |
|
|
@logrusx: Users choosing to set -redistributable globally is their choice is then to go more "libre" way.
That said, there should be more visible messages telling them what might not work if they choose to go this route, which I expressed in my comment under the bug report. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2541
|
Posted: Mon Dec 30, 2024 2:50 pm Post subject: |
|
|
Zucca wrote: | @logrusx: Users choosing to set -redistributable globally is their choice is then to go more "libre" way. |
You're saying that in light of the current discussion. However, think about it, what does even redistributable mean on its own. When there are all in all 3 packages having that use flag, it doesn't make sense to enable/disable it globally. That has the potential to cause troubles, as we see in this very discussion.
Also OP has ACCEPT_LICENCE="*" which contradicts that.
@Ahmed, I thought ACCPET_LICENSE could have something to do with your issue, but it turns out it's only relevant on package level, just like keywords. It doesn't influence the package itself, so disregard that.
Best Regards,
Georgi |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20544
|
Posted: Mon Dec 30, 2024 5:51 pm Post subject: |
|
|
Zucca wrote: | @logrusx: Users choosing to set -redistributable globally is their choice is then to go more "libre" way.
That said, there should be more visible messages telling them what might not work if they choose to go this route, which I expressed in my comment under the bug report. | The choice to install 0 byte files also seems wrong.
Something like xxx firmware files not installed due to -redistributable would at least be less cryptic than 0 byte files.
But in the end, randomly turning one of the very many knobs without knowing what it does may produce undesirable results. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2541
|
Posted: Mon Dec 30, 2024 6:09 pm Post subject: |
|
|
pjp wrote: | Zucca wrote: | @logrusx: Users choosing to set -redistributable globally is their choice is then to go more "libre" way.
That said, there should be more visible messages telling them what might not work if they choose to go this route, which I expressed in my comment under the bug report. | The choice to install 0 byte files also seems wrong.
Something like xxx firmware files not installed due to -redistributable would at least be less cryptic than 0 byte files.
But in the end, randomly turning one of the very many knobs without knowing what it does may produce undesirable results. |
Actually that might be a real bug.
Best Regards,
Georgi |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20544
|
Posted: Mon Dec 30, 2024 7:03 pm Post subject: |
|
|
That seems more likely than it being an indicator of "what went wrong." Or at least I hope that wasn't the intent :) _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|