Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2013 16:21:57 +0000 (GMT)
From:      Chris Rees <crees@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175412: [PATCH] mail/elm Stop being interactive
Message-ID:  <20130118162157.318A81C67B@pegasus.bayofrum.net>
Resent-Message-ID: <201301181630.r0IGU0Xj070699@freefall.freebsd.org>

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

>Number:         175412
>Category:       ports
>Synopsis:       [PATCH] mail/elm Stop being interactive
>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:   Fri Jan 18 16:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD pegasus.bayofrum.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Apr 29 12:29:02 BST 2012 root@pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64


	
>Description:
	Small patch to Configure, and make use of the -d option to Configure
	means that we don't need to have an interactive port.

	While here, rename patch-aa to correct name.
>How-To-Repeat:
	
>Fix:

	

--- patch.txt begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 310609)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:    elm25
-# Date created:				04 Feb 2000
-# Whom:					dhagan@cs.vt.edu
-#
+# Created by: dhagan@cs.vt.edu
 # $FreeBSD$
-#
 
 PORTNAME=	elm
 PORTVERSION=	2.5.8
@@ -24,10 +20,10 @@
 WRKSRC=			${WRKDIR}/elm${PORTVERSION}
 NO_LATEST_LINK=		yes
 USE_GETTEXT=		yes
-IS_INTERACTIVE=		yes
 HAS_CONFIGURE=		yes
 CONFIGURE_SCRIPT=	Configure
 CONFIGURE_ENV=		PREFIX="${PREFIX}"
+CONFIGURE_ARGS=		-d
 MAN1=			answer.1 checkalias.1 elm.1 elmalias.1 fastmail.1 \
 			frm.1 listalias.1 messages.1 newalias.1 newmail.1 \
 			printmail.1 readmsg.1 mmencode.1
Index: files/patch-Configure

Renamed from files/patch-aa

===================================================================
--- files/patch-Configure	(working copy)
+++ files/patch-Configure	(working copy)
@@ -1,5 +1,5 @@
---- Configure.orig	Fri Dec 15 14:00:55 2000
-+++ Configure	Mon Jan 27 04:04:55 2003
+--- Configure.orig	2005-08-18 13:49:24.000000000 +0100
++++ Configure	2013-01-18 16:14:29.794050455 +0000
 @@ -18,11 +18,6 @@
  PATH=".:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:$PATH"
  export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)
@@ -12,7 +12,15 @@
  (alias) >/dev/null 2>&1 && \
      echo "(I see you are using the Korn shell.  Some ksh's blow up on Configure," && \
      echo "especially on exotic machines.  If yours does, try the Bourne shell instead.)"
-@@ -2055,6 +2050,7 @@
+@@ -491,7 +486,6 @@
+     c='\c'
+ fi
+ echo $n "Type carriage return to continue.  Your cursor should be here-->$c"
+-read ans
+ rm -f .echotmp
+ 
+ : now set up to do reads with possible shell escape and default assignment
+@@ -2058,6 +2052,7 @@
      libc=/usr/lib/libc.a
  else
  set /usr/ccs/lib/libc.so
@@ -20,7 +28,7 @@
  test -f $1 || set /usr/lib/libc.so
  test -f $1 || set /usr/lib/libc.so.[0-9]*
  test -f $1 || set /lib/libsys_s.a
-@@ -2108,7 +2104,7 @@
+@@ -2111,7 +2106,7 @@
  set `echo $libc $libnames | tr ' ' '\012' | sort | uniq`
  $echo $n "Extracting names from $* for later perusal...$c"
  nm $nm_opts $* 2>/dev/null >libc.tmp
@@ -29,7 +37,7 @@
  if $contains '^printf$' libc.list >/dev/null 2>&1; then
      echo done
  elif $sed -n -e 's/^__*//' -e 's/^\([a-zA-Z_0-9$]*\).*xtern.*/\1/p' \
-@@ -2496,7 +2492,10 @@
+@@ -2499,7 +2494,10 @@
  #
  : see if crypt exists
  echo " "
@@ -41,3 +49,11 @@
      echo 'crypt() found.'
      d_crypt="$define"
      cryptlib=''
+@@ -5499,7 +5497,6 @@
+ echo "If you didn't make any mistakes, then just type a carriage return here."
+ rp="If you need to edit config.sh, do it as a shell escape here:"
+ $echo $n "$rp $c"
+-. UU/myread
+ case "$ans" in
+ '') ;;
+ *) : in case they cannot read
--- patch.txt ends here ---



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



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