diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-01-04 19:56:03 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-01-04 19:56:03 +0000 |
commit | 2338cf57c26273615e84e44cd0502529fde729cd (patch) | |
tree | 0ab77826a3a61b456b608cc07eddf6b6942d4b2e /sysutils/parallel/files/patch-src__parallel | |
parent | - update to 1.4.12 (diff) |
- Update to version 20121122 [1]
- Don't use port name in COMMENT
Release Notes:
http://savannah.gnu.org/forum/forum.php?forum_id=7460
PR: ports/174645 [1]
Submitted by: Chris Howey <howeyc@gmail.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=309937
Diffstat (limited to 'sysutils/parallel/files/patch-src__parallel')
-rw-r--r-- | sysutils/parallel/files/patch-src__parallel | 59 |
1 files changed, 38 insertions, 21 deletions
diff --git a/sysutils/parallel/files/patch-src__parallel b/sysutils/parallel/files/patch-src__parallel index ac11b7850ca7..1804fc5f4344 100644 --- a/sysutils/parallel/files/patch-src__parallel +++ b/sysutils/parallel/files/patch-src__parallel @@ -1,28 +1,45 @@ ---- ./src/parallel.orig 2012-08-22 21:25:08.000000000 -0500 -+++ ./src/parallel 2012-08-22 21:25:24.000000000 -0500 -@@ -4571,21 +4571,15 @@ - # Returns: - # number of chars on the longest command line allowed - if(not $Limits::Command::line_max_len) { -+ $Limits::Command::line_max_len = `getconf ARG_MAX` - 1024; - if($::opt_s) { -- if(is_acceptable_command_line_length($::opt_s)) { -- $Limits::Command::line_max_len = $::opt_s; +--- ./src/parallel.orig 2012-12-22 14:56:17.000000000 -0600 ++++ ./src/parallel 2012-12-22 14:58:55.000000000 -0600 +@@ -4790,29 +4790,19 @@ + package Limits::Command; + + # Maximal command line length (for -m and -X) +-sub max_length { +- # Find the max_length of a command line and cache it +- # Returns: +- # number of chars on the longest command line allowed +- if(not $Limits::Command::line_max_len) { +- if($opt::s) { +- if(is_acceptable_command_line_length($opt::s)) { +- $Limits::Command::line_max_len = $opt::s; - } else { - # -s is too long: Find the correct -- $Limits::Command::line_max_len = binary_find_max_length(0,$::opt_s); -+ if($::opt_s > $Limits::Command::line_max_len) { -+ print STDERR "$Global::progname: ", -+ "you are setting value for -s greater than $Limits::Command::line_max_len\n"; - } - if($::opt_s <= $Limits::Command::line_max_len) { - $Limits::Command::line_max_len = $::opt_s; +- $Limits::Command::line_max_len = binary_find_max_length(0,$opt::s); +- } +- if($opt::s <= $Limits::Command::line_max_len) { +- $Limits::Command::line_max_len = $opt::s; - } else { - ::warning("Value for -s option ", - "should be < $Limits::Command::line_max_len.\n"); - } +- } - } else { - $Limits::Command::line_max_len = real_max_length(); - } - } - return $Limits::Command::line_max_len; +- } +- } +- return $Limits::Command::line_max_len; ++sub max_length { ++ # FreeBSD code: ++ if(not $Limits::Command::line_max_len) { ++ $Limits::Command::line_max_len = `getconf ARG_MAX` - 1024; ++ if ($opt::s) { ++ if ($opt::s > $Limits::Command::line_max_len) { ++ print STDERR "$Global::progname: ", ++ "you are setting value for -s greater than $Limits::Command::line_max_len\n"; ++ } ++ $Limits::Command::line_max_len = $opt::s; ++ } ++ } ++ return $Limits::Command::line_max_len; + } + + sub real_max_length { |