Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655260

Summary: rpm.eclass should not inherit eutils for EAPI>=6
Product: Gentoo Linux Reporter: Jonas Stein <jstein>
Component: EclassesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: leio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: find_ebuild_with_rpmeclass_which_need_eutils.py

Description Jonas Stein gentoo-dev 2018-05-08 09:24:22 UTC
Created attachment 530410 [details]
find_ebuild_with_rpmeclass_which_need_eutils.py

I suggest to change:

-inherit eutils
+[[ ${EAPI} == [012345] ]] && inherit eutils

I have searched with the attached script for ebuilds, which inherit rpm in EAPI=6, but need eutils and forgot to inherit it directly. 
None found.

So it should not cause negative side effects.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-08 09:34:25 UTC
The reason for the eutils inheritance is the rpm_spec_epatch function which calls "epatch".
Dunno if it's feasible to call eapply in EAPI>=6 ebuilds as eapply defaults to -p1
Comment 2 Mart Raudsepp gentoo-dev 2018-05-08 11:37:18 UTC
epatch is available in epatch.eclass now instead of full eutils.eclass.
My blind suggestion would be to thus change it to
[[ ${EAPI} == [0123456] ]] && inherit epatch
and use eapply in that rpm_spec_epatch function for EAPI-7 if it's feasible to force -p1 on whatever that stuff does safely on EAPI bumps. Possibly also renaming it to rpm_spec_eapply with EAPI-7?
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-05-08 12:45:24 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> The reason for the eutils inheritance is the rpm_spec_epatch function which
> calls "epatch".
> Dunno if it's feasible to call eapply in EAPI>=6 ebuilds as eapply defaults
> to -p1

Don't forget about estack eclass for eshopts_{push,pop} in srcrpm_unpack
Comment 4 Brian Evans (RETIRED) gentoo-dev 2019-06-23 11:54:01 UTC

*** This bug has been marked as a duplicate of bug 655256 ***