From owner-freebsd-ports Tue Jan 14 7:30: 7 2003 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1B8B37B401 for ; Tue, 14 Jan 2003 07:30:05 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A35843F1E for ; Tue, 14 Jan 2003 07:30:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0EFU4NS039320 for ; Tue, 14 Jan 2003 07:30:04 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0EFU4Mu039319; Tue, 14 Jan 2003 07:30:04 -0800 (PST) Date: Tue, 14 Jan 2003 07:30:04 -0800 (PST) Message-Id: <200301141530.h0EFU4Mu039319@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Simon 'corecode' Schubert" Subject: Re: ports/47039: [BENTO FIX] devel/cxref Reply-To: "Simon 'corecode' Schubert" 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/47039; it has been noted by GNATS. From: "Simon 'corecode' Schubert" To: Chris Knight Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/47039: [BENTO FIX] devel/cxref Date: Tue, 14 Jan 2003 16:28:27 +0100 --=.lsQU,mROR)EqLe Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Chris Knight told: > >Description: > cxref self-references itself during the build of the doc subdirectory. > On bento, this results in a core dump of cxref. > However, none of the doc target gets installed. > So, the easiest fix is to not build the doc target. this is the completely wrong approach. don't ignore the problem, fix it: new file: files/patch-af; bump portrevision (i'd vote for it)? Index: files/patch-af =================================================================== RCS file: files/patch-af diff -N files/patch-af --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-af 14 Jan 2003 15:23:10 -0000 @@ -0,0 +1,16 @@ +--- comment.c.orig Tue Nov 16 20:11:38 1999 ++++ comment.c Tue Jan 14 16:17:17 2003 +@@ -158,8 +158,11 @@ + + if(comment) + { +- malloc_comment=Realloc(malloc_comment,strlen(comment)+1); +- strcpy(malloc_comment,comment); ++ if(malloc_comment != comment) ++ { ++ malloc_comment=Realloc(malloc_comment,strlen(comment)+1); ++ strcpy(malloc_comment,comment); ++ } + current_comment=malloc_comment; + } + else dunno why this was never noticed; mebe because of special malloc() behavior on tested platforms. cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.lsQU,mROR)EqLe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+JCyer5S+dk6z85oRAidmAKCOcorYMzkLHZtRimOFchveRDqV6wCg88q+ QVDnpRGF3skVvOZ4weYP9gQ= =tTqy -----END PGP SIGNATURE----- --=.lsQU,mROR)EqLe-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message