[OpenWrt-Devel] how can i *deselect* building rrdtool?

Robert P. J. Day rpjday at crashcourse.ca
Mon Nov 17 17:06:32 EST 2014


On Mon, 17 Nov 2014, Hannu Nyman wrote:

> > $ grep rrdtool .config
> > CONFIG_PACKAGE_lighttpd-mod-rrdtool=m
> > CONFIG_PACKAGE_collectd-mod-rrdtool=m
> > # CONFIG_PACKAGE_rrdtool is not set
> > # CONFIG_PACKAGE_rrdtool1 is not set
> > $
> >
> > i'm baffled ... given that rrdtool is clearly not selected for
> > building, why does a simple "make" insist on trying to build it? what
> > triviality am i overlooking?
>
> collectd-mod-rrdtool is "=m" in your .config and gets built.
> And it needs rrdtool-1.0 as "librrd1". You didn't grep .config for plain
> "rrd"...
>
> https://github.com/openwrt/packages/blob/master/utils/collectd/Makefile#L315
>  $(eval $(call BuildPlugin,rrdtool,RRDtool
>  output,rrdtool,+PACKAGE_collectd-mod-rrdtool:librrd1))
>
> https://github.com/openwrt/packages/blob/master/utils/collectd/Makefile#L225
> # exception: mod-rrdtool needs rrdtool-1.0.x
> ifneq ($(CONFIG_PACKAGE_collectd-mod-rrdtool),)
> CONFIGURE_ARGS+= --with-librrd="$(STAGING_DIR)/usr/lib/rrdtool-1.0"
> endif
>
> https://github.com/openwrt/packages/blob/master/utils/rrdtool1/Makefile#L47

  ah, thank you ... it's going to take me a few minutes to digest that
one, i thought just looking at dependencies via "make menuconfig" was
sufficient. apparently, it's much more involved.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list