guix-kreyren/guix
Diego Nicola Barbato c1d81df93d
download: Use correct system and guile in 'url-fetch/tarbomb' and 'url-fetch/zipbomb'.
Fixes <https://bugs.gnu.org/40115>.

Previously the result of `guix build -s $system $package' would depend on the
system Guix was built for if $package or one of its dependencies used
'url-fetch/tarbomb' or 'url-fetch/zipbomb' as the origin method of its
source (e.g. `guix build -s i686-linux ffmpeg' on i686-linux would build a
different derivation than on x86_64-linux).

This patch fixes this by explicitly passing the correct system and guile to
'gexp->derivation'.

* guix/download.scm (url-fetch/tarbomb): Pass #:system system and
  #:guile-for-build guile to 'gexp->derivation', where guile is the derivation
  of guile for system.
  (url-fetch/zipbomb): Likewise.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-04-08 19:35:34 +02:00
..
build compile: Run the load phase within 'with-target'. 2020-04-08 00:05:45 +02:00
build-system build-system/gnu: Optimize the package graph. 2020-03-29 23:14:28 +02:00
import import/cran: Import missing module. 2020-03-25 16:28:57 +01:00
scripts reconfigure: Correctly re-throw SRFI-34 exceptions on Guile 3. 2020-04-08 00:05:45 +02:00
store deduplication: Use nix-base32 encoding for link names. 2020-02-22 00:46:06 +01:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm Remove workaround for 'time-monotonic' in Guile 2.2.2. 2020-03-22 16:49:47 +01:00
channels.scm channels: Call 'build-self.scm' procedure with a trivial build handler. 2020-04-06 23:56:24 +02:00
ci.scm ci: Fix 'evaluation-spec' binding. 2020-03-31 14:55:42 +02:00
colors.scm ui: Don't disable colors when INSIDE_EMACS is set. 2020-02-24 11:01:52 +01:00
combinators.scm
config.scm.in
cpio.scm
cve.scm
cvs-download.scm
deprecation.scm
derivations.scm derivations: Inline 'find' in 'coalesce-duplicate-inputs'. 2020-01-23 23:34:10 +01:00
describe.scm
diagnostics.scm
discovery.scm
docker.scm
download.scm download: Use correct system and guile in 'url-fetch/tarbomb' and 'url-fetch/zipbomb'. 2020-04-08 19:35:34 +02:00
elf.scm
ftp-client.scm
gexp.scm gexp: 'lower-references' uses 'mapm/accumulate-builds'. 2020-04-02 11:48:25 +02:00
git-download.scm
git.scm git: Don't try to resolve tags with 'tag-lookup'. 2020-04-02 23:15:11 +02:00
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm grafts: Simplify access to store item references. 2020-04-02 00:06:26 +02:00
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm inferior: '&inferior-exception' includes a stack trace. 2020-03-19 15:14:08 +01:00
json.scm
licenses.scm licenses: Add QWT 1.0 license. 2020-03-24 11:42:41 +01:00
lint.scm lint: 'm4' is a native input. 2020-04-07 17:59:00 +02:00
lzlib.scm lzlib: Define 'dictionary-size+match-length-limit'. 2020-01-16 23:14:05 +01:00
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm gnu: Move PACKAGES-WITH-*PATCHES to (guix packages) 2020-04-06 14:02:42 -04:00
pki.scm
profiles.scm profiles: Compute manual database entries in parallel. 2020-03-31 14:55:42 +02:00
profiling.scm
progress.scm Remove workaround for 'time-monotonic' in Guile 2.2.2. 2020-03-22 16:49:47 +01:00
records.scm records: Have ABI check work well for cross-compilation. 2020-04-08 00:05:45 +02:00
remote.scm
repl.scm repl: Return stack traces along with exceptions. 2020-03-19 15:14:08 +01:00
scripts.scm scripts: Show disk-space warning when under the min of the thresholds. 2020-03-06 08:32:01 +01:00
search-paths.scm
self.scm self: Build with Guile 3.0. 2020-01-23 23:34:10 +01:00
serialization.scm serialization: 'read-byte-string' makes a single read(2) call. 2020-01-24 23:56:43 +01:00
sets.scm
ssh.scm ssh: 'send-files' reports missing modules on the remote host. 2020-03-23 10:48:17 +01:00
status.scm Revert "Allow double-click select of URL in status" 2020-04-07 22:09:14 +02:00
store.scm store: 'with-store' uses 'with-exception-handler'. 2020-04-05 00:36:44 +02:00
svn-download.scm
swh.scm swh: Handle absolute URLs being returned by the API. 2020-02-23 12:30:18 +01:00
tests.scm
ui.scm ui: Clarify "dependencies changed". 2020-04-02 11:48:24 +02:00
upstream.scm
utils.scm
workers.scm
zlib.scm