Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327497 - app-crypt/mit-krb5-1.7-r2 chowns file to 'root', breaks on prefix
Summary: app-crypt/mit-krb5-1.7-r2 chowns file to 'root', breaks on prefix
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High major
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 16:04 UTC by Stuart Shelton
Modified: 2011-12-15 19:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-07-08 16:04:02 UTC
If looks as if mit-krb5's "make install" (rather than the ebuild) changes to ownership of "${ED}/usr/bin/ksu" to "root", which succeeds.

However, portage then bombs out when completing the "qmerge"/"src_install" step, leaving the package in a semi-installed state with files on the filesystem but not recorded as being installed.

This looks as if it will affect all (prefix) installs where the portage user isn't root.
Comment 1 Fabian Groffen gentoo-dev 2010-07-08 16:17:24 UTC
well, why does the chown root succeed in the first place?
Comment 2 Stuart Shelton 2010-07-08 16:35:35 UTC
Heh - good point, I'd not noticed that... on Linux you can't give files away.

IRIX is perfectly happy for you to change the ownership on any file you own (including to be owned by root) - but then, of course, you can't take it back again.

If turns out that IRIX has a "restricted_chown" systune variable which will prevent users from changing the ownership of their files to other users, but this is a system-wide setting which is not enabled by default.  I'd be a little reluctant to activate it without looking into it further unless anything breaks.

In any case, we're still talking about a failure - just at a different point, yes?

(I'd hoped that setting "CHOWNPROG=true" in the ebuild would get around this problem, but either it doesn't or I'm setting it (in "src_install") too late...)
Comment 3 Fabian Groffen gentoo-dev 2010-07-08 16:47:02 UTC
you should pass it onto the emake call, not export it in the environment.

You can't set restricted_chown or similar for a session?  The makefile may just ignore the error if chown fails.  Anyway, removing that or disabling it is fine with me.
Comment 4 Stuart Shelton 2010-07-08 16:55:15 UTC
Unfortunately, restricted_chown is a kernel tunable, as it affects the (global) operation of the *chown() calls.

I'll see if passing the variable to emake works any better...
Comment 5 Fabian Groffen gentoo-dev 2011-12-15 19:21:33 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.