ports/144336: [PATCH] devel/boost-libs: Fix libtorrent-rasterbar-14 python bindings build

Mario Sergio Fujikawa Ferreira lioux at FreeBSD.org
Sat Feb 27 00:40:03 UTC 2010


>Number:         144336
>Category:       ports
>Synopsis:       [PATCH] devel/boost-libs: Fix libtorrent-rasterbar-14 python bindings build
>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:   Sat Feb 27 00:40:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 8.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 8.0-STABLE FreeBSD 8.0-STABLE #13: Sun Feb 21 11:29:04 BRT 2010
>Description:

- Add compile gcc option to make sure that boost compilation toolchain
  acknowledges that gcc versions prior to 4.3.x do not implement
  inclass member initialization

	- This enables net-p2p/libtorrent-rasterbar-14 to build
	  python bindings without resorting to gcc 4.3, gcc 4.4 or
	  gcc 4.5.

	- Prior to this patch, libtorrent-rasterbar-14 python
	  bindings could only be built with gcc 4.3+. This is a
	  problem for 2 reasons:
		1) We required gcc 4.3+ to be available and/or built
		   prior to building rasterbar.
		2) Any port requiring rasterbar will also to depend
		upon gcc 4.3+

	- This patch should be added to merged to the original boost
	  distribution

- Bump PORTREVISION to acknowledge the fix

Added file(s):
- files/patch-boost__config__compiler__gcc.hpp

Port maintainer (churanov.port.maintainer at gmail.com) is cc'd.

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

--- boost-libs-1.41.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/boost-libs/Makefile,v
retrieving revision 1.3
diff -d -u -u -r1.3 Makefile
--- Makefile	16 Feb 2010 22:41:56 -0000	1.3
+++ Makefile	27 Feb 2010 00:18:56 -0000
@@ -6,6 +6,7 @@
 #
 
 PORTNAME=	boost-libs
+PORTREVISION=	1
 COMMENT=	Free portable C++ libraries (without Boost.Python)
 USE_BZIP2=	yes
 
Index: files/patch-boost__config__compiler__gcc.hpp
===================================================================
RCS file: files/patch-boost__config__compiler__gcc.hpp
diff -N files/patch-boost__config__compiler__gcc.hpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-boost__config__compiler__gcc.hpp	27 Feb 2010 00:18:56 -0000
@@ -0,0 +1,16 @@
+--- boost/config/compiler/gcc.hpp.orig	2010-02-24 00:41:39.000000000 -0300
++++ boost/config/compiler/gcc.hpp	2010-02-24 00:44:56.000000000 -0300
+@@ -104,6 +104,13 @@
+ #  endif
+ #endif
+ 
++//
++// gcc previous to 4.3.x does not implement inclass member initialization
++//
++#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 2))
++#  define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
++#endif
++
+ // C++0x features not implemented in any GCC version
+ //
+ #define BOOST_NO_CONSTEXPR
--- boost-libs-1.41.0_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list