package/perl-netaddr-ip: Add host variant
PATCH 1/6 package/perl-netaddr-ip: Add host variant
Needed to make Mail-SpamAssassin?s dependency check happy.
--- package/perl-netaddr-ip/perl-netaddr-ip.mk | 1 + 1 file changed, 1 insertion(+)
package/perl-netaddr-ip/perl-netaddr-ip.mk +1 -0
@@ -14,3 +14,4 @@ PERL_NETADDR_IP_LICENSE_FILES = Artistic Copying PERL_NETADDR_IP_CONF_OPTS = -noxs $(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.10.4
PATCH 2/6 package/perl-net-dns: Add host variant
Needed to make Mail-SpamAssassin?s dependency check happy.
--- package/perl-net-dns/perl-net-dns.mk | 1 + 1 file changed, 1 insertion(+)
package/perl-net-dns/perl-net-dns.mk +1 -0
@@ -12,3 +12,4 @@ PERL_NET_DNS_LICENSE = Artistic or GPLv1+ PERL_NET_DNS_LICENSE_FILES = README $(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.10.4
PATCH 3/6 package/perl-html-parser: Add host variant
In reply to Bernd KuhlsNeeded to make Mail-SpamAssassin?s dependency check happy.
--- package/perl-html-parser/perl-html-parser.mk | 1 + 1 file changed, 1 insertion(+)
package/perl-html-parser/perl-html-parser.mk +1 -0
@@ -12,3 +12,4 @@ PERL_HTML_PARSER_LICENSE = Artistic or GPLv1+ PERL_HTML_PARSER_LICENSE_FILES = README $(eval $(perl-package)) +$(eval $(host-perl-package))
Signature · 1 line
1.7.10.4
PATCH 4/6 package/perl-db_file: new package
In reply to Bernd Kuhls--- package/Config.in | 1 + package/perl-db_file/Config.in | 12 ++++++++++++ package/perl-db_file/perl-db_file.hash | 3 +++ package/perl-db_file/perl-db_file.mk | 13 +++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 package/perl-db_file/Config.in create mode 100644 package/perl-db_file/perl-db_file.hash create mode 100644 package/perl-db_file/perl-db_file.mk
package/Config.in +1 -0
@@ -506,6 +506,7 @@ menu "Perl libraries/modules" source "package/perl-crypt-openssl-random/Config.in" source "package/perl-crypt-openssl-rsa/Config.in" source "package/perl-datetime-tiny/Config.in" + source "package/perl-db_file/Config.in" source "package/perl-digest-hmac/Config.in" source "package/perl-digest-sha1/Config.in" source "package/perl-encode-locale/Config.in"
package/perl-db_file/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PERL_DB_FILE + bool "perl-db_file" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_BERKELEYDB + select BR2_PACKAGE_BERKELEYDB_COMPAT185 + help + Perl5 access to Berkeley DB version 1.x + + https://metacpan.org/release/DB_File + +comment "perl-db_file needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/perl-db_file/perl-db_file.hash new file +3 -0
@@ -0,0 +1,3 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 0ae7910cabc31a44e50b713a8a475514 DB_File-1.835.tar.gz +sha256 41206f39a1bac49db8c1595e300b04c70e1393b2d78ccb9ef15c5c0b81037cfc DB_File-1.835.tar.gz
package/perl-db_file/perl-db_file.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# perl-db_file +# +################################################################################ + +PERL_DB_FILE_VERSION = 1.835 +PERL_DB_FILE_SOURCE = DB_File-$(PERL_DB_FILE_VERSION).tar.gz +PERL_DB_FILE_SITE = $(BR2_CPAN_MIRROR)/authors/id/P/PM/PMQS +PERL_DB_FILE_DEPENDENCIES = berkeleydb perl +PERL_DB_FILE_LICENSE = Artistic or GPLv1+ + +$(eval $(perl-package))
Signature · 1 line
1.7.10.4
PATCH 5/6 package/perl-encode-detect: new package
In reply to Bernd Kuhls--- package/Config.in | 1 + package/perl-encode-detect/Config.in | 10 ++++++++++ package/perl-encode-detect/perl-encode-detect.hash | 3 +++ package/perl-encode-detect/perl-encode-detect.mk | 14 ++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/perl-encode-detect/Config.in create mode 100644 package/perl-encode-detect/perl-encode-detect.hash create mode 100644 package/perl-encode-detect/perl-encode-detect.mk
package/Config.in +1 -0
@@ -509,6 +509,7 @@ menu "Perl libraries/modules" source "package/perl-db_file/Config.in" source "package/perl-digest-hmac/Config.in" source "package/perl-digest-sha1/Config.in" + source "package/perl-encode-detect/Config.in" source "package/perl-encode-locale/Config.in" source "package/perl-file-listing/Config.in" source "package/perl-file-util/Config.in"
package/perl-encode-detect/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_PERL_ENCODE_DETECT + bool "perl-encode-detect" + depends on !BR2_STATIC_LIBS + help + An Encode::Encoding subclass that detects the encoding of data + + https://metacpan.org/release/Encode-Detect + +comment "perl-encode-detect needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/perl-encode-detect/perl-encode-detect.hash new file +3 -0
@@ -0,0 +1,3 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 ee9faf55d7105c97b02b8ebe590819c7 Encode-Detect-1.01.tar.gz +sha256 834d893aa7db6ce3f158afbd0e432d6ed15a276e0940db0a74be13fd9c4bbbf1 Encode-Detect-1.01.tar.gz
package/perl-encode-detect/perl-encode-detect.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# perl-encode-detect +# +################################################################################ + +PERL_ENCODE_DETECT_VERSION = 1.01 +PERL_ENCODE_DETECT_SOURCE = Encode-Detect-$(PERL_ENCODE_DETECT_VERSION).tar.gz +PERL_ENCODE_DETECT_SITE = $(BR2_CPAN_MIRROR)/authors/id/J/JG/JGMYERS +PERL_ENCODE_DETECT_DEPENDENCIES = perl host-perl-module-build +PERL_ENCODE_DETECT_LICENSE = open_source +PERL_ENCODE_DETECT_LICENSE_FILES = LICENSE + +$(eval $(perl-package))
Signature · 1 line
1.7.10.4
PATCH 6/6 package/perl-mail-spamassassin: new package
In reply to Bernd KuhlsThis package contains a dependency check which only checks for installed modules in host-perl, not the target variant. Therefore some host package of perl modules are needed as dependency.
--- package/Config.in | 1 + package/perl-mail-spamassassin/Config.in | 18 ++++++++++++++++ .../perl-mail-spamassassin.hash | 3 +++ .../perl-mail-spamassassin.mk | 22 ++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 package/perl-mail-spamassassin/Config.in create mode 100644 package/perl-mail-spamassassin/perl-mail-spamassassin.hash create mode 100644 package/perl-mail-spamassassin/perl-mail-spamassassin.mk
package/Config.in +1 -0
@@ -529,6 +529,7 @@ menu "Perl libraries/modules" source "package/perl-libwww-perl/Config.in" source "package/perl-lwp-mediatypes/Config.in" source "package/perl-mail-dkim/Config.in" + source "package/perl-mail-spamassassin/Config.in" source "package/perl-mailtools/Config.in" source "package/perl-mime-base64/Config.in" source "package/perl-mojolicious/Config.in"
package/perl-mail-spamassassin/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_PERL_MAIL_SPAMASSASSIN + bool "perl-mail-spamassassin" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PERL_DB_FILE + select BR2_PACKAGE_PERL_DIGEST_SHA1 + select BR2_PACKAGE_PERL_ENCODE_DETECT + select BR2_PACKAGE_PERL_HTML_PARSER + select BR2_PACKAGE_PERL_MAIL_DKIM + select BR2_PACKAGE_PERL_NET_DNS + select BR2_PACKAGE_PERL_NETADDR_IP + help + SpamAssassin is an extensible email filter which is used to + identify spam + + http://spamassassin.apache.com/ + +comment "perl-mail-spamassassin needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/perl-mail-spamassassin/perl-mail-spamassassin.hash new file +3 -0
@@ -0,0 +1,3 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 5d0b50cee3bfa905cca35c33296c8c2a Mail-SpamAssassin-3.4.0.tar.gz +sha256 244914c30976844878a7f129fd503eb40986c68a3800f416c3a68b14507c0a64 Mail-SpamAssassin-3.4.0.tar.gz
package/perl-mail-spamassassin/perl-mail-spamassassin.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# perl-mail-spamassassin +# +################################################################################ + +PERL_MAIL_SPAMASSASSIN_VERSION = 3.4.0 +PERL_MAIL_SPAMASSASSIN_SOURCE = Mail-SpamAssassin-$(PERL_MAIL_SPAMASSASSIN_VERSION).tar.gz +PERL_MAIL_SPAMASSASSIN_SITE = $(BR2_CPAN_MIRROR)/authors/id/K/KM/KMCGRAIL/SpamAssassin +PERL_MAIL_SPAMASSASSIN_LICENSE = Artistic or GPLv1+ +PERL_MAIL_SPAMASSASSIN_LICENSE_FILES = LICENSE +PERL_MAIL_SPAMASSASSIN_DEPENDENCIES = \ + perl \ + perl-db_file \ + perl-digest-sha1 \ + perl-encode-detect \ + perl-html-parser host-perl-html-parser \ + perl-mail-dkim \ + perl-net-dns host-perl-net-dns \ + perl-netaddr-ip host-perl-netaddr-ip + +$(eval $(perl-package))
Signature · 1 line
1.7.10.4
PATCH 6/6 package/perl-mail-spamassassin: new package
Dear Bernd Kuhls,
Quoted 3 lines · Bernd Kuhls
This package contains a dependency check which only checks for installed modules in host-perl, not the target variant. Therefore some host package of perl modules are needed as dependency.
Are they needed because they are used, or needed just to please the dependency checks of spamassassin?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 6/6 package/perl-mail-spamassassin: new package
Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8 @public.gmane.org> wrote in news:20150425164617.43f7db2e at free-electrons.com:
Quoted 9 lines
Dear Bernd Kuhls,
Quoted 3 lines · Bernd Kuhls
This package contains a dependency check which only checks for installed modules in host-perl, not the target variant. Therefore some host package of perl modules are needed as dependency.
Are they needed because they are used, or needed just to please the dependency checks of spamassassin?
Hi Thomas,
the host-packages are only needed to please spamassassin afaics. Their target variants however are really used by Spamassassin:
http://deps.cpantesters.org/?module=Mail%3A%3ASpamAssassin;perl=latest
Regards, Bernd
PATCH 6/6 package/perl-mail-spamassassin: new package
Dear Bernd Kuhls,
Quoted 2 lines · Bernd Kuhls
the host-packages are only needed to please spamassassin afaics. Their target variants however are really used by Spamassassin:
Then, can we get rid of Spamassassin silly checks on the host perl modules, to avoid having those unnecessary packages in Buildroot?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 6/6 package/perl-mail-spamassassin: new package
Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8 @public.gmane.org> wrote in news:20150425181125.134ea730 at free- electrons.com:
Quoted 9 lines
Dear Bernd Kuhls,
Quoted 2 lines · Bernd Kuhls
the host-packages are only needed to please spamassassin afaics. Their target variants however are really used by Spamassassin:
Then, can we get rid of Spamassassin silly checks on the host perl modules, to avoid having those unnecessary packages in Buildroot?
Hi,
maybe it is possible, but I do not know how. I tried patching Mail-SpamAssassin-3.4.0/lib/Mail/SpamAssassin/Util/DependencyInfo.pm
by changing line 376 from
return $EXIT_STATUS;
to
return 0;
This fixed the first failure, but compilation is still broken:
Quoted 1 line
Quoted 1 line
Quoted 1 line
perl-mail-spamassassin 3.4.0 Building
cd /home/br/buildroot/output/build/perl-mail-spamassassin-3.4.0/ && if [ -f Build.PL ] ; then PERL5LIB= /home/br/buildroot/output/host/usr/bin/perl Build build; else /usr/bin/make -j1 PERL_INC=/home/br/buildroot/output/host/usr/i586-buildroot-linux- uclibc/sysroot/usr/lib/perl5/5.20.2/i586-linux/CORE pure_all; fi make[1]: Entering directory `/home/br/buildroot/output/build/perl-mail- spamassassin-3.4.0'/home/br/buildroot/output/host/usr/bin/perl build/mkrules --exit_on_no_src --src rulesrc --out rules --manifest MANIFEST --manifestskip MANIFEST.SKIP Can't locate NetAddr/IP.pm in @INC (you may need to install the NetAddr::IP module) (@INC contains: lib /home/br/buildroot/output/host/usr/lib/perl /home/br/buildroot/output/host/usr/lib/perl5/site_perl/5.20.2/x86_64-linux /home/br/buildroot/output/host/usr/lib/perl5/site_perl/5.20.2 /home/br/buildroot/output/host/usr/lib/perl5/5.20.2/x86_64-linux /home/br/buildroot/output/host/usr/lib/perl5/5.20.2 .) at lib/Mail/SpamAssassin/Util.pm line 75.
BEGIN failed--compilation aborted at lib/Mail/SpamAssassin/Util.pm line 75. Compilation failed in require at lib/Mail/SpamAssassin/Conf.pm line 85. BEGIN failed--compilation aborted at lib/Mail/SpamAssassin/Conf.pm line 85. Compilation failed in require at lib/Mail/SpamAssassin.pm line 71. BEGIN failed--compilation aborted at lib/Mail/SpamAssassin.pm line 71. Compilation failed in require at build/mkrules line 48.
BEGIN failed--compilation aborted at build/mkrules line 48. make[1]: *** [build_rules] Error 2
make[1]: Leaving directory `/home/br/buildroot/output/build/perl-mail- spamassassin-3.4.0'
make: *** [/home/br/buildroot/output/build/perl-mail-spamassassin- 3.4.0/.stamp_built] Error 2
Regards, Bernd