Subject: [bug#69754] [PATCH 2/8] gnu: openjdk12: Update source hash.

From: Christopher Baines <[email-masked]>
Date: Thu, 14 Mar 2024 13:22:35 +0000

Greg Hogan <[email-masked]> writes:

> $ ./pre-inst-env guix build openjdk@12
> The following derivations will be built:
>   /gnu/store/l92r8cm2kmmv795ipn046yvxik7w355m-openjdk-12.33.drv
>   /gnu/store/hwaj99ak2v98m2b1ssmg31s93lddq8ql-openjdk-12.33.tar.xz.drv
>   /gnu/store/jnyzzcx42vvcdqv6j7fwz01ksw58s3ch-openjdk-12.33.tar.bz2.drv
>
> building /gnu/store/jnyzzcx42vvcdqv6j7fwz01ksw58s3ch-openjdk-12.33.tar.bz2.drv...
> \sha256 hash mismatch for /gnu/store/0g6yyyvhpx7b3scm2h079z72fv1740za-openjdk-12.33.tar.bz2:
>   expected hash: 0mbhdrk12b6878kby0flnbak7444dlpm0ihlmf92vk59y1c02bc2
>   actual hash:   0pi2gwib3j2imi4l623iaywrmvfh9rqzh82lj2gxqbrmg55swvjf
> hash mismatch for store item '/gnu/store/0g6yyyvhpx7b3scm2h079z72fv1740za-openjdk-12.33.tar.bz2'
> build of /gnu/store/jnyzzcx42vvcdqv6j7fwz01ksw58s3ch-openjdk-12.33.tar.bz2.drv failed
> View build log at '/var/log/guix/drvs/jn/yzzcx42vvcdqv6j7fwz01ksw58s3ch-openjdk-12.33.tar.bz2.drv.gz'.
> cannot build derivation `/gnu/store/hwaj99ak2v98m2b1ssmg31s93lddq8ql-openjdk-12.33.tar.xz.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/l92r8cm2kmmv795ipn046yvxik7w355m-openjdk-12.33.drv': 1 dependencies couldn't be built
> guix build: error: build of `/gnu/store/l92r8cm2kmmv795ipn046yvxik7w355m-openjdk-12.33.drv' failed
>
> * gnu/packages/java.scm (openjdk12): Update source hash.
> ---
>  gnu/packages/java.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

I asked diffoscope what's up with this change, some mercurial metadata
by the looks of it.

→ diffoscope /gnu/store/qqqpxqg51gz1diwjz067mk1hxxmkyz9a-openjdk-12.33.tar.xz /gnu/store/17482xhyh2blaxk2nyfpkrfjrzd3dlxz-openjdk-12.33.tar.xz
--- /gnu/store/qqqpxqg51gz1diwjz067mk1hxxmkyz9a-openjdk-12.33.tar.xz
+++ /gnu/store/17482xhyh2blaxk2nyfpkrfjrzd3dlxz-openjdk-12.33.tar.xz
│   --- qqqpxqg51gz1diwjz067mk1hxxmkyz9a-openjdk-12.33.tar
├── +++ 17482xhyh2blaxk2nyfpkrfjrzd3dlxz-openjdk-12.33.tar
│ ├── file list
│ │ @@ -1,10 +1,10 @@
│ │  drwxr-xr-x   0 root         (0) root         (0)        0 1970-01-01 00:00:01.000000 jdk-0276cba45aac/
│ │  -rw-r--r--   0 root         (0) root         (0)      196 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.gitignore
│ │ --rw-r--r--   0 root         (0) root         (0)      173 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.hg_archival.txt
│ │ +-rw-r--r--   0 root         (0) root         (0)      198 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.hg_archival.txt
│ │  -rw-r--r--   0 root         (0) root         (0)      211 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.hgignore
│ │  -rw-r--r--   0 root         (0) root         (0)    27133 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.hgtags
│ │  drwxr-xr-x   0 root         (0) root         (0)        0 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.jcheck/
│ │  -rw-r--r--   0 root         (0) root         (0)       23 1970-01-01 00:00:01.000000 jdk-0276cba45aac/.jcheck/conf
│ │  -rw-r--r--   0 root         (0) root         (0)     2114 1970-01-01 00:00:01.000000 jdk-0276cba45aac/ADDITIONAL_LICENSE_INFO
│ │  -rw-r--r--   0 root         (0) root         (0)     1522 1970-01-01 00:00:01.000000 jdk-0276cba45aac/ASSEMBLY_EXCEPTION
│ │  -rw-r--r--   0 root         (0) root         (0)    19274 1970-01-01 00:00:01.000000 jdk-0276cba45aac/LICENSE
│ ├── jdk-0276cba45aac/.hg_archival.txt
│ │ @@ -1,6 +1,7 @@
│ │  repo: fd16c54261b32be1aaedd863b7e856801b7f8543
│ │  node: 0276cba45aacb1fcb5a09d8c681fcdfef86c401b
│ │  branch: default
│ │  latesttag: jdk-12+33
│ │  latesttag: jdk-12-ga
│ │  latesttagdistance: 1
│ │ +changessincelatesttag: 1