Source: jskeus
Version: 1.2.4+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: environment
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
jskeus could not be built reproducibly.

This is because it generates a different usr/share/euslisp/irteus/test.c
depending on whether /bin/sh is dash or bash:

 -#include "eus.h"
 -#undef defun
 -pointer TEST();
 -void test(void) {register context *ctx; pointer mod; 
defun(ctx,"TEST",mod,TEST,NULL);}
 +#include "eus.h"\n#undef defun\npointer TEST();\nvoid test(void) {register 
context *ctx; pointer mod; defun(ctx,"TEST",mod,TEST,NULL);}

(Patch attached that uses printf instead.)

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2020-07-24 11:45:11.440551173 
+0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2020-07-24
+
+--- jskeus-1.2.4+dfsg.orig/irteus/Makefile
++++ jskeus-1.2.4+dfsg/irteus/Makefile
+@@ -177,7 +177,7 @@ MKDIR:
+ 
+ .PHONY: defun.h
+ defun.h:
+-      echo '#include "eus.h"\n#undef defun\npointer TEST();\nvoid test(void) 
{register context *ctx; pointer mod; defun(ctx,"TEST",mod,TEST,NULL);}' > test.c
++      printf '#include "eus.h"\n#undef defun\npointer TEST();\nvoid 
test(void) {register context *ctx; pointer mod; 
defun(ctx,"TEST",mod,TEST,NULL);}\n' > test.c
+       echo "// redefine defun for update defun() API () 
https://github.com/euslisp/EusLisp/pull/116"; > defun.h
+       echo "#undef defun" >> defun.h
+       $(CC) $(CFLAGS) $(WFLAGS) -c test.c $(OBJOPT) test.o || echo "#define 
defun(a, b, c, d, e) defun(a, b, c, d) // for EusLisp < 9.24" >> defun.h
--- a/debian/patches/series     2020-07-24 11:29:15.620084291 +0100
--- b/debian/patches/series     2020-07-24 11:45:10.440537576 +0100
@@ -2,3 +2,4 @@
 makefile-for-debian.patch
 fix-make-clean.patch
 
+reproducible-build.patch
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to