Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
uname: Why does gentoo patch it? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Jun 21, 2016 8:43 am    Post subject: uname: Why does gentoo patch it? [SOLVED] Reply with quote

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
View user's profile Send private message
ShyPixie
n00b
n00b


Joined: 20 Nov 2015
Posts: 19
Location: Brazil

PostPosted: Tue Jun 21, 2016 2:46 pm    Post subject: Reply with quote

This discussion helps?

http://lists.gnu.org/archive/html/bug-coreutils/2005-09/msg00063.html
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Jun 21, 2016 3:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Jun 22, 2016 9:29 am    Post subject: Reply with quote

ShyPixie wrote:
This discussion helps?

http://lists.gnu.org/archive/html/bug-coreutils/2005-09/msg00063.html

Thanks. At least, this is a hint. However, the patch already predates this discussion by some years...
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Jun 22, 2016 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Jun 22, 2016 4:07 pm    Post subject: Reply with quote

mv wrote:
https://dev.gentoo.org/~vapier/[...]

Oh. That name explains a lot. (Then again, so does "Schily"...)
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Jun 22, 2016 6:06 pm    Post subject: Reply with quote

Ant P. wrote:
Oh. That name explains a lot.

Maybe the patch is even older and goes back to Robbins.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Jun 27, 2016 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum