Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 19:17:39 +1000 (EST)
From:      Emil Mikulic <emikulic@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/134952: [patch] security/p5-Net-SSLeay build shouldn't need interaction
Message-ID:  <20090526091739.24FDC5C45@ppp154-240.static.internode.on.net>
Resent-Message-ID: <200905260920.n4Q9K1BQ001057@freefall.freebsd.org>

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

>Number:         134952
>Category:       ports
>Synopsis:       [patch] security/p5-Net-SSLeay build shouldn't need interaction
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 26 09:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Emil Mikulic
>Release:        
>Organization:
>Environment:
>Description:

security/p5-Net-SSLeay prompts the user:

  Do you want to run external tests?
  These tests *will* *fail* if you do not have network connectivity. [n]

It waits for input, which sucks for unattended builds.

>How-To-Repeat:

cd /usr/ports/security/p5-Net-SSLeay
make

>Fix:

How about adding the following patch to
/usr/ports/security/p5-Net-SSLeay/files

It short-circuits the prompt into the negative (default) response.

--- inc/Module/Install/PRIVATE/Net/SSLeay.pm.orig	2009-05-26 18:14:30.705755255 +1000
+++ inc/Module/Install/PRIVATE/Net/SSLeay.pm	2009-05-26 18:17:57.517028165 +1000
@@ -45,7 +45,7 @@
 
     $self->makemaker_args( CCCDLFLAGS => $opts->{cccdlflags} );
 
-    if ( $self->prompt(
+    if ( 0 && $self->prompt( # don't require interaction during install
             "Do you want to run external tests?\n".
             "These tests *will* *fail* if you do not have network connectivity.",
             'n',
>Release-Note:
>Audit-Trail:
>Unformatted:



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