ports/99178: [patch] to build security/gnupg-devel with gcc41

Ronald MacNeil macro at hotmail.com
Mon Jun 19 11:20:29 UTC 2006

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 19 11:20:22 GMT 2006
>Originator:     Ronald MacNeil
>Release:        7-CURRENT
FreeBSD ... 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jun 10 01:02:59 EST 2006
.. at ...:/usr/obj/usr/src/sys/MYKERNEL  i386

There is an instance in security/gnupg-devel where the stpcpy function is static redefined, which gcc41 doesn't like and refuses to compile.


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.

--- 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. */
+#include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -145,6 +148,7 @@
   return p;
+#ifndef HAVE_STPCPY
 static char *
 stpcpy (char *a,const char *b)
@@ -154,6 +158,7 @@
   return (char*)a;
 static int


More information about the freebsd-ports-bugs mailing list