Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542704 - sci-misc/nco-4.3.1: missing tools flag for netcdf
Summary: sci-misc/nco-4.3.1: missing tools flag for netcdf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 15:12 UTC by bitozoid
Modified: 2015-07-31 07:48 UTC (History)
1 user (show)

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 bitozoid 2015-03-09 15:12:02 UTC
ncgen is needed to compile nco:

$ grep PATH_TO_NCGEN data/Makefile.in
        -@PATH_TO_NCGEN@ -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $< 
        -@PATH_TO_NCGEN@ -k netCDF-4 -o $@ $<

ncgen is built when tools flag is enabled for netcdf, but it is not listed in RDEPEND.


Reproducible: Always

Steps to Reproduce:
Disable tools flag for sci-libs/netcdf.
Emerge sci-misc/nco.

Actual Results:  
Build fails.

Expected Results:  
Happy build.

When you enable tools, you find another error.
error: conflicting types for 'nc_rename_grp'. 'defines' are not consistent.
Using sci-libs/netcdf-4.3.2-r1

# grep RENAME_GRP src/nco/nco_netcdf.*
src/nco/nco_netcdf.c:#ifndef HAS_CSZ_NC_RENAME_GRP_IN_LIBNETCDF
src/nco/nco_netcdf.c:#endif /* HAS_CSZ_NC_RENAME_GRP_IN_LIBNETCDF */
src/nco/nco_netcdf.h:#ifndef HAS_CSZ_NC_RENAME_GRP_IN_LIBNETCDF
src/nco/nco_netcdf.h:#endif /* HAS_CSZ_NC_RENAME_GRP_IN_LIBNETCDF */

# grep RENAME_GRP /usr/include/netcdf.h 
#ifndef NC_HAVE_RENAME_GRP
#define NC_HAVE_RENAME_GRP

Maybe a version bump?
https://github.com/czender/nco/blob/master/src/nco/nco_netcdf.h#L375
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-07-31 07:46:00 UTC
  31 Jul 2015; Justin Lecher <jlec@gentoo.org> -nco-4.3.1.ebuild, metadata.xml,
  +  nco-4.4.2.ebuild:
  +  Add missing USE-dep, bug #542704
  +
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-07-31 07:48:18 UTC
  31 Jul 2015; Justin Lecher <jlec@gentoo.org> -nco-4.3.1.ebuild, metadata.xml,
  +  nco-4.4.2.ebuild:
  +  Add missing USE-dep, bug #542704
  +