Subject: [bug#27906] [PATCH] r-foreign: Update hash and remove duplicate recipe.

From: Roel Janssen <[email-masked]>
Date: Tue, 01 Aug 2017 19:21:56 +0200

Efraim Flashner writes:

> I have /gnu/store/l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz
> if that would help

Now this is odd:
$ wget http://cran.r-project.org/src/contrib/Archive/foreign/foreign_0.8-67.tar.gz
$ tar axvf l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz 
$ mv foreign foreign-orig
$ tar axvf foreign_0.8-67.tar.gz 
$ mv foreign foreign-new
$ diff -r foreign-orig/ foreign-new/
$

So, no difference?

Let's check the tarball md5 sums:
ab00fa606625711a46c54d772c0cefe8  l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz
896db4d1a62fe09c6ecc12d759492267  foreign_0.8-67.tar.gz

Could anyone confirm that they get a different hash as well?:
guix gc -d /gnu/store/l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz
guix build -S r-foreign --no-substitutes

I get:
>From http://cran.r-project.org/src/contrib/Archive/foreign/foreign_0.8-67.tar.gz...
 ...8-67.tar.gz  326KiB             833KiB/s 00:00 [####################] 100.0%
sha256 hash mismatch for output path `/gnu/store/l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz'
  expected: 1mcrm2pydimbyjhkrw5h380bifj1jhwzifph1xgh90asf3lvd1xd
  actual:   0j0z815zyp8n97rk6hlk68d1r8b26vls39s03viq0pnx3cbpwyga
@ build-failed /gnu/store/7wm6w3b4ll9nq35ldchi56mzspz4gsi8-foreign_0.8-67.tar.gz.drv - 1 sha256 hash mismatch for outp
ut path `/gnu/store/l1xl1hya1q2vdr059i00s0q9rpwb846a-foreign_0.8-67.tar.gz'                                          
  expected: 1mcrm2pydimbyjhkrw5h380bifj1jhwzifph1xgh90asf3lvd1xd
  actual:   0j0z815zyp8n97rk6hlk68d1r8b26vls39s03viq0pnx3cbpwyga
guix build: error: build failed: build of `/gnu/store/7wm6w3b4ll9nq35ldchi56mzspz4gsi8-foreign_0.8-67.tar.gz.drv' fail
ed

Thanks in advance!

Kind regards,
Roel Janssen