Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364117 - media-libs/vigra-1.7.1 - add python and doc support
Summary: media-libs/vigra-1.7.1 - add python and doc support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 10:21 UTC by J. M. Gottfried
Modified: 2011-09-04 15:49 UTC (History)
1 user (show)

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


Attachments
reworked ebuild with doc generation and python support (vigra-1.7.1-r1.ebuild,1.92 KB, text/plain)
2011-04-19 10:22 UTC, J. M. Gottfried
Details
use arch-independent cmake-script location (1.7.1-cmake-scripts.patch,557 bytes, patch)
2011-04-19 10:25 UTC, J. M. Gottfried
Details | Diff
ebuild with test restriction removed (vigra-1.7.1-r1.ebuild,1.75 KB, text/plain)
2011-04-19 10:56 UTC, J. M. Gottfried
Details
New ebuild with python support based on python eclass (vigra.ebuild.patch,3.87 KB, patch)
2011-05-10 19:22 UTC, J. M. Gottfried
Details | Diff
vigra-1.7.1.patch (vigra-1.7.1.patch,2.86 KB, text/plain)
2011-07-26 22:21 UTC, Tomáš Chvátal (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J. M. Gottfried 2011-04-19 10:21:15 UTC
Python (vigranumpy) and documentation support in the vigra-1.7.1.ebuild (in official tree) are currently disabled.
The cmake files needed for automatic cmake FIND_PACKAGE support are dropped from installation.

Reproducible: Always

Steps to Reproduce:
1. emerge vigra-1.7.1
Actual Results:  
no vigra documentation, no python support, no cmake find scripts

Expected Results:  
- documentation in /usr/share/doc/${PF}
- cmake scripts in /usr/share/cmake/vigra
- python classes in /usr/${libdir}/python2.x/site-packages/vigra/

I reworked the actual ebuild such that the problems described above are fixed.
It does build the documentation out-of-source (i.e. in the working directory) instead of mess up the source tree (using the DOCDIR cmake variable).
Comment 1 J. M. Gottfried 2011-04-19 10:22:54 UTC
Created attachment 270505 [details]
reworked ebuild with doc generation and python support

this ebuild is based on the current vigra-1.7.1 ebuild
but adds support for documentation generation, python bindings and does not drop the cmake scripts
Comment 2 J. M. Gottfried 2011-04-19 10:25:58 UTC
Created attachment 270507 [details, diff]
use arch-independent cmake-script location

This patch changes the install location of cmake scripts.
Originally they are installed to /usr/$(libdir)/vigra.
This sets the install path to /usr/share/cmake/vigra which is arch/multilib independent.
Possible install locations are described here:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package
Comment 3 J. M. Gottfried 2011-04-19 10:31:41 UTC
In vigra-1.7.1.ebuild, the cmake scripts are denoted to be useless.
These files provide the possibility to find the vigra package automatically in other cmake projects using FIND_PACKAGE(vigra) without caring about writing own cmake find scripts.
Packages depending on vigra may rely on this feature since it is the most convenient way to use it.
Is there any convention in gentoo where to put these files?
There are several locations where cmake looks for such scripts, so perhaps one of the possible directory fits best into gentoo file location conventions.
See http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package for more information.
Comment 4 J. M. Gottfried 2011-04-19 10:56:47 UTC
Created attachment 270509 [details]
ebuild with test restriction removed

Tests do work, even with python support enabled. There are no hardcoded paths.
So this ebuild drops the test restriction.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-03 07:46:06 UTC
Just a note, that patch is not using python eclass and as such it wont be accepted to main tree.

Also attach your ebuild modifications as diffs not whole ebuilds.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-03 07:47:11 UTC
For what goes about the cmake defaults it is new thing starting with cmake-2.8. Most upstreams use FindXXX and require cmake-2.4 and 2.8. I have yet to find some package that use the new way of things but so far installing those files is a bit useless.
Comment 7 J. M. Gottfried 2011-05-10 19:22:40 UTC
Created attachment 272761 [details, diff]
New ebuild with python support based on python eclass

(In reply to comment #5)
> Just a note, that patch is not using python eclass and as such it wont be
> accepted to main tree.
> 
> Also attach your ebuild modifications as diffs not whole ebuilds.

In this new version of the ebuild, I tried to add python support using the python eclass. Since it is the first time I use it there may still be some errors, in this case, please let me know.

Also, using hdf5 with mpi enabled turned out to result in unusable libraries and failing tests, so I restricted usage to non-mpi hdf5 builds.

Additionally, I am submitting this ebuild as a diff to the current portage tree version as requested.
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-07-26 22:21:48 UTC
Created attachment 281085 [details]
vigra-1.7.1.patch

The patch is good but the problem i have is that it won't compile for me right now, i get a) oom leak that kills gcc b) undefined vars errors -> i cant patch it.

Attaching what i did with it. +- Same what JM did.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-04 15:49:36 UTC
Python now added. So both fixed.