nixpkgs/pkgs/tools/text
Chuck 2327204ad0 gnupatch: Don't fetch from cgit URLs with unstable hashes
cgit cannot serve patches with stable hashes, so store these patches
in-tree.  cgit community discussion about this problem:
https://lists.zx2c4.com/pipermail/cgit/2017-February/003470.html

We pull the patches in-tree rather than strip cgit footers with fetchpatch
because per https://github.com/NixOS/nixpkgs/pull/61471#issuecomment-493218587
dependencies of fetchpatch cannot use fetchpatch.

Verification that the only difference between the live page, the
patch committed here, and the version cached under the old hash at
tarballs.nixos.org is the cgit version footer:

$ curl -s -L http://tarballs.nixos.org/sha256/"$(nix-hash --type sha256 --to-base16 0iw0lk0yhnhvfjzal48ij6zdr92mgb84jq7fwryy1hdhi47hhq64)" > Allow_input_files_to_be_missing_for_ed-style_patches.patch
$ diff -U0 --label cgit-live <( curl -s -L https://git.savannah.gnu.org/cgit/patch.git/patch/?id=b5a91a01e5d0897facdd0f49d64b76b0f02b43e1 ) Allow_input_files_to_be_missing_for_ed-style_patches.patch
--- cgit-live
+++ Allow_input_files_to_be_missing_for_ed-style_patches.patch  2020-01-29 17:22:00.077312937 -0800
@@ -32 +32 @@
-cgit v1.2.1
+cgit v1.0-41-gc330

$ curl -s -L http://tarballs.nixos.org/sha256/"$(nix-hash --type sha256 --to-base16 1bpy16n3hm5nv9xkrn6c4wglzsdzj3ss1biq16w9kfv48p4hx2vg)" > CVE-2018-1000156.patch
$ diff -U0 --label cgit-live <( curl -s -L https://git.savannah.gnu.org/cgit/patch.git/patch/?id=123eaff0d5d1aebe128295959435b9ca5909c26d ) CVE-2018-1000156.patch
--- cgit-live
+++ CVE-2018-1000156.patch      2020-01-29 17:23:41.021116969 -0800
@@ -210 +210 @@
-cgit v1.2.1
+cgit v1.0-41-gc330
2020-01-30 14:23:33 -08:00
..
a2ps
agrep treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
aha treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
amber amber: 0.5.2 -> 0.5.3 2019-12-01 12:05:04 -08:00
ansifilter treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
ascii treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
bcat bundlerUpdateScript: init and use (#64822) 2019-07-22 12:02:47 +00:00
boxes boxes: init at 1.3 2019-11-30 16:06:04 +01:00
catdoc maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
catdocx
cconv treewide: name -> pname 2019-08-17 10:54:38 +00:00
codesearch treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
colordiff
coloursum coloursum: fix darwin build 2019-11-09 22:50:05 +02:00
convertlit
copyright-update treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
csvkit csvkit: fix failing test 2019-09-13 15:29:32 +02:00
dadadodo treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
diction treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
diffr diffr: init at 0.1.2 2019-09-26 11:46:13 +01:00
diffstat diffstat: 1.62 -> 1.63 2019-12-08 12:58:58 +01:00
diffutils diffutils: 3.6 -> 3.7 2019-01-02 01:00:44 -06:00
discount maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
dos2unix maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
ebook-tools
enca treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
enscript Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
epubcheck epubcheck: 4.2.1 -> 4.2.2 2019-07-30 13:01:17 +02:00
esh treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
fanficfare Merge pull request #78078 from r-ryantm/auto-update/FanFicFare 2020-01-21 07:48:00 -08:00
gawk gawk: *Flags are lists 2019-12-30 11:13:38 +01:00
gist gist: 4.6.2 -> 5.0.0, simplify 2018-11-27 09:40:17 -06:00
glogg treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gnugrep treewide: name -> pname 2019-08-17 10:54:38 +00:00
gnupatch gnupatch: Don't fetch from cgit URLs with unstable hashes 2020-01-30 14:23:33 -08:00
gnused gnused: 4.7 -> 4.8 2020-01-16 21:40:10 +00:00
grin
grip-search grip-search: init at 0.8 2019-11-14 22:11:58 +01:00
groff groff: Fix cross-compilation 2019-11-08 22:05:49 -05:00
gtranslator gtranslator: 3.32.1 → 3.34.0 2019-10-27 22:28:33 -07:00
gucci treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
highlight maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
html2text
html-tidy treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
hyx hyx: limit to linux 2018-11-10 09:38:23 +00:00
icdiff icdiff: 1.9.4 -> 1.9.5 2019-09-26 14:47:06 -07:00
invoice2data treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
ispell ispell: 3.3.02 -> 3.4.00 2019-08-31 13:35:46 -06:00
jsawk treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
jumanpp treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
kakasi kakasi: make tests run, but disable 2018-08-11 09:35:33 +00:00
kdiff3 kdiff3: fix build 2019-11-22 17:41:47 +01:00
kytea maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
languagetool languagetool: 4.7 -> 4.8 2020-01-21 19:51:48 +00:00
link-grammar link-grammar: 5.6.2 -> 5.7.0 2019-09-26 19:25:36 -07:00
lv lv: init at 4.51 2019-09-08 11:54:16 +09:00
mairix
markdown-pp markdown-pp: init at 1.4 (#43525) 2018-07-17 13:24:13 +02:00
mawk mawk: 1.3.4-20190203 -> 1.3.4-20200106 2020-01-22 13:27:27 +01:00
mb2md treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mdbook mdbook: 0.3.1 -> 0.3.5 2019-11-23 18:47:22 -08:00
mdcat mdcat: 0.14.0 -> 0.15.0 2020-01-14 16:42:15 +01:00
mecab treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
miller miller: 5.5.0 -> 5.6.2 2019-09-23 15:06:30 +02:00
mir-qualia treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mpage mpage: 2.5.6 -> 2.5.7 (#42689) 2018-06-30 20:49:42 +02:00
multitran treewide: NIX_*_FLAGS -> string 2019-12-31 00:16:46 +01:00
namazu lib.makePerlPath -> perlPackages.makePerlPath 2018-12-15 03:50:31 +00:00
nawk
nkf nkf: 2.1.4 -> 2.1.5 2019-06-08 23:44:13 -05:00
numdiff maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
ocrmypdf ocrmypdf: 9.4.0 -> 9.5.0 2020-01-21 18:17:30 -06:00
odt2txt treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
opencc treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH 2020-01-15 09:47:03 +01:00
papertrail Treewide: fix URL permanent redirects 2019-11-16 01:41:23 +01:00
par par: use pname 2019-11-25 23:27:58 -05:00
patchutils Merge staging-next into staging 2019-08-31 18:07:33 +02:00
peco treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
platinum-searcher treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
podiff treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
poedit poedit: 2.2.1 -> 2.2.4 2019-10-07 18:55:17 -07:00
popfile treewide: remove aliases evaluated to null 2018-12-14 16:27:53 +00:00
proselint treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
qgrep qgrep: fix darwin and aarch64-linux build 2019-12-28 17:20:06 +01:00
qprint
qshowdiff treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
reckon treewide: fix types for mkDerivation params 2019-12-31 01:23:19 +01:00
recode recode: 3.7.4 -> 3.7.6, use python3 2019-11-14 13:20:55 +01:00
replace treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
ripgrep treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
ripgrep-all treewide: update which packages I'm currently maintaining 2019-12-26 15:27:47 +01:00
rpl treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
rst2html5 treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
ruby-zoom bundlerUpdateScript: init and use (#64822) 2019-07-22 12:02:47 +00:00
ruplacer ruplacer: init at 0.4.1 2019-11-07 13:31:51 +02:00
schema2ldif treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
sd sd: 0.5.0 -> 0.6.5 2019-06-19 19:58:49 -05:00
sgml treewide: NIX_*_FLAGS -> string 2019-12-31 00:15:46 +01:00
shab treewide: remove uses of doBuild and doConfigure 2019-09-02 23:42:12 +02:00
shfmt shfmt: 2.6.4 -> 3.0.1 (#77537) 2020-01-11 23:33:16 -08:00
shocco treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
sift treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
silver-searcher treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
smu smu: Do not use DESTDIR 2019-12-29 21:06:02 +01:00
snippetpixie treewide: pantheon updateScript 2019-12-22 18:20:55 -05:00
source-highlight sourceHighlight: 3.1.8 -> 3.1.9 2019-11-13 18:41:39 +01:00
staccato treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
tab tab: init at 7.2 2019-10-20 13:38:13 -07:00
transifex-client transifex-client: Fix build 2019-11-01 07:54:31 +01:00
txt2tags treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
uni2ascii
unoconv unoconv: fixing sha256 2020-01-25 10:57:51 +01:00
unrtf treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
untex treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
vale vale: use buildGoPackage 2019-09-21 04:20:00 -05:00
wdiff Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
wgetpaste maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
xidel treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
xml sablotron: remove 2019-11-08 22:25:08 +01:00
xsv treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
xurls maintainer-list.nix: remove ndowens 2019-12-26 16:47:41 -05:00
yaml-merge treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
zimreader treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
zimwriterfs treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00