Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 841701

Summary: app-emulation/bochs-2.7 does not respect USE flags
Product: Gentoo Linux Reporter: Duje Mihanović <duje.mihanovic>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: CONFIRMED ---    
Severity: normal CC: wielkiegie
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/bochs-emu/Bochs/issues/7
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log and `emerge --info` output for bochs-2.7.
Workaround patch

Description Duje Mihanović 2022-04-29 13:36:25 UTC
Created attachment 775329 [details]
Build log and `emerge --info` output for bochs-2.7.

When choosing the VGA display library to use, I expect to be able to use "x" since I compiled bochs with the "X" USE flag. However, I am only able to choose from nogui and term. Discovered on AMD64.

Build log and output of `emerge --info bochs` attached. Judging by the former, it seems that the ebuild fails to install the plugin files.
Comment 1 Luca Barbato gentoo-dev 2022-07-27 21:36:53 UTC
I managed to reproduce the problem, looks like its build system is old enough to trip on recent enough glibc.
Comment 2 Luca Barbato gentoo-dev 2022-07-27 21:57:58 UTC
I opened https://github.com/stlintel/Bochs/issues/24 to see if upstream is amenable to the idea.
Comment 3 Bigos 2022-10-09 17:12:46 UTC
Created attachment 822949 [details, diff]
Workaround patch

The attached patch works around this issue by recognizing x86_64 as an official Linux CPU architecture with dynamic linking.

Caution: I have no idea what I am doing, this hopefully does not break anything else.

The real fix would be to modernize the build system - either by upgrading autotools or switching to something else (this is tracked in the upstream issue).