# GNU Guix --- Functional package management for GNU # Copyright © 2013, 2014, 2016, 2020 Ludovic Courtès # Copyright © 2016 Jan Nieuwenhuizen # # 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 . # # Test the `guix hash' command-line utility. # guix hash --version tmpdir="guix-hash-$$" trap 'rm -rf "$tmpdir"' EXIT test `guix hash /dev/null` = 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73 test `echo -n | guix hash -` = 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73 test `guix hash -f nix-base32 /dev/null` = 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73 test `guix hash -f hex /dev/null` = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 test `guix hash -f base32 /dev/null` = 4oymiquy7qobjgx36tejs35zeqt24qpemsnzgtfeswmrw6csxbkq test `guix hash -H sha512 -f hex /dev/null` = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e test `guix hash -H sha1 -f base64 /dev/null` = "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" if guix hash -H abcd1234 /dev/null; then false; else true; fi mkdir "$tmpdir" echo -n executable > "$tmpdir/exe" chmod +x "$tmpdir/exe" ( cd "$tmpdir" ; ln -s exe symlink ) mkdir "$tmpdir/subdir" test `guix hash -r "$tmpdir"` = 10k1lw41wyrjf9mxydi0is5nkpynlsvgslinics4ppir13g7d74p # Without '-r', this should fail. if guix hash "$tmpdir" then false; else true; fi # This should fail because /dev/null is a character device, which # the archive format doesn't support. if guix hash -r /dev/null then false; else true; fi # Adding a .git directory mkdir "$tmpdir/.git" touch "$tmpdir/.git/foo" # ...changes the hash test `guix hash -r $tmpdir` = 0a50z04zyzf7pidwxv0nwbj82pgzbrhdy9562kncnvkcfvb48m59 # ...but remains the same when using `-x' test `guix hash -r $tmpdir -x` = 10k1lw41wyrjf9mxydi0is5nkpynlsvgslinics4ppir13g7d74p # Without '-r', this should fail. if guix hash "$tmpdir" then false; else true; fi (Expand)Author 2024-11-21gnu: qtcharts: Rename to qtcharts-5....* gnu/packages/qt.scm (qtcharts): Rename to ... (qtcharts-5): ... this. * gnu/packages/astronomy.scm (stellarium)[inputs]: Adjust accordingly. * gnu/packages/debug.scm (seer-gdb)[inputs]: Likewise. * gnu/packages/education.scm (gcompris-qt)[inputs]: Likewise. * gnu/packages/kde-utils.scm (atelier)[inputs]: Likewise. (libatcore)[inputs]: Likewise. * gnu/packages/radio.scm (welle-io)[inputs]: Likewise. (sdrangel)[inputs]: Likewise. Change-Id: If9e321be75d0b442355cc96d950de1ea57b364cd Zheng Junjie 2024-07-18gnu: atelier: Fix build....* gnu/packages/kde-utils.scm (atelier): Fix build. [inputs]: Remove ki18n, kxmlgui, kconfigwidgets, and ktexteditor; add ki18n-5, kxmlgui-5, kconfigwidgets-5, and ktexteditor-5. Change-Id: Ifb5bd63b7acd8d9193f0fdaf95b2cdaf0662060e Zheng Junjie 2024-07-18gnu: kirogi: Fix build....* gnu/packages/kde-utils.scm (kirogi): Fix build. [inputs]: Remove kconfigwidgets, kcoreaddons, ki18n, kirigami, kcrash, and kdnssd; add kconfigwidgets-5, kcoreaddons-5, ki18n-5, kirigami-5, kcrash-5, and kdnssd-5. Change-Id: I1dd247bb303b4634f2dc3321ba56a3e2d873858b Zheng Junjie 2024-07-18gnu: francis: Update to 24.05.2....* gnu/packages/kde-utils.scm (francis): Update to 24.05.2. [inputs]: Remove qtdeclarative-5, qtgraphicaleffects, qtquickcontrols2-5, and qtsvg-5; add kirigami-addons, qtdeclarative, and qtsvg. Change-Id: Ice48e5b0ff110f9f208ea45e8bcacfa9063572ba Zheng Junjie 2024-07-18gnu: keurocalc: Update to 1.3.0-2.c6e8385....* gnu/packages/kde-utils.scm (keurocalc): Update to 1.3.0-2.c6e8385. [arguments]: Set #:qtbase to qtbase. Change-Id: I5cc51c6a478251e2fd2d9b1b660d5f5f3455933c