GNU bug report logs - #72152
[PATCH] gnu: highlight: Use correct location for default configuration files.

Previous Next

Package: guix-patches;

Reported by: chris <chris <at> bumblehead.com>

Date: Wed, 17 Jul 2024 10:04:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 72152 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#72152; Package guix-patches. (Wed, 17 Jul 2024 10:04:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to chris <chris <at> bumblehead.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 17 Jul 2024 10:04:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: chris <chris <at> bumblehead.com>
To: guix-patches <at> gnu.org
Cc: chris <chris <at> bumblehead.com>
Subject: [PATCH] gnu: highlight: Use correct location for default
 configuration files.
Date: Wed, 17 Jul 2024 03:01:51 -0700
* gnu/packages/pretty-print.scm (highlight): Use correct location for default configuration files. Resolves missing filetypes.conf warnings.
[arguments]: Output default configurations to etc.

Change-Id: Ic9404cfb3490e5a212d46dfc483ee5eacbb906aa
---
 gnu/packages/pretty-print.scm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index 220761fc07..e754b31668 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -369,11 +369,9 @@ (define-public highlight
     (arguments
      (list
       #:tests? #f ;no tests
-      #:make-flags #~(let ((confdir (string-append #$output
-                                                   "/share/highlight/config/")))
-                       (list (string-append "PREFIX=" #$output)
-                             (string-append "HL_CONFIG_DIR=" confdir)
-                             (string-append "conf_dir=" confdir)))
+      #:make-flags #~(list (string-append "PREFIX=" #$output)
+                           (string-append "HL_CONFIG_DIR=" #$output "/etc/")
+                           (string-append "conf_dir=" #$output "/etc/"))
       #:phases #~(modify-phases %standard-phases
                    (delete 'configure) ;no configure script
                    (add-after 'unpack 'fix-search-for-lua

base-commit: a800c49fb767f549fbc0eefe8dce6daa5da8604c
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72152; Package guix-patches. (Wed, 17 Jul 2024 10:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 72152 <at> debbugs.gnu.org (full text, mbox):

From: chris <chris <at> bumblehead.com>
To: 72152 <at> debbugs.gnu.org
Cc: chris <at> bumblehead.com
Subject: explanation of patch
Date: Wed, 17 Jul 2024 03:12:35 -0700
This patch resolves a situation that causes an annoying warning, "cannot open filetypes.conf". The warning discussed in more detail here https://issues.guix.gnu.org/68948

To see the warning from the unpatched version, this shell command,
```
$ echo "(highlight (package bug))" | highlight -O xterm256 --syntax lisp
cannot open filetypes.conf: No such file or directory
(highlight (package bug))
```

Using the patched package definition, no warning is seen





This bug report was last modified 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.