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


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

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

Started byVagrant Cascadian <vagrant@reproducible-builds.org>
First post2023-06-09 01:00 +0200
Last post2023-06-09 01:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

  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

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

FromVagrant Cascadian <vagrant@reproducible-builds.org>
Date2023-06-09 01:00 +0200
SubjectBug#1037235: gradle-kotlin-dsl: reproducible-builds: generated classpath files differ when /bin/sh -> bash
Message-ID<GEwLL-eB7M-3@gated-at.bofh.it>

[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

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web