ports/183249: [maintainer update] Updating port: sysutils/parallel - New Version (20131022)

Chris Howey howeyc at gmail.com
Wed Oct 23 20:30:00 UTC 2013


>Number:         183249
>Category:       ports
>Synopsis:       [maintainer update] Updating port: sysutils/parallel - New Version (20131022)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 20:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Chris Howey
>Release:        9.1-RELEASE
>Organization:
N/A
>Environment:
FreeBSD tinny-desktop 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Modified files:
sysutils/parallel Makefile distinfo
sysutils/parallel/files patch-src__parallel 

Update to 20131022

Release notes:
https://savannah.gnu.org/forum/forum.php?forum_id=7761

>How-To-Repeat:
N/A
>Fix:
Patch included.

Patch attached with submission follows:

diff -ruN parallel.bak/Makefile parallel/Makefile
--- parallel.bak/Makefile	2013-09-22 15:01:12.000000000 -0500
+++ parallel/Makefile	2013-10-23 13:45:02.000000000 -0500
@@ -2,7 +2,7 @@
 # $FreeBSD: sysutils/parallel/Makefile 327893 2013-09-22 20:01:12Z sunpoet $
 
 PORTNAME=	parallel
-PORTVERSION=	20130922
+PORTVERSION=	20131022
 CATEGORIES=	sysutils
 MASTER_SITES=	GNU
 
diff -ruN parallel.bak/distinfo parallel/distinfo
--- parallel.bak/distinfo	2013-09-22 15:01:12.000000000 -0500
+++ parallel/distinfo	2013-10-23 13:45:07.000000000 -0500
@@ -1,2 +1,2 @@
-SHA256 (parallel-20130922.tar.bz2) = e8fa0e4dd06781aa90f4567493ae61233b8db6a1b35257f8d229f9efd737b909
-SIZE (parallel-20130922.tar.bz2) = 769344
+SHA256 (parallel-20131022.tar.bz2) = 93280c7a03c18b07685157af36f2dfc82bbc59828acbdfe86ed27171a442b6f9
+SIZE (parallel-20131022.tar.bz2) = 772831
diff -ruN parallel.bak/files/patch-src__parallel parallel/files/patch-src__parallel
--- parallel.bak/files/patch-src__parallel	2013-04-22 14:20:17.000000000 -0500
+++ parallel/files/patch-src__parallel	2013-10-23 15:12:07.000000000 -0500
@@ -1,28 +1,35 @@
---- ./src/parallel.orig	2013-04-21 21:50:21.000000000 -0500
-+++ ./src/parallel	2013-04-21 21:56:46.000000000 -0500
-@@ -5072,21 +5072,14 @@
+--- ./src/parallel.orig	2013-10-21 15:31:40.000000000 -0500
++++ ./src/parallel	2013-10-23 15:11:54.000000000 -0500
+@@ -5538,29 +5538,13 @@
      # 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;
+-	# Disk cache of max command line length 
+-	my $len_cache = $ENV{'HOME'} . "/.parallel/tmp/linelen-" . ::hostname();
+-	my $cached_limit;
+-	if(-e $len_cache) {
+-	    open(my $fh, "<", $len_cache) || ::die_bug("Cannot read $len_cache");
+-	    $cached_limit = <$fh>;
+-	    close $fh;
+-	} else {
+-	    $cached_limit = real_max_length();
+-	    # If $HOME is write protected: Do not fail
+-	    mkdir($ENV{'HOME'} . "/.parallel");
+-	    mkdir($ENV{'HOME'} . "/.parallel/tmp");
+-	    open(my $fh, ">", $len_cache);
+-	    print $fh $cached_limit;
+-	    close $fh;
+-	}
+-	$Limits::Command::line_max_len = $cached_limit;
++        $Limits::Command::line_max_len = `getconf ARG_MAX` - 1024;
  	if($opt::max_chars) {
--	    if(is_acceptable_command_line_length($opt::max_chars)) {
--		$Limits::Command::line_max_len = $opt::max_chars;
--	    } else {
--		# -s is too long: Find the correct
--		$Limits::Command::line_max_len = binary_find_max_length(0,$opt::max_chars);
--	    }
--	    if($opt::max_chars <= $Limits::Command::line_max_len) {
--		$Limits::Command::line_max_len = $opt::max_chars;
--	    } else {
-+	    if($opt::max_chars > $Limits::Command::line_max_len) {
+-	    if($opt::max_chars <= $cached_limit) {
++	    if($opt::max_chars <= $Limits::Command::line_max_len) {
+ 		$Limits::Command::line_max_len = $opt::max_chars;
+ 	    } else {
  		::warning("Value for -s option ",
- 			  "should be < $Limits::Command::line_max_len.\n");
-+	    } else {
-+		$Limits::Command::line_max_len = $opt::max_chars;
+-			  "should be < $cached_limit.\n");
++			  "should be < $Limits::Command::line_max_len.\n");
  	    }
--	} else {
--	    $Limits::Command::line_max_len = real_max_length();
  	}
      }
-     return $Limits::Command::line_max_len;



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list