Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd.
@ 2016-12-29  5:20 Yu-Ting, Kao
  2017-01-03 19:02 ` Gustavo Zacarias
  2017-01-27  8:52 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Yu-Ting, Kao @ 2016-12-29  5:20 UTC (permalink / raw)
  To: buildroot

---
 package/collectd/collectd.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index 28c1b31..c2d6f37 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -177,6 +177,7 @@ ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 COLLECTD_DEPENDENCIES += libgcrypt
 COLLECTD_CONF_OPTS += --with-libgcrypt=$(STAGING_DIR)/usr
 COLLECTD_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
+COLLECTD_CONF_ENV += LIBS="-lgcrypt"
 else
 COLLECTD_CONF_OPTS += --with-libgcrypt=no
 endif
-- 
2.4.8

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd.
  2016-12-29  5:20 [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd Yu-Ting, Kao
@ 2017-01-03 19:02 ` Gustavo Zacarias
  2017-01-27  8:52 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2017-01-03 19:02 UTC (permalink / raw)
  To: buildroot

On 2016-12-29 02:20, Yu-Ting, Kao wrote:

> @@ -177,6 +177,7 @@ ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
>  COLLECTD_DEPENDENCIES += libgcrypt
>  COLLECTD_CONF_OPTS += --with-libgcrypt=$(STAGING_DIR)/usr
>  COLLECTD_CONF_ENV += 
> LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
> +COLLECTD_CONF_ENV += LIBS="-lgcrypt"
>  else
>  COLLECTD_CONF_OPTS += --with-libgcrypt=no
>  endif

Hi.
This won't work as expected since you're potentially stomping over LIBS 
which is defined at the beginning of the package makefile, and also over 
the re-stomping when the postgresql option is turned on (which doesn't 
break the first one since it's defining both).
Probably better to do something like, at the beginning:

COLLECTD_CONF_ENV = LIBS="-lm $(COLLECTD_LIBS)"

And then:

ifeq ($(BR2_PACKAGE_POSTGRESQL,y)
COLLECTD_LIBS += -lpthread
....

ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
COLLECTD_LIBS += -lgcrypt
....

Regards.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd.
  2016-12-29  5:20 [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd Yu-Ting, Kao
  2017-01-03 19:02 ` Gustavo Zacarias
@ 2017-01-27  8:52 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-01-27  8:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 29 Dec 2016 13:20:38 +0800, Yu-Ting, Kao wrote:
> ---
>  package/collectd/collectd.mk | 1 +
>  1 file changed, 1 insertion(+)

What problem is this commit fixing? An autobuilder failure? If so,
there should be a reference to it. I don't see any collectd issue
reported by the autobuilders:
http://autobuild.buildroot.net/?reason=collectd-5.7.1. Maybe this issue
has already been fixed?

Also, the commit title should always have the format:

	<package>: <short description>

so in your case, it should be:

	collectd: ...

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-27  8:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-29  5:20 [Buildroot] [PATCH 1/1] Fix gcrypt library linker option on collectd Yu-Ting, Kao
2017-01-03 19:02 ` Gustavo Zacarias
2017-01-27  8:52 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox