summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-06-30 19:26:34 +0100
committerSam James <sam@gentoo.org>2024-06-30 19:27:44 +0100
commitd9691f1d5dd9a126804102572ac812d9c8a4ee16 (patch)
tree5e5588e1e057318af20cc52e34ecd4d2fc506d64 /eclass
parentdev-python/cramjam: Keyword 2.8.3 sparc, #925721 (diff)
downloadgentoo-d9691f1d5dd9a126804102572ac812d9c8a4ee16.tar.gz
gentoo-d9691f1d5dd9a126804102572ac812d9c8a4ee16.tar.bz2
gentoo-d9691f1d5dd9a126804102572ac812d9c8a4ee16.zip
gstreamer-meson.eclass: fix handling meson-1.5's pretty-printed JSON
meson-1.5 pretty-prints its JSON which means the target JSON file here spawns multiple lines. <$x> will only read one line, per https://github.com/makamaka/JSON-PP/issues/85#issuecomment-1367719155. Switch to reading the whole file like in https://stackoverflow.com/a/24959863. Cloess: https://bugs.gentoo.org/935245 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gstreamer-meson.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/gstreamer-meson.eclass b/eclass/gstreamer-meson.eclass
index a26b06ba4595..937c86a0f15b 100644
--- a/eclass/gstreamer-meson.eclass
+++ b/eclass/gstreamer-meson.eclass
@@ -393,7 +393,7 @@ use utf8;
use JSON::PP;
open(my $targets_file, '<:encoding(UTF-8)', 'meson-info/intro-targets.json') || die $!;
-my $data = decode_json <$targets_file>;
+my $data = decode_json (join '', <$targets_file>);
close($targets_file) || die $!;
if(!$ARGV[0]) {