Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566764 - fperms arguments are not specified
Summary: fperms arguments are not specified
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-25 00:02 UTC by SpanKY
Modified: 2015-11-25 07:15 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 SpanKY gentoo-dev 2015-11-25 00:02:25 UTC
PMS merely says wrt fperms:
fperms: Acts as for chmod, but takes paths relative to the image directory.

for other programs in this section, it's implied that they take no arguments (although it also does not explicitly state that when it should).  the problem is that ebuilds have long used options like -R, and out of order (options after files), so we're to presume that any flag is valid.  but then we're tied to a specific chmod implementation (GNU in this case) rather than something more desirable (like POSIX).

we should specify the behavior explicitly:

* fperms [-R] <permissions> <file> [files]
<permissions> may take the form of any POSIX mode string:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html#tag_20_17_13