Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2009 06:30:02 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/133040: [PATCH] print/lyx15: prepare for upcoming boost 1.37.0
Message-ID:  <20090325033002.407E110883C@hades.panopticon>
Resent-Message-ID: <200903250340.n2P3e5Hj048997@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         133040
>Category:       ports
>Synopsis:       [PATCH] print/lyx15: prepare for upcoming boost 1.37.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 25 03:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090325033002.407E110883C>