From 6062703b809f64ef1da92cb001ceb2cd6e466e4c Mon Sep 17 00:00:00 2001 From: jbeich Date: Mon, 7 May 2018 22:29:46 +0000 Subject: Drop FreeBSD 10.3 support Reviewed by: yuri (SoPlex), sunpoet (nghttp2), cpm (chromium), brooks (llvm*) Approved by: portmgr (rene) Differential Revision: https://reviews.freebsd.org/D15238 --- Mk/bsd.port.mk | 8 -- cad/opencascade/Makefile | 5 - cad/openscad-devel/Makefile | 6 - devel/llvm-devel/Makefile | 5 - devel/llvm60/Makefile | 4 - devel/opendht/Makefile | 6 - dns/powerdns-recursor/Makefile | 8 +- editors/libreoffice/Makefile | 10 -- .../files/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx | 11 -- .../files/extrapatch-vcl_unx_gtk_gtkinst.cxx | 42 ------ emulators/rpcs3/Makefile | 2 - emulators/rpcs3/files/extra-patch-no-thread_local | 156 --------------------- games/gzdoom/Makefile | 8 +- graphics/sekrit-twc-zimg/Makefile | 2 - .../files/extra-patch-src_zimg_api_zimg.cpp | 62 -------- math/SoPlex/Makefile | 11 +- math/SoPlex/files/patch-CMakeLists.txt | 11 -- multimedia/cx88/Makefile | 3 - net-p2p/qbittorrent/Makefile | 5 - security/snort3/Makefile | 8 +- ...freebsd103_patch-src_memory_memory__allocator.h | 14 -- sysutils/freefilesync/Makefile | 6 - www/chromium/Makefile | 8 -- www/chromium/files/extra-patch-libc++-new | 85 ----------- www/chromium/files/extra-patch-libc++-old | 88 ------------ .../files/patch-tools_gn_bootstrap_bootstrap.py | 85 +++++++++++ www/nghttp2/Makefile | 7 - 27 files changed, 90 insertions(+), 576 deletions(-) delete mode 100644 editors/libreoffice/files/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx delete mode 100644 editors/libreoffice/files/extrapatch-vcl_unx_gtk_gtkinst.cxx delete mode 100644 emulators/rpcs3/files/extra-patch-no-thread_local delete mode 100644 graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp delete mode 100644 math/SoPlex/files/patch-CMakeLists.txt delete mode 100644 security/snort3/files/freebsd103_patch-src_memory_memory__allocator.h delete mode 100644 www/chromium/files/extra-patch-libc++-new delete mode 100644 www/chromium/files/extra-patch-libc++-old create mode 100644 www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 63a2c34f97a4..e46bd0b3d03c 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1772,18 +1772,10 @@ INSTALL_TARGET:= ${INSTALL_TARGET:S/^install-strip$/install/g} # XXX PIE support to be added here MAKE_ENV+= NO_PIE=yes -# We prefer to pass MK_*=no but it was only supported after a certain -# revision. Passing WITHOUT_* may conflict with a make.conf or src.conf's -# WITH_* value. Note that ports *do* pull in src.conf. -.if ${OSVERSION} >= 1003503 # We will control debug files. Don't let builds that use /usr/share/mk # split out debug symbols since the plist won't know to expect it. MAKE_ENV+= MK_DEBUG_FILES=no MAKE_ENV+= MK_KERNEL_SYMBOLS=no -.else -MAKE_ENV+= WITHOUT_DEBUG_FILES=yes -MAKE_ENV+= WITHOUT_KERNEL_SYMBOLS=yes -.endif CONFIGURE_SHELL?= ${SH} MAKE_SHELL?= ${SH} diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index 9ed15c47aa45..af4cf242de2b 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -83,11 +83,6 @@ DOXYGEN_RUN_DEPENDS= ${LOCALBASE}/www/MathJax/MathJax.js:www/mathjax .include -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003506 -# undefined reference to `__cxa_thread_atexit' - see PR 192320 -BROKEN= undefined reference to __cxa_thread_atexit -.endif - .if ${ARCH} == "i386" BITS= 32 .else diff --git a/cad/openscad-devel/Makefile b/cad/openscad-devel/Makefile index 78003d8ee270..64378d0898ce 100644 --- a/cad/openscad-devel/Makefile +++ b/cad/openscad-devel/Makefile @@ -47,10 +47,4 @@ post-patch: @${REINPLACE_CMD} -e 's,share/man,man,' \ ${WRKSRC}/openscad.pro -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003506 -BROKEN= no __cxa_thread_atexit() support in FreeBSD libc < 10.4 -.endif - .include diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 302987508c08..dced13e97d99 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -275,11 +275,6 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \ .include -.if ${OPSYS} == FreeBSD && ${OSREL} == 10.3 -CFLAGS+= -D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1 -BROKEN= Missing __cxa_thread_atexit -.endif - .if defined(WITH_DEBUG) CMAKE_BUILD_TYPE= RelWithDebInfo STRIP= diff --git a/devel/llvm60/Makefile b/devel/llvm60/Makefile index a1caa23d4638..d0127245dc34 100644 --- a/devel/llvm60/Makefile +++ b/devel/llvm60/Makefile @@ -273,10 +273,6 @@ MAN1SRCS+= bugpoint.1 dsymutil.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \ .include -.if ${OPSYS} == FreeBSD && ${OSREL} == 10.3 -CFLAGS+= -D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1 -.endif - .if ${ARCH} == "amd64" _COMPILER_RT_LIBS= \ libclang_rt.asan-preinit-x86_64.a \ diff --git a/devel/opendht/Makefile b/devel/opendht/Makefile index 48aec0bc325c..435d28cc14bc 100644 --- a/devel/opendht/Makefile +++ b/devel/opendht/Makefile @@ -40,10 +40,4 @@ PROXY_SERVER_LIB_DEPENDS= libjsoncpp.so:devel/jsoncpp \ PORTDOCS= * -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003506 -BROKEN= no __cxa_thread_atexit() support in FreeBSD libc < 10.4 -.endif - .include diff --git a/dns/powerdns-recursor/Makefile b/dns/powerdns-recursor/Makefile index 5191fa1c8da3..a40ad0cdd976 100644 --- a/dns/powerdns-recursor/Makefile +++ b/dns/powerdns-recursor/Makefile @@ -54,10 +54,4 @@ SETUID_VARS= USERS=pdns_recursor GROUPS=pdns SUB_FILES= pkg-message -.include - -.if ${OSVERSION} < 1003506 -IGNORE= no _cxa_thread_atexit() support in FreeBSD libc < 10.4 -.endif - -.include +.include diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 588bf1ac6f6e..4d75dc12f930 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -279,16 +279,6 @@ MAKE_ENV+= verbose=1 .include -.if ${OPSYS} == FreeBSD -.if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200003) || \ - (${OSVERSION} >= 1100500 && ${OSVERSION} < 1100501) || \ - (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100122) || \ - ${OSVERSION} < 1003506 -EXTRA_PATCHES= ${PATCHDIR}/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx \ - ${PATCHDIR}/extrapatch-vcl_unx_gtk_gtkinst.cxx -.endif -.endif # FreeBSD - .if ${COMPILER_TYPE} == "clang" CXXFLAGS_WARN= -Woverloaded-virtual -Wno-unused-parameter .if ${COMPILER_VERSION} >= 36 diff --git a/editors/libreoffice/files/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx b/editors/libreoffice/files/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx deleted file mode 100644 index d78a411da83a..000000000000 --- a/editors/libreoffice/files/extrapatch-vcl_inc_unx_gtk_gtkinst.hxx +++ /dev/null @@ -1,11 +0,0 @@ ---- vcl/inc/unx/gtk/gtkinst.hxx.orig 2018-02-22 17:45:41 UTC -+++ vcl/inc/unx/gtk/gtkinst.hxx -@@ -46,7 +46,7 @@ class GtkPrintWrapper; - class GenPspGraphics; - class GtkYieldMutex : public SalYieldMutex - { -- thread_local static std::stack yieldCounts; -+ std::list aYieldStack; - - public: - GtkYieldMutex() {} diff --git a/editors/libreoffice/files/extrapatch-vcl_unx_gtk_gtkinst.cxx b/editors/libreoffice/files/extrapatch-vcl_unx_gtk_gtkinst.cxx deleted file mode 100644 index 1f7167aa9df7..000000000000 --- a/editors/libreoffice/files/extrapatch-vcl_unx_gtk_gtkinst.cxx +++ /dev/null @@ -1,42 +0,0 @@ ---- vcl/unx/gtk/gtkinst.cxx.orig 2018-02-22 17:45:41 UTC -+++ vcl/unx/gtk/gtkinst.cxx -@@ -302,28 +302,29 @@ SalPrinter* GtkInstance::CreatePrinter( - * for each pair, so we can accurately restore - * it later. - */ --thread_local std::stack GtkYieldMutex::yieldCounts; - - void GtkYieldMutex::ThreadsEnter() - { - acquire(); -- if (!yieldCounts.empty()) { -- auto n = yieldCounts.top(); -- yieldCounts.pop(); -- for (; n != 0; --n) { -+ if( !aYieldStack.empty() ) -+ { /* Previously called ThreadsLeave() */ -+ sal_uLong nCount = aYieldStack.front(); -+ aYieldStack.pop_front(); -+ while( nCount-- > 1 ) - acquire(); -- } - } - } - - void GtkYieldMutex::ThreadsLeave() - { -+ aYieldStack.push_front( m_nCount ); - assert(m_nCount != 0); -- auto n = m_nCount - 1; -- yieldCounts.push(n); -- for (sal_uIntPtr i = 0; i != n + 1; ++i) { -+ SAL_WARN_IF( -+ m_nThreadId && m_nThreadId != osl::Thread::getCurrentIdentifier(), -+ "vcl.gtk", "other thread " << m_nThreadId << " owns the mutex"); -+ while( m_nCount > 1 ) - release(); -- } -+ release(); - } - - SalVirtualDevice* GtkInstance::CreateVirtualDevice( SalGraphics *pG, diff --git a/emulators/rpcs3/Makefile b/emulators/rpcs3/Makefile index a2cc64fb9653..a90e0fc4996d 100644 --- a/emulators/rpcs3/Makefile +++ b/emulators/rpcs3/Makefile @@ -38,8 +38,6 @@ USES= cmake compiler:c++14-lang iconv:wchar_t localbase:ldflags \ USE_GL= gl glew USE_QT5= qmake_build buildtools_build core dbus gui network widgets qml USE_XORG= x11 -EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL}} -EXTRA_PATCHES_FreeBSD_10.3= ${PATCHDIR}/extra-patch-no-thread_local CMAKE_ON= CMAKE_SKIP_RPATH USE_SYSTEM_FFMPEG USE_SYSTEM_LIBPNG CMAKE_OFF= USE_NATIVE_INSTRUCTIONS CXXFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528 diff --git a/emulators/rpcs3/files/extra-patch-no-thread_local b/emulators/rpcs3/files/extra-patch-no-thread_local deleted file mode 100644 index 0641b38a33d2..000000000000 --- a/emulators/rpcs3/files/extra-patch-no-thread_local +++ /dev/null @@ -1,156 +0,0 @@ -FreeBSD 10.3 lacks __cxa_thread_atexit, so revert -https://github.com/RPCS3/rpcs3/commit/c1450ad61627 - ---- rpcs3/Emu/VFS.cpp.orig 2018-03-12 20:29:35 UTC -+++ rpcs3/Emu/VFS.cpp -@@ -18,7 +18,7 @@ bool vfs::mount(const std::string& dev_name, const std - { - const auto table = fxm::get_always(); - -- safe_writer_lock lock(table->mutex); -+ writer_lock lock(table->mutex); - - return table->mounted.emplace(dev_name, path).second; - } -@@ -27,7 +27,7 @@ std::string vfs::get(const std::string& vpath, const s - { - const auto table = fxm::get_always(); - -- safe_reader_lock lock(table->mutex); -+ reader_lock lock(table->mutex); - - std::smatch match; - ---- Utilities/Log.cpp.orig 2017-09-19 12:07:07 UTC -+++ Utilities/Log.cpp -@@ -255,7 +255,7 @@ void logs::message::broadcast(const char* fmt, const f - } - - // Get text -- thread_local std::string text; text.clear(); -+ std::string text; - fmt::raw_append(text, fmt, sup, args); - std::string prefix = g_tls_log_prefix(); - -@@ -275,7 +275,7 @@ void logs::message::broadcast(const char* fmt, const f - } - - // Store message additionally -- get_logger()->messages.emplace_back(stored_message{*this, stamp, std::move(prefix), text}); -+ get_logger()->messages.emplace_back(stored_message{*this, stamp, std::move(prefix), std::move(text)}); - } - } - -@@ -405,7 +405,7 @@ logs::file_listener::file_listener(const std::string& - - void logs::file_listener::log(u64 stamp, const logs::message& msg, const std::string& prefix, const std::string& _text) - { -- thread_local std::string text; -+ std::string text; text.reserve(prefix.size() + _text.size() + 200); - - // Used character: U+00B7 (Middle Dot) - switch (msg.sev) ---- Utilities/mutex.cpp.orig 2017-10-08 20:37:54 UTC -+++ Utilities/mutex.cpp -@@ -5,8 +5,10 @@ - #include - #include - -+#if 0 - // TLS variable for tracking owned mutexes - thread_local std::vector g_tls_locks; -+#endif - - void shared_mutex::imp_lock_shared(s64 _old) - { -@@ -258,6 +260,7 @@ bool shared_mutex::try_lock_degrade() - return m_value.compare_and_swap_test(0, c_one - c_min); - } - -+#if 0 - safe_reader_lock::safe_reader_lock(shared_mutex& mutex) - : m_mutex(mutex) - , m_is_owned(false) -@@ -332,3 +335,4 @@ safe_writer_lock::~safe_writer_lock() - - // TODO: order locks - } -+#endif ---- Utilities/mutex.h.orig 2017-10-08 20:37:54 UTC -+++ Utilities/mutex.h -@@ -177,6 +177,7 @@ class writer_lock final (public) - } - }; - -+#if 0 - // Safe reader lock. Can be recursive above other safe locks (reader or writer). - class safe_reader_lock final - { -@@ -229,3 +230,4 @@ class safe_writer_lock final (public) - - ~safe_writer_lock(); - }; -+#endif ---- Utilities/types.h.orig 2017-08-24 18:20:18 UTC -+++ Utilities/types.h -@@ -32,6 +32,7 @@ - #define SAFE_BUFFERS - #define NEVER_INLINE __attribute__((noinline)) - #define FORCE_INLINE __attribute__((always_inline)) inline -+#define thread_local __thread - #endif - - #define CHECK_SIZE(type, size) static_assert(sizeof(type) == size, "Invalid " #type " type size") ---- rpcs3/Emu/System.cpp.orig 2017-08-24 18:20:18 UTC -+++ rpcs3/Emu/System.cpp -@@ -797,20 +797,26 @@ void Emulator::Stop() - - s32 error_code::error_report(const fmt_type_info* sup, u64 arg, const fmt_type_info* sup2, u64 arg2) - { -- static thread_local std::unordered_map g_tls_error_stats; -- static thread_local std::string g_tls_error_str; -+ static thread_local std::unordered_map* g_tls_error_stats{}; -+ static thread_local std::string* g_tls_error_str{}; - -- if (g_tls_error_stats.empty()) -+ if (!g_tls_error_stats) - { -+ g_tls_error_stats = new std::unordered_map; -+ g_tls_error_str = new std::string; -+ - thread_ctrl::atexit([] - { -- for (auto&& pair : g_tls_error_stats) -+ for (auto&& pair : *g_tls_error_stats) - { - if (pair.second > 3) - { - LOG_ERROR(GENERAL, "Stat: %s [x%u]", pair.first, pair.second); - } - } -+ -+ delete g_tls_error_stats; -+ delete g_tls_error_str; - }); - } - -@@ -840,15 +846,15 @@ s32 error_code::error_report(const fmt_type_info* sup, - } - - // Format log message (use preallocated buffer) -- g_tls_error_str.clear(); -- fmt::append(g_tls_error_str, "'%s' failed with 0x%08x%s%s%s%s", func, arg, sup ? " : " : "", std::make_pair(sup, arg), sup2 ? ", " : "", std::make_pair(sup2, arg2)); -+ g_tls_error_str->clear(); -+ fmt::append(*g_tls_error_str, "'%s' failed with 0x%08x%s%s%s%s", func, arg, sup ? " : " : "", std::make_pair(sup, arg), sup2 ? ", " : "", std::make_pair(sup2, arg2)); - - // Update stats and check log threshold -- const auto stat = ++g_tls_error_stats[g_tls_error_str]; -+ const auto stat = ++(*g_tls_error_stats)[*g_tls_error_str]; - - if (stat <= 3) - { -- channel->format(level, "%s [%u]", g_tls_error_str, stat); -+ channel->format(level, "%s [%u]", *g_tls_error_str, stat); - } - - return static_cast(arg); diff --git a/games/gzdoom/Makefile b/games/gzdoom/Makefile index 55522c4e0c2d..19292f507f0d 100644 --- a/games/gzdoom/Makefile +++ b/games/gzdoom/Makefile @@ -40,12 +40,6 @@ PLIST_FILES= bin/${PORTNAME} \ ${DATADIR}/${PORTNAME}.pk3 \ share/pixmaps/${PORTNAME}.xpm -.include - -.if ${OPSYS} == "FreeBSD" && ${OSVERSION} < 1004000 -BROKEN= Fails to link due to lack of thread_local -.endif - .include "${.CURDIR}/../doom-data/Makefile.include" do-install: @@ -54,4 +48,4 @@ do-install: ${INSTALL_DATA} ${CONFIGURE_WRKSRC}/${PORTNAME}.pk3 ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xpm ${STAGEDIR}${PREFIX}/share/pixmaps -.include +.include diff --git a/graphics/sekrit-twc-zimg/Makefile b/graphics/sekrit-twc-zimg/Makefile index f7362634e2db..5d2013750f90 100644 --- a/graphics/sekrit-twc-zimg/Makefile +++ b/graphics/sekrit-twc-zimg/Makefile @@ -19,8 +19,6 @@ CONFLICTS_INSTALL= zimg-[0-9]* # include/zimg.h USES= autoreconf compiler:c++11-lib gmake libtool pathfix EXTRACT_AFTER_ARGS= --exclude test/extra -EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL}} -EXTRA_PATCHES_FreeBSD_10.3= ${PATCHDIR}/extra-patch-src_zimg_api_zimg.cpp GNU_CONFIGURE= yes CPPFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 diff --git a/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp b/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp deleted file mode 100644 index 6530da67207e..000000000000 --- a/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp +++ /dev/null @@ -1,62 +0,0 @@ -FreeBSD 10.3 lacks __cxa_thread_atexit, so revert -https://github.com/sekrit-twc/zimg/commit/7e47d8d2a892 - ---- src/zimg/api/zimg.cpp.orig 2017-01-21 18:59:03 UTC -+++ src/zimg/api/zimg.cpp -@@ -1,6 +1,5 @@ - #include - #include --#include - #include - #include - #include -@@ -31,7 +30,7 @@ constexpr unsigned API_VERSION_2_2 = ZIM - #define STRIDE_ALIGNMENT_ASSERT(x) zassert_d(!(x) || (x) % zimg::ALIGNMENT == 0, "buffer stride not aligned") - - thread_local zimg_error_code_e g_last_error = ZIMG_ERROR_SUCCESS; --thread_local std::string g_last_error_msg; -+thread_local char g_last_error_msg[1024]; - - constexpr unsigned VERSION_INFO[] = { 2, 4, 0 }; - -@@ -43,19 +42,10 @@ T *assert_dynamic_type(U *ptr) noexcept - return static_cast(ptr); - } - --void clear_last_error_message() noexcept --{ -- g_last_error_msg.clear(); -- g_last_error_msg.shrink_to_fit(); --} -- - void record_exception_message(const zimg::error::Exception &e) noexcept - { -- try { -- g_last_error_msg = e.what(); -- } catch (const std::bad_alloc &) { -- clear_last_error_message(); -- } -+ strncpy(g_last_error_msg, e.what(), sizeof(g_last_error_msg) - 1); -+ g_last_error_msg[sizeof(g_last_error_msg) - 1] = '\0'; - } - - zimg_error_code_e handle_exception(std::exception_ptr eptr) noexcept -@@ -438,7 +428,7 @@ unsigned zimg_get_api_version(unsigned * - zimg_error_code_e zimg_get_last_error(char *err_msg, size_t n) - { - if (err_msg && n) { -- std::strncpy(err_msg, g_last_error_msg.c_str(), n); -+ strncpy(err_msg, g_last_error_msg, n); - err_msg[n - 1] = '\0'; - } - -@@ -447,8 +437,8 @@ zimg_error_code_e zimg_get_last_error(ch - - void zimg_clear_last_error(void) - { -+ g_last_error_msg[0] = '\0'; - g_last_error = ZIMG_ERROR_SUCCESS; -- clear_last_error_message(); - } - - unsigned zimg_select_buffer_mask(unsigned count) diff --git a/math/SoPlex/Makefile b/math/SoPlex/Makefile index b392b963c09c..b752ce2c5494 100644 --- a/math/SoPlex/Makefile +++ b/math/SoPlex/Makefile @@ -17,15 +17,8 @@ LICENSE_PERMS= dist-mirror pkg-mirror auto-accept LIB_DEPENDS= libgmp.so:math/gmp -USES= cmake:outsource,noninja tar:tgz +USES= cmake:outsource tar:tgz USE_LDCONFIG= yes PLIST_SUB= SHL4=${DISTVERSION}.0 SHL2=${DISTVERSION:R} -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 -CMAKE_ARGS= -DFREEBSD_NO_CXX_THREAD_LOCAL_BUG224581:BOOL=ON # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224581 -# This also necessitates noninja above for some reason -.endif - -.include +.include diff --git a/math/SoPlex/files/patch-CMakeLists.txt b/math/SoPlex/files/patch-CMakeLists.txt deleted file mode 100644 index 1d739c91b584..000000000000 --- a/math/SoPlex/files/patch-CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- CMakeLists.txt.orig 2017-12-26 18:14:03 UTC -+++ CMakeLists.txt -@@ -85,7 +85,7 @@ if(LEGACY) - add_definitions(-DTHREADLOCAL=) - endif() - --if(NOT "${CMAKE_CXX_COMPILE_FEATURES}" MATCHES "cxx_thread_local") -+if(NOT "${CMAKE_CXX_COMPILE_FEATURES}" MATCHES "cxx_thread_local" OR FREEBSD_NO_CXX_THREAD_LOCAL_BUG224581) - add_definitions(-DTHREADLOCAL=) - endif() - diff --git a/multimedia/cx88/Makefile b/multimedia/cx88/Makefile index 8c937f3cb995..82e6ce12b885 100644 --- a/multimedia/cx88/Makefile +++ b/multimedia/cx88/Makefile @@ -45,10 +45,7 @@ MAKE_ARGS+= -D WITH_HAL .endif .endif -.if (${OSVERSION} >= 1003500) MAKE_ARGS+= -D CX88_USE_IIC -.endif - MAKE_ARGS+= DEFAULT_XML_CONFIG="${EXAMPLESDIR}/cx88.xml.sample" .include diff --git a/net-p2p/qbittorrent/Makefile b/net-p2p/qbittorrent/Makefile index 055834c5447f..390b951a12f0 100644 --- a/net-p2p/qbittorrent/Makefile +++ b/net-p2p/qbittorrent/Makefile @@ -49,11 +49,6 @@ CONFIGURE_ARGS+= --disable-gui CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" -post-patch: - @${REINPLACE_CMD} \ - -e 's/#ifdef Q_OS_MAC/#if defined(Q_OS_MAC) || (defined(__FreeBSD__) \&\& __FreeBSD_version < 1003506)/' \ - ${WRKSRC}/src/base/utils/string.cpp - post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbittorrent${SUFFIX} ${INSTALL_MAN} ${WRKSRC}/doc/qbittorrent${SUFFIX}.1 \ diff --git a/security/snort3/Makefile b/security/snort3/Makefile index 3ae531f5b2be..82532764f1c2 100644 --- a/security/snort3/Makefile +++ b/security/snort3/Makefile @@ -59,12 +59,6 @@ TSC_CMAKE_BOOL= ENABLE_TSC_CLOCK # FLATBUFFERS_LIB_DEPENDS= libflatbuffers.so:devel/flatbuffers HYPERSCAN_LIB_DEPENDS= libhs.so:devel/hyperscan -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1004000 -EXTRA_PATCHES= ${PATCHDIR}/freebsd103_patch-src_memory_memory__allocator.h -.endif - CONFLICTS= snort-2* -.include +.include diff --git a/security/snort3/files/freebsd103_patch-src_memory_memory__allocator.h b/security/snort3/files/freebsd103_patch-src_memory_memory__allocator.h deleted file mode 100644 index 82aa51523552..000000000000 --- a/security/snort3/files/freebsd103_patch-src_memory_memory__allocator.h +++ /dev/null @@ -1,14 +0,0 @@ ---- src/memory/memory_allocator.h.orig 2018-02-01 22:21:37 UTC -+++ src/memory/memory_allocator.h -@@ -34,4 +34,11 @@ struct MemoryAllocator - - } // namespace memory - -+// Fix for FreeBSD 10.3's broken toolchain -+typedef struct { -+ long long __max_align1 __aligned(_Alignof(long long)); -+ long double __max_align2 __aligned(_Alignof(long double)); -+} max_align_t; -+ -+ - #endif diff --git a/sysutils/freefilesync/Makefile b/sysutils/freefilesync/Makefile index c6a7f8cd4ffb..f69a52b6f405 100644 --- a/sysutils/freefilesync/Makefile +++ b/sysutils/freefilesync/Makefile @@ -39,10 +39,4 @@ post-patch: @${REINPLACE_CMD} -e 's|WEXITSTATUS||' ${WRKDIR}/zen/shell_execute.h @${REINPLACE_CMD} -e 's| noexcept;|;|' ${WRKDIR}/zen/scope_guard.h -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003506 -BROKEN= no __cxa_thread_atexit() support in FreeBSD libc < 10.4 -.endif - .include diff --git a/www/chromium/Makefile b/www/chromium/Makefile index ae758f40f4a0..bc1923a85ac9 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -211,14 +211,6 @@ TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ CPLUS_INCLUDE_PATH=${LOCALBASE}/include -# Work around base r261801 -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1004000 -GN_ARGS+= extra_cxxflags="-D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1" -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old -.else -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new -.endif - .if !defined(GN_ONLY) pre-everything:: @${ECHO_MSG} diff --git a/www/chromium/files/extra-patch-libc++-new b/www/chromium/files/extra-patch-libc++-new deleted file mode 100644 index 54588e886c3d..000000000000 --- a/www/chromium/files/extra-patch-libc++-new +++ /dev/null @@ -1,85 +0,0 @@ ---- tools/gn/bootstrap/bootstrap.py.orig 2017-12-23 20:11:27.769312000 +0100 -+++ tools/gn/bootstrap/bootstrap.py 2017-12-23 20:28:42.756301000 +0100 -@@ -32,9 +32,10 @@ - - is_win = sys.platform.startswith('win') - is_linux = sys.platform.startswith('linux') -+is_bsd = platform.system().lower().endswith('bsd') - is_mac = sys.platform.startswith('darwin') - is_aix = sys.platform.startswith('aix') --is_posix = is_linux or is_mac or is_aix -+is_posix = is_linux or is_mac or is_aix or is_bsd - - def check_call(cmd, **kwargs): - logging.debug('Running: %s', ' '.join(cmd)) -@@ -576,7 +577,6 @@ - 'base/trace_event/trace_log_constants.cc', - 'base/trace_event/tracing_agent.cc', - 'base/unguessable_token.cc', -- 'base/value_iterators.cc', - 'base/values.cc', - 'base/vlog.cc', - ]) -@@ -633,6 +633,44 @@ - 'cflags': cflags + ['-DHAVE_CONFIG_H'], - } - -+ if is_bsd: -+ libs.extend(['-lexecinfo', '-lkvm']) -+ ldflags.extend(['-pthread']) -+ include_dirs += ["/usr/local/include"] -+ -+ static_libraries['xdg_user_dirs'] = { -+ 'sources': [ -+ 'base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', -+ ], -+ 'tool': 'cxx', -+ } -+ static_libraries['base']['sources'].extend([ -+ 'base/memory/shared_memory_handle_posix.cc', -+ 'base/memory/shared_memory_posix.cc', -+ 'base/nix/xdg_util.cc', -+ 'base/process/memory_stubs.cc', -+ 'base/process/process_info_linux.cc', -+ 'base/process/internal_linux.cc', -+ 'base/process/process_handle_freebsd.cc', -+ 'base/process/process_metrics_freebsd.cc', -+ 'base/strings/sys_string_conversions_posix.cc', -+ 'base/sys_info_freebsd.cc', -+ 'base/threading/platform_thread_linux.cc', -+ 'base/synchronization/waitable_event_posix.cc', -+ 'base/time/time_exploded_posix.cc', -+ 'base/time/time_now_posix.cc', -+ 'base/value_iterators.cc', -+ ]) -+ static_libraries['libevent']['include_dirs'].extend([ -+ os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'freebsd') -+ ]) -+ static_libraries['libevent']['sources'].extend([ -+ 'base/third_party/libevent/kqueue.c', -+ ]) -+ -+ # Suppressing warnings -+ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) -+ - if is_linux or is_aix: - ldflags.extend(['-pthread']) - -@@ -671,17 +709,6 @@ - ]) - static_libraries['libevent']['sources'].extend([ - 'base/third_party/libevent/epoll.c', -- ]) -- else: -- libs.extend(['-lrt']) -- static_libraries['base']['sources'].extend([ -- 'base/process/internal_aix.cc' -- ]) -- static_libraries['libevent']['include_dirs'].extend([ -- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'aix') -- ]) -- static_libraries['libevent']['include_dirs'].extend([ -- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'compat') - ]) - - if is_mac: diff --git a/www/chromium/files/extra-patch-libc++-old b/www/chromium/files/extra-patch-libc++-old deleted file mode 100644 index 059a566e3be7..000000000000 --- a/www/chromium/files/extra-patch-libc++-old +++ /dev/null @@ -1,88 +0,0 @@ ---- tools/gn/bootstrap/bootstrap.py.orig 2017-12-23 20:11:27.769312000 +0100 -+++ tools/gn/bootstrap/bootstrap.py 2017-12-23 20:27:26.501215000 +0100 -@@ -32,9 +32,10 @@ - - is_win = sys.platform.startswith('win') - is_linux = sys.platform.startswith('linux') -+is_bsd = platform.system().lower().endswith('bsd') - is_mac = sys.platform.startswith('darwin') - is_aix = sys.platform.startswith('aix') --is_posix = is_linux or is_mac or is_aix -+is_posix = is_linux or is_mac or is_aix or is_bsd - - def check_call(cmd, **kwargs): - logging.debug('Running: %s', ' '.join(cmd)) -@@ -576,7 +577,6 @@ - 'base/trace_event/trace_log_constants.cc', - 'base/trace_event/tracing_agent.cc', - 'base/unguessable_token.cc', -- 'base/value_iterators.cc', - 'base/values.cc', - 'base/vlog.cc', - ]) -@@ -633,6 +633,47 @@ - 'cflags': cflags + ['-DHAVE_CONFIG_H'], - } - -+ if is_bsd: -+ libs.extend(['-lexecinfo', '-lkvm']) -+ ldflags.extend(['-pthread']) -+ include_dirs += ["/usr/local/include"] -+ -+ static_libraries['xdg_user_dirs'] = { -+ 'sources': [ -+ 'base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', -+ ], -+ 'tool': 'cxx', -+ } -+ static_libraries['base']['sources'].extend([ -+ 'base/memory/shared_memory_handle_posix.cc', -+ 'base/memory/shared_memory_posix.cc', -+ 'base/nix/xdg_util.cc', -+ 'base/process/memory_stubs.cc', -+ 'base/process/process_info_linux.cc', -+ 'base/process/internal_linux.cc', -+ 'base/process/process_handle_freebsd.cc', -+ 'base/process/process_metrics_freebsd.cc', -+ 'base/strings/sys_string_conversions_posix.cc', -+ 'base/sys_info_freebsd.cc', -+ 'base/threading/platform_thread_linux.cc', -+ 'base/synchronization/waitable_event_posix.cc', -+ 'base/time/time_exploded_posix.cc', -+ 'base/time/time_now_posix.cc', -+ 'base/value_iterators.cc', -+ ]) -+ static_libraries['libevent']['include_dirs'].extend([ -+ os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'freebsd') -+ ]) -+ static_libraries['libevent']['sources'].extend([ -+ 'base/third_party/libevent/kqueue.c', -+ ]) -+ -+ # Suppressing warnings -+ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) -+ -+ # Work around base r261801 -+ cflags_cc.extend(['-D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1']) -+ - if is_linux or is_aix: - ldflags.extend(['-pthread']) - -@@ -671,17 +712,6 @@ - ]) - static_libraries['libevent']['sources'].extend([ - 'base/third_party/libevent/epoll.c', -- ]) -- else: -- libs.extend(['-lrt']) -- static_libraries['base']['sources'].extend([ -- 'base/process/internal_aix.cc' -- ]) -- static_libraries['libevent']['include_dirs'].extend([ -- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'aix') -- ]) -- static_libraries['libevent']['include_dirs'].extend([ -- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'compat') - ]) - - if is_mac: diff --git a/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py b/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py new file mode 100644 index 000000000000..54588e886c3d --- /dev/null +++ b/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py @@ -0,0 +1,85 @@ +--- tools/gn/bootstrap/bootstrap.py.orig 2017-12-23 20:11:27.769312000 +0100 ++++ tools/gn/bootstrap/bootstrap.py 2017-12-23 20:28:42.756301000 +0100 +@@ -32,9 +32,10 @@ + + is_win = sys.platform.startswith('win') + is_linux = sys.platform.startswith('linux') ++is_bsd = platform.system().lower().endswith('bsd') + is_mac = sys.platform.startswith('darwin') + is_aix = sys.platform.startswith('aix') +-is_posix = is_linux or is_mac or is_aix ++is_posix = is_linux or is_mac or is_aix or is_bsd + + def check_call(cmd, **kwargs): + logging.debug('Running: %s', ' '.join(cmd)) +@@ -576,7 +577,6 @@ + 'base/trace_event/trace_log_constants.cc', + 'base/trace_event/tracing_agent.cc', + 'base/unguessable_token.cc', +- 'base/value_iterators.cc', + 'base/values.cc', + 'base/vlog.cc', + ]) +@@ -633,6 +633,44 @@ + 'cflags': cflags + ['-DHAVE_CONFIG_H'], + } + ++ if is_bsd: ++ libs.extend(['-lexecinfo', '-lkvm']) ++ ldflags.extend(['-pthread']) ++ include_dirs += ["/usr/local/include"] ++ ++ static_libraries['xdg_user_dirs'] = { ++ 'sources': [ ++ 'base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', ++ ], ++ 'tool': 'cxx', ++ } ++ static_libraries['base']['sources'].extend([ ++ 'base/memory/shared_memory_handle_posix.cc', ++ 'base/memory/shared_memory_posix.cc', ++ 'base/nix/xdg_util.cc', ++ 'base/process/memory_stubs.cc', ++ 'base/process/process_info_linux.cc', ++ 'base/process/internal_linux.cc', ++ 'base/process/process_handle_freebsd.cc', ++ 'base/process/process_metrics_freebsd.cc', ++ 'base/strings/sys_string_conversions_posix.cc', ++ 'base/sys_info_freebsd.cc', ++ 'base/threading/platform_thread_linux.cc', ++ 'base/synchronization/waitable_event_posix.cc', ++ 'base/time/time_exploded_posix.cc', ++ 'base/time/time_now_posix.cc', ++ 'base/value_iterators.cc', ++ ]) ++ static_libraries['libevent']['include_dirs'].extend([ ++ os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'freebsd') ++ ]) ++ static_libraries['libevent']['sources'].extend([ ++ 'base/third_party/libevent/kqueue.c', ++ ]) ++ ++ # Suppressing warnings ++ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) ++ + if is_linux or is_aix: + ldflags.extend(['-pthread']) + +@@ -671,17 +709,6 @@ + ]) + static_libraries['libevent']['sources'].extend([ + 'base/third_party/libevent/epoll.c', +- ]) +- else: +- libs.extend(['-lrt']) +- static_libraries['base']['sources'].extend([ +- 'base/process/internal_aix.cc' +- ]) +- static_libraries['libevent']['include_dirs'].extend([ +- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'aix') +- ]) +- static_libraries['libevent']['include_dirs'].extend([ +- os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'compat') + ]) + + if is_mac: diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile index 1273896d8145..3aba40dc7bae 100644 --- a/www/nghttp2/Makefile +++ b/www/nghttp2/Makefile @@ -59,8 +59,6 @@ HPACK_BUILD_DEPENDS= jansson>=2.5:devel/jansson HPACK_CONFIGURE_ENABLE= hpack-tools HPACK_LIB_DEPENDS= libjansson.so:devel/jansson -.include - post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS = / s| lib||' ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's|$$[({]top_builddir[})]/lib/libnghttp2.la|-lnghttp2|' ${WRKSRC}/*/Makefile.am @@ -71,11 +69,6 @@ post-configure: @${MKDIR} ${WRKSRC}/lib/.libs/ @${CP} ${LOCALBASE}/lib/libnghttp2.so* ${WRKSRC}/lib/.libs/ @cd ${WRKSRC}/lib/.libs/ && ${AR} x ${LOCALBASE}/lib/libnghttp2.a -# Disable thread_local support for hosts without __cxa_thread_atexit() -# See PR/192320 for details -.if ${OPSYS} == FreeBSD && ((${OSVERSION} < 1003506) || (${OSVERSION} == 1100500)) - @${REINPLACE_CMD} -e '/HAVE_THREAD_LOCAL/d' ${WRKSRC}/config.h -.endif post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx/ -- cgit