ports/114599: mail/metamail : fix for change of putenv parameter type in FreeBSD 7

Jean-Francois Dockes jean-francois.dockes at wanadoo.fr
Sun Jul 15 12:40:05 UTC 2007


>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 at 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:



More information about the freebsd-ports-bugs mailing list