Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 15:10:02 -0700 (PDT)
From:      Oliver Braun <obraun@informatik.unibw-muenchen.de>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/36998: [MAINTAINER UPDATE] solution for rsync: -z option core dumps on large files
Message-ID:  <200204152210.g3FMA2677805@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/36998; it has been noted by GNATS.

From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
To: Donal Diamond <donal.diamond@eircom.net>
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 <bsd.port.pre.mk>
  

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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