bugPSPP - Bugs: bug #58975, spv produces irreproducible build

 
 

bug #58975: spv produces irreproducible build

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Tue 18 Aug 2020 05:43:46 AM UTC
   
 
Category:  Compilation/Portability Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 29 Aug 2020 01:30:53 PM UTC, comment #3: 
Friedrich Beckmann <beckmanf>
Group Member
Thu 20 Aug 2020 09:52:20 PM UTC, comment #2: 

I guess the irreproducible build comes from the xml-parser-generator. Each run produces different output files:


fredo:spv fritz$ python3 xml-parser-generator detail-xml.grammar header spvdx > detail-xml-parser.h.1
fredo:spv fritz$ python3 xml-parser-generator detail-xml.grammar header spvdx > detail-xml-parser.h.2
fredo:spv fritz$ diff -q detail-xml-parser.h.1 detail-xml-parser.h.2
Files detail-xml-parser.h.1 and detail-xml-parser.h.2 differ
fredo:spv fritz$


I think the reason is that the iteration over dicts is by design randomized:

http://jimmycallin.com/2016/01/03/make-your-python3-code-reproducible/


Friedrich Beckmann <beckmanf>
Group Member
Tue 18 Aug 2020 10:50:12 AM UTC, comment #1: 

src/output/spv/detail-xml-parser.c is a generated file.    I suggest you start by looking for any difference in this file between the two builds.

I couldn't see that debian makes these files available.

John Darrington <jmd>
Group administrator
Tue 18 Aug 2020 05:43:46 AM UTC, original submission:  

The debian build is checked for reproducible builds. It seems that the spv parser does not produce the same build result on each build:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/pspp.html

Any ideas?

Friedrich Beckmann <beckmanf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by beckmanf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-29 beckmanf StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code