Source: lynx-cur Version: 2.8.9dev6-3 Severity: wishlist Tags: patch User: [email protected] Usertags: locale X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that lynx-cur could not be built reproducibly. A generated header file contains elements, whose sorting order depends on the locale. The attached patch fixes this by setting LC_ALL to C before sorting. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/40_reproducible_build.diff b/debian/patches/40_reproducible_build.diff index 0b38518..67d0b62 100644 --- a/debian/patches/40_reproducible_build.diff +++ b/debian/patches/40_reproducible_build.diff @@ -1,5 +1,7 @@ -Description: Make build reproducible by removing __DATE__ and __TIME__ macros - See https://wiki.debian.org/ReproducibleBuilds/TimestampsFromCPPMacros +Description: Make build reproducible + - Remove __DATE__ and __TIME__ macros + See https://wiki.debian.org/ReproducibleBuilds/TimestampsFromCPPMacros + - Sort cfg_defs.h independent of locale Author: Axel Beckert <[email protected]> Index: lynx-cur/src/LYMain.c @@ -45,3 +47,16 @@ Index: lynx-cur/src/LYMain.c #endif /* __DJGPP__ */ #endif /* _MSC_VER */ #endif /* __BORLANDC__ */ +Index: lynx-cur-2.8.9dev6/scripts/cfg_edit.sh +=================================================================== +--- lynx-cur-2.8.9dev6.orig/scripts/cfg_edit.sh ++++ lynx-cur-2.8.9dev6/scripts/cfg_edit.sh +@@ -7,7 +7,7 @@ + # Append a '=' if none present' + # Break into two strings at '=' + # Prefix ' { "' and suffix '" },' +-sort | ++LC_ALL=C sort | + sed -e 's!^[ ]*!!' -e 's![ ]*$!!' \ + -e 's!\\!\\\\!g' \ + -e 's!"!\\"!g' \
signature.asc
Description: OpenPGP digital signature

