Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349792 - net-misc/arm documentation installed outside /usr/share/doc/${PF}
Summary: net-misc/arm documentation installed outside /usr/share/doc/${PF}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 15:45 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-01-09 01:05 UTC (History)
2 users (show)

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


Attachments
Build log (arm-1.4.0.2:20101224-132927.log,9.20 KB, text/plain)
2010-12-26 15:45 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-12-26 15:45:39 UTC
[Christian, it seems like your proxied maintainer is not found on bugzilla? can you please verify?]

You're getting this bug because the package in summary installs its documentation (or at least part of it) outside the usual /usr/share/doc/${PF} directory.

First, please keep in mind that this bug might not be noticeable for -r0 ebuilds, but it might be for -r1 and later, since if the ebuild has same name and version of the package, for -r0 it might correspond properly.

To fix this, if the package uses autotools, recent version (autoconf 2.61+) have two ./configure switches: --docdir and --htmldir to decide where to put the documentation. Older versions might require you override docdir/htmldir or other custom variables during make install.

For non-autotooled build systems, good luck, since I cannot tell you how to achieve the proper results, the same holds true with totally broken buildsystems even when based on autotools.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-12-26 15:45:57 UTC
Created attachment 258125 [details]
Build log
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-29 18:57:42 UTC
(In reply to comment #0)
> [Christian, it seems like your proxied maintainer is not found on bugzilla? can
> you please verify?]

 I copied his email address from Bugzilla.

Jesse, please prepare a fixed ebuild.
Comment 3 Jesse Adelman 2010-12-29 20:03:32 UTC
Howdy. I'll look into this. The python build stuff used here is still pretty opaque to me, so I'll need to do more digging that might be usual. Thanks.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2011-01-03 15:39:51 UTC
(In reply to comment #3)
> Howdy. I'll look into this. The python build stuff used here is still pretty
> opaque to me, so I'll need to do more digging that might be usual. Thanks.

 The line

docPath = "/usr/share/doc/%s" % ("tor-arm" if isDebInstall else "arm")

must be changed.  Best would be to have a custom target like Debian with the version number included. or we just sed/patch that line in the ebuild.
Comment 5 Anthony Basile gentoo-dev 2011-01-09 01:05:55 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Howdy. I'll look into this. The python build stuff used here is still pretty
> > opaque to me, so I'll need to do more digging that might be usual. Thanks.
> 
>  The line
> 
> docPath = "/usr/share/doc/%s" % ("tor-arm" if isDebInstall else "arm")
> 
> must be changed.  Best would be to have a custom target like Debian with the
> version number included. or we just sed/patch that line in the ebuild.
> 

The following which fixes the problem.  I'm adding it to the tree as -r1.

 src_prepare() {
 	sed -i -e "s:^docPath =.*$:docPath = \"/usr/share/doc/${PF}\":" setup.py
 }


Please reopen it if this is not a satisfactory solution.