Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2006 17:07:20 -0200 (BRDT)
From:      Rainer Alves <rainer.alves@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92510: [MAINTAINER] archivers/rvm (unbreak)
Message-ID:  <200601291907.k0TJ7K3E096338@valfenda.ibest.com.br>
Resent-Message-ID: <200601291910.k0TJA8jp031910@freefall.freebsd.org>

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

>Number:         92510
>Category:       ports
>Synopsis:       [MAINTAINER] archivers/rvm (unbreak)
>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:   Sun Jan 29 19:10:07 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Alves
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
>Description:

Unbreak port by disabling memory allocation test during configure.

>How-To-Repeat:
>Fix:

diff -ruN rvm.orig/Makefile rvm/Makefile
--- rvm.orig/Makefile	Fri Dec 30 17:04:39 2005
+++ rvm/Makefile	Sun Jan 29 16:57:48 2006
@@ -19,8 +19,6 @@
 BUILD_DEPENDS=	rsync:${PORTSDIR}/net/rsync
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
-BROKEN=		"Configure script attempts to allocate an infinite amount of memory to see what happens when it runs out"
-
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 NO_LATEST_LINK=	yes
 
diff -ruN rvm.orig/files/patch-configure rvm/files/patch-configure
--- rvm.orig/files/patch-configure	Wed Dec 31 21:00:00 1969
+++ rvm/files/patch-configure	Sun Jan 29 16:44:00 2006
@@ -0,0 +1,107 @@
+--- configure.orig	Mon Nov 14 19:34:54 2005
++++ configure	Sun Jan 29 16:34:06 2006
+@@ -8613,104 +8613,9 @@
+ 
+ fi
+ 
+-
+-
+-echo "$as_me:$LINENO: checking if the stl throws an exception at memory allocation failure" >&5
+-echo $ECHO_N "checking if the stl throws an exception at memory allocation failure... $ECHO_C" >&6
+-if test "${ac_cv_cxx_exception_on_failed_alloc+set}" = set; then
+-	echo "$as_me:$LINENO: result: (cached) $ac_cv_cxx_exception_on_failed_alloc" >&5
+-echo "${ECHO_T}(cached) $ac_cv_cxx_exception_on_failed_alloc" >&6
+-else
+-	if test "$cross_compiling" = yes; then
+-  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+-See \`config.log' for more details." >&5
+-echo "$as_me: error: cannot run test program while cross compiling
+-See \`config.log' for more details." >&2;}
+-   { (exit 1); exit 1; }; }
+-else
+-  cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h.  */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h.  */
+-#include <string>
+-#include <exception>
+-
+-int main(int argc, char **argv)
+-{
+-	std::string str;
+-
+-	str = "a";
+-	while (true) {
+-		try {
+-			str += str;
+-		}
+-		catch(...) {
+-			return(0);
+-		}
+-	}
+-	return(0);
+-}
+-
+-_ACEOF
+-rm -f conftest$ac_exeext
+-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+-  (eval $ac_link) 2>&5
+-  ac_status=$?
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+-  (eval $ac_try) 2>&5
+-  ac_status=$?
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); }; }; then
+-  echo "$as_me:$LINENO: result: yes" >&5
+-echo "${ECHO_T}yes" >&6
+-		ac_cv_cxx_exception_on_failed_alloc=yes
+-
+-else
+-  echo "$as_me: program exited with status $ac_status" >&5
+-echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-( exit $ac_status )
+-echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-		ac_cv_cxx_exception_on_failed_alloc=no
+-
+-fi
+-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+-fi
+-fi
+-if test $ac_cv_cxx_exception_on_failed_alloc = yes; then
+-
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_EXCEPTION_ON_ALLOC_FAILURE 1
+ _ACEOF
+-
+-else
+-	{ echo "$as_me:$LINENO: WARNING:
+-
+-*** NOTICE: This implementation of the STL does not throw an exception for
+-memory allocation failure.  (This feature is known to be lacking in at least
+-some pre 3.x versions of the gcc compiler suite.)  Memory allocation failure
+-should not mean program termination, but without this feature in the STL, the
+-author of this software package cannot guarentee the ability to handle memory
+-allocation failure gracefully.
+-
+-	" >&5
+-echo "$as_me: WARNING:
+-
+-*** NOTICE: This implementation of the STL does not throw an exception for
+-memory allocation failure.  (This feature is known to be lacking in at least
+-some pre 3.x versions of the gcc compiler suite.)  Memory allocation failure
+-should not mean program termination, but without this feature in the STL, the
+-author of this software package cannot guarentee the ability to handle memory
+-allocation failure gracefully.
+-
+-	" >&2;}
+-fi
+ 
+ # Extract the first word of "rsync", so it can be a program name with args.
+ set dummy rsync; ac_word=$2
>Release-Note:
>Audit-Trail:
>Unformatted:
 



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