From nobody@FreeBSD.org  Wed Jan 15 02:11:35 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id C0E02889
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jan 2014 02:11:35 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id AE06818D7
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jan 2014 02:11:35 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0F2BZqP013755
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jan 2014 02:11:35 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0F2BZFB013742;
	Wed, 15 Jan 2014 02:11:35 GMT
	(envelope-from nobody)
Message-Id: <201401150211.s0F2BZFB013742@oldred.freebsd.org>
Date: Wed, 15 Jan 2014 02:11:35 GMT
From: Kan Sasaki <sasaki@fcc.ad.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] devel/lua-posix: remove unsupported function
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         185791
>Category:       ports
>Synopsis:       [patch] devel/lua-posix: remove unsupported function
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lua
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 15 02:20:00 UTC 2014
>Closed-Date:    Fri Jan 17 17:06:53 UTC 2014
>Last-Modified:  Fri Jan 17 17:10:03 UTC 2014
>Originator:     Kan Sasaki
>Release:        FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
>Description:
Remove unsupported function 'fdatasync.'

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: files/patch-ext__posix__posix.c
===================================================================
--- files/patch-ext__posix__posix.c	(revision 339685)
+++ files/patch-ext__posix__posix.c	(working copy)
@@ -1,5 +1,5 @@
---- ./ext/posix/posix.c.orig	2013-09-09 09:15:14.000000000 +0200
-+++ ./ext/posix/posix.c	2014-01-10 15:21:47.831554392 +0100
+--- ./ext/posix/posix.c.orig	2013-09-09 16:15:14.000000000 +0900
++++ ./ext/posix/posix.c	2014-01-15 11:00:23.000000000 +0900
 @@ -68,6 +68,10 @@
  #include "lauxlib.h"
  #include "lua52compat.h"
@@ -11,3 +11,31 @@
  #ifndef STREQ
  #  define STREQ(a, b)     (strcmp (a, b) == 0)
  #endif
+@@ -3697,6 +3701,7 @@
+   return pushresult(L, fsync(fd), NULL);
+ }
+ 
++#if 0
+ #if _POSIX_VERSION >= 200112L
+ /***
+  synchronize a file's in-core state with storage device without metadata
+@@ -3712,6 +3717,7 @@
+   return pushresult(L, fdatasync(fd), NULL);
+ }
+ #endif
++#endif
+ 
+ /***
+ reposition read/write file offset
+@@ -3771,9 +3777,11 @@
+ 	MENTRY( Perrno		),
+ 	MENTRY( Pexec		),
+ 	MENTRY( Pexecp		),
++#if 0
+ #if _POSIX_VERSION >= 200112L
+ 	MENTRY( Pfdatasync	),
+ #endif
++#endif
+ 	MENTRY( Pfcntl		),
+ 	MENTRY( Pfileno		),
+ 	MENTRY( Pfiles		),


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jan 15 22:32:35 UTC 2014 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185791 
Responsible-Changed-From-To: freebsd-ports-bugs->lua 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jan 15 22:32:51 UTC 2014 
Responsible-Changed-Why:  
lua@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185791 
State-Changed-From-To: open->closed 
State-Changed-By: bapt 
State-Changed-When: Fri Jan 17 17:06:52 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185791: commit references a PR
Date: Fri, 17 Jan 2014 17:06:25 +0000 (UTC)

 Author: bapt
 Date: Fri Jan 17 17:06:16 2014
 New Revision: 340078
 URL: http://svnweb.freebsd.org/changeset/ports/340078
 QAT: https://qat.redports.org/buildarchive/r340078/
 
 Log:
   Remove unsupported function 'fdatasync.'
   Pass maintainership to lua@
   
   PR:		ports/185791
   Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>
 
 Modified:
   head/devel/lua-posix/Makefile
   head/devel/lua-posix/files/patch-ext__posix__posix.c
 
 Modified: head/devel/lua-posix/Makefile
 ==============================================================================
 --- head/devel/lua-posix/Makefile	Fri Jan 17 17:04:18 2014	(r340077)
 +++ head/devel/lua-posix/Makefile	Fri Jan 17 17:06:16 2014	(r340078)
 @@ -3,10 +3,11 @@
  
  PORTNAME=	posix
  PORTVERSION=	31
 +PORTREVISION=	1
  CATEGORIES=	devel
  PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
  
 -MAINTAINER=	ports@FreeBSD.org
 +MAINTAINER=	lua@FreeBSD.org
  COMMENT=	POSIX layer for Lua
  
  LICENSE=	MIT
 
 Modified: head/devel/lua-posix/files/patch-ext__posix__posix.c
 ==============================================================================
 --- head/devel/lua-posix/files/patch-ext__posix__posix.c	Fri Jan 17 17:04:18 2014	(r340077)
 +++ head/devel/lua-posix/files/patch-ext__posix__posix.c	Fri Jan 17 17:06:16 2014	(r340078)
 @@ -1,5 +1,5 @@
  --- ./ext/posix/posix.c.orig	2013-09-09 09:15:14.000000000 +0200
 -+++ ./ext/posix/posix.c	2014-01-10 15:21:47.831554392 +0100
 ++++ ./ext/posix/posix.c	2014-01-17 18:05:10.399556496 +0100
  @@ -68,6 +68,10 @@
   #include "lauxlib.h"
   #include "lua52compat.h"
 @@ -11,3 +11,31 @@
   #ifndef STREQ
   #  define STREQ(a, b)     (strcmp (a, b) == 0)
   #endif
 +@@ -3697,6 +3701,7 @@
 +   return pushresult(L, fsync(fd), NULL);
 + }
 + 
 ++#if 0
 + #if _POSIX_VERSION >= 200112L
 + /***
 +  synchronize a file's in-core state with storage device without metadata
 +@@ -3712,6 +3717,7 @@
 +   return pushresult(L, fdatasync(fd), NULL);
 + }
 + #endif
 ++#endif
 + 
 + /***
 + reposition read/write file offset
 +@@ -3771,9 +3777,11 @@
 + 	MENTRY( Perrno		),
 + 	MENTRY( Pexec		),
 + 	MENTRY( Pexecp		),
 ++#if 0
 + #if _POSIX_VERSION >= 200112L
 + 	MENTRY( Pfdatasync	),
 + #endif
 ++#endif
 + 	MENTRY( Pfcntl		),
 + 	MENTRY( Pfileno		),
 + 	MENTRY( Pfiles		),
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
