Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780399 - app-emulation/qemu-5.2.0-r50: * QA Notice: Symbolic link /usr/share/qemu/bios.bin points to /usr/share/seabios/bios.bin which does not exist.
Summary: app-emulation/qemu-5.2.0-r50: * QA Notice: Symbolic link /usr/share/qemu/bios...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-05 16:27 UTC by Bernd
Modified: 2021-05-01 22:32 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info-qemu-5.2.0-r50.txt (emerge-info-qemu-5.2.0-r50.txt,15.95 KB, text/plain)
2021-04-05 16:28 UTC, Bernd
Details
qemu-5.2.0-r50:20210405-154207.log.xz (qemu-5.2.0-r50:20210405-154207.log.xz,133.93 KB, application/octet-stream)
2021-04-05 16:32 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-04-05 16:27:32 UTC
The /usr/share/seabios directory only contains a bios-256k.bin file. The bios.bin file has been removed during update from seabios-1.12.0-r1 to seabios-1.14.0

# grep bios.bin /var/log/portage/build/sys-firmware/seabios-1.12.0-r1\:20210405-104504.log 
<<<          obj /usr/share/seabios/bios.bin

Yet the ebuild still links to the file:

        if [[ -n ${softmmu_targets} ]]; then
                # Remove SeaBIOS since we're using the SeaBIOS packaged one
                rm "${ED}/usr/share/qemu/bios.bin"
                rm "${ED}/usr/share/qemu/bios-256k.bin"
                if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
                        dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
                        dosym ../seabios/bios-256k.bin /usr/share/qemu/bios-256k.bin
                fi


Reproducible: Always




emerge --info attached as file due to length restriction.
Comment 1 Bernd 2021-04-05 16:28:59 UTC
Created attachment 697767 [details]
emerge-info-qemu-5.2.0-r50.txt

output of emerge --info =qemu-5.2.0-r50
Comment 2 Bernd 2021-04-05 16:32:08 UTC
Created attachment 697770 [details]
qemu-5.2.0-r50:20210405-154207.log.xz

build log
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-30 08:46:46 UTC
Given that x86 machines booth just fine does it mean this symlink is not used for anything? Or we need to pass something special to qemu?
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-30 21:28:47 UTC
Ah, it's because default machine uses bios-256k.bin, but we can try to force something older and it does not work:

$ qemu-system-i386 -machine isapc
qemu: could not load PC BIOS 'bios.bin'
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-01 21:31:17 UTC
Matthias notes we used to ship fedora's bios.bin for previous releases as ebuild is not able to fet the result into 128kb. fedora has no(?) 1.14 binaries.

And it would be nice to get gentoo's USE=-binary to fit into 128kb. Once we restore it the symlink should not be orphan anymore. Worst case we can remove a bunch of functionality like AHCI and some SCSI targets. We need about 10kb.
Comment 6 Larry the Git Cow gentoo-dev 2021-05-01 22:32:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2dac934e9aa05af7d567f88028a14939c2ae7b0

commit d2dac934e9aa05af7d567f88028a14939c2ae7b0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-01 22:32:13 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-01 22:32:33 +0000

    sys-firmware/seabios: restore bios.bin
    
    Gentoo was not able to build bios.bin (of 128k size)
    for a while. This change disables modern ACPI_PARSE (mmio),
    AHCI and NVME drivers to fit into 128K.
    
    Newer bios is unchanged and is still 256K with all the features.
    
    Reported-by: Bernd
    Closes: https://bugs.gentoo.org/780399
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-firmware/seabios/Manifest                      |   1 +
 .../seabios/files/seabios/config.seabios-128k      |   6 +-
 sys-firmware/seabios/seabios-1.14.0-r2.ebuild      | 183 +++++++++++++++++++++
 3 files changed, 189 insertions(+), 1 deletion(-)