View | Details | Raw Unified | Return to bug 71883
Collapse All | Expand All

(-)print/cjk-lyx/Makefile (-4 lines)
Lines 58-67 Link Here
58
58
59
.include <bsd.port.pre.mk>
59
.include <bsd.port.pre.mk>
60
60
61
.if ${OSVERSION} >= 502126
62
BROKEN=		"Does not compile on FreeBSD >= 5.x"
63
.endif
64
65
.if ${OSVERSION} < 500035
61
.if ${OSVERSION} < 500035
66
CFLAGS+=	-Wno-non-template-friend -ftemplate-depth-30
62
CFLAGS+=	-Wno-non-template-friend -ftemplate-depth-30
67
.endif
63
.endif
(-)print/cjk-lyx/files/patch-boost::boost::config::compiler::gcc.hpp (+97 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- ./boost/boost/config/compiler/gcc.hpp.orig	2003-05-26 08:27:34.000000000 -0600
4
+++ ./boost/boost/config/compiler/gcc.hpp
5
@@ -1,7 +1,13 @@
6
-//  (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
7
-//  distribute this software is granted provided this copyright notice appears
8
-//  in all copies. This software is provided "as is" without express or implied
9
-//  warranty, and with no claim as to its suitability for any purpose.
10
+//  (C) Copyright John Maddock 2001 - 2003.
11
+//  (C) Copyright Darin Adler 2001 - 2002.
12
+//  (C) Copyright Jens Maurer 2001 - 2002.
13
+//  (C) Copyright Beman Dawes 2001 - 2003.
14
+//  (C) Copyright Douglas Gregor 2002.
15
+//  (C) Copyright David Abrahams 2002 - 2003.
16
+//  (C) Copyright Synge Todo 2003.
17
+//  Use, modification and distribution are subject to the
18
+//  Boost Software License, Version 1.0. (See accompanying file
19
+//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
20
 
21
 //  See http://www.boost.org for most recent version.
22
 
23
@@ -23,24 +29,53 @@
24
 #     endif
25
 #   endif
26
 
27
+#   if __GNUC__ == 2 && __GNUC_MINOR__ < 96
28
+#     define BOOST_NO_SFINAE
29
+#   endif
30
+
31
 #   if __GNUC__ == 2 && __GNUC_MINOR__ <= 97
32
 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
33
 #     define BOOST_NO_OPERATORS_IN_NAMESPACE
34
 #   endif
35
 
36
+#   if __GNUC__ < 3
37
+#      define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
38
+#      define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
39
+#   endif
40
+
41
+#
42
+#
43
+#
44
+
45
+//
46
+// Bug specific to gcc 3.1 and 3.2:
47
+//
48
+#if (__GNUC__ == 3) && ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
49
+#  define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
50
+#endif
51
+
52
 //
53
-// Threading support:
54
-// Turn this on unconditionally here, it will get turned off again later
55
-// if no threading API is detected.
56
+// Threading support: Turn this on unconditionally here (except for
57
+// those platforms where we can know for sure). It will get turned off again
58
+// later if no threading API is detected.
59
 //
60
-#define BOOST_HAS_THREADS
61
+#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
62
+# define BOOST_HAS_THREADS
63
+#endif
64
 
65
 //
66
 // gcc has "long long"
67
 //
68
 #define BOOST_HAS_LONG_LONG
69
 
70
-#define BOOST_COMPILER "GNU C++ version " BOOST_STRINGIZE(__GNUC__) "." BOOST_STRINGIZE(__GNUC_MINOR__)
71
+//
72
+// gcc implements the named return value optimization since version 3.1
73
+//
74
+#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
75
+#define BOOST_HAS_NRVO
76
+#endif
77
+
78
+#define BOOST_COMPILER "GNU C++ version " __VERSION__
79
 
80
 //
81
 // versions check:
82
@@ -49,11 +84,13 @@
83
 #  error "Compiler not configured - please reconfigure"
84
 #endif
85
 //
86
-// last known and checked version is 3.2:
87
-#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3))
88
+// last known and checked version is 3.4:
89
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 4))
90
 #  if defined(BOOST_ASSERT_CONFIG)
91
 #     error "Unknown compiler version - please run the configure tests and report the results"
92
 #  else
93
 #     warning "Unknown compiler version - please run the configure tests and report the results"
94
 #  endif
95
 #endif
