From 1cb29e8d5cca1b552bf8229a80087fe336791e22 Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Fri, 19 Apr 2019 03:16:43 -0500 Subject: games-roguelike/stone-soup: Patch out unsafe pyyaml load call Closes: https://bugs.gentoo.org/683466 Signed-off-by: Erik Mackdanz Package-Manager: Portage-2.3.62, Repoman-2.3.12 --- games-roguelike/stone-soup/files/pyyaml-safe-load.patch | 11 +++++++++++ games-roguelike/stone-soup/stone-soup-0.23.2.ebuild | 1 + 2 files changed, 12 insertions(+) create mode 100644 games-roguelike/stone-soup/files/pyyaml-safe-load.patch (limited to 'games-roguelike/stone-soup') diff --git a/games-roguelike/stone-soup/files/pyyaml-safe-load.patch b/games-roguelike/stone-soup/files/pyyaml-safe-load.patch new file mode 100644 index 000000000000..dfbcdc96e1ad --- /dev/null +++ b/games-roguelike/stone-soup/files/pyyaml-safe-load.patch @@ -0,0 +1,11 @@ +--- /util/species-gen.py 2019-04-18 23:19:07.444170831 -0500 ++++ /util/species-gen.py 2019-04-18 23:20:19.958169533 -0500 +@@ -417,7 +417,7 @@ + continue + f_path = os.path.join(args.datadir, f_name) + try: +- species_spec = yaml.load(open(f_path)) ++ species_spec = yaml.safe_load(open(f_path)) + except yaml.YAMLError as e: + print("Failed to load %s: %s" % (f_name, e)) + sys.exit(1) diff --git a/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild b/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild index 97418769c952..a587c1998687 100644 --- a/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild @@ -63,6 +63,7 @@ S=${WORKDIR}/${MY_P}/source S_TEST=${WORKDIR}/${MY_P}_test/source PATCHES=( "${FILESDIR}"/gitless.patch + "${FILESDIR}"/pyyaml-safe-load.patch "${FILESDIR}"/rltiles-ldflags-libs.patch ) -- cgit v1.2.3-65-gdbad