pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang
Module Name: pkgsrc
Committed By: jperkin
Date: Thu Aug 9 14:16:08 UTC 2018
Modified Files:
pkgsrc/lang: Makefile
Added Files:
pkgsrc/lang/libcxx: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/lang/libcxx/patches: patch-src_experimental_memory__resource.cpp
Log Message:
lang: Import libcxx version 6.0.1.
libc++ is a new implementation of the C++ standard library, targeting
C++11.
Features and Goals
* Correctness as defined by the C++11 standard.
* Fast execution.
* Minimal memory use.
* Fast compile times.
* ABI compatibility with gcc's libstdc++ for some low-level features
such as exception objects, rtti and memory allocation.
* Extensive unit tests.
To generate a diff of this commit:
cvs rdiff -u -r1.491 -r1.492 pkgsrc/lang/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/libcxx/DESCR pkgsrc/lang/libcxx/Makefile \
pkgsrc/lang/libcxx/PLIST pkgsrc/lang/libcxx/buildlink3.mk \
pkgsrc/lang/libcxx/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/libcxx/patches/patch-src_experimental_memory__resource.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/Makefile
diff -u pkgsrc/lang/Makefile:1.491 pkgsrc/lang/Makefile:1.492
--- pkgsrc/lang/Makefile:1.491 Thu Aug 9 14:13:25 2018
+++ pkgsrc/lang/Makefile Thu Aug 9 14:16:08 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.491 2018/08/09 14:13:25 jperkin Exp $
+# $NetBSD: Makefile,v 1.492 2018/08/09 14:16:08 jperkin Exp $
#
COMMENT= Programming languages
@@ -122,6 +122,7 @@ SUBDIR+= ksi
SUBDIR+= libBlocksRuntime
SUBDIR+= libLLVM
SUBDIR+= libLLVM34
+SUBDIR+= libcxx
SUBDIR+= libcxxabi
SUBDIR+= libduktape
SUBDIR+= librep
Added files:
Index: pkgsrc/lang/libcxx/DESCR
diff -u /dev/null pkgsrc/lang/libcxx/DESCR:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/DESCR Thu Aug 9 14:16:08 2018
@@ -0,0 +1,11 @@
+libc++ is a new implementation of the C++ standard library, targeting
+C++11.
+
+Features and Goals
+ * Correctness as defined by the C++11 standard.
+ * Fast execution.
+ * Minimal memory use.
+ * Fast compile times.
+ * ABI compatibility with gcc's libstdc++ for some low-level features
+ such as exception objects, rtti and memory allocation.
+ * Extensive unit tests.
Index: pkgsrc/lang/libcxx/Makefile
diff -u /dev/null pkgsrc/lang/libcxx/Makefile:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/Makefile Thu Aug 9 14:16:08 2018
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2018/08/09 14:16:08 jperkin Exp $
+
+DISTNAME= libcxx-6.0.1.src
+PKGNAME= ${DISTNAME:S/.src//}
+CATEGORIES= lang devel
+MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://libcxx.llvm.org/
+COMMENT= C++ Standard Library
+LICENSE= modified-bsd OR mit
+
+# libcxx requires libcxxabi's cxxabi.h to build, but libcxxabi requires
+# libcxx's includes to build, so we have this unholy extra distfiles thing
+# in both of them to get them to build against each other without causing
+# circular dependencies. This must be kept in sync with libcxxabi/Makefile.
+#
+LIBCXXABI= libcxxabi-${PKGVERSION_NOREV}.src
+DISTFILES= ${DEFAULT_DISTFILES} ${LIBCXXABI}${EXTRACT_SUFX}
+
+CONFIGURE_DIRS= ${WRKDIR}/build
+CMAKE_ARG_PATH= ${WRKSRC}
+
+USE_LANGUAGES= c c++
+USE_CMAKE= yes
+GCC_REQD+= 4.8
+SSP_SUPPORTED= no
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q}
+CMAKE_ARGS+= -DCMAKE_CXX_LINK_FLAGS=${LDFLAGS:Q}
+CMAKE_ARGS+= -DLIBCXX_CXX_ABI=libcxxabi
+CMAKE_ARGS+= -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${WRKDIR}/${LIBCXXABI}/include
+CMAKE_ARGS+= -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT:BOOL=OFF
+
+post-extract:
+ ${RUN} mkdir -p ${WRKDIR}/build
+
+.include "../../lang/libcxxabi/buildlink3.mk"
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/libcxx/PLIST
diff -u /dev/null pkgsrc/lang/libcxx/PLIST:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/PLIST Thu Aug 9 14:16:08 2018
@@ -0,0 +1,180 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/09 14:16:08 jperkin Exp $
+include/c++/v1/__bit_reference
+include/c++/v1/__bsd_locale_defaults.h
+include/c++/v1/__bsd_locale_fallbacks.h
+include/c++/v1/__config
+include/c++/v1/__cxxabi_config.h
+include/c++/v1/__debug
+include/c++/v1/__functional_03
+include/c++/v1/__functional_base
+include/c++/v1/__functional_base_03
+include/c++/v1/__hash_table
+include/c++/v1/__libcpp_version
+include/c++/v1/__locale
+include/c++/v1/__mutex_base
+include/c++/v1/__nullptr
+include/c++/v1/__split_buffer
+include/c++/v1/__sso_allocator
+include/c++/v1/__std_stream
+include/c++/v1/__string
+include/c++/v1/__threading_support
+include/c++/v1/__tree
+include/c++/v1/__tuple
+include/c++/v1/__undef_macros
+include/c++/v1/algorithm
+include/c++/v1/any
+include/c++/v1/array
+include/c++/v1/atomic
+include/c++/v1/bitset
+include/c++/v1/cassert
+include/c++/v1/ccomplex
+include/c++/v1/cctype
+include/c++/v1/cerrno
+include/c++/v1/cfenv
+include/c++/v1/cfloat
+include/c++/v1/chrono
+include/c++/v1/cinttypes
+include/c++/v1/ciso646
+include/c++/v1/climits
+include/c++/v1/clocale
+include/c++/v1/cmath
+include/c++/v1/codecvt
+include/c++/v1/complex
+include/c++/v1/complex.h
+include/c++/v1/condition_variable
+include/c++/v1/csetjmp
+include/c++/v1/csignal
+include/c++/v1/cstdarg
+include/c++/v1/cstdbool
+include/c++/v1/cstddef
+include/c++/v1/cstdint
+include/c++/v1/cstdio
+include/c++/v1/cstdlib
+include/c++/v1/cstring
+include/c++/v1/ctgmath
+include/c++/v1/ctime
+include/c++/v1/ctype.h
+include/c++/v1/cwchar
+include/c++/v1/cwctype
+include/c++/v1/cxxabi.h
+include/c++/v1/deque
+include/c++/v1/errno.h
+include/c++/v1/exception
+include/c++/v1/experimental/__config
+include/c++/v1/experimental/__memory
+include/c++/v1/experimental/algorithm
+include/c++/v1/experimental/any
+include/c++/v1/experimental/chrono
+include/c++/v1/experimental/coroutine
+include/c++/v1/experimental/deque
+include/c++/v1/experimental/dynarray
+include/c++/v1/experimental/filesystem
+include/c++/v1/experimental/forward_list
+include/c++/v1/experimental/functional
+include/c++/v1/experimental/iterator
+include/c++/v1/experimental/list
+include/c++/v1/experimental/map
+include/c++/v1/experimental/memory_resource
+include/c++/v1/experimental/numeric
+include/c++/v1/experimental/optional
+include/c++/v1/experimental/propagate_const
+include/c++/v1/experimental/ratio
+include/c++/v1/experimental/regex
+include/c++/v1/experimental/set
+include/c++/v1/experimental/string
+include/c++/v1/experimental/string_view
+include/c++/v1/experimental/system_error
+include/c++/v1/experimental/tuple
+include/c++/v1/experimental/type_traits
+include/c++/v1/experimental/unordered_map
+include/c++/v1/experimental/unordered_set
+include/c++/v1/experimental/utility
+include/c++/v1/experimental/vector
+include/c++/v1/ext/__hash
+include/c++/v1/ext/hash_map
+include/c++/v1/ext/hash_set
+include/c++/v1/float.h
+include/c++/v1/forward_list
+include/c++/v1/fstream
+include/c++/v1/functional
+include/c++/v1/future
+include/c++/v1/initializer_list
+include/c++/v1/inttypes.h
+include/c++/v1/iomanip
+include/c++/v1/ios
+include/c++/v1/iosfwd
+include/c++/v1/iostream
+include/c++/v1/istream
+include/c++/v1/iterator
+include/c++/v1/limits
+include/c++/v1/limits.h
+include/c++/v1/list
+include/c++/v1/locale
+include/c++/v1/locale.h
+include/c++/v1/map
+include/c++/v1/math.h
+include/c++/v1/memory
+include/c++/v1/module.modulemap
+include/c++/v1/mutex
+include/c++/v1/new
+include/c++/v1/numeric
+include/c++/v1/optional
+include/c++/v1/ostream
+include/c++/v1/queue
+include/c++/v1/random
+include/c++/v1/ratio
+include/c++/v1/regex
+include/c++/v1/scoped_allocator
+include/c++/v1/set
+include/c++/v1/setjmp.h
+include/c++/v1/shared_mutex
+include/c++/v1/sstream
+include/c++/v1/stack
+include/c++/v1/stdbool.h
+include/c++/v1/stddef.h
+include/c++/v1/stdexcept
+include/c++/v1/stdint.h
+include/c++/v1/stdio.h
+include/c++/v1/stdlib.h
+include/c++/v1/streambuf
+include/c++/v1/string
+include/c++/v1/string.h
+include/c++/v1/string_view
+include/c++/v1/strstream
+include/c++/v1/support/android/locale_bionic.h
+include/c++/v1/support/fuchsia/xlocale.h
+include/c++/v1/support/ibm/limits.h
+include/c++/v1/support/ibm/locale_mgmt_aix.h
+include/c++/v1/support/ibm/support.h
+include/c++/v1/support/ibm/xlocale.h
+include/c++/v1/support/musl/xlocale.h
+include/c++/v1/support/newlib/xlocale.h
+include/c++/v1/support/solaris/floatingpoint.h
+include/c++/v1/support/solaris/wchar.h
+include/c++/v1/support/solaris/xlocale.h
+include/c++/v1/support/win32/limits_msvc_win32.h
+include/c++/v1/support/win32/locale_win32.h
+include/c++/v1/support/xlocale/__nop_locale_mgmt.h
+include/c++/v1/support/xlocale/__posix_l_fallback.h
+include/c++/v1/support/xlocale/__strtonum_fallback.h
+include/c++/v1/support/xlocale/xlocale.h
+include/c++/v1/system_error
+include/c++/v1/tgmath.h
+include/c++/v1/thread
+include/c++/v1/tuple
+include/c++/v1/type_traits
+include/c++/v1/typeindex
+include/c++/v1/typeinfo
+include/c++/v1/unordered_map
+include/c++/v1/unordered_set
+include/c++/v1/utility
+include/c++/v1/valarray
+include/c++/v1/variant
+include/c++/v1/vector
+include/c++/v1/wchar.h
+include/c++/v1/wctype.h
+lib/libc++.a
+lib/libc++.so
+lib/libc++.so.1
+lib/libc++.so.1.0
+lib/libc++experimental.a
Index: pkgsrc/lang/libcxx/buildlink3.mk
diff -u /dev/null pkgsrc/lang/libcxx/buildlink3.mk:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/buildlink3.mk Thu Aug 9 14:16:08 2018
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/08/09 14:16:08 jperkin Exp $
+
+BUILDLINK_TREE+= libcxx
+
+.if !defined(LIBCXX_BUILDLINK3_MK)
+LIBCXX_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libcxx+= libcxx>=6.0.1
+BUILDLINK_PKGSRCDIR.libcxx?= ../../lang/libcxx
+
+.include "../../lang/llvm/buildlink3.mk"
+.endif # LIBCXX_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libcxx
Index: pkgsrc/lang/libcxx/distinfo
diff -u /dev/null pkgsrc/lang/libcxx/distinfo:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/distinfo Thu Aug 9 14:16:08 2018
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2018/08/09 14:16:08 jperkin Exp $
+
+SHA1 (libcxx-6.0.1.src.tar.xz) = 6506139683ca5319f90c84c8a29b633afda849ce
+RMD160 (libcxx-6.0.1.src.tar.xz) = ead6a4fa9a0b700c96def8cfe5f7945d807da82c
+SHA512 (libcxx-6.0.1.src.tar.xz) = c04f628b0924d76f035f615b59d19ce42dfc19c9a8eea4fe2b22a95cfe5a037ebdb30943fd741443939df5b4cf692bc1e51c840fefefbd134e3afbe2a75fe875
+Size (libcxx-6.0.1.src.tar.xz) = 1552328 bytes
+SHA1 (libcxxabi-6.0.1.src.tar.xz) = 54bff42750c9c81dba60710d6ee70d1c9e83c5af
+RMD160 (libcxxabi-6.0.1.src.tar.xz) = 37cd93201a0409b8cc75f52622abbd5682067e6e
+SHA512 (libcxxabi-6.0.1.src.tar.xz) = bbb4c7b412e295cb735f637df48a83093eef45ed5444f7766790b4b047f75fd5fd634d8f3a8ac33a5c1407bd16fd450ba113f60a9bcc1d0a911fe0c54e9c81f2
+Size (libcxxabi-6.0.1.src.tar.xz) = 528356 bytes
+SHA1 (patch-src_experimental_memory__resource.cpp) = 64cab51b689ee6e0fc32b4a48981f050f443d81a
Index: pkgsrc/lang/libcxx/patches/patch-src_experimental_memory__resource.cpp
diff -u /dev/null pkgsrc/lang/libcxx/patches/patch-src_experimental_memory__resource.cpp:1.1
--- /dev/null Thu Aug 9 14:16:08 2018
+++ pkgsrc/lang/libcxx/patches/patch-src_experimental_memory__resource.cpp Thu Aug 9 14:16:08 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_experimental_memory__resource.cpp,v 1.1 2018/08/09 14:16:08 jperkin Exp $
+
+The init_priority attribute isn't supported on SunOS GCC.
+
+--- src/experimental/memory_resource.cpp.orig 2018-01-03 16:58:30.000000000 +0000
++++ src/experimental/memory_resource.cpp
+@@ -73,7 +73,11 @@ union ResourceInitHelper {
+ #if _LIBCPP_STD_VER > 11
+ _LIBCPP_SAFE_STATIC
+ #endif
++#ifdef __sun
++ResourceInitHelper res_init;
++#else
+ ResourceInitHelper res_init __attribute__((init_priority (101)));
++#endif
+
+ } // end namespace
+
Home |
Main Index |
Thread Index |
Old Index