View previous topic :: View next topic |
Author |
Message |
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Tue Jun 21, 2016 8:43 am Post subject: uname: Why does gentoo patch it? [SOLVED] |
|
|
Gentoo's uname behaves rather different from that of any other linux system. In fact, there is a lengthy patch for it, according to the ChangeLogs since the beginning of gentoo.
Some build systems break due to this unexpected and apparently completely undocumented change of uname (e.g. the tests from schily-tools; an ebuild is in the mv overlay).
Does anybody know the reasons for this patching? Would it be necessary to patch some other build systems if uname would behave like on other linux distributions?
Last edited by mv on Mon Jun 27, 2016 7:55 am; edited 1 time in total |
|
Back to top |
|
|
ShyPixie n00b
Joined: 20 Nov 2015 Posts: 19 Location: Brazil
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Jun 21, 2016 3:34 pm Post subject: |
|
|
I'm not seeing any patches in the ebuild files/ dir or distfiles/ for the current version.
Just OOC, what does the difference actually look like? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Jun 22, 2016 9:29 am Post subject: |
|
|
Thanks. At least, this is a hint. However, the patch already predates this discussion by some years... |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Jun 22, 2016 9:33 am Post subject: |
|
|
Ant P. wrote: | I'm not seeing any patches in the ebuild files/ dir or distfiles/ for the current version. |
https://dev.gentoo.org/~vapier/dist/coreutils-8.25-patches-1.1.tar.xz
Quote: | Just OOC, what does the difference actually look like? |
/proc/cpuinfo is interpreted for the output of uname -p (and -a). |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Jun 22, 2016 4:07 pm Post subject: |
|
|
mv wrote: | https://dev.gentoo.org/~vapier/[...] |
Oh. That name explains a lot. (Then again, so does "Schily"...) |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Jun 22, 2016 6:06 pm Post subject: |
|
|
Ant P. wrote: | Oh. That name explains a lot. |
Maybe the patch is even older and goes back to Robbins. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Mon Jun 27, 2016 8:00 am Post subject: |
|
|
Marking as solved, as it seems likely that the intention of gentoo's patch is to solve the mentioned bug.
A problem seems to be that this patch now provides too much information, making it incompatible with the intention why Solaris had originally introduced the option -p.
On the other hand, it is clearly documented in GNU coreutils, that the options -p and -r are incompatible even among Linux distributions... |
|
Back to top |
|
|
|