Date: Sat, 14 Jul 2007 17:55:47 +0200 (CEST) From: Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/114599: mail/metamail : fix for change of putenv parameter type in FreeBSD 7 Message-ID: <200707141555.l6EFtlOd010869@cf6.dockes.com> Resent-Message-ID: <200707151240.l6FCe49d062971@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 114599 >Category: ports >Synopsis: mail/metamail : fix for change of putenv parameter type in FreeBSD 7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jul 15 12:40:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jean-Francois Dockes >Release: FreeBSD 6.2-RELEASE i386 >Organization: >Environment: System: FreeBSD cf6.dockes.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The change of putenv parameter type from const char * to char * breaks metamail build. Other issues possible cause I'm not running FreeBSD 7 yet >How-To-Repeat: >Fix: diff -ruN metamail.orig/files/patch-metamail_putenv.c metamail/files/patch-metamail_putenv.c --- metamail.orig/files/patch-metamail_putenv.c Tue Dec 19 02:48:53 2006 +++ metamail/files/patch-metamail_putenv.c Sat Jul 14 17:41:22 2007 @@ -1,5 +1,5 @@ --- metamail/putenv.c.orig Tue Oct 12 17:17:43 1993 -+++ metamail/putenv.c Mon Dec 18 11:46:22 2006 ++++ metamail/putenv.c Sat Jul 14 17:35:44 2007 @@ -17,6 +17,8 @@ Cambridge, MA 02139, USA. */ @@ -9,3 +9,15 @@ #include <sys/types.h> #include <errno.h> #ifdef STDC_HEADERS +@@ -48,7 +50,11 @@ + /* Put STRING, which is of the form "NAME=VALUE", in the environment. */ + int + putenv (string) ++#if defined __FreeBSD__ && __FreeBSD__ <= 6 + const char *string; ++#else ++ char *string; ++#endif + { + char *name_end = index (string, '='); + register size_t size; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707141555.l6EFtlOd010869>