svn commit: r520723 - head/devel/spdlog/files

Piotr Kubaj pkubaj at FreeBSD.org
Mon Dec 23 14:09:48 UTC 2019


Author: pkubaj
Date: Mon Dec 23 14:09:47 2019
New Revision: 520723
URL: https://svnweb.freebsd.org/changeset/ports/520723

Log:
  devel/spdlog: fix build on GCC architectures
  
  assert() is not declared by default:
  In file included from /wrkdirs/usr/ports/devel/spdlog/work/spdlog-1.4.2/src/async.cpp:11:
  /wrkdirs/usr/ports/devel/spdlog/work/spdlog-1.4.2/include/spdlog/details/thread_pool-inl.h: In member function 'bool spdlog::details::thread_pool::process_next_msg_()':
  /wrkdirs/usr/ports/devel/spdlog/work/spdlog-1.4.2/include/spdlog/details/thread_pool-inl.h:119:9: error: 'assert' was not declared in this scope
    119 |         assert(false && "Unexpected async_msg_type");
        |         ^~~~~~
  
  PR:		242825
  Approved by:	vanilla (maintainer)

Added:
  head/devel/spdlog/files/
  head/devel/spdlog/files/patch-include_spdlog_details_pattern__formatter-inl.h   (contents, props changed)
  head/devel/spdlog/files/patch-include_spdlog_details_thread__pool-inl.h   (contents, props changed)

Added: head/devel/spdlog/files/patch-include_spdlog_details_pattern__formatter-inl.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/spdlog/files/patch-include_spdlog_details_pattern__formatter-inl.h	Mon Dec 23 14:09:47 2019	(r520723)
@@ -0,0 +1,10 @@
+--- include/spdlog/details/pattern_formatter-inl.h.orig	2019-12-23 04:57:44 UTC
++++ include/spdlog/details/pattern_formatter-inl.h
+@@ -14,6 +14,7 @@
+ #include "spdlog/formatter.h"
+ 
+ #include <array>
++#include <cassert>
+ #include <chrono>
+ #include <ctime>
+ #include <cctype>

Added: head/devel/spdlog/files/patch-include_spdlog_details_thread__pool-inl.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/spdlog/files/patch-include_spdlog_details_thread__pool-inl.h	Mon Dec 23 14:09:47 2019	(r520723)
@@ -0,0 +1,11 @@
+--- include/spdlog/details/thread_pool-inl.h.orig	2019-12-23 05:00:13 UTC
++++ include/spdlog/details/thread_pool-inl.h
+@@ -3,6 +3,8 @@
+ 
+ #pragma once
+ 
++#include <cassert>
++
+ #ifndef SPDLOG_HEADER_ONLY
+ #include "spdlog/details/thread_pool.h"
+ #endif


More information about the svn-ports-all mailing list