From yuri.pankov@gmail.com  Thu Dec  8 08:49:38 2011
Return-Path: <yuri.pankov@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 677E31065676
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 Dec 2011 08:49:38 +0000 (UTC)
	(envelope-from yuri.pankov@gmail.com)
Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172])
	by mx1.freebsd.org (Postfix) with ESMTP id EE18C8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 Dec 2011 08:49:37 +0000 (UTC)
Received: by eaak10 with SMTP id k10so1495334eaa.17
        for <FreeBSD-gnats-submit@freebsd.org>; Thu, 08 Dec 2011 00:49:36 -0800 (PST)
Received: by 10.213.101.6 with SMTP id a6mr67246ebo.135.1323334176491;
        Thu, 08 Dec 2011 00:49:36 -0800 (PST)
Received: from procyon.xvoid.org ([213.132.76.142])
        by mx.google.com with ESMTPS id q28sm15441540eea.6.2011.12.08.00.49.35
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 08 Dec 2011 00:49:35 -0800 (PST)
Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1])
	by procyon.xvoid.org (8.14.5/8.14.5) with ESMTP id pB88nXCG057617
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 8 Dec 2011 12:49:33 +0400 (MSK)
	(envelope-from yuri.pankov@gmail.com)
Received: (from yuri@localhost)
	by procyon.xvoid.org (8.14.5/8.14.5/Submit) id pB88nXVY057616;
	Thu, 8 Dec 2011 12:49:33 +0400 (MSK)
	(envelope-from yuri.pankov@gmail.com)
