aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (test-upstream)
  #:use-module (gnu packages base)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix import print)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix upstream)
  #:use-module (guix tests)
  #:use-module (srfi srfi-64)
  #:use-module (ice-9 match))


(test-begin "upstream")

(test-equal "coalesce-sources same version"
  '((source "foo" "1"
            ("ftp://example.org/foo-1.tar.xz"
             "ftp://example.org/foo-1.tar.gz")
            ("ftp://example.org/foo-1.tar.xz.sig"
             "ftp://example.org/foo-1.tar.gz.sig")))

  (map (lambda (source)
         `(source ,(upstream-source-package source)
                  ,(upstream-source-version source)
                  ,(upstream-source-urls source)
                  ,(upstream-source-signature-urls source)))
       (coalesce-sources (list (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.gz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.gz.sig")))
                               (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.xz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.xz.sig")))))))

(test-end)
discover which modules to include when extending the used modules via the #:modules argument. The renaming was automated via the command: $ git grep -l %gnu-build-system-modules | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i * guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to... (%default-gnu-imported-modules): ... this. (%default-modules): Rename to... (%default-gnu-modules): ... this. Export. (dist-package, gnu-build, gnu-cross-build): Adjust accordingly. Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee Maxim Cournoyer 2024-08-18gnu: gimp: Update to 2.10.38....* gnu/packages/gimp.scm (gimp): Update to 2.10.38. Change-Id: I3288c989a5b70e04ddffc97c38c8f52c032f973e Tobias Geerinckx-Rice 2024-04-17gnu: babl: Disable failing test on aarch64....The float-to-8bit test fails on an Apple M1 (aarch64) with the following message: 9/28 float-to-8bit FAIL 0.11s exit status 1 >>> LD_LIBRARY_PATH=/tmp/guix-build-babl-0.1.108.drv-0/build/babl BABL_PATH=/tmp/guix-build-babl-0.1.108.drv-0/build/extensions MALLOC_PERTURB_=94 /tmp/guix-build-babl-0.1.108.drv-0/build/tests/float-to-8bit stdout: float -> u8 1 failed #1[1] got 76 expected 77 stderr: " 0x43b9f0 0x4390b0 1" 1541377792 BablFishPath cost:146.000000 error:0.000000000000 "/tmp/guix-build-babl-0.1.108.drv-0/build/extensions/gggl.so 0: R'G'B'A float to R'G'B'A u8" 0 BablConversionLinear pixels:0 error: 0.000000 * gnu/packages/gimp.scm (babl): Disable failing test on aarch64. Change-Id: Icf2c2a9ea5986149902f741f96d1847d2403c1f4 Signed-off-by: Christopher Baines <mail@cbaines.net> Roman Scherer 2024-03-10Merge branch 'master' into gnome-teamLiliana Marie Prikler 2024-03-09gnu: gnome-photos: Build against gegl-0.4.44....On gnome-team, this dependency was already accounted for in commit 4beac7d95c84ea3be809030f942b8b71d155129e, but it was forgotten when updating gimp on master. * gnu/packages/gimp.scm (babl-0.1.96, gegl-0.4.44): New variables. * gnu/packages/gnome.scm (gnome-photos)[inputs]: Replace gegl with gegl-0.4.44. Liliana Marie Prikler 2024-03-09gnu: Add gimp-next....* gnu/packages/gimp.scm (gimp-next): New variable. Liliana Marie Prikler 2024-03-09gnu: gimp: Update to 2.10.36....* gnu/packages/gimp.scm (gimp): Update to 2.10.36. Liliana Marie Prikler 2024-03-09gnu: gegl: Build with introspection....* gnu/packages/gimp.scm (gegl)[arguments]: Remove #:configure-flags. Liliana Marie Prikler 2024-03-09gnu: babl: Build with introspection....* gnu/packages/gimp.scm (babl)[#:configure-flags]: Remove “-Denable-gir=false”. Liliana Marie Prikler 2024-03-09gnu: gegl: Update to 0.4.48....* gnu/packages/gimp.scm (gegl): Update to 0.4.48. Liliana Marie Prikler 2024-03-09gnu: babl: Update to 0.1.108....* gnu/packages/gimp.scm (babl): Update to 0.1.108. Liliana Marie Prikler