Don't encode the current timestamp. This affects the output of `perl -V`, specifically the message "Compiled at [...]". The 'cf_time' and 'cf_by' values show up in 'config.h' and in 'Config_heavy.pl'. Use the output of 'uname -s' instead of 'uname -a' to avoid recording the kernel version ('uname -o' leads to directory names like 'x86_64-gnulinux' instead of 'x86_64-linux', which might cause breakage down the road.) diff --git a/perl.c b/perl.c index 228a0d8..ed38313 100644 --- a/perl.c +++ b/perl.c @@ -1825,6 +1825,7 @@ S_Internals_V(pTHX_ CV *cv) PUSHs(Perl_newSVpvn_flags(aTHX_ non_bincompat_options, sizeof(non_bincompat_options) - 1, SVs_TEMP)); +#define PERL_BUILD_DATE "Jan 1 1970 00:00:00" #ifndef PERL_BUILD_DATE # ifdef __DATE__ # ifdef __TIME__ --- a/Configure 1970-01-01 01:00:00.000000000 +0100 +++ b/Configure 2016-10-01 14:47:20.017319739 +0200 @@ -3276,7 +3276,7 @@ $eunicefix tr : Try to determine whether config.sh was made on this system case "$config_sh" in '') -myuname=`$uname -a 2>/dev/null` +myuname=`$uname -s 2>/dev/null` $test -z "$myuname" && myuname=`hostname 2>/dev/null` # Downcase everything to avoid ambiguity. # Remove slashes and single quotes so we can use parts of this in @@ -3845,10 +3845,10 @@ . ./posthint.sh : who configured the system -cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1` +cf_time="1970-01-01" case "$cf_by" in "") - cf_by=`(logname) 2>/dev/null` + cf_by="guix" case "$cf_by" in "") cf_by=`(whoami) 2>/dev/null` s='right' method='get' action='/guix/log/tests/gem.scm'>
path: root/tests/gem.scm
AgeCommit message (Collapse)Author
2023-05-31tests: Use quasiquoted 'match' patterns for package sexps.Ludovic Courtès
Turns out it's easier to read. * tests/cpan.scm ("cpan->guix-package"): Use a quasiquoted pattern. * tests/elpa.scm (eval-test-with-elpa): Likewise. * tests/gem.scm ("gem->guix-package") ("gem->guix-package with a specific version") ("gem-recursive-import") ("gem-recursive-import with a specific version"): Likewise. * tests/hexpm.scm ("hexpm-recursive-import"): Likewise. * tests/opam.scm ("opam->guix-package"): Likewise. * tests/pypi.scm ("pypi->guix-package, no wheel") ("pypi->guix-package, wheels") ("pypi->guix-package, no usable requirement file.") ("pypi->guix-package, package name contains \"-\" followed by digits"): Likewise. * tests/texlive.scm ("texlive->guix-package"): Likewise.
2023-05-31import: gem: Updater provides input list.Ludovic Courtès
* guix/import/gem.scm (import-release): Add 'inputs' field. * tests/gem.scm ("package-latest-release"): New test.
2023-05-31import: gem: Factorize "bundler" special case for name mapping.Ludovic Courtès
* guix/import/gem.scm (ruby-package-name): Add "bundler" special case. (gem->guix-package): Adjust accordingly. * tests/gem.scm ("gem-recursive-import") ("gem-recursive-import with a specific version"): Remove "ruby-bundler" from the expected packages.
2022-09-17import: gem: Support importing a specific version of a gem.Taiju HIGASHI
* guix/import/gem.scm: (rubygems-fetch, gem->guix-package) (gem-recursive-import): Fix to fetch the specified version of the gem. * guix/scripts/import/gem.scm (show-help): Update the help message. (guix-import-gem): Modify so the version number to be passed to subsequent procedures. * tests/gem.scm: Add tests. * doc/guix.texi (Invoking guix import): Document. Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-07-20import: gem: Emit new-style package inputs.Sarah Morgensen
* guix/import/gem.scm (make-gem-sexp): Wrap inputs in 'list' instead of 'quasiquote'. * tests/gem.scm ("gem->guix-package") ("gem-recursive-import"): Adjust accordingly. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-04-27tests: Remove trailing commas in JSON tests.Ludovic Courtès
These commas are rejected by Guile-JSON 3.5.0. * tests/crate.scm (test-foo-dependencies) (test-root-dependencies, test-intermediate-1-dependencies) (test-intermediate-2-dependencies): Remove trailing commas. * tests/gem.scm (test-bar-json): Likewise. * tests/pypi.scm (test-json): Likewise.