File: Specify-default-theme-location.patch

package info (click to toggle)
llama.cpp 7965%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 75,824 kB
  • sloc: cpp: 348,634; ansic: 49,792; python: 33,481; lisp: 10,836; sh: 6,289; objc: 1,392; 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 398ebb0..5939c43 100644
--- a/common/common.h
+++ b/common/common.h
@@ -526,7 +526,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