From a4c4e4f3c410834c3e56f644841f5bcbb084225c Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Fri, 28 Jun 2024 11:15:16 +0200 Subject: [PATCH] clasp: Hide Event_t::id_s. This patch helps build clingo with non-local clasp while keeping the event system working as intended. --- clasp/util/misc_types.h | 2 ++ src/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clasp/util/misc_types.h b/clasp/util/misc_types.h index 3677873..09c2075 100644 --- a/clasp/util/misc_types.h +++ b/clasp/util/misc_types.h @@ -432,7 +432,9 @@ struct Event_t : Event { Event_t(Subsystem sys, Verbosity verb) : Event(sys, id_s, verb) {} static const uint32 id_s; }; +#if _BUILDING_CLASP_ template const uint32 Event_t::id_s = Event::nextId(); +#endif template const ToType* event_cast(const EvType& ev) { return ev.id == ToType::id_s ? static_cast(&ev) : 0; } diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8439d12..4f55990 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -123,6 +123,7 @@ source_group("${ide_header}\\mt" FILES ${header_mt}) endif() add_library(libclasp ${header} ${header_util} ${header_cli} ${header_mt} ${src}) +target_compile_definitions(libclasp PRIVATE _BUILDING_CLASP_) if (CLASP_BUILD_WITH_THREADS) target_link_libraries(libclasp PUBLIC Threads::Threads) target_compile_options(libclasp PRIVATE -- 2.45.1 cf5b3856d8c5e1566'>diff
AgeCommit message (Expand)Author
2022-12-18installer: final: Delete SQLite WAL and shm files upon completion....Previously, db.sqlite-{wal,shm} could be left behind after stopping guix-daemon. When resuming installation, SQLite could end up behaving as if transactions visible in the WAL file had been committed, in spite of having restored SAVED-DATABASE. Fixes <https://issues.guix.gnu.org/59784>. Reported by pelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de>. * gnu/installer/final.scm (install-system): Before restarting guix-daemon, delete db.sqlite-{wal,shm}. Ludovic Courtès
2022-12-18installer: final: Stop guix-daemon before accessing store database....As part of fixing <https://issues.guix.gnu.org/59784>, make sure /var/guix/db.sqlite is only copied while guix-daemon is stopped. * gnu/installer/final.scm (call-with-mnt-container): Add FIXME comment. (install-system): Copy DATABASE-FILE and SAVED-DATABASE only when 'guix-daemon' is stopped. Add logging lines. Ludovic Courtès
2022-10-20installer: Run the "guix system init" command in a PTY....Fixes: <https://issues.guix.gnu.org/55360> * gnu/installer/utils.scm (run-external-command-with-handler/tty): New procedure. (run-external-command-with-line-hooks, run-command): Add a TTY? argument. * gnu/installer/final.scm (install-system): Call run-command with TTY? argument set to #true. Mathieu Othacehe