aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/tests')
0 files changed, 0 insertions, 0 deletions
only be run when that is defined. * guix build utils ** MAYBE Change ‘ld-wrapper’ to add RPATH for libs passed by file name ** MAYBE Add equivalent to chrpath that uses [[https://gitorious.org/guile-dlhacks/guile-dlhacks/][guile-dlhacks]] ** MAYBE Add a hash-rewriting thing for deep dependency replacement without rebuild See [[https://github.com/NixOS/nixpkgs/commit/d1662d715514e6ef9d3dc29f132f1b3d8e608a18][Shea Levy's `replace-dependency' in Nixpkgs]]. * distro ** port to GNU/Hurd, aka. ‘i686-gnu’ Problems include that current glibc releases do not build on GNU/Hurd. In addition, there haven’t been stable releases of GNU Mach, MiG, and Hurd, which would be a pre-condition. * Installer ** Fix impossibility to restart on error after cow-store has been started See https://lists.gnu.org/archive/html/guix-devel/2018-12/msg00161.html. - Force reboot upon installer failure - Unshare the installer process - Run the installer process in a separate namespace ** Partitioning *** Add RAID support *** Add more partitioning schemes The actual schemes are taken from Debian Installer but some are not implemented yet: like "Separate partitions for /home /var and /tmp". *** Replace wait page "Partition formating is in progress, please wait" Create a new waiting page describing what's being done: [ 20% ] Running mkfs.ext4 on /dev/sda2 ... [ 40% ] Running mkfs.ext4 on /dev/sda3 ... *** Add a confirmation page before formating/partitioning ** Desktop environments *** Allow for no desktop environments Propose to choose between "headless server" and "lightweight X11" in a new page. *** Add services selection feature Add a services page to the configuration. Ask for services to be installed like SSH, bluetooth, TLP in a checkbox list? ** Locale and keymap *** Try to guess user locale and keymap by probing BIOS or HW (dmidecode) ** Timezone *** Regroup everything in one single page Under the form: (UTC + 1) Europe/Paris (UTC + 2) Africa/Cairo ... ** Display issue *** Investigate display issue described here: https://lists.gnu.org/archive/html/guix-devel/2019-01/msg00305.html ault ;; encoding so the byte encoding is preserved. (with-fluids ((%default-port-encoding #f)) (substitute* (find-files "gettext-tools/tests" "^(lang-sh|msg(exec|filter)-[0-9])") (("#![[:blank:]]/bin/sh") (format #f "#!~a" bash))) (substitute* (cons "gettext-tools/src/msginit.c" (find-files "gettext-tools/gnulib-tests" "posix_spawn")) (("/bin/sh") bash)) (substitute* "gettext-tools/src/project-id" (("/bin/pwd") "pwd")) ;; Work around Gnulib test failures on armhf-linux. #$@(if (target-arm32?) #~((with-directory-excursion "gettext-tools" (invoke "patch" "--force" "-p1" "-i" #$(local-file (search-patch "coreutils-gnulib-tests.patch"))))) '()) #$@(if (target-hurd?) #~((substitute* "gettext-tools/gnulib-tests/Makefile.in" ;; See 'coreutils' for the rationale. ((" test-tls\\$\\(EXEEXT\\) ") " "))) '()) #t))))) ;; When tests fail, we want to know the details. #:make-flags #~'("VERBOSE=yes"))) (home-page "https://www.gnu.org/software/gettext/") (synopsis "Tools and documentation for translation (used to build other packages)") (description "GNU Gettext is a package providing a framework for translating the textual output of programs into multiple languages. It provides translators with the means to create message catalogs, and a runtime library to load translated messages from the catalogs. Nearly all GNU packages use Gettext.") (properties `((upstream-name . "gettext") (cpe-name . "gettext"))) (license gpl3+))) ;some files are under GPLv2+ ;; Use that name to avoid clashes with Guile's 'gettext' procedure. ;; ;; We used to resort to #:renamer on the user side, but that prevented ;; circular dependencies involving (gnu packages gettext). This is because ;; 'resolve-interface' (as of Guile 2.0.9) iterates eagerly over the used ;; module when there's a #:renamer, and that module may be empty at that point ;; in case or circular dependencies. (define-public gnu-gettext (package/inherit gettext-minimal (name "gettext") (arguments (substitute-keyword-arguments (package-arguments gettext-minimal) ((#:phases phases) #~(modify-phases #$phases (add-after 'install 'add-emacs-autoloads (lambda* (#:key outputs #:allow-other-keys) ;; Make 'po-mode' and other things available by default. (with-directory-excursion (string-append (assoc-ref outputs "out") "/share/emacs/site-lisp") (symlink "start-po.el" "gettext-autoloads.el")))))))) (native-inputs (list emacs-minimal)) ;for Emacs tools (synopsis "Tools and documentation for translation"))) (define-public libtextstyle (package (name "libtextstyle") (version "0.21") (source (origin (inherit (package-source gnu-gettext)) (uri (string-append "mirror://gnu/gettext/gettext-" version ".tar.gz")) (sha256 (base32 "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-static") #:phases (modify-phases %standard-phases (add-after 'unpack 'chdir (lambda _ (chdir "libtextstyle") #t))))) ;; libtextstyle bundles libxml2, glib (a small subset thereof), and ;; libcroco, but it purposefully prevents users from using an external ;; copy, to reduce the startup time of programs using libtextstyle. (home-page "https://www.gnu.org/software/gettext/") (synopsis "Text styling library") (description "GNU libtextstyle is a C library that provides an easy way to add styling to programs that produce output to a console or terminal emulator window. It allows applications to emit text annotated with styling information, such as color, font attributes (weight, posture), or underlining.") (license gpl3+))) (define-public mdpo (package (name "mdpo") (version "0.3.6") (source (origin (method url-fetch) (uri (pypi-uri "mdpo" version)) (sha256 (base32 "0kgbm0af7jwpfspa2xxiy9nc2l1r2s1rhbhz4r229zcqv49ak6sq")))) (build-system python-build-system) (native-inputs (list python-bump2version python-flake8 python-flake8-implicit-str-concat python-flake8-print python-isort python-pytest python-pytest-cov python-sphinx python-sphinx-argparse python-sphinx-rtd-theme python-twine python-yamllint)) (propagated-inputs (list python-polib python-pymd4c)) (home-page "https://github.com/mondeja/mdpo") (synopsis "Markdown file translation utilities using pofiles") (description "The mdpo utility creates pofiles, the format stabilished by GNU Gettext, from Markdown files.") (license bsd-3))) (define-public po4a (package (name "po4a") (version "0.73") (source (origin (method url-fetch) (uri (string-append "https://github.com/mquinson/po4a" "/releases/download/v" version "/po4a-" version ".tar.gz")) (sha256 (base32 "184f0cv0w3xa301gwm74srn5s6g8qdn3ksip84wpg8xjihnzh63g")))) (build-system perl-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) ;; Make sure all executables in "bin" find the Perl modules ;; required by this package at runtime. (let* ((out #$output) (bin (string-append out "/bin/")) (path (string-append out "/lib/perl5/site_perl:" (string-join (map (lambda (name) (string-append (assoc-ref inputs name) "/lib/perl5/site_perl")) (list "perl-gettext" "perl-pod-parser" "perl-sgmls" "perl-syntax-keyword-try" "perl-xs-parse-keyword" "perl-term-readkey" "perl-text-wrapi18n" "perl-unicode-linebreak" "perl-yaml-tiny")) ":")))) (for-each (lambda (file) (wrap-program file `("PERL5LIB" ":" prefix (,path)))) (find-files bin "\\.*$"))))) #$@(if (system-hurd?) #~((add-after 'unpack 'skip-tests/hurd (lambda _ (delete-file "t/cfg-multi.t") (delete-file "t/cfg-single.t") (delete-file "t/cfg-split.t")))) #~())))) (native-inputs (list gettext-minimal perl-module-build docbook-xsl libxslt ;; For tests. docbook-sgml-4.1 docbook-xml-4.5 perl-test-pod (texlive-updmap.cfg))) (inputs (list bash-minimal opensp perl-gettext perl-pod-parser perl-sgmls perl-syntax-keyword-try perl-xs-parse-keyword perl-term-readkey perl-text-wrapi18n perl-unicode-linebreak perl-yaml-tiny)) (home-page "https://po4a.org/") (synopsis "Scripts to ease maintenance of translations") (description "The po4a (PO for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext tools on areas where they were not expected like documentation.") (license gpl2+))) (define-public po4a-minimal (package/inherit po4a (native-inputs ;; Remove test dependencies, primarily to reduce the size of the ;; dependency graph of the ‘guix’ package. (modify-inputs (package-native-inputs po4a) (delete "docbook-xml" "perl-test-pod" "texlive-updmap.cfg"))) (arguments (substitute-keyword-arguments (package-arguments po4a) ((#:tests? _ #t) #f))) (properties '((hidden? . #t))))) f11fdbcc3dbd56585e7d69a1f5'>packages: 'find-packages-by-name' properly honors version prefixes....Fixes <https://bugs.gnu.org/28446>. Reported by Mark H Weaver <mhw@netris.org>. * gnu/packages.scm (find-packages-by-name): Use 'version-prefix?' instead of 'string-prefix?'. Ludovic Courtès 2018-04-08discovery: Remove dependency on (guix ui)....This reduces the closure of (guix discovery) from 28 to 8 modules. * guix/discovery.scm (scheme-files): Use 'format' instead of 'warning'. (scheme-modules): Add #:warn parameter. Use it instead of 'warn-about-load-error'. (fold-modules): Add #:warn and pass it to 'scheme-modules'. (all-modules): Likewise. * gnu/bootloader.scm (bootloader-modules): Pass #:warn to 'all-modules'. * gnu/packages.scm (fold-packages): Likewise. * gnu/services.scm (all-service-modules): Likewise. * guix/upstream.scm (importer-modules): Likewise. Ludovic Courtès 2018-04-08Add (guix self)....* guix/self.scm: New file. * Makefile.am (MODULES): Add it. * gnu/packages.scm (%distro-root-directory): Rewrite to try different directories. * guix/discovery.scm (guix): Export 'scheme-files'. Ludovic Courtès 2017-11-07packages: 'fold-packages' takes #:select? parameter....* gnu/packages.scm (fold-packages): Add #:select? parameter and honor it. Ludovic Courtès 2017-09-01packages: 'fold-packages' takes an optional 'modules' parameter....Suggested by Christopher Baines <mail@cbaines.net>. * gnu/packages.scm (fold-packages): Add optional 'modules' parameter and honor it. Ludovic Courtès 2017-06-11packages: Add 'specifications->manifest'....* gnu/packages.scm (specifications->manifest): New procedure. * doc/guix.texi (Invoking guix package): Change example from using '(compose list specification->package+output)' to using 'specifications->manifest'. Ludovic Courtès 2017-05-03Add (guix discovery)....* guix/discovery.scm, tests/discovery.scm: New files. * gnu/packages.scm (scheme-files, file-name->module-name) (scheme-modules, all-package-modules): Remove. (fold-packages): Rewrite in terms of 'fold-module-public-variables'. * gnu/tests.scm: Use (guix discovery). * Makefile.am (MODULES): Add guix/discovery.scm. (SCM_TESTS): Add tests/discovery.scm. Ludovic Courtès 2017-05-03ui: Rename '_' to 'G_'....This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`". Ludovic Courtès 2017-05-01packages: Remove support for PACKAGE-VERSION deprecated syntax....This syntax had been deprecated since 2016-02-28. * gnu/packages.scm (%find-package): Remove #:fallback? parameter and handling. * tests/guix-build.sh: Remove test for "time-1.7" syntax. * doc/guix.texi (Invoking guix lint): Update 'guix lint' output in example. Ludovic Courtès 2017-03-08packages: Use PACKAGE@VERSION syntax when reporting ambiguities....* gnu/packages.scm (%find-package): Upon ambiguity, use the PACKAGE@VERSION syntax instead of 'package-full-name'. Ludovic Courtès 2017-02-27packages: Add 'search-auxiliary-file'....Suggested-by: Ludovic Courtès <ludo@gnu.org> at <http://lists.gnu.org/archive/html/guix-devel/2016-12/msg01174.html>. * gnu/packages.scm (%auxiliary-files-path): New variable. (search-auxiliary-file): New procedure. Alex Kost 2017-01-28Use 'mlambda' instead of 'memoize'....* gnu/packages.scm (find-newest-available-packages): Use 'mlambda' instead of (memoize (lambda ...) ...). * gnu/packages/bootstrap.scm (package-with-bootstrap-guile): Likewise. * guix/build-system/gnu.scm (package-with-explicit-inputs)[rewritten-input]: Likewise. * guix/build-system/python.scm (package-with-explicit-python)[transform]: Likewise. * guix/derivations.scm (derivation->string): Likewise. * guix/gnu-maintenance.scm (gnu-package?): Likewise. * guix/modules.scm (module-file-dependencies): Likewise. * guix/scripts/graph.scm (standard-package-set): Likewise. * guix/scripts/lint.scm (official-gnu-packages*): Likewise. * guix/store.scm (store-regexp*): Likewise. * guix/utils.scm (location): Likewise. Ludovic Courtès 2017-01-28Add (guix memoization)....* guix/combinators.scm (memoize): Remove. * guix/memoization.scm: New file. * Makefile.am (MODULES): Add it. * gnu/packages.scm, gnu/packages/bootstrap.scm, guix/build-system/gnu.scm, guix/build-system/python.scm, guix/derivations.scm, guix/gnu-maintenance.scm, guix/import/cran.scm, guix/import/elpa.scm, guix/modules.scm, guix/scripts/build.scm, guix/scripts/graph.scm, guix/scripts/lint.scm, guix/store.scm, guix/utils.scm: Adjust imports accordingly. Ludovic Courtès 2016-09-20ui: Do not shadow '_' where it's used as a literal syntax match....Fixes compilation with Guile 2.1. Reported by Mu Lei. * guix/ui.scm (report-load-error) (warn-about-load-error, read/eval-package-expression): Use 'rest' instead of '_' as the pattern variable name. * gnu/packages.scm (%find-package): Likewise. * guix/scripts/build.scm (transform-package-inputs): Likewise. * guix/scripts/hash.scm (guix-hash): Likewise. * guix/scripts/import/gnu.scm (%options, guix-import-gnu): Likewise. * guix/scripts/import/nix.scm (guix-import-nix): Likewise. * guix/scripts/offload.scm (build-machines): Likewise. * guix/scripts/refresh.scm (%options): Likewise. * guix/scripts/substitute.scm (narinfo-signature->canonical-sexp): Likewise. Ludovic Courtès 2016-09-06packages: Add 'package-superseded' and associated support....This provides a way to mark a package as superseded by another one. Upgrades replace superseded packages with their replacement. * guix/packages.scm (package-superseded, deprecated-package): New procedures. * gnu/packages.scm (%find-package): Check for 'package-superseded'. * guix/scripts/package.scm (transaction-upgrade-entry)[supersede]: New procedure. Call it when 'package-superseded' is true. * tests/guix-build.sh: Add test for a superseded package. * tests/packages.scm ("package-superseded") ("transaction-upgrade-entry, superseded package"): New tests. Ludovic Courtès 2016-07-28packages: Add 'hidden-package'....* guix/packages.scm (hidden-package, hidden-package?): New procedures. * gnu/packages.scm (fold-packages): Filter out 'hidden-package?'. * tests/packages.scm ("hidden-package"): New test. Ludovic Courtès 2016-06-20packages: Export 'scheme-modules'....* gnu/packages.scm (package-modules): Rename to... (scheme-modules): ... this. Export. Update callers. Ludovic Courtès