package/rrdtool: add support for perl bindings
PATCH 1/1 package/rrdtool: add support for perl bindings
From: Cedric Chedaleux <[email protected]>
[yann.morin at orange.com: slight cleanup in code layout, change leading spaces with leading tabs, rebase on top of master]
--- package/rrdtool/rrdtool.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
package/rrdtool/rrdtool.mk +12 -1
@@ -19,11 +19,22 @@ RRDTOOL_CONF_OPTS = \ --disable-librados \ --disable-libwrap \ --disable-lua \ - --disable-perl \ --disable-python \ --disable-ruby \ --disable-tcl +ifeq ($(BR2_PACKAGE_PERL),y) +RRDTOOL_DEPENDENCIES += host-perl +RRDTOOL_CONF_OPTS += --enable-perl +RRDTOOL_CONF_ENV += \ + ac_cv_path_PERL=$(HOST_DIR)/usr/bin/perl \ + PERLCC="$(TARGET_CC_NOCCACHE)" \ + PERLCCFLAGS="$(TARGET_CFLAGS)" \ + PERLLDFLAGS="$(TARGET_LDFLAGS)" +else +RRDTOOL_CONF_OPTS += --disable-perl +endif + ifeq ($(BR2_PACKAGE_RRDTOOL_RRDGRAPH),y) RRDTOOL_DEPENDENCIES += cairo pango else
Signature · 1 line
1.9.1
PATCH 1/1 package/rrdtool: add support for perl bindings
Hello,
package/rrdtool/rrdtool.mk RRDTOOL_CONF_OPTS = \ · line 27
Quoted 2 lines · Yann E. MORIN
package/rrdtool/rrdtool.mk +2
-0+ifeq ($(BR2_PACKAGE_PERL),y) +RRDTOOL_DEPENDENCIES += host-perl
It is somewhat weird, one would expect to see a dependency on "perl" here, not "host-perl".
However, maybe you simply need host-perl at *build* time to build the bindings, and the target perl is only needed at *runtime*. If that's the case, then a comment above this dependency would be good to have.
If you confirm my understanding, I can also just add the comment when applying.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 package/rrdtool: add support for perl bindings
Thomas, All,
On 2016-06-24 17:58 +0200, Thomas Petazzoni spake thusly:
Quoted 6 lines · Yann E. MORIN
package/rrdtool/rrdtool.mk RRDTOOL_CONF_OPTS = \ · line 27
Quoted 2 lines
package/rrdtool/rrdtool.mk +2
-0+ifeq ($(BR2_PACKAGE_PERL),y) +RRDTOOL_DEPENDENCIES += host-perlIt is somewhat weird, one would expect to see a dependency on "perl" here, not "host-perl".
Quoted 6 lines
However, maybe you simply need host-perl at *build* time to build the bindings, and the target perl is only needed at *runtime*. If that's the case, then a comment above this dependency would be good to have.
If you confirm my understanding, I can also just add the comment when applying.
In fact, the host-perl is only used for a few things:
1- extract some configuration:
- the perl version: we need host-perl because otherwise the host system perl may be a different version;
- the compiler used to build perl: this is not OK, because we'd get the host compiler, not the target one. This is why we override it in the RRDTOOL_CONF_ENV.
2- generate the Makefiles from Makefile.PL templates.
However, I withdraw this patch, as it breaks now with the paranoid wrapper. I'll fix that in the coming days.
Regards,
Yann E. MORIN.
Signature · 21 lines
____________ .-----------------.--------------------: _ :------------------. | Yann E. MORIN | Real-Time Embedded | __/ ) | /"\ ASCII RIBBON | | +33 299.124.769 | Software Designer | _/ - /' | \ / CAMPAIGN | | 824.769 '--------------------: (_ `--, | X AGAINST | | yann.morin (at) orange.com |_=" ,--' | / \ HTML MAIL | '--------------------------------------:______/_____:------------------' _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.