From owner-freebsd-ports Mon Apr 15 15:10:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A58237B400 for ; Mon, 15 Apr 2002 15:10:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3FMA2677805; Mon, 15 Apr 2002 15:10:02 -0700 (PDT) (envelope-from gnats) Date: Mon, 15 Apr 2002 15:10:02 -0700 (PDT) Message-Id: <200204152210.g3FMA2677805@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Oliver Braun Subject: Re: ports/36998: [MAINTAINER UPDATE] solution for rsync: -z option core dumps on large files Reply-To: Oliver Braun Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/36998; it has been noted by GNATS. From: Oliver Braun To: Donal Diamond Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: ports/36998: [MAINTAINER UPDATE] solution for rsync: -z option core dumps on large files Date: Mon, 15 Apr 2002 23:42:25 +0200 [MAINTAINER UPDATE] rsync -z works if compiled with CFLAGS including at least -O2 optimization level. The following patch checks whether -O[2-6] is part of CFLAGS. Otherwise -O2 will be appended. [ From the gcc manual: If you use multiple `-O' options, with or without level numbers, the last such option is the one that is effective. ] Bumped PORTREVISION Regards, Olli -------------------------------------------------------------------------- diff -ruN rsync.old/Makefile rsync/Makefile --- rsync.old/Makefile Mon Apr 15 23:13:44 2002 +++ rsync/Makefile Mon Apr 15 23:25:50 2002 @@ -8,7 +8,7 @@ PORTNAME= rsync PORTVERSION= 2.5.5 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \ ftp://sunsite.auc.dk/pub/unix/rsync/ \ @@ -18,6 +18,11 @@ MAINTAINER= obraun@informatik.unibw-muenchen.de GNU_CONFIGURE= yes + +OPTIMIZATION!= ${ECHO} "${CFLAGS}" | grep '\-O[2-6]' || true +.if empty(OPTIMIZATION) +CFLAGS+= -O2 +.endif .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message