Update/rebuild perl modules

This commit is contained in:
Alexey Pavlov
2017-02-14 21:31:26 +03:00
parent 7a0c270dad
commit 0e2d6509ed
13 changed files with 133 additions and 66 deletions

View File

@@ -3,7 +3,7 @@
_realname=Crypt-SSLeay
pkgname=perl-${_realname}
pkgver=0.73_04
pkgrel=1
pkgrel=2
pkgdesc="OpenSSL glue that provides LWP https support"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Crypt-SSLeay"

View File

@@ -0,0 +1,114 @@
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/bundled/ExtUtils-Install/ExtUtils/Install.pm ExtUtils-MakeMaker-7.25_01/bundled/ExtUtils-Install/ExtUtils/Install.pm
--- ExtUtils-MakeMaker-7.25_01-orig/bundled/ExtUtils-Install/ExtUtils/Install.pm 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/bundled/ExtUtils-Install/ExtUtils/Install.pm 2017-02-14 21:19:57.359544800 +0300
@@ -95,7 +95,7 @@
my $Is_VMS_noefs = $Is_VMS;
my $Is_MacPerl = $^O eq 'MacOS';
my $Is_Win32 = $^O eq 'MSWin32';
-my $Is_cygwin = $^O eq 'cygwin';
+my $Is_cygwin = ($^O eq 'cygwin' || $^O eq 'msys');
my $CanMoveAtBoot = ($Is_Win32 || $Is_cygwin);
if( $Is_VMS ) {
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/bundled/File-Temp/File/Temp.pm ExtUtils-MakeMaker-7.25_01/bundled/File-Temp/File/Temp.pm
--- ExtUtils-MakeMaker-7.25_01-orig/bundled/File-Temp/File/Temp.pm 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/bundled/File-Temp/File/Temp.pm 2017-02-14 21:20:57.049958900 +0300
@@ -824,7 +824,7 @@
return 1 if $level == STANDARD;
# Currently, the systems that can do HIGH or MEDIUM are identical
- if ( $^O eq 'MSWin32' || $^O eq 'os2' || $^O eq 'cygwin' || $^O eq 'dos' || $^O eq 'MacOS' || $^O eq 'mpeix') {
+ if ( $^O eq 'MSWin32' || $^O eq 'os2' || $^O eq 'cygwin' || $^O eq 'msys' || $^O eq 'dos' || $^O eq 'MacOS' || $^O eq 'mpeix') {
return 0;
} else {
return 1;
@@ -1978,7 +1978,7 @@
# on Win9x the link count remains 1
# On NFS the link count may still be 1 but we cant know that
# we are on NFS
- return ( $fh[3] == 0 or $^O eq 'cygwin' ? 1 : 0);
+ return ( $fh[3] == 0 or ($^O eq 'cygwin' || $^O eq 'msys') ? 1 : 0);
} else {
_deferred_unlink($fh, $path, 0);
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/lib/ExtUtils/Liblist/Kid.pm ExtUtils-MakeMaker-7.25_01/lib/ExtUtils/Liblist/Kid.pm
--- ExtUtils-MakeMaker-7.25_01-orig/lib/ExtUtils/Liblist/Kid.pm 2017-02-03 16:36:18.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/lib/ExtUtils/Liblist/Kid.pm 2017-02-14 21:21:52.241115600 +0300
@@ -169,7 +169,7 @@
}
elsif ( -f ( $fullname = "$thispth/lib$thislib.dll$Config_libext" ) ) {
}
- elsif ( $^O eq 'cygwin' && -f ( $fullname = "$thispth/$thislib.dll" ) ) {
+ elsif ( ($^O eq 'cygwin' || $^O eq 'msys') && -f ( $fullname = "$thispth/$thislib.dll" ) ) {
}
elsif ( -f ( $fullname = "$thispth/Slib$thislib$Config_libext" ) ) {
}
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/lib/ExtUtils/MM.pm ExtUtils-MakeMaker-7.25_01/lib/ExtUtils/MM.pm
--- ExtUtils-MakeMaker-7.25_01-orig/lib/ExtUtils/MM.pm 2017-02-03 16:36:18.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/lib/ExtUtils/MM.pm 2017-02-14 21:22:30.326294000 +0300
@@ -58,7 +58,7 @@
_is_win95() ? $Is{Win95} = 1 : $Is{Win32} = 1;
}
$Is{UWIN} = $^O =~ /^uwin(-nt)?$/;
-$Is{Cygwin} = $^O eq 'cygwin';
+$Is{Cygwin} = ($^O eq 'cygwin' || $^O eq 'msys');
$Is{NW5} = $Config{osname} eq 'NetWare'; # intentional
$Is{BeOS} = ($^O =~ /beos/i or $^O eq 'haiku');
$Is{DOS} = $^O eq 'dos';
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/t/03-xsstatic.t ExtUtils-MakeMaker-7.25_01/t/03-xsstatic.t
--- ExtUtils-MakeMaker-7.25_01-orig/t/03-xsstatic.t 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/t/03-xsstatic.t 2017-02-14 21:23:21.404215500 +0300
@@ -17,7 +17,7 @@
plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler"
unless have_compiler();
plan skip_all => 'Shared perl library' if $Config{useshrplib} eq 'true';
-plan skip_all => $^O if $^O =~ m!^(MSWin32|cygwin|haiku)$!;
+plan skip_all => $^O if $^O =~ m!^(MSWin32|cygwin|msys|haiku)$!;
my @tests = list_static();
plan skip_all => "No tests" unless @tests;
plan tests => 6 * @tests;
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/t/eu_command.t ExtUtils-MakeMaker-7.25_01/t/eu_command.t
--- ExtUtils-MakeMaker-7.25_01-orig/t/eu_command.t 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/t/eu_command.t 2017-02-14 21:24:09.861987100 +0300
@@ -95,7 +95,7 @@
SKIP: {
if ($^O eq 'amigaos' || $^O eq 'os2' || $^O eq 'MSWin32' ||
$^O eq 'NetWare' || $^O eq 'dos' || $^O eq 'cygwin' ||
- $^O eq 'MacOS'
+ $^O eq 'msys' || $^O eq 'MacOS'
) {
skip( "different file permission semantics on $^O", 3);
}
@@ -135,7 +135,7 @@
SKIP: {
if ($^O eq 'amigaos' || $^O eq 'os2' || $^O eq 'MSWin32' ||
$^O eq 'NetWare' || $^O eq 'dos' || $^O eq 'cygwin' ||
- $^O eq 'MacOS' || $^O eq 'haiku'
+ $^O eq 'msys' || $^O eq 'MacOS' || $^O eq 'haiku'
) {
skip( "different file permission semantics on $^O", 5);
}
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/t/MM_Cygwin.t ExtUtils-MakeMaker-7.25_01/t/MM_Cygwin.t
--- ExtUtils-MakeMaker-7.25_01-orig/t/MM_Cygwin.t 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/t/MM_Cygwin.t 2017-02-14 21:25:01.230925200 +0300
@@ -9,7 +9,7 @@
use Test::More;
BEGIN {
- if ($^O =~ /cygwin/i) {
+ if ($^O =~ /cygwin|msys/i) {
plan tests => 14;
} else {
plan skip_all => "This is not cygwin";
diff -Naur ExtUtils-MakeMaker-7.25_01-orig/t/MM_Unix.t ExtUtils-MakeMaker-7.25_01/t/MM_Unix.t
--- ExtUtils-MakeMaker-7.25_01-orig/t/MM_Unix.t 2016-04-27 23:08:36.000000000 +0300
+++ ExtUtils-MakeMaker-7.25_01/t/MM_Unix.t 2017-02-14 21:25:24.196238800 +0300
@@ -8,7 +8,7 @@
BEGIN {
use Test::More;
- if( $^O =~ /^VMS|os2|MacOS|MSWin32|cygwin|beos|netware$/i ) {
+ if( $^O =~ /^VMS|os2|MacOS|MSWin32|cygwin|msys|beos|netware$/i ) {
plan skip_all => 'Non-Unix platform';
}
else {

View File

@@ -2,7 +2,7 @@
_realname=ExtUtils-MakeMaker
pkgname=perl-${_realname}
pkgver=7.10
pkgver=7.25_01
pkgrel=1
pkgdesc="ExtUtils::MakeMaker - Create a module Makefile"
arch=('any')
@@ -12,7 +12,7 @@ depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/${_realname}-${pkgver}.tar.gz)
sha256sums=('83b76cd49e458a55774e2e8d87bd1107bc159ba4219600c8ef10c6b43b0d94c5' )
sha256sums=('2eed1f12b2bb6fbc319e45e2b179b722b40ca975d239ee2f6a698fc5d9bbf697')
prepare() {
cd ${_realname}-${pkgver}

View File

@@ -2,8 +2,8 @@
_realname=HTML-Parser
pkgname=perl-${_realname}
pkgver=3.71
pkgrel=3
pkgver=3.72
pkgrel=1
pkgdesc="Perl HTML parser class"
arch=('i686' 'x86_64')
license=('PerlArtistic')
@@ -13,7 +13,7 @@ depends=('perl-HTML-Tagset' 'perl')
checkdepends=('perl-Test-Pod')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
sha256sums=('be918b3749d3ff93627f72ee4b825683332ecb4c81c67a3a8d72b0435ffbd802')
sha256sums=('ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b')
build() {
cd ${_realname}-${pkgver}

View File

@@ -1,11 +0,0 @@
--- origsrc/gettext-1.05/Makefile.PL 2005-01-30 17:30:22.000000000 -0600
+++ src/gettext-1.05/Makefile.PL 2008-03-10 23:41:52.343750000 -0500
@@ -50,7 +50,7 @@
close TEST;
open(SAVE, ">&STDERR");
open(STDERR, ">/dev/null");
- system($cc . " -o conftest " . $libs . " conftest.c");
+ system($cc . " -o conftest " . " conftest.c " . $libs);
my $exitstatus = $?;
open(STDERR, ">&SAVE");
if ($exitstatus != 0) {

View File

@@ -1,9 +1,9 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=perl-Locale-Gettext
_realname=gettext
pkgver=1.05
pkgrel=4
_realname=Locale-Gettext
pkgname=perl-${_realname}
pkgver=1.07
pkgrel=1
groups=('perl-modules')
pkgdesc="Permits access from Perl to the gettext() family of functions"
arch=('i686' 'x86_64')
@@ -11,21 +11,12 @@ license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('gettext' 'perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz"
'compatibility-with-POSIX-module.patch'
'1.05-as-needed.patch'
'doc-update.diff')
sha256sums=('27367f3dc1be79c9ed178732756e37e4cfce45f9e2a27ebf26e1f40d80124694'
'080e3c8f26573ca7425e16190a9905eeefd80b3616fb23b2a92b45486decf247'
'2ba2bdb1e10af8d8dcdc1ff9e148bd804777d41954a32664fd8ccdb29cb1a2cd'
'8b1b404bd4e23904d182850856fff9c0fce4bf3240655a39d588e1b12542fe9b')
source=(${_realname}-${pkgver}.tar.gz::"http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-${pkgver}.tar.gz")
sha256sums=('909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -Np1 -i ${srcdir}/compatibility-with-POSIX-module.patch
patch -Np1 -i ${srcdir}/doc-update.diff
patch -Np2 -i ${srcdir}/1.05-as-needed.patch
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make

View File

@@ -1,10 +0,0 @@
--- a/gettext.pm 2005-05-31 20:11:16.000000000 -0700
+++ b/gettext.pm 2009-10-07 12:39:42.000000000 -0700
@@ -32,6 +32,7 @@
=cut
use Carp;
+use POSIX qw(:locale_h);
require Exporter;
require DynaLoader;

View File

@@ -1,17 +0,0 @@
Description: Fix documentation in manual page
Bug-Debian: http://bugs.debian.org/175421
Forwarded: http://rt.cpan.org/Public/Bug/Display.html?id=35680
Author: Raphaël Hertzog <hertzog@debian.org>
Last-Update: 2011-07-16
--- a/gettext.pm
+++ b/gettext.pm
@@ -235,7 +235,7 @@ sub DESTROY {
gettext(), dgettext(), and dcgettext() attempt to retrieve a string
matching their C<msgid> parameter within the context of the current
locale. dcgettext() takes the message's category and the text domain
-as parameters while dcgettext() defaults to the LC_MESSAGES category
+as parameters while dgettext() defaults to the LC_MESSAGES category
and gettext() defaults to LC_MESSAGES and uses the current text domain.
If the string is not found in the database, then C<msgid> is returned.

View File

@@ -2,7 +2,7 @@
_realname=Net-SSLeay
pkgname=perl-${_realname}
pkgver=1.72
pkgver=1.80
pkgrel=1
pkgdesc="Perl extension for using OpenSSL"
arch=('i686' 'x86_64')
@@ -15,7 +15,7 @@ replaces=('net-ssleay')
provides=('net-ssleay')
source=("http://www.cpan.org/authors/id/M/MI/MIKEM/${_realname}-${pkgver}.tar.gz"
'Net-SSLeay-1.55.patch')
sha256sums=('1baac39f0f12cee515d8bec633175bb5916ca542e5356e26420437bd6195d2f4'
sha256sums=('a541a66d59fc5f9bb7af09d3a0b68305e4c43ba9488b12915728fd282ea01b93'
'6f548646c89bb1af9ef286c07ae766dc28a03cbe17133caffcb295c3d4964df1')
prepare() {

View File

@@ -3,7 +3,7 @@
_realname=Sys-CPU
pkgname=perl-${_realname}
pkgver=0.61
pkgrel=2
pkgrel=3
pkgdesc="Provide commonly requested regular expressions"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~mzsanford/${_realname}-${pkgver}"

View File

@@ -2,7 +2,7 @@
_realname=TermReadKey
pkgname=perl-${_realname}
pkgver=2.33
pkgver=2.37
pkgrel=1
pkgdesc="Provides simple control over terminal driver modes"
arch=('i686' 'x86_64')
@@ -12,7 +12,7 @@ url="http://search.cpan.org/~jstowe/${_realname}/"
groups=('perl-modules')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-${pkgver}.tar.gz)
sha256sums=('99708f2d157343b79af6d552384fc4cbdf8ab633b727eb547f733fbc1cfdd14d')
sha256sums=('4a9383cf2e0e0194668fe2bd546e894ffad41d556b41d2f2f577c8db682db241')
build() {
cd "${srcdir}/${_realname}-${pkgver}"

View File

@@ -3,7 +3,7 @@
_realname=XML-Parser
pkgname=perl-${_realname}
pkgver=2.44
pkgrel=1
pkgrel=2
pkgdesc="Expat-based XML parser module for perl"
arch=('i686' 'x86_64')
license=('GPL' 'PerlArtistic')

View File

@@ -2,7 +2,7 @@
pkgname=perl-YAML-Syck
pkgver=1.29
pkgrel=1
pkgrel=2
pkgdesc="Fast, lightweight YAML loader and dumper"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/YAML-Syck/"