File: Specify-default-theme-location.patch

package info (click to toggle)
llama.cpp 6641%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,640 kB
  • sloc: cpp: 218,020; ansic: 117,624; python: 29,020; lisp: 9,094; sh: 5,776; objc: 1,045; javascript: 828; xml: 259; makefile: 219
file content (26 lines) | stat: -rw-r--r-- 1,317 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(-)

Index: llama.cpp/common/common.h
===================================================================
--- llama.cpp.orig/common/common.h
+++ llama.cpp/common/common.h
@@ -427,7 +427,8 @@ struct common_params {
     int32_t n_swa_checkpoints = 3;            // max number of SWA checkpoints per slot
 
     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 = false;                                                                                 // NOLINT