Re: [gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5

2020-11-03 Thread Ulrich Mueller
> On Tue, 03 Nov 2020, Ulrich Mueller wrote: > Presumably it would also be cleaner to test if POLICY_PATCH is an array, > and use '"${POLICY_PATCH[@]}"' if it is but '${POLICY_PATCH}' if it is > not. In fact you could use the same code as in default src_prepare:

Re: [gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5

2020-11-03 Thread Ulrich Mueller
> On Mon, 02 Nov 2020, David Michael wrote: > for POLPATCH in ${POLICY_PATCH[@]}; > do > - if [[ ${EAPI:-0} == 5 ]]; then > - epatch "${POLPATCH}" > - else > - eapply

[gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5

2020-11-02 Thread David Michael
Signed-off-by: David Michael --- Grepping through the ebuilds using this eclass shows that they're all on EAPI 6. A bunch of workarounds could be dropped along with EAPI 5, but it isn't necessary to fix anything, so feel free to ignore this patch. eclass/selinux-policy-2.eclass | 38