uname: Map machine architecture to processor type (rebased)#10518
uname: Map machine architecture to processor type (rebased)#10518naoNao89 wants to merge 1 commit intouutils:mainfrom
Conversation
|
GNU testsuite comparison: |
|
Please make a different flag. This is not compat with gnu. |
|
GNU testsuite comparison: |
Just to reiterate, there was no issue with any implementation of Canonical wrote a patch to [1] https://launchpad.net/ubuntu/+source/kdump-tools/1:1.10.7ubuntu1 |
|
hmm they are non-standard extensions. POSIX defines only these options: |
3fc489f to
02ae4b3
Compare
|
GNU testsuite comparison: |
02ae4b3 to
bfd68ef
Compare
|
GNU testsuite comparison: |
The Fedora reversion isn't relevant here, they wanted vanilla GNU alignment but uutils is free to make independent pragmatic choices |
|
Ubuntu should fix kdump-tools or maintain its own uutils patch. |
|
GNU testsuite comparison: |
|
please document this in https://github.com/uutils/coreutils/blob/main/docs/src/extensions.md |
|
GNU testsuite comparison: |
|
It seems this is already fixed at kdump-tools side. |
19fa797 to
9a51485
Compare
|
GNU testsuite comparison: |
9a51485 to
07418f0
Compare
|
GNU testsuite comparison: |
07418f0 to
7027792
Compare
|
GNU testsuite comparison: |
7027792 to
60c9737
Compare
Add map_processor() function to properly map machine architectures (arm64, aarch64, x86_64, etc.) to processor types instead of returning "unknown". This fixes uutils#8659 where 'uname -p' broke kdump-tools and other packages that depend on processor type information. Architecture mappings: - ARM: arm64, aarch64, arm, armv7l, armv8l, armv7, armv8 -> arm - x86: x86_64, amd64 -> x86_64; i386, i486, i586, i686 -> i386 - PowerPC: ppc, ppc64, ppc64le, ppc32 -> powerpc - RISC-V: riscv32, riscv64 -> riscv - SPARC: sparc, sparc64 -> sparc - MIPS: mips, mipsel, mips64, mips64el -> mips
60c9737 to
67bf98d
Compare
|
GNU testsuite comparison: |
Rebased from latest upstream. This combines the
OsStringimprovements with the newmap_processor()function that properly maps machine architectures (arm64, aarch64, x86_64, etc.) to processor types instead of returning "unknown".Fixes #8659 where
uname -pbroke kdump-tools and other packages.Reopen #8842