Debian Bug report logs - #1034147
ruby-regexp-parser: please make the build reproducible

version graph

Package: src:ruby-regexp-parser; Maintainer for src:ruby-regexp-parser is Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>;

Reported by: "Chris Lamb" <lamby@debian.org>

Date: Mon, 10 Apr 2023 11:39:01 UTC

Severity: wishlist

Tags: patch

Found in version ruby-regexp-parser/2.6.1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#1034147; Package src:ruby-regexp-parser. (Mon, 10 Apr 2023 11:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>. (Mon, 10 Apr 2023 11:39:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Chris Lamb" <lamby@debian.org>
To: submit@bugs.debian.org
Subject: ruby-regexp-parser: please make the build reproducible
Date: Mon, 10 Apr 2023 12:35:52 +0100
[Message part 1 (text/plain, inline)]
Source: ruby-regexp-parser
Version: 2.6.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
ruby-regexp-parser could not be built reproducibly.

This is because it uses the ragel compiler that, by default, will add
line annotations that include the absolute build path:

  /usr/share/rubygems-integration/all/gems/regexp_parser-2.6.1/lib/regexp_parser/scanner.rb
  @@ -1,12 +1,12 @@
   # -*- warn-indent:false;  -*-

  -# line 1 "/build/1st/ruby-regexp-parser-2.6.1/tasks/../lib/regexp_parser/scanner/scanner.rl"
  +# line 1 "/build/2/ruby-regexp-parser-2.6.1/2nd/tasks/../lib/regexp_parser/scanner/scanner.rl"

(etc.)

A patch is attached that adjusts the call to ragel to include the -L
argument that suppresses these additions.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[ruby-regexp-parser.diff.txt (text/plain, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:44:00 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.