FreeBSD Bugzilla – Attachment 206993 Details for
Bug 240148
devel/spdlog: unbundle fmtlib or update to 6.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
unbundle (like Gentoo), v2
bug240148.diff (text/plain), 3.85 KB, created by
Jan Beich
on 2019-08-29 02:18:50 UTC
(
hide
)
Description:
unbundle (like Gentoo), v2
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2019-08-29 02:18:50 UTC
Size:
3.85 KB
patch
obsolete
>From 501711f0a669608cd9834b514f4c0eb572e5a233 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Wed, 28 Aug 2019 15:59:29 +0000 >Subject: [PATCH] devel/spdlog: unbundle libfmt > >PR: 240148 >Approved by: vanilla (maintainer) >--- > devel/spdlog/Makefile | 16 ++++++++++++-- > devel/spdlog/distinfo | 2 ++ > devel/spdlog/files/patch-system-fmt | 34 +++++++++++++++++++++++++++++ > devel/spdlog/pkg-plist | 12 ---------- > 4 files changed, 50 insertions(+), 14 deletions(-) > create mode 100644 devel/spdlog/files/patch-system-fmt > >diff --git a/devel/spdlog/Makefile b/devel/spdlog/Makefile >index 256c2fd1cd8b..09145318d2b7 100644 >--- a/devel/spdlog/Makefile >+++ b/devel/spdlog/Makefile >@@ -3,20 +3,32 @@ > > PORTNAME= spdlog > PORTVERSION= 1.3.1 >-PORTREVISION= 1 > DISTVERSIONPREFIX= v >+PORTREVISION= 2 > CATEGORIES= devel > >+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ >+PATCHFILES+= b693d0cd915c.patch:-p1 >+ > MAINTAINER= vanilla@FreeBSD.org > COMMENT= Super fast C++ logging library > > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/LICENSE > >+LIB_DEPENDS= libfmt.so:devel/libfmt >+ > USES= cmake compiler:c++11-lib pathfix > > USE_GITHUB= yes > GH_ACCOUNT= gabime >-CMAKE_ARGS= -DSPDLOG_BUILD_BENCH=off >+CMAKE_ON= SPDLOG_FMT_EXTERNAL >+CMAKE_OFF= SPDLOG_BUILD_BENCH >+ >+post-extract: >+ ${RM} -r ${WRKSRC}/include/spdlog/fmt/bundled >+ >+post-patch: >+ ${RM} ${WRKSRC}/include/spdlog/fmt/*.h.orig > > .include <bsd.port.mk> >diff --git a/devel/spdlog/distinfo b/devel/spdlog/distinfo >index d81aacf64833..91e43faaf220 100644 >--- a/devel/spdlog/distinfo >+++ b/devel/spdlog/distinfo >@@ -1,3 +1,5 @@ > TIMESTAMP = 1548833457 > SHA256 (gabime-spdlog-v1.3.1_GH0.tar.gz) = 160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70 > SIZE (gabime-spdlog-v1.3.1_GH0.tar.gz) = 202634 >+SHA256 (b693d0cd915c.patch) = a0dedc0dd6defe12dcd7f66a85da7ed0be6c0dad302515e8d832d904979be22e >+SIZE (b693d0cd915c.patch) = 750 >diff --git a/devel/spdlog/files/patch-system-fmt b/devel/spdlog/files/patch-system-fmt >new file mode 100644 >index 000000000000..5c5b75fc93c3 >--- /dev/null >+++ b/devel/spdlog/files/patch-system-fmt >@@ -0,0 +1,34 @@ >+- Only allow system fmtlib usage >+- Preserve header-only API with system fmtlib >+ >+--- include/spdlog/fmt/fmt.h.orig 2019-01-18 10:13:07 UTC >++++ include/spdlog/fmt/fmt.h >+@@ -10,13 +10,13 @@ >+ // By default spdlog include its own copy. >+ // >+ >+-#if !defined(SPDLOG_FMT_EXTERNAL) >+ #ifndef FMT_HEADER_ONLY >+ #define FMT_HEADER_ONLY >+ #endif >+ #ifndef FMT_USE_WINDOWS_H >+ #define FMT_USE_WINDOWS_H 0 >+ #endif >++#if 0 //!defined(SPDLOG_FMT_EXTERNAL) >+ #include "bundled/core.h" >+ #include "bundled/format.h" >+ #else // external fmtlib >+--- include/spdlog/fmt/ostr.h.orig 2019-01-18 10:13:07 UTC >++++ include/spdlog/fmt/ostr.h >+@@ -7,10 +7,10 @@ >+ // >+ // include bundled or external copy of fmtlib's ostream support >+ // >+-#if !defined(SPDLOG_FMT_EXTERNAL) >+ #ifndef FMT_HEADER_ONLY >+ #define FMT_HEADER_ONLY >+ #endif >++#if 0 //!defined(SPDLOG_FMT_EXTERNAL) >+ #include "bundled/ostream.h" >+ #include "fmt.h" >+ #else >diff --git a/devel/spdlog/pkg-plist b/devel/spdlog/pkg-plist >index a80d0601fcf7..03ff7eb5cff4 100644 >--- a/devel/spdlog/pkg-plist >+++ b/devel/spdlog/pkg-plist >@@ -16,18 +16,6 @@ include/spdlog/details/periodic_worker.h > include/spdlog/details/registry.h > include/spdlog/details/thread_pool.h > include/spdlog/fmt/bin_to_hex.h >-include/spdlog/fmt/bundled/LICENSE.rst >-include/spdlog/fmt/bundled/chrono.h >-include/spdlog/fmt/bundled/core.h >-include/spdlog/fmt/bundled/color.h >-include/spdlog/fmt/bundled/format-inl.h >-include/spdlog/fmt/bundled/format.h >-include/spdlog/fmt/bundled/locale.h >-include/spdlog/fmt/bundled/ostream.h >-include/spdlog/fmt/bundled/posix.h >-include/spdlog/fmt/bundled/printf.h >-include/spdlog/fmt/bundled/ranges.h >-include/spdlog/fmt/bundled/time.h > include/spdlog/fmt/fmt.h > include/spdlog/fmt/ostr.h > include/spdlog/formatter.h
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240148
:
206981
| 206993