diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-12-03 11:49:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-12-03 11:49:15 +0000 |
commit | cd2ec482e9ec9511adc86d5e972e1c3f0977a1fd (patch) | |
tree | 84a38bc43c5c5d68b5a395e7e6e58029faf689b9 | |
parent | ea20a7ddaef1a04c17784a9986ad00d815231f37 (diff) | |
download | aports-cd2ec482e9ec9511adc86d5e972e1c3f0977a1fd.tar.bz2 aports-cd2ec482e9ec9511adc86d5e972e1c3f0977a1fd.tar.xz |
community/xmltv: backport patch to test_tv_imdb.t
-rw-r--r-- | community/xmltv/APKBUILD | 13 | ||||
-rw-r--r-- | community/xmltv/fix-build.patch | 122 | ||||
-rw-r--r-- | community/xmltv/test_tv_imdb.t.patch | 26 |
3 files changed, 34 insertions, 127 deletions
diff --git a/community/xmltv/APKBUILD b/community/xmltv/APKBUILD index e154039e32..a0b801903d 100644 --- a/community/xmltv/APKBUILD +++ b/community/xmltv/APKBUILD @@ -1,19 +1,21 @@ -# Con://github.com/saltstack/salttributor: Carlo Landmeter <clandmeter@gmail.com> +# Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=xmltv pkgver=0.6.1 -pkgrel=0 +pkgrel=1 pkgdesc="Set of utilities to download tv listings and format them in xml" url="http://xmltv.org/wiki" arch="noarch" license="GPL-2.0" -depends="perl-libwww perl-xml-parser perl-xml-twig perl-date-manip perl-xml-writer +depends="perl-libwww perl-xml-parser<2.46 perl-xml-twig perl-date-manip perl-xml-writer perl-timedate perl-unicode-string perl-term-readkey perl-file-slurp perl-xml-libxml perl-lingua-en-numbers-ordinate perl-lingua-preferred perl-compress-raw-zlib perl-io-gzip perl-io-compress perl-term-progressbar perl-xml-treepp" makedepends="perl-dev" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/XMLTV/$pkgname/archive/v$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/XMLTV/$pkgname/archive/v$pkgver.tar.gz + test_tv_imdb.t.patch + " builddir="$srcdir"/xmltv-$pkgver build() { @@ -33,4 +35,5 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="137dad875c6f7f77fb986b4662b411766424676df0a2422f3dc123c8cec4e1dff123ea68577add65c0e5bcf2d0bdf89d7fba0ed423502ec27e2aa82ec6b10bc2 xmltv-0.6.1.tar.gz" +sha512sums="137dad875c6f7f77fb986b4662b411766424676df0a2422f3dc123c8cec4e1dff123ea68577add65c0e5bcf2d0bdf89d7fba0ed423502ec27e2aa82ec6b10bc2 xmltv-0.6.1.tar.gz +f41ffef7c3ca5a6b316855607d4fbc41913e4503eaac34590fa4048b528ed0ee0595a364d192cc7e5c2edaaa79e910f77c66bac727c8b1edf8043428318764bc test_tv_imdb.t.patch" diff --git a/community/xmltv/fix-build.patch b/community/xmltv/fix-build.patch deleted file mode 100644 index 1008e8b9fb..0000000000 --- a/community/xmltv/fix-build.patch +++ /dev/null @@ -1,122 +0,0 @@ -From a4a0c83a99401ba748ae8e70855ace636f611311 Mon Sep 17 00:00:00 2001 -From: Nick Morrott <knowledgejunkie@gmail.com> -Date: Mon, 6 Mar 2017 12:55:16 +0000 -Subject: [PATCH] Allow building on Perl versions 5.24.1+ - -Perl versions 5.24.1+ no longer include '.' in @INC. However, we need -access to XMLTV::Ask::Term at configuration time, so provide relative path -to this library. ---- - Makefile.PL | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Makefile.PL b/Makefile.PL -index f43f69a5..86d59e2a 100644 ---- a/Makefile.PL -+++ b/Makefile.PL -@@ -251,7 +251,7 @@ elsif ($opt_default) { - *ask = sub { print "$_[0] $_[2]\n"; $_[2] }; - } - else { -- require 'lib/Ask/Term.pm'; -+ require './lib/Ask/Term.pm'; - *ask = \&XMLTV::Ask::Term::ask_boolean; - } - -From 8930f8f281427e261667265969d88b778bb2f2c9 Mon Sep 17 00:00:00 2001 -From: Nick Morrott <knowledgejunkie@gmail.com> -Date: Sat, 15 Jul 2017 21:25:33 +0000 -Subject: [PATCH] Fix build failures in Perl 5.26+ caused by 'use POSIX - 'tmpnam' - -POSIX 'tmpnam' was deprecated in Perl 5.24 and removed in Perl 5.26, and is -actually unused in the code. ---- - filter/tv_to_latex | 1 - - filter/tv_to_text | 1 - - 2 files changed, 2 deletions(-) - -diff --git a/filter/tv_to_latex b/filter/tv_to_latex -index 32db73a8..0cf02fed 100755 ---- a/filter/tv_to_latex -+++ b/filter/tv_to_latex -@@ -37,7 +37,6 @@ spurious blank lines in the output. - use strict; - use XMLTV::Version '$Id$ '; - use IO::File; --use POSIX 'tmpnam'; - use Getopt::Long; - - # Use Log::TraceMessages if installed. -diff --git a/filter/tv_to_text b/filter/tv_to_text -index 648cacfb..762067b6 100755 ---- a/filter/tv_to_text -+++ b/filter/tv_to_text -@@ -34,7 +34,6 @@ use warnings; - use XMLTV::Version '$Id$ '; - use IO::File; - use Date::Manip; --use POSIX 'tmpnam'; - use Getopt::Long; - - BEGIN { - From d2f2537b41e740c20b93db169697c3e3e3c42286 Mon Sep 17 00:00:00 2001 -From: Nick Morrott <knowledgejunkie@gmail.com> -Date: Fri, 24 Feb 2017 22:35:58 +0000 -Subject: [PATCH] Allow building on Perl versions 5.24.1+ - -Perl versions 5.24.1+ no longer include '.' in @INC. However, we need -access to some libraries included in the XMLTV source at build time so -"use lib '.'" for these specific instances. ---- - filter/tv_grep.PL | 3 +++ - grab/it/tv_grab_it.PL | 4 ++++ - lib/XMLTV.pm.PL | 4 ++++ - 3 files changed, 11 insertions(+) - -diff --git a/filter/tv_grep.PL b/filter/tv_grep.PL -index a0c0c28d..48fa17f2 100644 ---- a/filter/tv_grep.PL -+++ b/filter/tv_grep.PL -@@ -12,6 +12,9 @@ - - use IO::File; - use XMLTV; -+ -+# Perl 5.24.1+ does not include '.' in @INC but we need some libs during build -+use lib '.'; - require 'filter/Grep.pm'; - - my $out = shift @ARGV; die "no output file given" if not defined $out; -diff --git a/grab/it/tv_grab_it.PL b/grab/it/tv_grab_it.PL -index 5ebbd886..546c1693 100644 ---- a/grab/it/tv_grab_it.PL -+++ b/grab/it/tv_grab_it.PL -@@ -354,7 +354,11 @@ close IN_FH or die "cannot close $in: $!"; - - # stuff for setting share dir - die "usage: $_ output_file share_dir" if @ARGV != 2; -+ -+# Perl 5.24.1+ does not include '.' in @INC but we need some libs during build -+use lib '.'; - require 'lib/set_share_dir.pl'; -+ - #warn "faccio $ARGV[0] $ARGV[1]\n"; - #set_share_dir('grab/it/tv_grab_it.in2', $ARGV[0], $ARGV[1]); - copy( 'grab/it/tv_grab_it.in2', $ARGV[0] ); -diff --git a/lib/XMLTV.pm.PL b/lib/XMLTV.pm.PL -index f64c2146..c525bc26 100644 ---- a/lib/XMLTV.pm.PL -+++ b/lib/XMLTV.pm.PL -@@ -9,7 +9,11 @@ sub print_list( $$ ); - - my $out = shift @ARGV; die "no output file given" if not defined $out; - my $in = 'lib/XMLTV.pm.in'; -+ -+# Perl 5.24.1+ does not include '.' in @INC but we need some libs during build -+use lib '.'; - require $in; -+ - open(IN_FH, $in) or die "cannot read $in: $!"; - die if not @XMLTV::Channel_Handlers; die if not @XMLTV::Programme_Handlers; - diff --git a/community/xmltv/test_tv_imdb.t.patch b/community/xmltv/test_tv_imdb.t.patch new file mode 100644 index 0000000000..bc065916a1 --- /dev/null +++ b/community/xmltv/test_tv_imdb.t.patch @@ -0,0 +1,26 @@ +From 5463cde27030237d79fedd200e49968edaa06f67 Mon Sep 17 00:00:00 2001 +From: Nick Morrott <knowledgejunkie@gmail.com> +Date: Thu, 28 Feb 2019 22:50:43 +0000 +Subject: [PATCH] test_tv_imdb.t: specify input/output per published CLI + options, rather than with STDIN/STDOUT redirection + +--- + t/test_tv_imdb.t | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/t/test_tv_imdb.t b/t/test_tv_imdb.t +index ad504464..4dc281a1 100755 +--- a/t/test_tv_imdb.t ++++ b/t/test_tv_imdb.t +@@ -84,9 +84,9 @@ INPUT: foreach my $input (@inputs) { + my $output="$tmpDir/".File::Basename::basename($input)."-output.xml"; + + # Make temporary directory and split into it. +- my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1"; ++ my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1"; + if ( $input=~m/movies-only/ ) { +- $cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1"; ++ $cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1"; + } + #print STDERR "\nRUN:$cmd\n"; + my $r = system($cmd); |