Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331687 - When in an ebuild exeopts are set to contain "-o" or "-g", doexe fails
Summary: When in an ebuild exeopts are set to contain "-o" or "-g", doexe fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-08 20:54 UTC by Dirk Tilger
Modified: 2017-11-13 17:06 UTC (History)
0 users

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


Attachments
Patch against prefixed portage to filter out -o and -g in exeopts (portage.diff,537 bytes, patch)
2010-08-09 07:00 UTC, Dirk Tilger
Details | Diff
The actual patch needed. (portage-2.2.00.15842-no-exeopts-user-group.patch,515 bytes, patch)
2010-08-09 07:02 UTC, Dirk Tilger
Details | Diff
Updated patch to strip -o and -g from install only when on prefixed portage (portage-2.2.01.15553-no-exeopts-user-group.patch,569 bytes, patch)
2010-09-23 17:43 UTC, Dirk Tilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2010-08-08 20:54:14 UTC
exeopts essentially sets parameters supplied to the `install` command. This command fails when it cannot set the requested permissions. Considering that the prefixed portage is stripping out many filesystem-ownership and account-creation operation, I assumed the proper way to fix it is to strip of "-o" and "-g" from install.

I didn't manage to make it a bash regular expression (=~) and used `sed` instead. Sorry for this.
Comment 1 Dirk Tilger 2010-08-08 20:57:13 UTC
I seem unable to attach any more files to any open bugs. Will do it tomorrow. :(
Comment 2 Dirk Tilger 2010-08-09 07:00:44 UTC
Created attachment 241921 [details, diff]
Patch against prefixed portage to filter out -o and -g in exeopts
Comment 3 Dirk Tilger 2010-08-09 07:02:07 UTC
Created attachment 241923 [details, diff]
The actual patch needed.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-18 21:08:36 UTC
(In reply to comment #0)
> exeopts essentially sets parameters supplied to the `install` command. This
> command fails when it cannot set the requested permissions. Considering that
> the prefixed portage is stripping out many filesystem-ownership and
> account-creation operation, I assumed the proper way to fix it is to strip of
> "-o" and "-g" from install.

Well, I disagree there. Even though the most common use case is for non-root users, we actually try to support root users too. With that said, I don't know of a proper fix at the moment.

Comment 5 Dirk Tilger 2010-09-23 17:43:49 UTC
Created attachment 248444 [details, diff]
Updated patch to strip -o and -g from install only when on prefixed portage

What about this? EPREFIX should be empty for mainline portage. This applies the change only when $EPREFIX is not present. We could additionally only apply it if [ `uid -u` -ne 0 ], but the rest of the prefixed portage is also not that sophisticated.
Comment 6 Dirk Tilger 2010-09-23 17:45:29 UTC
(In reply to comment #5)
> `uid -u`

I meant `id -u`.
Comment 7 Fabian Groffen gentoo-dev 2017-11-13 17:06:19 UTC
There's two packages that use this:

sys-apps/pmount
www-apps/webdavcgi

In the current state of the tree, it seems it's better to fix the two packages (if there is a need) than changing Portagr for it.