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

Bug 468202

Summary: [Future EAPI] Pass --docdir & --htmldir in econf
Product: Gentoo Hosted Projects Reporter: Michał Górny <mgorny>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: enhancement CC: aklhfex, alonbl, esigra, martin, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: in-eapi-6
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-05-01 21:00:48 UTC
Since nowadays we support installing docs directly by build system, I think we should make 'htmldir' point to the right subdirectory of 'docdir' (it defaults to '${docdir}').
Comment 1 Ciaran McCreesh 2013-05-01 21:09:00 UTC
We're not passing --docdir through econf. Nor can we trivially, since quite a few configure scripts barf horribly if you specify it.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-05-01 21:40:45 UTC
Let's extend the bug then and think about it more.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2013-05-01 23:22:47 UTC
Would parsing of 'configure --help' (similarly to --disable-dependency-tracking and --disable-silent-rules) help?
Comment 4 Ciaran McCreesh 2013-05-01 23:31:21 UTC
Don't know off the top of my head. 'git grep hates' on Exherbo's arbor.git will find you some packages that don't like it, though.
Comment 5 Martin Väth 2013-05-31 06:31:47 UTC
This is somehow a dupe of bug 173592, although the latter does not mention --htmldir; so maybe bug 173592 should be marked a dupe of this?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-05 07:37:38 UTC
(In reply to Ciaran McCreesh from comment #4)
> Don't know off the top of my head. 'git grep hates' on Exherbo's arbor.git
> will find you some packages that don't like it, though.

I haven't checked them all but most of them are just the matter of not supporting --docdir at all. Also, I think new gcc versions don't need that --hates (4.9.0 has --docdir).
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-06 18:59:14 UTC
So I've checked all packages in the Exherbo list that are in Gentoo as well, and the only package failing with the new code is dev-tcltk/expect.

It is failing because the configure script in main directory uses new autoconf (with --docdir) and the configure script in testsuite subdirectory uses old autoconf version. And this happens only because the ebuild does 'eautoconf' in main directory and does not reconfigure this subdirectory...
Comment 8 Ulrich Müller gentoo-dev 2014-08-26 21:10:33 UTC
*** Bug 173592 has been marked as a duplicate of this bug. ***
Comment 9 Ulrich Müller gentoo-dev 2014-08-28 11:10:13 UTC
Explicit --docdir and --htmldir passed to econf will override the prefix="${ED}"/usr that einstall passes to emake, i.e. ${D} would be omitted from the install location.

We need to keep einstall in sync, by adding the following variables in EAPI 6:
   docdir="${ED}"/usr/share/doc/${PF}
   htmldir="${ED}"/usr/share/doc/${PF}/html