File: Specify-default-theme-location.patch

package info (click to toggle)
llama.cpp 7593%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 71,012 kB
  • sloc: cpp: 329,391; ansic: 48,249; python: 32,103; lisp: 10,053; sh: 6,070; objc: 1,349; javascript: 924; xml: 384; makefile: 233
file content (26 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Christian Kastner <ckk@kvr.at>
Date: Mon, 19 May 2025 12:58:39 +0200
Subject: Specify default theme location

This location will be a symlink managed by update-alternatives(1) to
point to one of the many themes available.

Forwarded: not-needed
---
 common/common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/common.h b/common/common.h
index f8bc686..356d27f 100644
--- a/common/common.h
+++ b/common/common.h
@@ -468,7 +468,8 @@ struct common_params {
     int32_t cache_ram_mib     = 8192;         // -1 = no limit, 0 - disable, 1 = 1 MiB, etc.
 
     std::string hostname      = "127.0.0.1";
-    std::string public_path   = "";                                                                         // NOLINT
+    // Debian-specific default theme location
+    std::string public_path   = "/usr/share/llama.cpp-tools/llama-server/active-theme";                     // NOLINT
     std::string api_prefix    = "";                                                                         // NOLINT
     std::string chat_template = "";                                                                         // NOLINT
     bool use_jinja = true;                                                                                  // NOLINT