Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gst-plugins-base,gst_all_1.gst-plugins-base: apply patch for CVE-2019-9928

Refactor the patchPhase management for the package along the way to
something more standard.

(Cherry pick from 97e4a11b003a5a88397d9a1fc4ee8ce8f006a396 with an extra
version of the package to patch in 19.03.)

+15 -3
+5
pkgs/development/libraries/gstreamer/base/default.nix
··· 66 66 sha256 = "07x43xis0sr0hfchf36ap0cibx0lkfpqyszb3r3w9dzz301fk04z"; 67 67 }) 68 68 ./fix_pkgconfig_includedir.patch 69 + (fetchurl { 70 + url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/commit/f672277509705c4034bc92a141eefee4524d15aa.patch"; 71 + name = "CVE-2019-9928.patch"; 72 + sha256 = "0hz3lsq3ppmaf329sbyi05y1qniqfj9vlp2f3z918383pvrcms4i"; 73 + }) 69 74 ]; 70 75 }
+10 -3
pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix
··· 18 18 sha256 = "0jp6hjlra98cnkal4n6bdmr577q8mcyp3c08s3a02c4hjhw5rr0z"; 19 19 }; 20 20 21 - patchPhase = '' 21 + patches = [ 22 + ./gcc-4.9.patch 23 + (fetchurl { 24 + url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/commit/f672277509705c4034bc92a141eefee4524d15aa.patch"; 25 + name = "CVE-2019-9928.patch"; 26 + sha256 = "0hz3lsq3ppmaf329sbyi05y1qniqfj9vlp2f3z918383pvrcms4i"; 27 + }) 28 + ]; 29 + 30 + postPatch = '' 22 31 sed -i 's@/bin/echo@echo@g' configure 23 32 sed -i -e 's/^ /\t/' docs/{libs,plugins}/Makefile.in 24 - 25 - patch -p1 < ${./gcc-4.9.patch} 26 33 ''; 27 34 28 35 outputs = [ "out" "dev" ];