encodefix.patch 932 B

12345678910111213141516171819202122232425262728
  1. From a4e22c7f2a519f24bc8aa89c6677017c0fe13679 Mon Sep 17 00:00:00 2001
  2. From: Richard Purdie <richard.purdie@linuxfoundation.org>
  3. Date: Tue, 18 Feb 2020 17:27:26 +0000
  4. Subject: [PATCH] perl: Fix encode module reproducibility issues
  5. The code is encoding host compiler parameters into target builds. Avoid
  6. this for our target builds (patch is target specific, not native)
  7. Upstream-Status: Inappropriate [Cross compile hack]
  8. RP 2020/2/18
  9. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  10. ---
  11. cpan/Encode/bin/enc2xs | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
  14. index 502ae39..7669b05 100644
  15. --- a/cpan/Encode/bin/enc2xs
  16. +++ b/cpan/Encode/bin/enc2xs
  17. @@ -195,7 +195,7 @@ sub compiler_info {
  18. # above becomes false.
  19. my $sized = $declaration && !($compat && !$pedantic);
  20. - return ($cpp, $static, $sized);
  21. + return (0, 1, 1);
  22. }