Message-Id: <201112080849.pB88nXVY057616@procyon.xvoid.org>
Date: Thu, 8 Dec 2011 12:49:33 +0400 (MSK)
From: Yuri Pankov <yuri.pankov@gmail.com>
Reply-To: Yuri Pankov <yuri.pankov@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mktemp(3) is referring to (now) non-existent gcc option
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         163119
>Category:       docs
>Synopsis:       mktemp(3) is referring to (now) non-existent gcc option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 08 08:50:11 UTC 2011
>Closed-Date:    Mon Mar 19 01:52:47 UTC 2012
>Last-Modified:  Mon Mar 19 01:52:47 UTC 2012
>Originator:     Yuri Pankov
>Release:        FreeBSD 9.0-RC2 amd64
>Organization:
Nexenta Systems, Inc.
>Environment:
System: FreeBSD procyon.xvoid.org 9.0-RC2 FreeBSD 9.0-RC2 #0 r228164: Thu Dec 1 08:32:46 MSK 2011 yuri@procyon.xvoid.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
mktemp(3) is presumably referring to gcc's -fwritable-strings, which doesn't exist in recent releases (and it's a bad advice anyway).
>How-To-Repeat:
>Fix:
--- mktemp.3.diff begins here ---
Index: lib/libc/stdio/mktemp.3
===================================================================
--- lib/libc/stdio/mktemp.3	(revision 228346)
+++ lib/libc/stdio/mktemp.3	(working copy)
@@ -180,12 +180,6 @@
 will result in a core dump due to
 .Fn mkstemp
 attempting to modify the string constant that was given.
-If the program in question makes heavy use of that type
-of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
-See
-.Xr gcc 1
-for more information.
 .Sh SEE ALSO
 .Xr chmod 2 ,
 .Xr getpid 2 ,
--- mktemp.3.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sat Mar 3 15:37:22 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163119 
State-Changed-From-To: open->analyzed 
State-Changed-By: eadler 
State-Changed-When: Sat Mar 3 19:36:33 UTC 2012 
State-Changed-Why:  
awaiting approval 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163119 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/163119: commit references a PR
Date: Sun,  4 Mar 2012 16:41:17 +0000 (UTC)

 Author: eadler
 Date: Sun Mar  4 16:41:07 2012
 New Revision: 232504
 URL: http://svn.freebsd.org/changeset/base/232504
 
 Log:
   Remove reference to gcc's non-standard -fwritable-strings, which
   doesn't exist in recent releases (and is bad advice anyway)
   
   PR:		docs/163119
   Submitted by:	Yuri Pankov <yuri.pankov@gmail.com>
   Approved by:	cperciva
   MFC after:	1 week
 
 Modified:
   head/lib/libc/stdio/mktemp.3
 
 Modified: head/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:39:08 2012	(r232503)
 +++ head/lib/libc/stdio/mktemp.3	Sun Mar  4 16:41:07 2012	(r232504)
 @@ -28,7 +28,7 @@
  .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd February 11, 1998
 +.Dd March 4, 2012
  .Dt MKTEMP 3
  .Os
  .Sh NAME
 @@ -180,12 +180,6 @@ with an argument of
  will result in a core dump due to
  .Fn mkstemp
  attempting to modify the string constant that was given.
 -If the program in question makes heavy use of that type
 -of function call, you do have the option of compiling the program
 -so that it will store string constants in a writable segment of memory.
 -See
 -.Xr gcc 1
 -for more information.
  .Sh SEE ALSO
  .Xr chmod 2 ,
  .Xr getpid 2 ,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: eadler 
State-Changed-When: Sun Mar 4 21:23:33 UTC 2012 
State-Changed-Why:  
committed in r232504 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163119 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/163119: commit references a PR
Date: Mon, 19 Mar 2012 01:32:43 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:32:28 2012
 New Revision: 233149
 URL: http://svn.freebsd.org/changeset/base/233149
 
 Log:
   MFC r232504:
   	Remove reference to gcc's non-standard -fwritable-strings, which
   	doesn't exist in recent releases (and is bad advice anyway)
   
   PR:		docs/163119
   Approved by:	cperciva
 
 Modified:
   stable/9/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/9/lib/libc/   (props changed)
 
 Modified: stable/9/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:28:11 2012	(r233148)
 +++ stable/9/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:28 2012	(r233149)
 @@ -28,7 +28,7 @@
  .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd February 11, 1998
 +.Dd March 4, 2012
  .Dt MKTEMP 3
  .Os
  .Sh NAME
 @@ -180,12 +180,6 @@ with an argument of
  will result in a core dump due to
  .Fn mkstemp
  attempting to modify the string constant that was given.
 -If the program in question makes heavy use of that type
 -of function call, you do have the option of compiling the program
 -so that it will store string constants in a writable segment of memory.
 -See
 -.Xr gcc 1
 -for more information.
  .Sh SEE ALSO
  .Xr chmod 2 ,
  .Xr getpid 2 ,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/163119: commit references a PR
Date: Mon, 19 Mar 2012 01:33:13 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:32:53 2012
 New Revision: 233150
 URL: http://svn.freebsd.org/changeset/base/233150
 
 Log:
   MFC r232504:
   	Remove reference to gcc's non-standard -fwritable-strings, which
   	doesn't exist in recent releases (and is bad advice anyway)
   
   PR:		docs/163119
   Approved by:	cperciva
 
 Modified:
   stable/8/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/8/lib/libc/   (props changed)
 
 Modified: stable/8/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:28 2012	(r233149)
 +++ stable/8/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:53 2012	(r233150)
 @@ -28,7 +28,7 @@
  .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd February 11, 1998
 +.Dd March 4, 2012
  .Dt MKTEMP 3
  .Os
  .Sh NAME
 @@ -180,12 +180,6 @@ with an argument of
  will result in a core dump due to
  .Fn mkstemp
  attempting to modify the string constant that was given.
 -If the program in question makes heavy use of that type
 -of function call, you do have the option of compiling the program
 -so that it will store string constants in a writable segment of memory.
 -See
 -.Xr gcc 1
 -for more information.
  .Sh SEE ALSO
  .Xr chmod 2 ,
  .Xr getpid 2 ,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/163119: commit references a PR
Date: Mon, 19 Mar 2012 01:33:37 +0000 (UTC)

 Author: eadler
 Date: Mon Mar 19 01:33:24 2012
 New Revision: 233151
 URL: http://svn.freebsd.org/changeset/base/233151
 
 Log:
   MFC r232504:
   	Remove reference to gcc's non-standard -fwritable-strings, which
   	doesn't exist in recent releases (and is bad advice anyway)
   
   PR:		docs/163119
   Approved by:	cperciva
 
 Modified:
   stable/7/lib/libc/stdio/mktemp.3
 Directory Properties:
   stable/7/lib/libc/   (props changed)
 
 Modified: stable/7/lib/libc/stdio/mktemp.3
 ==============================================================================
 --- stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:32:53 2012	(r233150)
 +++ stable/7/lib/libc/stdio/mktemp.3	Mon Mar 19 01:33:24 2012	(r233151)
 @@ -28,7 +28,7 @@
  .\"     @(#)mktemp.3	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd February 11, 1998
 +.Dd March 4, 2012
  .Dt MKTEMP 3
  .Os
  .Sh NAME
 @@ -180,12 +180,6 @@ with an argument of
  will result in a core dump due to
  .Fn mkstemp
  attempting to modify the string constant that was given.
 -If the program in question makes heavy use of that type
 -of function call, you do have the option of compiling the program
 -so that it will store string constants in a writable segment of memory.
 -See
 -.Xr gcc 1
 -for more information.
  .Sh SEE ALSO
  .Xr chmod 2 ,
  .Xr getpid 2 ,
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Mar 19 01:52:46 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163119 
>Unformatted:
