Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2014 15:57:35 +0200 (CEST)
From:      Renaud Chaput <renchap@cocoa-x.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nickdewing@gmail.com
Subject:   ports/190068: [PATCH] devel/rubygem-mixlib-shellout: fix MIXLIB-29 
Message-ID:  <20140521135735.66E773048B@tionne.renchap.com>
Resent-Message-ID: <201405211400.s4LE00Yn058252@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190068
>Category:       ports
>Synopsis:       [PATCH] devel/rubygem-mixlib-shellout: fix MIXLIB-29
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 21 14:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Renaud Chaput
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD tionne.renchap.com 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC
>Description:
This patches fixes https://tickets.opscode.com/browse/MIXLIB-29, which prevents chef-client to run when the terminal used to launch it is closed.
Probably not the cleanest way to do it, but I am waiting for an upstream patch for this.

Port maintainer (nickdewing@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 1.02 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- rubygem-mixlib-shellout-1.4.0.patch begins here ---
diff -ruN /usr/ports/devel/rubygem-mixlib-shellout/Makefile ./Makefile
--- /usr/ports/devel/rubygem-mixlib-shellout/Makefile	2014-04-16 15:31:01.000000000 +0200
+++ ./Makefile	2014-05-21 15:27:08.360027973 +0200
@@ -3,6 +3,7 @@
 
 PORTNAME=	mixlib-shellout
 PORTVERSION=	1.4.0
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
diff -ruN /usr/ports/devel/rubygem-mixlib-shellout/files/patch-lib__mixlib__shellout__unix.rb ./files/patch-lib__mixlib__shellout__unix.rb
--- /usr/ports/devel/rubygem-mixlib-shellout/files/patch-lib__mixlib__shellout__unix.rb	1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-lib__mixlib__shellout__unix.rb	2014-05-21 15:51:21.526748848 +0200
@@ -0,0 +1,11 @@
+--- lib/mixlib/shellout/unix.rb.bak	2014-05-21 13:10:28.670548925 +0200
++++ lib/mixlib/shellout/unix.rb		2014-05-21 13:10:40.484660467 +0200
+@@ -222,7 +222,7 @@
+       # the ulimit based on platform.
+       def clean_parent_file_descriptors
+         # Don't clean $stdin, $stdout, $stderr, process_status_pipe.
+-        3.upto(256) do |n|
++        9.upto(256) do |n|
+           # We are checking the fd for error pipe before attempting to
+           # create a file because error pipe will auto close when we
+           # try to create a file since it's set to CLOEXEC.
--- rubygem-mixlib-shellout-1.4.0.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140521135735.66E773048B>