0004-3rdparty-heindal-Use-perl-module-JSON-part-of-core-i.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From bd8fc19c8383914b518a9d56f4c08fba3baeb967 Mon Sep 17 00:00:00 2001
  2. From: "Yann E. MORIN" <yann.morin.1998@free.fr>
  3. Date: Sun, 7 May 2023 11:02:26 +0200
  4. Subject: [PATCH] 3rdparty/heimdal: Use perl module JSON:PP, part of core, instead
  5. of JSON package
  6. Downloaded from
  7. https://github.com/openwrt/packages/blob/master/net/samba4/patches/105-perl-json-pp.patch
  8. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  9. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
  10. Upstream: https://github.com/heimdal/heimdal/pull/1176
  11. ---
  12. third_party/heimdal/cf/make-proto.pl | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/third_party/heimdal/cf/make-proto.pl b/third_party/heimdal/cf/make-proto.pl
  15. index 36a040ce6c0..ad21dbad9e1 100644
  16. --- a/third_party/heimdal/cf/make-proto.pl
  17. +++ b/third_party/heimdal/cf/make-proto.pl
  18. @@ -4,7 +4,7 @@
  19. use Getopt::Std;
  20. use File::Compare;
  21. -use JSON;
  22. +use JSON::PP;
  23. my $comment = 0;
  24. my $doxygen = 0;
  25. @@ -70,7 +70,7 @@ if($opt_x) {
  26. my $EXP;
  27. local $/;
  28. open(EXP, '<', $opt_x) || die "open ${opt_x}";
  29. - my $obj = JSON->new->utf8->decode(<EXP>);
  30. + my $obj = JSON::PP->new->utf8->decode(<EXP>);
  31. close $EXP;
  32. foreach my $x (keys %$obj) {
  33. --
  34. 2.25.1