From e77df67cc25e4f221af530ed80f1c5f7a839e86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 17 Nov 2021 23:57:49 +0100 Subject: [PATCH] gnu: libsoup: Depend on a fixed version of Samba. This avoids big rebuilds when Samba is upgraded. * gnu/packages/samba.scm (samba/fixed): New variable. * gnu/packages/gnome.scm (libsoup-minimal)[inputs]: Use it instead of SAMBA. --- gnu/packages/gnome.scm | 2 +- gnu/packages/samba.scm | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 39ab43c90c..8677a6849d 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -4940,7 +4940,7 @@ (define-public libsoup-minimal ("zlib" ,zlib))) (inputs `(("mit-krb5" ,mit-krb5) - ("ntlm_auth" ,samba))) ; For ntlm_auth support + ("ntlm_auth" ,samba/fixed))) ; For ntlm_auth support (home-page "https://wiki.gnome.org/Projects/libsoup") (synopsis "GLib-based HTTP Library") (description diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm index 966ccc8c17..c49ed9a4aa 100644 --- a/gnu/packages/samba.scm +++ b/gnu/packages/samba.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2015, 2017 Ludovic Courtès +;;; Copyright © 2013, 2015, 2017, 2021 Ludovic Courtès ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2016, 2017, 2019, 2021 Efraim Flashner ;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira @@ -289,6 +289,18 @@ (define-public samba Desktops into Active Directory environments using the winbind daemon.") (license gpl3+))) +(define-public samba/fixed + ;; Version that rarely changes, depended on by libsoup. + (package/inherit samba + (version "4.13.10") + (source + (origin + (inherit (package-source samba)) + (uri (string-append "https://download.samba.org/pub/samba/stable/" + "samba-" version ".tar.gz")) + (sha256 + (base32 "00q5hf2r71dyma785dckcyksv3082mqfgyy9q6k6rc6kqjwkirzh")))))) + (define-public talloc (package (name "talloc")