Merge commit staging+systemd into closure-size
Many non-conflict problems weren't (fully) resolved in this commit yet.
This commit is contained in:
@@ -17,6 +17,6 @@ buildPerlPackage rec {
|
||||
homepage = http://search.cpan.org/dist/DBD-Pg/;
|
||||
description = "DBI PostgreSQL interface";
|
||||
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, buildPerlPackage, DBI, sqlite }:
|
||||
|
||||
buildPerlPackage rec {
|
||||
name = "DBD-SQLite-1.44";
|
||||
name = "DBD-SQLite-1.48";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/I/IS/ISHIGAKI/${name}.tar.gz";
|
||||
sha256 = "10r7wv5x4vzn9zbk3c7mhbx6kz76xxd9p357592c0wamj458qlml";
|
||||
sha256 = "19hf0fc4dlnpmxsxx3jjbh2z6d2jafgdlqhwz4irkp2cbl7j75xk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ DBI ];
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From a46f0e41056b48a56c572fe8884d4b5104a8343e Mon Sep 17 00:00:00 2001
|
||||
From: Niko Tyni <ntyni@debian.org>
|
||||
Date: Sun, 29 Jun 2014 21:51:15 +0300
|
||||
Subject: [PATCH] multi_linestring2perl: only extend the array if needed
|
||||
|
||||
When the size is 0, we end up extending the stack with
|
||||
a negative value. As of Perl 5.19.4, more precisely
|
||||
http://perl5.git.perl.org/perl.git/commit/fc16c3924bd6aa054f21ad5445fecf9b7f39dc36
|
||||
this ends up allocating memory for 4G-1 elements.
|
||||
|
||||
See Dave Mitchell's comments on perl5-porters:
|
||||
Message-ID: <20140522115758.GX15438@iabyn.com>
|
||||
http://marc.info/?l=perl5-porters&m=140075990913228&w=2
|
||||
---
|
||||
src/mline2av.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/mline2av.h b/src/mline2av.h
|
||||
index e4b3fc2..d7bacee 100644
|
||||
--- a/src/mline2av.h
|
||||
+++ b/src/mline2av.h
|
||||
@@ -9,7 +9,8 @@ multi_linestring2perl(pTHX_ const multi_linestring& mls)
|
||||
{
|
||||
AV* av = newAV();
|
||||
const unsigned int size = mls.size();
|
||||
- av_extend(av, size-1);
|
||||
+ if (size > 0)
|
||||
+ av_extend(av, size-1);
|
||||
|
||||
for (int i = 0; i < size; i++) {
|
||||
AV* lineav = newAV();
|
||||
--
|
||||
2.0.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Use $OPENSSL_X509_CERT_FILE to get the CA certificates.
|
||||
Use $SSL_CERT_FILE to get the CA certificates.
|
||||
|
||||
diff -ru -x '*~' LWP-Protocol-https-6.02-orig/lib/LWP/Protocol/https.pm LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
|
||||
--- LWP-Protocol-https-6.02-orig/lib/LWP/Protocol/https.pm 2011-03-27 13:54:01.000000000 +0200
|
||||
@@ -7,8 +7,8 @@ diff -ru -x '*~' LWP-Protocol-https-6.02-orig/lib/LWP/Protocol/https.pm LWP-Prot
|
||||
}
|
||||
if ($ssl_opts{SSL_verify_mode}) {
|
||||
unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
|
||||
+ if (defined $ENV{'OPENSSL_X509_CERT_FILE'}) {
|
||||
+ $ssl_opts{SSL_ca_file} = $ENV{'OPENSSL_X509_CERT_FILE'};
|
||||
+ if (defined $ENV{'SSL_CERT_FILE'}) {
|
||||
+ $ssl_opts{SSL_ca_file} = $ENV{'SSL_CERT_FILE'};
|
||||
+ }
|
||||
+ }
|
||||
+ unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
|
||||
|
||||
75
pkgs/development/perl-modules/lwp-test-with-localhost.patch
Normal file
75
pkgs/development/perl-modules/lwp-test-with-localhost.patch
Normal file
@@ -0,0 +1,75 @@
|
||||
From 2d7a479b39bb20a0d61f067ba6c2df92117fcb8c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Wed, 23 Apr 2014 12:45:38 +0200
|
||||
Subject: [PATCH] Connect to localhost instead of hostname
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The hostname does not have to be resolvable nor reachable. It's just
|
||||
a machine name.
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
t/local/http.t | 2 +-
|
||||
t/robot/ua-get.t | 2 +-
|
||||
t/robot/ua.t | 2 +-
|
||||
talk-to-ourself | 3 +--
|
||||
4 files changed, 4 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/t/local/http.t b/t/local/http.t
|
||||
index 779cc21..534b4c8 100644
|
||||
--- a/t/local/http.t
|
||||
+++ b/t/local/http.t
|
||||
@@ -20,7 +20,7 @@ if ($D eq 'daemon') {
|
||||
|
||||
require HTTP::Daemon;
|
||||
|
||||
- my $d = HTTP::Daemon->new(Timeout => 10);
|
||||
+ my $d = HTTP::Daemon->new(Timeout => 10, LocalAddr => 'localhost');
|
||||
|
||||
print "Please to meet you at: <URL:", $d->url, ">\n";
|
||||
open(STDOUT, $^O eq 'VMS'? ">nl: " : ">/dev/null");
|
||||
diff --git a/t/robot/ua-get.t b/t/robot/ua-get.t
|
||||
index 5754c4b..bf24589 100644
|
||||
--- a/t/robot/ua-get.t
|
||||
+++ b/t/robot/ua-get.t
|
||||
@@ -19,7 +19,7 @@ if ($D eq 'daemon') {
|
||||
|
||||
require HTTP::Daemon;
|
||||
|
||||
- my $d = new HTTP::Daemon Timeout => 10;
|
||||
+ my $d = new HTTP::Daemon Timeout => 10, LocalAddr => 'localhost';
|
||||
|
||||
print "Please to meet you at: <URL:", $d->url, ">\n";
|
||||
open(STDOUT, $^O eq 'MSWin32' ? ">nul" : $^O eq 'VMS' ? ">NL:" : ">/dev/null");
|
||||
diff --git a/t/robot/ua.t b/t/robot/ua.t
|
||||
index 21ad5c8..11fafa8 100644
|
||||
--- a/t/robot/ua.t
|
||||
+++ b/t/robot/ua.t
|
||||
@@ -19,7 +19,7 @@ if ($D eq 'daemon') {
|
||||
|
||||
require HTTP::Daemon;
|
||||
|
||||
- my $d = new HTTP::Daemon Timeout => 10;
|
||||
+ my $d = new HTTP::Daemon Timeout => 10, LocalAddr => 'localhost';
|
||||
|
||||
print "Please to meet you at: <URL:", $d->url, ">\n";
|
||||
open(STDOUT, $^O eq 'MSWin32' ? ">nul" : $^O eq 'VMS' ? ">NL:" : ">/dev/null");
|
||||
diff --git a/talk-to-ourself b/talk-to-ourself
|
||||
index 6c0257a..b4acda2 100644
|
||||
--- a/talk-to-ourself
|
||||
+++ b/talk-to-ourself
|
||||
@@ -9,8 +9,7 @@ require IO::Socket;
|
||||
|
||||
if (@ARGV >= 2 && $ARGV[0] eq "--port") {
|
||||
my $port = $ARGV[1];
|
||||
- require Sys::Hostname;
|
||||
- my $host = Sys::Hostname::hostname();
|
||||
+ my $host = 'localhost';
|
||||
if (my $socket = IO::Socket::INET->new(PeerAddr => "$host:$port", Timeout => 5)) {
|
||||
require IO::Select;
|
||||
if (IO::Select->new($socket)->can_read(1)) {
|
||||
--
|
||||
1.9.0
|
||||
|
||||
Reference in New Issue
Block a user