Update dependencies for mime-construct
cover Update dependencies for mime-construct
From: Kai Kang <[email protected]>
* add recipes of dependencies of mime-construct
* update the RDPENDS
* make meta-networking depends on meta-perl
Kai Kang (4):
libipc-signal-perl: add recipe
libproc-waitstat-perl: add recipe
mime-construct: update runtime dependencies
meta-networking: depends on layer meta-perl
meta-networking/conf/layer.conf | 1 + .../mime-construct/files/Signal.pm | 132 --------------- .../mime-construct/files/WaitStat.pm | 178 --------------------- .../fix-mime-construct-help-return-value.patch | 39 +++++ .../mime-construct/mime-construct_1.11.bb | 19 +-- .../recipes-perl/libipc/libipc-signal-perl_1.00.bb | 18 +++ .../libproc/libproc-waitstat-perl_1.00.bb | 20 +++ 7 files changed, 84 insertions(+), 323 deletions(-) delete mode 100644 meta-networking/recipes-extended/mime-construct/files/Signal.pm delete mode 100644 meta-networking/recipes-extended/mime-construct/files/WaitStat.pm create mode 100644 meta-networking/recipes-extended/mime-construct/files/fix-mime-construct-help-return-value.patch create mode 100644 meta-perl/recipes-perl/libipc/libipc-signal-perl_1.00.bb create mode 100644 meta-perl/recipes-perl/libproc/libproc-waitstat-perl_1.00.bb
Signature · 1 line
2.6.1
PATCH 1/4 libipc-signal-perl: add recipe
From: Kai Kang <[email protected]>
libipc-signal-perl is required by mime-construct and libproc-waitstat-perl.
--- .../recipes-perl/libipc/libipc-signal-perl_1.00.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-perl/recipes-perl/libipc/libipc-signal-perl_1.00.bb
meta-perl/recipes-perl/libipc/libipc-signal-perl_1.00.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "IPC::Signal - Utility functions dealing with signals" +DESCRIPTION = "IPC::Signal - This module contains utility functions for \ +dealing with signals." + +HOMEPAGE = "http://search.cpan.org/~rosch/IPC-Signal-1.00/" +SECTION = "libs" + +LICENSE = "Artistic-1.0|GPLv1+" +LIC_FILES_CHKSUM = "file://README;beginline=16;endline=18;md5=f36550f59a0ae5e6e3b0be6a4da60d26" + +S = "${WORKDIR}/IPC-Signal-${PV}" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/IPC-Signal-${PV}.tar.gz" + +SRC_URI[md5sum] = "4cebf17fdf1785eaf8c151bf2e8c360a" +SRC_URI[sha256sum] = "7c21f9c8c2d0c0f0f0f46e77de7c3d879dd562668ddf0525875c38cef2076fd0" + +inherit cpan
Signature · 1 line
2.6.1
PATCH 2/4 libproc-waitstat-perl: add recipe
In reply to [email protected]From: Kai Kang <[email protected]>
libproc-waitstat-perl is required by mime-construct.
--- .../libproc/libproc-waitstat-perl_1.00.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-perl/recipes-perl/libproc/libproc-waitstat-perl_1.00.bb
meta-perl/recipes-perl/libproc/libproc-waitstat-perl_1.00.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "Interpret and act on wait() status values" +DESCRIPTION = "This module contains functions for interpreting and acting \ +on wait status values." + +HOMEPAGE = "http://search.cpan.org/~rosch/Proc-WaitStat/" +SECTION = "libraries" + +LICENSE = "Artistic-1.0|GPLv1+" +LIC_FILES_CHKSUM = "file://README;beginline=21;endline=23;md5=f36550f59a0ae5e6e3b0be6a4da60d26" + +RDEPENDS_${PN} += "perl libipc-signal-perl" + +S = "${WORKDIR}/Proc-WaitStat-${PV}" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/Proc-WaitStat-${PV}.tar.gz" + +SRC_URI[md5sum] = "b911bd579b6b142391b21de1efa30c95" +SRC_URI[sha256sum] = "d07563f5e787909d16e7390241e877f49ab739b1de9d0e2ea1a41bd0bf4474bc" + +inherit cpan
Signature · 1 line
2.6.1
PATCH 3/4 mime-construct: update runtime dependencies
In reply to [email protected]From: Kai Kang <[email protected]>
Update runtime dependencies of mime-construct:
* drop WaitStat.pm and Signal.pm which are from libproc-waitstat-perl and its dependency libipc-signal-perl
* add patch to return 0 for option '--help'
* replace postfix with msmtp which is more lightweight
* add perl modules which are required for mime-construct to run
--- .../mime-construct/files/Signal.pm | 132 --------------- .../mime-construct/files/WaitStat.pm | 178 --------------------- .../fix-mime-construct-help-return-value.patch | 39 +++++ .../mime-construct/mime-construct_1.11.bb | 19 +-- 4 files changed, 45 insertions(+), 323 deletions(-) delete mode 100644 meta-networking/recipes-extended/mime-construct/files/Signal.pm delete mode 100644 meta-networking/recipes-extended/mime-construct/files/WaitStat.pm create mode 100644 meta-networking/recipes-extended/mime-construct/files/fix-mime-construct-help-return-value.patch
meta-networking/recipes-extended/mime-construct/files/Signal.pm deleted +0 -132
@@ -1,132 +0,0 @@ -# $Id: Signal.pm,v 1.4 1998-10-27 16:16:13-05 roderick Exp $ -# -# Copyright (c) 1997 Roderick Schertler. All rights reserved. This -# program is free software; you can redistribute it and/or modify it -# under the same terms as Perl itself. - -package IPC::Signal; - -use 5.003_94; # __PACKAGE__ -use strict; -use vars qw($VERSION @ISA @EXPORT_OK $AUTOLOAD %Sig_num @Sig_name); - -require Exporter; - -$VERSION = '1.00'; -@ISA = qw(Exporter); -@EXPORT_OK = qw(sig_num sig_name sig_translate_setup %Sig_num @Sig_name); -%Sig_num = (); -@Sig_name = (); - -sub sig_num ($); -sub sig_name ($); - -sub sig_translate_setup () { - return if %Sig_num && @Sig_name; - - require Config; - - # In 5.005 the sig_num entries are comma separated and there's a - # trailing 0. - my $num = $Config::Config{'sig_num'}; - if ($num =~ s/,//g) { - $num =~ s/\s+0$//; - } - - my @name = split ' ', $Config::Config{'sig_name'}; - my @num = split ' ', $num; - - @name or die 'No signals defined'; - @name == @num or die 'Signal name/number mismatch'; - - @Sig_num{@name} = @num; - keys %Sig_num == @name or die 'Duplicate signal names present'; - for (@name) { - $Sig_name[$Sig_num{$_}] = $_ - unless defined $Sig_name[$Sig_num{$_}]; - } -} - -# This autoload routine just is just for sig_num() and sig_name(). It -# calls sig_translate_setup() and then snaps the real function definitions -# into place. - -sub AUTOLOAD { - if ($AUTOLOAD ne __PACKAGE__ . '::sig_num' - && $AUTOLOAD ne __PACKAGE__ . '::sig_name') { - require Carp; - Carp::croak("Undefined subroutine &$AUTOLOAD called"); - } - sig_translate_setup; - *sig_num = sub ($) { $Sig_num{$_[0]} }; - *sig_name = sub ($) { $Sig_name[$_[0]] }; - goto &$AUTOLOAD; -} - -1 - -__END__ - -=head1 NAME - -IPC::Signal - Utility functions dealing with signals - -=head1 SYNOPSIS - - $number = sig_num $name; - $name = sig_name $number; - - sig_translate_setup; - $number = $Sig_num{$name}; - $name = $Sig_name[$number]; - -=head1 DESCRIPTION - -This module contains utility functions for dealing with signals. - -Nothing is exported by default. - -=over - -=item B<sig_num> I<chopped-signal-name> - -Returns the signal number of the signal whose name (sans C<SIG>) is -I<chopped-signal-name>, or undef if there is no such signal. - -This function is prototyped to take a single scalar argument. - -=item B<sig_name> I<signal-number> - -Returns the chopped signal name (like C<HUP>) of signal number -I<signal-number>, or undef if there is no such signal. - -This function is prototyped to take a single scalar argument. - -=item B<sig_translate_setup> - -If you want to use the @Sig_name and %Sig_num variables directly you must -call B<sig_translate_setup> to initialize them. This isn't necessary if -you only use the function interfaces sig_name() and sig_num(). - -This function is prototyped to take no arguments. - -=item B<%Sig_num> - -A hash with chopped signal name keys (like C<HUP>) and integer signal -number values. - -=item B<@Sig_name> - -An array mapping signal numbers to chopped signal names (like C<HUP>). - -=back - -=head1 AUTHOR - -Roderick Schertler <F<[email protected]>> - -=head1 SEE ALSO - -perl(1). - -=cut
meta-networking/recipes-extended/mime-construct/files/WaitStat.pm deleted +0 -178
178 lines not on this page · raw message
meta-networking/recipes-extended/mime-construct/files/fix-mime-construct-help-return-value.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 2b9ed06850410d70371b31de5f131e484ba1c851 Mon Sep 17 00:00:00 2001 +From: Lu Chong <[email protected]> +Date: Thu, 17 Oct 2013 16:06:04 +0800 +Subject: [PATCH] fix mime-construct --help return value + +Upstream-Status: Pending + +Signed-off-by: Lu Chong <[email protected]> + +--- + mime-construct | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/mime-construct b/mime-construct +index cad7d0e..707ed19 100755 +--- a/mime-construct ++++ b/mime-construct +@@ -39,7 +39,7 @@ usage: $Me switch... + + Global settings: + --debug turn debugging on +- --help show this and then die ++ --help show this + --output don\'t mail, output to stdout (loses bcc info) + --subpart generate subpart rather than whole message (turns + on --output, changes other semantics a bit) +@@ -150,7 +150,8 @@ sub xwarn { + + sub usage { + xwarn @_ if @_; +- die $Usage; ++ print $Usage; ++ exit 0; + } + + sub init { +-- +1.7.9.5 +
meta-networking/recipes-extended/mime-construct/mime-construct_1.11.bb +6 -13
@@ -9,21 +9,14 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://debian/copyright;md5=5e2e5da619ac8ef8c84767ccc4656e96" SRC_URI = "${CPAN_MIRROR}/authors/id/R/RO/ROSCH/mime-construct-${PV}.tar.gz \ - file://WaitStat.pm \ - file://Signal.pm \ - " + file://fix-mime-construct-help-return-value.patch \ +" + SRC_URI[md5sum] = "73834ea780fbea81b89dbd9b2fb54f58" SRC_URI[sha256sum] = "4cd7bb61b51d41192d1498c1051aa6a4ccd75aeb09b71d2ec706a7084a4a9303" inherit cpan -do_install () { - oe_runmake install DESTDIR="${D}" - install -d ${D}${libdir}/perl/vendor_perl/${@get_perl_version(d)}/Proc \ - ${D}${libdir}/perl/vendor_perl/${@get_perl_version(d)}/IPC - install -m 644 ${WORKDIR}/WaitStat.pm \ - ${D}${libdir}/perl/vendor_perl/${@get_perl_version(d)}/Proc - install -m 644 ${WORKDIR}/Signal.pm \ - ${D}${libdir}/perl/vendor_perl/${@get_perl_version(d)}/IPC -} -RDEPENDS_${PN} = "postfix perl" +RDEPENDS_${PN} = "libmime-types-perl libproc-waitstat-perl msmtp \ + perl-module-filehandle perl-module-mime-base64 perl-module-mime-quotedprint perl-module-posix \ +"
Signature · 1 line
2.6.1
PATCH 4/4 meta-networking: depends on layer meta-perl
In reply to [email protected]From: Kai Kang <[email protected]>
Package mime-construct in layer meta-networking depends on some perl modules in layer meta-perl. So make meta-networking depends on layer meta-perl.
--- meta-networking/conf/layer.conf | 1 + 1 file changed, 1 insertion(+)
meta-networking/conf/layer.conf +1 -0
@@ -16,5 +16,6 @@ LAYERVERSION_networking-layer = "1" LAYERDEPENDS_networking-layer = "core" LAYERDEPENDS_networking-layer += "openembedded-layer" LAYERDEPENDS_networking-layer += "meta-python" +LAYERDEPENDS_networking-layer += "perl-layer" LICENSE_PATH += "${LAYERDIR}/licenses"
Signature · 1 line
2.6.1
Re: [meta-networking][PATCH 4/4] meta-networking: depends on layer meta-perl
Quoted 5 lines · On Thu, Dec 03, 2015 at 04:18:48PM +0800, [email protected] wrote:
From: Kai Kang <[email protected]>
Package mime-construct in layer meta-networking depends on some perl modules in layer meta-perl. So make meta-networking depends on layer meta-perl.
Cannot we move mime-construct to meta-perl instead?
It doesn't have any dependencies provided by meta-networking and also nothing in meta-networking is using mime-construct.
Quoted 24 lines
Signed-off-by Kai Kang <[email protected]>--- meta-networking/conf/layer.conf | 1 + 1 file changed, 1 insertion(+)meta-networking/conf/layer.conf +1
-0@@ -16,5 +16,6 @@ LAYERVERSION_networking-layer = "1" LAYERDEPENDS_networking-layer = "core" LAYERDEPENDS_networking-layer += "openembedded-layer" LAYERDEPENDS_networking-layer += "meta-python" +LAYERDEPENDS_networking-layer += "perl-layer" LICENSE_PATH += "${LAYERDIR}/licenses"Signature · 7 lines
2.6.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-networking][PATCH 4/4] meta-networking: depends on layer meta-perl
Quoted 10 lines · Martin Jansa
Quoted 5 lines · On Thu, Dec 03, 2015 at 04:18:48PM +0800, [email protected] wrote:
From: Kai Kang <[email protected]>
Package mime-construct in layer meta-networking depends on some perl modules in layer meta-perl. So make meta-networking depends on layer meta-perl.
Cannot we move mime-construct to meta-perl instead?
It doesn't have any dependencies provided by meta-networking and also nothing in meta-networking is using mime-construct.
It is ok for me. I'll move it to meta-perl and revert the layer dependency commit.
Thanks,
Kai
Quoted 27 lines
Quoted 25 lines
Signed-off-by Kai Kang <[email protected]>--- meta-networking/conf/layer.conf | 1 + 1 file changed, 1 insertion(+)meta-networking/conf/layer.conf +1
-0@@ -16,5 +16,6 @@ LAYERVERSION_networking-layer = "1" LAYERDEPENDS_networking-layer = "core" LAYERDEPENDS_networking-layer += "openembedded-layer" LAYERDEPENDS_networking-layer += "meta-python" +LAYERDEPENDS_networking-layer += "perl-layer" LICENSE_PATH += "${LAYERDIR}/licenses"Signature · 7 lines
2.6.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Regards, Neil | Kai Kang