all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ahmad Draidi via Guix-patches via <guix-patches@gnu.org>
To: 65336@debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi@redscript.org>
Subject: [bug#65336] [PATCH 1/2] gnu: looking-glass-client: Update to B6.
Date: Wed, 16 Aug 2023 13:32:22 +0400	[thread overview]
Message-ID: <87ff44ae30c9a029646b5cc7693c0c6a84335939.1692176991.git.a.r.draidi@redscript.org> (raw)
In-Reply-To: <cover.1692176991.git.a.r.draidi@redscript.org>

* gnu/packages/virtualization.scm (looking-glass-client): Update to B6.
[source]: Use upstream tarball and switch to url-fetch.
[inputs]: Add font-dejavu, libsamplerate, pipewire, pulseaudio. Remove
openssl, sdl2, sdl2-ttf.
[native-inputs]: Remove libconfig.
[arguments]: Add "-DOPTIMIZE_FOR_NATIVE=OFF" to #:configure-flags for
reproducibility and CPU compatibility.
[use-modules]: Add (gnu packages fonts).
---
 gnu/packages/virtualization.scm | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 9556fbc61e..e446adfa98 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -29,6 +29,7 @@
 ;;; Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
 ;;; Copyright © 2023 Juliana Sims <juli@incana.org>
+;;; Copyright © 2023 Ahmad Draidi <a.r.draidi@redscript.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -75,6 +76,7 @@ (define-module (gnu packages virtualization)
   #:use-module (gnu packages figlet)
   #:use-module (gnu packages firmware)
   #:use-module (gnu packages flex)
+  #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gettext)
@@ -1915,27 +1917,27 @@ (define-public qmpbackup
 (define-public looking-glass-client
   (package
     (name "looking-glass-client")
-    (version "B5")
+    (version "B6")
     (source
      (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/gnif/LookingGlass")
-             (commit version)
-             (recursive? #t)))
-       (file-name (git-file-name name version))
+       (method url-fetch)
+       (uri (string-append "https://looking-glass.io/artifact/"
+                           version "/source"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "09mn544x5hg1z31l92ksk7fi7yj9r8xdk0dcl9fk56ivcr452ylm"))))
+         "15d7wwbzfw28yqbz451b6n33ixy50vv8acyzi8gig1mq5a8gzdib"))))
     (build-system cmake-build-system)
     (inputs
      (list bash-minimal
+           font-dejavu
            fontconfig
            freetype
            glu
            gmp
            libglvnd
            libiberty
+           libsamplerate
            libx11
            libxcursor
            libxfixes
@@ -1946,16 +1948,18 @@ (define-public looking-glass-client
            libxrandr
            libxscrnsaver
            mesa
-           openssl
-           sdl2
-           sdl2-ttf
+           pipewire
+           pulseaudio
            spice-protocol
            wayland
            wayland-protocols
            `(,zlib "static")))
-    (native-inputs (list libconfig nettle pkg-config))
+    (native-inputs (list nettle pkg-config))
     (arguments
      `(#:tests? #f ;; No tests are available.
+       ;; Package uses "-march=native" by default. We disable that to build with the
+       ;; lowest supported architecture for reproducibility and CPU compatibility.
+       #:configure-flags '("-DOPTIMIZE_FOR_NATIVE=OFF")
        #:make-flags '("CC=gcc")
        #:phases (modify-phases %standard-phases
                   (add-before 'configure 'chdir-to-client
-- 
2.41.0





  reply	other threads:[~2023-08-16  9:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16  9:15 [bug#65336] [PATCH 0/2] Update looking-glass-client to B6 and restyle package Ahmad Draidi via Guix-patches via
2023-08-16  9:32 ` Ahmad Draidi via Guix-patches via [this message]
2023-08-16  9:32 ` [bug#65336] [PATCH 2/2] gnu: looking-glass-client: Update package style Ahmad Draidi via Guix-patches via
2023-08-29 13:05 ` bug#65336: [PATCH 0/2] Update looking-glass-client to B6 and restyle package Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ff44ae30c9a029646b5cc7693c0c6a84335939.1692176991.git.a.r.draidi@redscript.org \
    --to=guix-patches@gnu.org \
    --cc=65336@debbugs.gnu.org \
    --cc=a.r.draidi@redscript.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.