Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1149072

Bug#1037235: gradle-kotlin-dsl: reproducible-builds: generated classpath files differ when /bin/sh -> bash

From Vagrant Cascadian <vagrant@reproducible-builds.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1037235: gradle-kotlin-dsl: reproducible-builds: generated classpath files differ when /bin/sh -> bash
Date 2023-06-09 01:00 +0200
Message-ID <GEwLL-eB7M-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: gradle-kotlin-dsl
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

When /bin/sh points to bash vs. dash, two classpath files get generated
different with different content.

  https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/gradle-kotlin-dsl.html

  runtime=annotations-13.0.jar,gradle-kotlin-dsl-tooling-models.jar ...
  vs.
  projects=\nruntime=annotations-13.0.jar,gradle-kotlin-dsl-tooling-models.jar ...

The attached patch fixes this in debian/rules by using printf instead of
echo, as echo implementations vary in the handling of "\n" in different
shells.

According to my local tests, applying this patch should make
gradle-jotlin-dsl build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining gradle-kotlin-dsl!

live well,
  vagrant

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1037235: gradle-kotlin-dsl: reproducible-builds: generated classpath files differ when /bin/sh -> bash Vagrant Cascadian <vagrant@reproducible-builds.org> - 2023-06-09 01:00 +0200

csiph-web