Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413031 - =sci-libs/netcdf-4.2 does not compile with useflag -hdf5 set
Summary: =sci-libs/netcdf-4.2 does not compile with useflag -hdf5 set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-21 23:50 UTC by pawstar
Modified: 2012-04-23 16:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pawstar 2012-04-21 23:50:21 UTC
=sci-libs/netcdf-4.2 will not compile with -hdf5 useflag if hdf5 libraries are not installed.  If hdf5 is installed, I assume that hdf5 support will get compiled into netcdf despite requesting that it be not.  The problem is an error in the ebuild, where a dash is missing between netcdf and 4 in the src_configure() function.

Reproducible: Always

Steps to Reproduce:
1. Make sure hdf5 is not installed
2. USE="-hdf5" emerge =sci-libs/netcdf-4.2
3. compile fails
Actual Results:  
=sci-libs/netcdf-4.2 does not compile with -hdf5

Expected Results:  
=sci-libs/netcdf-4.2 compiles without hdf5 support

patch:
--- netcdf-4.2.ebuild.bad       2012-04-18 13:10:26.000000000 -0600
+++ netcdf-4.2.ebuild   2012-04-21 17:09:25.763909618 -0600
@@ -29,7 +29,7 @@
                $(use_enable dap)
                $(use_enable doc doxygen)
                $(use_enable hdf hdf4)
-               $(use_enable hdf5 netcdf4)
+               $(use_enable hdf5 netcdf-4)
                $(use_enable tools utilities)
        )
        autotools-utils_src_configure
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2012-04-23 16:12:46 UTC
strange, configure says '--enable-netcdf4  just a synonym for enable-netcdf-4'. anyway, fixed, thanks.