From amdmi3@amdmi3.ru  Wed Mar 25 03:31:13 2009
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4C00B10656BC
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Mar 2009 03:31:13 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85])
	by mx1.freebsd.org (Postfix) with ESMTP id CF18A8FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Mar 2009 03:31:12 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.69)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1LmJpg-0005EW-H4
	for FreeBSD-gnats-submit@freebsd.org; Wed, 25 Mar 2009 06:31:12 +0300
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id F29A7A8C5
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Mar 2009 06:29:22 +0300 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 407E110883C; Wed, 25 Mar 2009 06:30:02 +0300 (MSK)
Message-Id: <20090325033002.407E110883C@hades.panopticon>
Date: Wed, 25 Mar 2009 06:30:02 +0300 (MSK)
From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] print/lyx15: prepare for upcoming boost 1.37.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         133040
>Category:       ports
>Synopsis:       [PATCH] print/lyx15: prepare for upcoming boost 1.37.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lwhsu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 25 03:40:04 UTC 2009
>Closed-Date:    Tue Apr 07 12:24:36 UTC 2009
>Last-Modified:  Tue Apr  7 12:30:07 UTC 2009
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Mar 21 18:50:30 MSK 2009
>Description:
Prepare for upcoming boost 1.37.0.

This patch probably breaks the port with current boost, so this is to be committed with boost update

Added file(s):
- files/patch-src-support-fs_extras.cpp

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lyx-1.5.7.patch begins here ---
Index: files/patch-src-support-fs_extras.cpp
===================================================================
RCS file: files/patch-src-support-fs_extras.cpp
diff -N files/patch-src-support-fs_extras.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src-support-fs_extras.cpp	23 Mar 2009 14:42:12 -0000
@@ -0,0 +1,54 @@
+--- src/support/fs_extras.cpp.orig	2007-05-29 02:27:45.000000000 +0400
++++ src/support/fs_extras.cpp	2009-03-23 17:40:47.000000000 +0300
+@@ -97,10 +97,10 @@
+ 	int const infile = ::open(source.string().c_str(), O_RDONLY);
+ 	if (infile == -1) {
+ 		boost::throw_exception(
+-			filesystem_path_error(
++			basic_filesystem_error<path>(
+ 				"boost::filesystem::copy_file",
+ 				source, target,
+-				fs::lookup_errno(errno)));
++				boost::system::error_code(errno, boost::system::get_system_category())));
+ 	}
+ 
+ 		struct stat source_stat;
+@@ -108,10 +108,10 @@
+ 		if (ret == -1) {
+ 		int err = errno;
+ 		::close(infile);
+-		boost::throw_exception(filesystem_path_error(
++		boost::throw_exception(basic_filesystem_error<path>(
+ 			   "boost::filesystem::copy_file",
+ 			   source, target,
+-			   fs::lookup_errno(err)));
++			   boost::system::error_code(err, boost::system::get_system_category())));
+ 	}
+ 
+ 	int const flags = O_WRONLY | O_CREAT | (noclobber ? O_EXCL : O_TRUNC);
+@@ -121,10 +121,10 @@
+ 		int err = errno;
+ 		::close(infile);
+ 		boost::throw_exception(
+-			filesystem_path_error(
++			basic_filesystem_error<path>(
+ 				"boost::filesystem::copy_file",
+ 				source, target,
+-				fs::lookup_errno(err)));
++				boost::system::error_code(err, boost::system::get_system_category())));
+ 	}
+ 
+ 	std::size_t const buf_sz = 32768;
+@@ -153,10 +153,10 @@
+ 
+ 	if (in == -1 || out == -1)
+ 		boost::throw_exception(
+-			filesystem_path_error(
++			basic_filesystem_error<path>(
+ 				"boost::filesystem::copy_file",
+ 				source, target,
+-				fs::lookup_errno(err)));
++				boost::system::error_code(err, boost::system::get_system_category())));
+ #endif
+ #ifdef BOOST_WINDOWS
+ 	if (::CopyFile(source.string().c_str(), target.string().c_str(), noclobber) == 0) {
--- lyx-1.5.7.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lwhsu 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Wed Mar 25 03:52:05 UTC 2009 
Responsible-Changed-Why:  
To be committed along with boost update 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133040 
State-Changed-From-To: open->closed 
State-Changed-By: lwhsu 
State-Changed-When: Tue Apr 7 12:24:35 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/133040: commit references a PR
Date: Tue,  7 Apr 2009 12:24:43 +0000 (UTC)

 lwhsu       2009-04-07 12:24:28 UTC
 
   FreeBSD ports repository
 
   Added files:
     print/lyx15/files    patch-src-support-fs_extras.cpp 
   Log:
   - Fix building with boost 1.37
   
   PR:             ports/133040
   Submitted by:   amdmi3
   
   Revision  Changes    Path
   1.1       +54 -0     ports/print/lyx15/files/patch-src-support-fs_extras.cpp (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
