From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 19 11:20:29 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E3E616A47C for ; Mon, 19 Jun 2006 11:20:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C04A43D7B for ; Mon, 19 Jun 2006 11:20:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5JBKNgT067703 for ; Mon, 19 Jun 2006 11:20:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5JBKNGn067702; Mon, 19 Jun 2006 11:20:23 GMT (envelope-from gnats) Resent-Date: Mon, 19 Jun 2006 11:20:23 GMT Resent-Message-Id: <200606191120.k5JBKNGn067702@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ronald MacNeil Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D96FB16A4E0 for ; Mon, 19 Jun 2006 11:17:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CC6143D99 for ; Mon, 19 Jun 2006 11:16:10 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k5JBFlex014759 for ; Mon, 19 Jun 2006 11:15:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k5JBFlMU014758; Mon, 19 Jun 2006 11:15:47 GMT (envelope-from nobody) Message-Id: <200606191115.k5JBFlMU014758@www.freebsd.org> Date: Mon, 19 Jun 2006 11:15:47 GMT From: Ronald MacNeil To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/99178: [patch] to build security/gnupg-devel with gcc41 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 11:20:29 -0000 >Number: 99178 >Category: ports >Synopsis: [patch] to build security/gnupg-devel with gcc41 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 19 11:20:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ronald MacNeil >Release: 7-CURRENT >Organization: >Environment: FreeBSD ... 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jun 10 01:02:59 EST 2006 ..@...:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: There is an instance in security/gnupg-devel where the stpcpy function is static redefined, which gcc41 doesn't like and refuses to compile. >How-To-Repeat: >Fix: The following patch (obtained from gnupg cvs) adds an #ifndef HAVE_STPCPY check which fixes the problem and allows one to build the port with gcc41. The patch should be added as a new patch file in the port's files/ subdirectory. Love your work, guys. Ron --- tools/gpgparsemail.c.orig Mon Jun 19 20:58:24 2006 +++ tools/gpgparsemail.c Mon Jun 19 21:00:31 2006 @@ -24,6 +24,9 @@ for the content of the line. Several options are available to scrutinize the message. S/MIME and OpenPGP support is included. */ +#ifdef HAVE_CONFIG_H +#include +#endif #include #include @@ -145,6 +148,7 @@ return p; } +#ifndef HAVE_STPCPY static char * stpcpy (char *a,const char *b) { @@ -154,6 +158,7 @@ return (char*)a; } +#endif static int >Release-Note: >Audit-Trail: >Unformatted: