← Commit list

663ae5267

Denys Vlasenko
Denys Vlasenko
2017-08-03
SUCCESS Duration: 140s

Subject

config: FEDORA_COMPAT option (so far only tweaks uname)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

Config.in+13 -0
@@ -37,6 +37,19 @@ config EXTRA_COMPAT
some GNU extensions in libc. You probably only need this option
if you plan to run busybox on desktop.
+config FEDORA_COMPAT
+ bool "Building for Fedora distribution"
+ default n
+ help
+ This option makes some tools behave like they do on Fedora.
+
+ At the time of this writing (2017-08) this only affects uname:
+ normally, uname -p (processor) and uname -i (platform)
+ are shown as "unknown", but with this option uname -p
+ shows the same string as uname -m (machine type),
+ and so does uname -i unless machine type is i486/i586/i686 -
+ then uname -i shows "i386".
+
config INCLUDE_SUSv2
bool "Enable obsolete features removed before SUSv3"
default y
coreutils/uname.c+1 -1
@@ -183,7 +183,7 @@ int uname_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
strcpy(uname_info.processor, unknown_str);
strcpy(uname_info.platform, unknown_str);
strcpy(uname_info.os, CONFIG_UNAME_OSNAME);
-# if 0
+# if ENABLE_FEDORA_COMPAT
/* Fedora does something like this */
strcpy(uname_info.processor, uname_info.name.machine);
strcpy(uname_info.platform, uname_info.name.machine);