Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497054 - texlive-module.eclass: remove base.eclass inherit
Summary: texlive-module.eclass: remove base.eclass inherit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 497022
  Show dependency tree
 
Reported: 2014-01-04 22:37 UTC by Chris Reffett (RETIRED)
Modified: 2014-03-09 19:51 UTC (History)
2 users (show)

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


Attachments
Patch for texlive-module.eclass (texlive-module.eclass.diff,1.88 KB, patch)
2014-03-09 13:54 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Reffett (RETIRED) gentoo-dev Security 2014-01-04 22:37:15 UTC
Your eclass inherits base.eclass. For several reasons, we at the QA team would like to remove base, and so we ask that you remove the inherit. See bug 497022 for notes on transitioning your eclass away from the base inherit and checking for problems that could crop up.
Comment 1 Alexis Ballier gentoo-dev 2014-01-08 15:55:32 UTC
it doesnt harm here and duplicating code is certainly not good QA :)

so, if you want to kill base.eclass, why not, but please provide another eclass with an equivalent src_preprare
Comment 2 Alexis Ballier gentoo-dev 2014-03-09 11:40:52 UTC
(In reply to Alexis Ballier from comment #1)
> it doesnt harm here and duplicating code is certainly not good QA :)
> 
> so, if you want to kill base.eclass, why not, but please provide another
> eclass with an equivalent src_preprare

i have not seen any action 2 months later; closing as wontfix, please reopen if im wrong
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-03-09 12:42:27 UTC
aballier, I was using base.eclass for xfconf.eclass and asked the same questions, and managed to replace the base_src_prepare with a 2-liner using just eutils.eclass

        [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
        epatch_user

first one to process PATCHES=(), although I knew they were all in array before doing it that simple, followed by users own patches

the last real blocker for getting rid of base.eclass was missing einstalldocs, but that's in eutils.eclass now too

can you please recheck?
Comment 4 Alexis Ballier gentoo-dev 2014-03-09 12:56:48 UTC
(In reply to Samuli Suominen from comment #3)

that's still duplicating "code" for no good reason; feel free to propose a patch though: i'm not even convinced that getting rid of base.eclass is a good idea (instead of e.g. adapting its API for newer EAPIs) so I wont work on this.


FWIW, an excerpt of the eclass doc:
# It inherits texlive-common and base for supporting patching via the PATCHES
# bash array.


and indeed all consumers use an array.
Comment 5 Ulrich Müller gentoo-dev 2014-03-09 13:54:07 UTC
Created attachment 372200 [details, diff]
Patch for texlive-module.eclass

(In reply to Alexis Ballier from comment #4)
> that's still duplicating "code" for no good reason;

What, two lines? At the same time, it gets rid of inheriting lots of unused code from base.eclass.

> feel free to propose a patch though:

Patch is attached. I've tested it with all ebuilds that inherit texlive-module and define a PATCHES array.

I've also checked if ebuilds inheriting texlive-module call any base_* functions directly, and found 3 ebuilds of the dev-texlive/texlive-context package doing this in their src_prepare():

        rm -rf texmf-dist/scripts/context/stubs/mswin || die
        base_src_prepare

These need to be changed to call texlive-module_src_prepare instead.
Comment 6 Alexis Ballier gentoo-dev 2014-03-09 14:23:27 UTC
(In reply to Ulrich Müller from comment #5)
> (In reply to Alexis Ballier from comment #4)
> > that's still duplicating "code" for no good reason;
> 
> What, two lines? 

your diff is more than two lines I'm afraid :)

> At the same time, it gets rid of inheriting lots of unused
> code from base.eclass.

hence the idea to move this to its own eclass

> > feel free to propose a patch though:
> 
> Patch is attached. I've tested it with all ebuilds that inherit
> texlive-module and define a PATCHES array.


patch lgtm (with one unrelated change but that's ok since i prefer it that way :p), feel free to commit (with the ebuild fixes you mentionned)
Comment 7 Ulrich Müller gentoo-dev 2014-03-09 19:51:42 UTC
(In reply to Alexis Ballier from comment #6)
> patch lgtm (with one unrelated change but that's ok since i prefer it that
> way :p), feel free to commit

Committed.

> (with the ebuild fixes you mentionned)

Committed, too.