aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2020 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-print)
  #:use-module (guix import print)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module ((gnu packages) #:select (search-patches))
  #:use-module (srfi srfi-64))

(define-syntax-rule (define-with-source object source expr)
  (begin
    (define object expr)
    (define source 'expr)))

(test-begin "print")

(define-with-source pkg pkg-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-inputs pkg-with-inputs-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))

    ;; Note: For this test, pick variables that do not have aliases; otherwise
    ;; 'package->code' might pick one of the other variable names in a
    ;; non-deterministic fashion.
    (inputs (list (@ (gnu packages base) coreutils)
                  `(,(@ (gnu packages base) gnu-make) "debug")))

    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-origin-input pkg-with-origin-input-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (list (string-append "file:///tmp/test-"
                                        version ".tar.gz")
                         (string-append "http://example.org/test-"
                                        version ".tar.gz")))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))
              (patches (search-patches "guile-linux-syscalls.patch"
                                       "guile-relocatable.patch"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (inputs
     `(("o" ,(origin
               (method url-fetch)
               (uri "http://example.org/somefile.txt")
               (sha256
                (base32
                 "0000000000000000000000000000000000000000000000000000"))))))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-origin-patch pkg-with-origin-patch-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))
              (patches
               (list (origin
                       (method url-fetch)
                       (uri "http://example.org/x.patch")
                       (sha256
                        (base32
                         "0000000000000000000000000000000000000000000000000000")))))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-arguments pkg-with-arguments-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (arguments
     `(#:disallowed-references (,(@ (gnu packages base) coreutils))))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-properties pkg-with-properties-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (properties
     `((hidden? . #t) (upstream-name "test-upstream")))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(test-equal "simple package"
  `(define-public test ,pkg-source)
  (package->code pkg))

(test-equal "package with inputs"
  `(define-public test ,pkg-with-inputs-source)
  (package->code pkg-with-inputs))

(test-equal "package with origin input"
  `(define-public test ,pkg-with-origin-input-source)
  (package->code pkg-with-origin-input))

(test-equal "package with origin patch"
  `(define-public test ,pkg-with-origin-patch-source)
  (package->code pkg-with-origin-patch))

(test-equal "package with arguments"
  `(define-public test ,pkg-with-arguments-source)
  (package->code pkg-with-arguments))

(test-equal "package with properties"
  `(define-public test ,pkg-with-properties-source)
  (package->code pkg-with-properties))

(test-end "print")
eam due to inactivity....* etc/teams.scm (Björn Höfling): Remove from the JAVA team. Change-Id: I384e4aebff18485ea5c5bf444a46dc88a64af72d Leo Famulari 2024-04-09teams: Remove Raghav Gururajan from their teams due to inactivity....* etc/teams.scm (Raghav Gururajan): Remove from the GNOME and MENTORS teams. Change-Id: Ic1a583f08636f4cfd34635ab04091844b9957e08 Leo Famulari 2024-04-08news: Add entry for the linux-libre-lts 6.6 update....* etc/news.scm: Add entry. Change-Id: Ic57c76c300712e4a6053052611e6483b4d72f0c5 Signed-off-by: Leo Famulari <leo@famulari.name> Ahmad Draidi via Guix-patches via 2024-04-07guix-install.sh: Make Guix modules available too....* etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Guix modules. (GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules. Change-Id: I0b2722a38b1f8ebab32142cbc372a23cadfb0620 Janneke Nieuwenhuizen 2024-04-05guix-install.sh: Add ‘--uninstall’ flag....* etc/guix-install.sh (REQUIRE): Add groupdel and userdel. (chk_term): Handle ‘WAR’. (sys_delete_store, sys_delete_build_user, sys_delete_guix_daemon) (sys_delete_init_profile, sys_delete_user_profiles): New functions. (main): Rename to… (main_install): … this. (main_uninstall): New function. (main): Dispatch between these two. * doc/guix.texi (Installation): Refer to “Binary Installation” instead of repeating it. (Binary Installation): Document uninstallation. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Change-Id: I55b7c10823773bced2e268273e8ce828cb3bd98d Ludovic Courtès 2024-04-03Switch order of the default substitute servers....The aim here is to improve the user experience. There's anecdotal evidence that the network performance for bordeaux is better compared to ci at least for some users, and I don't know of any issues with rate limiting or access restriction for bordeaux compared to ci. It also has IPv6 support. Additionally, bordeaux generally had more substitutes than ci, particularly for aarch64-linux and armhf-linux. This change will offer a very slight speedup for those substitutes that only bordeaux has. Bordeaux has been a default substitute server for nearly 3 years now and I think this change is overdue. I'm also hopeful that we'll be able to build on the testing regarding mirrors for bordeaux, and that'll allow potentially improving the hosting setup (through providing more redundancy) and further improving substitute fetching for users who currently have issues with substitute access. * config-daemon.ac: Switch substitute urls order. * doc/guix.texi: Ditto. * etc/guix-install.sh: Ditto. * gnu/installer/newt/network.scm (wait-service-online): Ditto. * guix/store.scm (%default-substitute-urls): Ditto. Change-Id: I4f6d93ae1fc8b03d80b47b18b5749a51f1fde17b Signed-off-by: Christopher Baines <mail@cbaines.net> Christopher Baines 2024-03-20Merge remote-tracking branch 'savannah/master' into gnome-team...Change-Id: Iec8e15b79c6fde516294c2bfcaf8ee3575b1f745 Christopher Baines 2024-03-19teams: qt: Remove erroneous comment at top of scripts....* etc/teams/qt/common.scm: Remove erroneous comment. * etc/teams/qt/qt-manifest.scm: Likewise. * etc/teams/qt/qt5-manifest.scm: Likewise. Change-Id: I87a0ea669caa0ba5049b48a4f04fda58518c3f05 Maxim Cournoyer 2024-03-16Merge remote-tracking branch 'savannah/master' into gnome-team...Change-Id: I775274c2693536e2efa36c9abca4c54c5c458e26 Christopher Baines 2024-03-14teams: Add Tanguy Le Carrour....* etc/teams.scm.in ("Tanguy Le Carrour"): New member. Change-Id: Ic1b1588a5a8bc67ee8e135c3069966f139374529 Signed-off-by: Christopher Baines <mail@cbaines.net> Tanguy Le Carrour 2024-03-12news: Update commit for fixed-output derivation vulnerability....* etc/news.scm: Update. Change-Id: Ia34408882f8928a0fd05acc12d4edc66b3dcb3b7 Ludovic Courtès 2024-03-12news: Add 'de' translation....* etc/news.scm: Add German translation. Change-Id: Ia2a11f71cdee5ccbf2a7fbe176e713418771599e Florian Pelz 2024-03-12news: Give upgrade instructions for foreign distros....* etc/news.scm: Update entry. Change-Id: Ia7c326bc97042d92a8d499ee27dd41d15f1f0d29 Ludovic Courtès 2024-03-11news: Add entry for the daemon fixed-output derivation vulnerability....* etc/news.scm: Add entry. Change-Id: Ib3f9c22eda1e8b9075620ec01b4edf2f24cfcf93 Ludovic Courtès 2024-03-11etc: systemd services: switch to "journal" for output and error logging....The "syslog" method has been deprecated for years, and issues a warning: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. Fixes: #48323 * etc/guix-daemon.service.in (StandardOutput): Use "journal" (StandardError): Likewise. * etc/guix-publish.service.in (StandardOutput): Likewise. (StandardError): Likewise. Vagrant Cascadian 2024-03-10time-travel-manifest: Uncomment all the past releases....This reverts a4c35c607cfd7d6b0bad90cfcc46188d489e1754. * etc/time-travel-manifest.scm (%release-commits): Uncomment all the revisions. Change-Id: I6abdb760cbcf06597d843cabc5fd973ee916dc77 Ludovic Courtès 2024-03-10Merge branch 'master' into gnome-teamLiliana Marie Prikler 2024-03-08teams: Add 宋文武 to the qt team....* etc/teams.scm (宋文武): Add qt team. Change-Id: Ib1b50b109ded4dbbcfd0649d3e0c1e6884585c5e 宋文武 2024-03-08teams: lxqt: Remove qt.scm from scope....* etc/teams.scm (lxqt)[#:scope]: Remove "gnu/packages/qt.scm". Change-Id: If05ea534a827eba5a2acf6526d906cea43f72442 宋文武 2024-03-08teams: Add entry for Adam Faiz....* etc/teams.scm ("Adam Faiz"): New member. Signed-off-by: Andreas Enge <andreas@enge.fr> Change-Id: Idb913da5e4f622b8efdbadc87d2cf3e5aec118eb AwesomeAdam54321 2024-02-28news: Add entry for changes in GNOME 44 and its desktop service....* etc/news.scm: Add entry. Liliana Marie Prikler 2024-02-28news: Add entry for GDM defaulting to Wayland....* etc/news.scm: Add entry. Change-Id: Icddcf269ff59a7ee2a14680ed95a167758ecddaf Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-02-28news: Add entry for hwdb support in udev-service-type....* etc/news.scm: Add entry. Change-Id: I3c27b10eab501cca6ed0e32a1b30d92f212266b4 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-02-13teams: Add Sugar team....* etc/teams.scm (sugar): New team; add Ricardo to it. Change-Id: I4d7af2a8f4077fa60ff8400b0b8b1b6127a77448 Ricardo Wurmus 2024-02-13teams: go: Add all related files to the scope....* etc/teams.scm (go): Add regex search for any golang files. Change-Id: Ia6c95d8d49863de0381a907ca6309fa22d22927e Sharlatan Hellseher 2024-02-12gnu: disarchive: Update to 0.6.0....* gnu/packages/backup.scm (disarchive): Update to 0.6.0; add 'guile-bzip2' as an input. * gnu/packages/package-management.scm (guix): Add 'guile-bzip2' as an input to enable bzip2 support when using Disarchive. * guix/self.scm (%packages): Add 'guile-bzip2'. (compiled-guix): Include 'guile-bzip2' as a dependency when building the 'guix' command. * etc/disarchive-manifest.scm (tarball-origin?): Include bzip2 tarballs. Co-authored-by: Ludovic Courtès <ludovic.courtes@inria.fr> Change-Id: I4da479054f6bef225f5ea979c091152f8a9e51d5 Timothy Sample 2024-02-05teams: mozilla: Add tor-browsers.scm....* etc/teams.scm (mozilla): Add "gnu/packages/tor-browsers.scm". Change-Id: Id3aa1fe641c612000319a4ea4b236285f8d3b599 Clément Lassieur 2024-02-03teams: Add Mark H Weaver to the ‘mozilla’ team....* etc/teams.scm (Mark H Weaver): Add to the ‘mozilla’ team. Mark H Weaver 2024-01-30teams: go: Add golang-xyz.scm to scope....* etc/teams.scm (go): Add "gnu/packages/golang-xyz.scm". Change-Id: I580eadf52b631c6582e256a2900786b53483a466 Sharlatan Hellseher 2024-01-28teams: go: Add more related files to the scope....* etc/teams.scm (go): Add "gnu/packages/configuration-management.scm", "gnu/packages/golang-crypto.scm", "gnu/packages/golang-web.scm", "gnu/packages/syncthing.scm", "gnu/packages/terraform.scm". Sort list alphabetically. Change-Id: I56ce5bd21e487e5dbe2d84aa1d83e3239268fb71 Sharlatan Hellseher 2024-01-24gitconfig: b4: Automatically add 'Signed-off-by' when applying patches....Also use --3way to ease conflict resolutions. * etc/git/gitconfig [b4]: Add shazam-am-flags option. Change-Id: I6a92909a5b23a8680c16251aafa084b9a48944ea Maxim Cournoyer 2024-01-24teams: Remove Efraim Flashner from the science team....* etc/teams.scm (Efraim Flashner): Remove science team. Change-Id: I790fe329cde11fcb4b706b01b9aa59ad29d8c874 Efraim Flashner 2024-01-22news: Add entry for removing linux-libre 4.14 (EoL)....* etc/news.scm: Add entry for linux-libre 4.14 removal and add my copyright header. Change-Id: I5c2418bc22a4ae2bba63c1cf77e66d2574766e01 Wilko Meyer 2024-01-16teams: Add Wilko Meyer to kernel....* etc/teams.scm: Add Wilko Meyer. Change-Id: Ia7b85a090a4d8e81689bd137e1d12cb3708aa760 Signed-off-by: Leo Famulari <leo@famulari.name> Wilko Meyer 2024-01-14teams: Add Vivien Kraus....* etc/teams.scm.in ("Vivien Kraus"): New member. Change-Id: Iab2c9300f3e1e604fb2ee539a7eb05e7a3f54776 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-13news: Fix 'de' translation....* etc/news.scm: Fix typo. Change-Id: I943fed38a444d1403cc5f979a7d6b9f52bedf5dd Florian Pelz 2024-01-12teams: Add entry for Sharlatan Hellseher....* etc/teams.scm ("Sharlatan Hellseher"): New member. Change-Id: I05f1442e90799e182feb153f45191e789c05461b Sharlatan Hellseher