Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/gource/files: gource-0.38+boost-1.50.patch
Date: Tue, 10 Jul 2012 09:56:44
Message-Id: 20120710095632.221F320065@flycatcher.gentoo.org
1 flameeyes 12/07/10 09:56:32
2
3 Added: gource-0.38+boost-1.50.patch
4 Log:
5 Add patch to fix building with boost 1.50, mixing one fix from upstream and one upstreamed. Thanks Enrico for finding the fix. Closes bug #425460.
6
7 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-util/gource/files/gource-0.38+boost-1.50.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/gource/files/gource-0.38+boost-1.50.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/gource/files/gource-0.38+boost-1.50.patch?rev=1.1&content-type=text/plain
14
15 Index: gource-0.38+boost-1.50.patch
16 ===================================================================
17 diff --git a/m4/m4_ax_boost_filesystem.m4 b/m4/ax_boost_filesystem.m4
18 index 18df8f4..aebcbf7 100644
19 --- a/m4/m4_ax_boost_filesystem.m4
20 +++ b/m4/m4_ax_boost_filesystem.m4
21 @@ -31,7 +31,7 @@
22 # and this notice are preserved. This file is offered as-is, without any
23 # warranty.
24
25 -#serial 22
26 +#serial 24
27
28 AC_DEFUN([AX_BOOST_FILESYSTEM],
29 [
30 @@ -81,14 +81,14 @@ AC_DEFUN([AX_BOOST_FILESYSTEM],
31 AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available])
32 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
33 if test "x$ax_boost_user_filesystem_lib" = "x"; then
34 - for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
35 + for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.\(dylib\|a\|so\).*$;\1;' | tac` ; do
36 ax_lib=${libextension}
37 AC_CHECK_LIB($ax_lib, exit,
38 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
39 [link_filesystem="no"])
40 done
41 if test "x$link_filesystem" != "xyes"; then
42 - for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
43 + for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.dll* $BOOSTLIBDIR/boost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
44 ax_lib=${libextension}
45 AC_CHECK_LIB($ax_lib, exit,
46 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
47 diff --git a/m4/m4_ax_boost_system.m4 b/m4/ax_boost_system.m4
48 index 7fbf6d3..bf82391 100644
49 --- a/m4/m4_ax_boost_system.m4
50 +++ b/m4/m4_ax_boost_system.m4
51 @@ -83,14 +83,14 @@ AC_DEFUN([AX_BOOST_SYSTEM],
52
53 LDFLAGS_SAVE=$LDFLAGS
54 if test "x$ax_boost_user_system_lib" = "x"; then
55 - for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
56 + for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
57 ax_lib=${libextension}
58 AC_CHECK_LIB($ax_lib, exit,
59 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
60 [link_system="no"])
61 done
62 if test "x$link_system" != "xyes"; then
63 - for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
64 + for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
65 ax_lib=${libextension}
66 AC_CHECK_LIB($ax_lib, exit,
67 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
68 diff --git a/src/logmill.cpp b/src/logmill.cpp
69 index 8fc6153..2a9afd9 100644
70 --- a/src/logmill.cpp
71 +++ b/src/logmill.cpp
72 @@ -176,7 +176,7 @@ RCommitLog* RLogMill::fetchLog(std::string& log_format) {
73 logfile = repo_path.string();
74 }
75 }
76 - } catch(boost::filesystem3::filesystem_error& error) {
77 + } catch(boost::filesystem::filesystem_error& error) {
78 }
79 }