unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68263] [PATCH 0/2] libsmbios: Restrict to only supported systems.
@ 2024-01-05 14:45 Simon South
  2024-01-05 14:50 ` [bug#68263] [PATCH 1/2] gnu: " Simon South
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Simon South @ 2024-01-05 14:45 UTC (permalink / raw)
  To: 68263; +Cc: Efraim Flashner, Vagrant Cascadian

Here are a couple patches that fix build failures of libsmbios, a library for
accessing System Management BIOS[0] data, by restricting its package to only
platforms the library supports (Linux on x86 and x86-64).

They also make libsmbios an optional input to fwupd (its only dependent),
allowing fwupd to build successfully on non-Intel/AMD platforms.

I've tested this on AArch64 and x86-64 and everything appears fine.  I've been
unable to test cross-building fwupd, though, as this fails with

  guix build: error: gnu/packages/gnome.scm:3504:2: librsvg@2.56.4: build
  system `cargo' does not support cross builds

By way of justification for these changes: libsmbios is intended for PCs and
expects[1] to find a sys/io.h header file on the host.  This is supplied by
glibc only for architectures that support peripheral I/O via ports: x86,
x86-64 and DEC Alpha using Linux; and i386 using the Hurd[2].

Of these Guix does not support Linux on Alpha, while libsmbios does not
support the Hurd at all[3].

--
Simon South
simon@simonsouth.net

[0] https://en.wikipedia.org/wiki/System_Management_BIOS

[1] https://github.com/dell/libsmbios/blob/v2.4.3/src/libsmbios_c/cmos/cmos_linux.c#L25

[2] "find -type f -name 'io.h'" at the top level of glibc's source tree makes
    this apparent.

[3] https://github.com/dell/libsmbios/blob/v2.4.3/src/libsmbios_c/common/select_platform_config.h


Simon South (2):
  gnu: libsmbios: Restrict to only supported systems.
  gnu: fwupd: Depend on libsmbios only on supported systems.

 gnu/packages/firmware.scm | 34 +++++++++++++++++++---------------
 gnu/packages/hardware.scm |  1 +
 2 files changed, 20 insertions(+), 15 deletions(-)


base-commit: ac69b423865f12310cef5662d9c303aa4b90c869
-- 
2.41.0





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-01-12 16:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05 14:45 [bug#68263] [PATCH 0/2] libsmbios: Restrict to only supported systems Simon South
2024-01-05 14:50 ` [bug#68263] [PATCH 1/2] gnu: " Simon South
2024-01-05 14:50 ` [bug#68263] [PATCH 2/2] gnu: fwupd: Depend on libsmbios only on " Simon South
2024-01-07 19:50 ` [bug#68263] [PATCH 0/2] libsmbios: Restrict to only " Mathieu Othacehe
2024-01-07 20:00   ` Efraim Flashner
2024-01-08  9:56     ` Mathieu Othacehe
2024-01-08 17:58       ` Simon South
2024-01-08 18:09         ` Efraim Flashner
2024-01-08 18:29           ` Simon South
2024-01-08 20:14             ` Mathieu Othacehe
2024-01-08 20:20               ` Simon South
2024-01-10 17:16 ` [bug#68263] [PATCH v2 " Simon South
2024-01-10 17:16   ` [bug#68263] [PATCH v2 1/2] gnu: " Simon South
2024-01-10 17:16   ` [bug#68263] [PATCH v2 2/2] gnu: fwupd: Depend on libsmbios only on " Simon South
2024-01-12 16:03   ` bug#68263: [PATCH v2 0/2] libsmbios: Restrict to only " Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).