[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: gaupol: Don't attempt to compile bytecode twice.
From: |
guix-commits |
Subject: |
08/08: gnu: gaupol: Don't attempt to compile bytecode twice. |
Date: |
Sun, 12 Dec 2021 17:29:01 -0500 (EST) |
mbakke pushed a commit to branch core-updates-frozen
in repository guix.
commit 869d69ad3248288ffe30264f5e5bd760792ca758
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Dec 12 13:49:47 2021 +0100
gnu: gaupol: Don't attempt to compile bytecode twice.
* gnu/packages/video.scm (gaupol)[arguments]: Disable needless compilation
with a substitution. While here, remove trailing #t's.
---
gnu/packages/video.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index da8dab5..eec8819 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -5057,6 +5057,13 @@ video from a Wayland session.")
`(#:tests? #f ; Tests seem to require networking.
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'disable-builtin-byte-compilation
+ (lambda _
+ ;; The setup.py script attempts to compile bytecode and fails.
+ ;; We compile bytecode in a separate phase, so just disable it.
+ (substitute* "setup.py"
+ (("distutils\\.util\\.byte_compile\\(.*")
+ ""))))
;; gaupol's setup.py script does not support one of the Python build
;; system's default flags, "--single-version-externally-managed".
(replace 'install
@@ -5071,8 +5078,7 @@ video from a Wayland session.")
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(wrap-program (string-append out "/bin/gaupol")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
- `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
- #t))
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))
(add-after 'unpack 'patch-data-dir
;; Fix some path variables that setup.py seems to garble.
(lambda* (#:key outputs #:allow-other-keys)
@@ -5081,8 +5087,7 @@ video from a Wayland session.")
(("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
(string-append "DATA_DIR = '" out "/share/gaupol'\""))
(("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
- (string-append "LOCALE_DIR = '" out "/share/locale'\"")))
- #t))))))
+ (string-append "LOCALE_DIR = '" out
"/share/locale'\"")))))))))
(synopsis "Editor for text-based subtitles")
(description
"Gaupol supports multiple subtitle file formats and provides means of
- branch core-updates-frozen updated (867dcbe -> 869d69a), guix-commits, 2021/12/12
- 04/08: gnu: ruby-rouge: Update to 3.26.1., guix-commits, 2021/12/12
- 02/08: gnu: Add ruby-hoe-markdown., guix-commits, 2021/12/12
- 05/08: gnu: ruby-asciidoctor-pdf: Update to 1.6.1., guix-commits, 2021/12/12
- 06/08: gnu: smplayer: Remove reference to %outputs., guix-commits, 2021/12/12
- 07/08: gnu: mps-youtube: Disable sanity check., guix-commits, 2021/12/12
- 08/08: gnu: gaupol: Don't attempt to compile bytecode twice.,
guix-commits <=
- 01/08: gnu: ruby-nokogiri: Update to 1.12.5., guix-commits, 2021/12/12
- 03/08: gnu: ruby-loofah: Update to 2.13.0., guix-commits, 2021/12/12