Summary: | selinux-policy-2.eclass: unable to apply POLICY_PATCH | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mathieu Tortuyaux <mathieu.tortuyaux> |
Component: | Eclasses | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/26148 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge selinux-virt |
Description
Mathieu Tortuyaux
2021-06-07 07:43:38 UTC
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0be96d697774e1d79685290f3a0547dba118673 commit a0be96d697774e1d79685290f3a0547dba118673 Author: Krzesimir Nowak <knowak@microsoft.com> AuthorDate: 2022-06-29 15:05:23 +0000 Commit: Kenton Groombridge <concord@gentoo.org> CommitDate: 2022-06-30 17:03:24 +0000 eclass/selinux-policy-2: fix POLICY_PATCH applying eapply as implemented in portage has some heuristics to find out where the parameters that should be passed to patch utility end and actual diff/patch files begin. It first tries to find -- which is the explicit way of separating parameters from input files. Since there's none, it tries to find a first non-option. And it finds the refpolicy directory as a first non-option, while it is supposed to be a value of the -d parameter. The said directory is then treated as an input directory, which is expected to contain at least one patch or diff file. Since there's none, eapply fails. Help eapply's heuristics by explicitly delimiting the parameters from input files with --. Bug: https://bugs.gentoo.org/794682 Signed-off-by: Krzesimir Nowak <knowak@microsoft.com> Closes: https://github.com/gentoo/gentoo/pull/26148 Signed-off-by: Kenton Groombridge <concord@gentoo.org> eclass/selinux-policy-2.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) |