96
+
97
+
(-)print/cjk-lyx/files/patch-boost::boost::format::feed_args.hpp (+13 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- ./boost/boost/format/feed_args.hpp.orig	2002-11-20 10:20:54.000000000 -0700
4
+++ ./boost/boost/format/feed_args.hpp
5
@@ -34,7 +34,7 @@ namespace  {
6
 
7
   template<class Tr, class Ch> inline
8
   void empty_buf(BOOST_IO_STD basic_ostringstream<Ch,Tr> & os) {
9
-    static const std::basic_string<Ch, Tr> emptyStr; // avoids 2 cases ( "" and  L"" )
10
+    const std::basic_string<Ch, Tr> emptyStr; // avoids 2 cases ( "" and  L"" )
11
     os.str(emptyStr);
12
   }
13
 
(-)print/cjk-lyx/files/patch-boost::boost::format::format_implementation.hpp (+13 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- ./boost/boost/format/format_implementation.hpp.orig	2002-11-21 11:33:01.000000000 -0700
4
+++ ./boost/boost/format/format_implementation.hpp
5
@@ -151,7 +151,7 @@ basic_format<Ch,Tr>& basic_format<Ch,Tr>
6
 {
7
     if(argN<1 || argN > num_args_ || bound_.size()==0 || !bound_[argN-1] )
8
       {
9
-	if( exceptions() & out_of_range_bit )
10
+       if( exceptions() & io::out_of_range_bit )
11
 	  boost::throw_exception(io::out_of_range()); // arg not in range.
12
 	else return *this;
13
       }
(-)print/cjk-lyx/files/patch-src::BoostFormat.h (+13 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- ./src/BoostFormat.h.orig    2002-11-25 12:44:44.000000000 -0700
4
+++ ./src/BoostFormat.h
5
@@ -15,7 +15,7 @@ namespace boost
6
 {
7
8
 extern
9
-template basic_format<char>;
10
+template class basic_format<char>;
11
12
 extern template
13
 std::ostream &
(-)print/cjk-lyx/files/patch-src::frontends::controllers::ControlDialog.tmpl (+85 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- src/frontends/controllers/ControlDialog.tmpl.orig	2004-05-29 04:23:23.000000000 -0600
4
+++ src/frontends/controllers/ControlDialog.tmpl
5
@@ -4,7 +4,7 @@
6
  * This file is part of LyX, the document processor.
7
  * Licence details can be found in the file COPYING.
8
  *
9
- * \author Angus Leeming 
10
+ * \author Angus Leeming
11
  *
12
  * Full author contact details are available in file CREDITS
13
  *
14
@@ -27,54 +27,56 @@ ControlDialog<Base>::ControlDialog(LyXVi
15
 template <class Base>
16
 void ControlDialog<Base>::show()
17
 {
18
-	if (isBufferDependent() && !bufferIsAvailable())
19
+	if (this->isBufferDependent() && !this->bufferIsAvailable())
20
 		return;
21
 
22
-	connect();
23
+	this->connect();
24
 
25
 	if (!dialog_built_) {
26
-		view().build();
27
+		this->view().build();
28
 		dialog_built_ = true;
29
 	}
30
 
31
 	setParams();
32
-	if (emergency_exit_) {
33
+	if (this->emergency_exit_) {
34
 		hide();
35
 		return;
36
 	}
37
 
38
-	bc().readOnly(bufferIsReadonly());
39
-	view().show();
40
+	this->bc().readOnly(this->bufferIsReadonly());
41
+	this->view().show();
42
 
43
 	// The widgets may not be valid, so refresh the button controller
44
-	bc().refresh();
45
+	this->bc().refresh();
46
 }
47
 
48
+
49
 template <class Base>
50
 void ControlDialog<Base>::update()
51
 {
52
-	if (isBufferDependent() && !bufferIsAvailable())
53
+	if (this->isBufferDependent() && !this->bufferIsAvailable())
54
 		return;
55
 
56
 	setParams();
57
-	if (emergency_exit_) {
58
+	if (this->emergency_exit_) {
59
 		hide();
60
 		return;
61
 	}
62
 
63
-	bc().readOnly(bufferIsReadonly());
64
-	view().update();
65
+	this->bc().readOnly(this->bufferIsReadonly());
66
+	this->view().update();
67
 
68
 	// The widgets may not be valid, so refresh the button controller
69
-	bc().refresh();
70
+	this->bc().refresh();
71
 }
72
 
73
+
74
 template <class Base>
75
 void ControlDialog<Base>::hide()
76
 {
77
-	emergency_exit_ = false;
78
+	this->emergency_exit_ = false;
79
 	clearParams();
80
 
81
-	disconnect();
82
-	view().hide();
83
+	this->disconnect();
84
+	this->view().hide();
85
 }
(-)print/cjk-lyx/files/patch-src::frontends::qt2::Qt2Base.h (+21 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- ./src/frontends/qt2/Qt2Base.h.orig	2003-02-01 17:48:38.000000000 -0700
4
+++ ./src/frontends/qt2/Qt2Base.h
5
@@ -174,14 +174,14 @@ Qt2CB<Controller, Base>::Qt2CB(QString c
6
 template <class Controller, class Base>
7
 Controller & Qt2CB<Controller, Base>::controller()
8
 {
9
-	return static_cast<Controller &>(getController());
10
+       return static_cast<Controller &>(this->getController());
11
 }
12
 
13
 
14
 template <class Controller, class Base>
15
 Controller const & Qt2CB<Controller, Base>::controller() const
16
 {
17
-	return static_cast<Controller const &>(getController());
18
+       return static_cast<Controller const &>(this->getController());
19
 }
20
 
21
 
(-)print/cjk-lyx/files/patch-src::frontends::xforms::FormBase.h (+21 lines)
Line 0 Link Here
1
$NetBSD$
2
3
--- src/frontends/xforms/FormBase.h.orig	2003-02-01 17:48:38.000000000 -0700
4
+++ src/frontends/xforms/FormBase.h
5
@@ -188,14 +188,14 @@ FormCB<Controller, Base>::FormCB(string 
6
 template <class Controller, class Base>
7
 Controller & FormCB<Controller, Base>::controller()
8
 {
9
-	return static_cast<Controller &>(getController());
10
+	return static_cast<Controller &>(this->getController());
11
 }
12
 
13
 
14
 template <class Controller, class Base>
15
 Controller const & FormCB<Controller, Base>::controller() const
16
 {
17
-	return static_cast<Controller const &>(getController());
18
+	return static_cast<Controller const &>(this->getController());
19
 }
20
 
21

Return to bug 71883