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
..
2019-12-12 17:56:58 +01:00
2019-12-15 00:34:05 +01:00
2020-03-31 14:55:42 +02:00
2019-09-04 13:02:27 +02:00
2020-03-24 11:42:41 +01:00
2020-04-07 17:59:00 +02:00
2020-01-23 23:34:10 +01:00
2020-04-02 11:48:24 +02:00
2020-01-06 16:31:54 +01:00