From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jdSsS4PcJz2xkP for ; Mon, 30 Nov 2026 15:40:44 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jdSsN5nyzz2xhW for ; Mon, 30 Nov 2026 15:40:40 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4jdSsN0JGYz6qj; Mon, 30 Nov 2026 15:40:39 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796053240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ys8yOUiJ+KCi4zbE6440cM5rAHqOP8rhYEXzKp30iys=; b=iMqw/SE877RTgLNukZNx79jjqQbXW5MXeLcv+lWmJF023F48TaGUsrAeXDAlhxJY8cmAkJ +/ZmzjtaR/xAnRCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796053240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ys8yOUiJ+KCi4zbE6440cM5rAHqOP8rhYEXzKp30iys=; b=U4jxWp1IBlq6VU1upr9u8lm5RR12oEhR898yX8HBjgKZJ+FZX6VrJOkThZEaYM7B6ZCMN1 CLruqS/O+msTaGZEqsUf72VmoLgQbKZZoTk5WljcZJi+wx0FVL/QOdj4NkPxZv6CvpQ+u4 kpTwlreNQrseAtyvIEPyC1BP8SjoWi1eZanfCErfKI1yKST+bKRGa9SHI1eBLBFAfgwLHM GEaHEe2z22lDIYasSHljcplmt2m8Q4HO9Tc3j7OlXb0qo7enXW+gBLtxoTwbESpQNwni5g U8t/weyAwf0u2+N5EruouMM0+XKyqfeq4JPMmBZTn665dtN8CydL/QpdMZZ01A== From: Stefan Schantl To: development@lists.ipfire.org Cc: Stefan Schantl Subject: [PATCH 02/13] spdlog: New package Date: Mon, 30 Nov 2026 16:18:15 +0100 Message-ID: <20261130154031.269150-3-stefan.schantl@ipfire.org> In-Reply-To: <20261130154031.269150-1-stefan.schantl@ipfire.org> References: <20261130154031.269150-1-stefan.schantl@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schantl --- config/rootfiles/packages/spdlog | 104 +++++++++++++++++++++++++++++++ lfs/spdlog | 98 +++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 203 insertions(+) create mode 100644 config/rootfiles/packages/spdlog create mode 100644 lfs/spdlog diff --git a/config/rootfiles/packages/spdlog b/config/rootfiles/packages/spdlog new file mode 100644 index 0000000000..f08e42dc18 --- /dev/null +++ b/config/rootfiles/packages/spdlog @@ -0,0 +1,104 @@ +#usr/include/spdlog +#usr/include/spdlog/async.h +#usr/include/spdlog/async_logger-inl.h +#usr/include/spdlog/async_logger.h +#usr/include/spdlog/cfg +#usr/include/spdlog/cfg/argv.h +#usr/include/spdlog/cfg/env.h +#usr/include/spdlog/cfg/helpers-inl.h +#usr/include/spdlog/cfg/helpers.h +#usr/include/spdlog/common-inl.h +#usr/include/spdlog/common.h +#usr/include/spdlog/details +#usr/include/spdlog/details/backtracer-inl.h +#usr/include/spdlog/details/backtracer.h +#usr/include/spdlog/details/circular_q.h +#usr/include/spdlog/details/console_globals.h +#usr/include/spdlog/details/file_helper-inl.h +#usr/include/spdlog/details/file_helper.h +#usr/include/spdlog/details/fmt_helper.h +#usr/include/spdlog/details/log_msg-inl.h +#usr/include/spdlog/details/log_msg.h +#usr/include/spdlog/details/log_msg_buffer-inl.h +#usr/include/spdlog/details/log_msg_buffer.h +#usr/include/spdlog/details/mpmc_blocking_q.h +#usr/include/spdlog/details/null_mutex.h +#usr/include/spdlog/details/os-inl.h +#usr/include/spdlog/details/os.h +#usr/include/spdlog/details/periodic_worker-inl.h +#usr/include/spdlog/details/periodic_worker.h +#usr/include/spdlog/details/registry-inl.h +#usr/include/spdlog/details/registry.h +#usr/include/spdlog/details/synchronous_factory.h +#usr/include/spdlog/details/tcp_client-windows.h +#usr/include/spdlog/details/tcp_client.h +#usr/include/spdlog/details/thread_pool-inl.h +#usr/include/spdlog/details/thread_pool.h +#usr/include/spdlog/details/udp_client-windows.h +#usr/include/spdlog/details/udp_client.h +#usr/include/spdlog/details/windows_include.h +#usr/include/spdlog/fmt +#usr/include/spdlog/fmt/bin_to_hex.h +#usr/include/spdlog/fmt/chrono.h +#usr/include/spdlog/fmt/compile.h +#usr/include/spdlog/fmt/fmt.h +#usr/include/spdlog/fmt/ostr.h +#usr/include/spdlog/fmt/ranges.h +#usr/include/spdlog/fmt/std.h +#usr/include/spdlog/fmt/xchar.h +#usr/include/spdlog/formatter.h +#usr/include/spdlog/fwd.h +#usr/include/spdlog/logger-inl.h +#usr/include/spdlog/logger.h +#usr/include/spdlog/mdc.h +#usr/include/spdlog/pattern_formatter-inl.h +#usr/include/spdlog/pattern_formatter.h +#usr/include/spdlog/sinks +#usr/include/spdlog/sinks/android_sink.h +#usr/include/spdlog/sinks/ansicolor_sink-inl.h +#usr/include/spdlog/sinks/ansicolor_sink.h +#usr/include/spdlog/sinks/base_sink-inl.h +#usr/include/spdlog/sinks/base_sink.h +#usr/include/spdlog/sinks/basic_file_sink-inl.h +#usr/include/spdlog/sinks/basic_file_sink.h +#usr/include/spdlog/sinks/callback_sink.h +#usr/include/spdlog/sinks/daily_file_sink.h +#usr/include/spdlog/sinks/dist_sink.h +#usr/include/spdlog/sinks/dup_filter_sink.h +#usr/include/spdlog/sinks/hourly_file_sink.h +#usr/include/spdlog/sinks/kafka_sink.h +#usr/include/spdlog/sinks/mongo_sink.h +#usr/include/spdlog/sinks/msvc_sink.h +#usr/include/spdlog/sinks/null_sink.h +#usr/include/spdlog/sinks/ostream_sink.h +#usr/include/spdlog/sinks/qt_sinks.h +#usr/include/spdlog/sinks/ringbuffer_sink.h +#usr/include/spdlog/sinks/rotating_file_sink-inl.h +#usr/include/spdlog/sinks/rotating_file_sink.h +#usr/include/spdlog/sinks/sink-inl.h +#usr/include/spdlog/sinks/sink.h +#usr/include/spdlog/sinks/stdout_color_sinks-inl.h +#usr/include/spdlog/sinks/stdout_color_sinks.h +#usr/include/spdlog/sinks/stdout_sinks-inl.h +#usr/include/spdlog/sinks/stdout_sinks.h +#usr/include/spdlog/sinks/syslog_sink.h +#usr/include/spdlog/sinks/systemd_sink.h +#usr/include/spdlog/sinks/tcp_sink.h +#usr/include/spdlog/sinks/udp_sink.h +#usr/include/spdlog/sinks/win_eventlog_sink.h +#usr/include/spdlog/sinks/wincolor_sink-inl.h +#usr/include/spdlog/sinks/wincolor_sink.h +#usr/include/spdlog/spdlog-inl.h +#usr/include/spdlog/spdlog.h +#usr/include/spdlog/stopwatch.h +#usr/include/spdlog/tweakme.h +#usr/include/spdlog/version.h +#usr/lib/cmake/spdlog +#usr/lib/cmake/spdlog/spdlogConfig.cmake +#usr/lib/cmake/spdlog/spdlogConfigTargets-release.cmake +#usr/lib/cmake/spdlog/spdlogConfigTargets.cmake +#usr/lib/cmake/spdlog/spdlogConfigVersion.cmake +#usr/lib/libspdlog.so +usr/lib/libspdlog.so.1.16 +usr/lib/libspdlog.so.1.16.0 +#usr/lib/pkgconfig/spdlog.pc diff --git a/lfs/spdlog b/lfs/spdlog new file mode 100644 index 0000000000..b63407e396 --- /dev/null +++ b/lfs/spdlog @@ -0,0 +1,98 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2025 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +SUMMARY = Fast C++ logging library + +VER = 1.16.0 + +THISAPP = spdlog-$(VER) +DL_FILE = spdlog-$(VER).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = spdlog +PAK_VER = 1 + +DEPS = fmt + +SERVICES = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 13585387e06135677f187d247fda09d350778becdf8017329d0b8cf0bb30bdd4e09985db48df46e0dcb34444a12a1b3134f565d02109c1b446018ab134e93d00 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +b2 : $(subst %,%_BLAKE2,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, b2sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_BLAKE2,$(objects)) : + @$(B2SUM) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + + cd $(DIR_APP) && mkdir -pv build + cd $(DIR_APP)/build && cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_EXAMPLE=OFF \ + -DSPDLOG_BUILD_TESTS=OFF \ + -DSPDLOG_BUILD_SHARED=ON \ + -DSPDLOG_FMT_EXTERNAL=ON + + cd $(DIR_APP)/build && make $(MAKETUNING) + cd $(DIR_APP)/build && make install + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 3a9efe3e3e..7b482dac62 100755 --- a/make.sh +++ b/make.sh @@ -2299,6 +2299,7 @@ build_system() { lfsmake2 perl-Net-LibIDN2 lfsmake2 python3-zabbix-utils lfsmake2 libupnp + lfsmake2 spdlog lfsmake2 linux lfsmake2 linux-initrd -- 2.47.3