Related:
- 9fc5e7e473
- 593e11fd94
- 508ae42a0f
Since the last time I ran this script, the Repology API changed, so I had to
adapt the script used in the previous PR. The new API should be more robust, so
overall this is a positive (no more grepping the error messages for our relevant
data but just a nice json structure).
Here's the new script I used:
```sh
curl https://repology.org/api/v1/repository/nix_unstable/problems \
| jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \
| sort | uniq | tee script.sed
find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
I will also add this script to `maintainers/scripts`.
* treewide: http -> https sources
This updates the source urls of all top-level packages from http to
https where possible.
* buildtorrent: fix url and tab -> spaces
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/html-xml-utils/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxaddid help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxaddid -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxcite -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxextract --help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxextract help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxextract -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxcopy -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxincl -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxpipe -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxremove help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxremove -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxselect help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxselect -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxtabletrans -v’ and found version 7.7
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxuncdata --help’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxwls -h’ got 0 exit code
- ran ‘/nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7/bin/hxref -v’ and found version 7.7
- found 7.7 with grep in /nix/store/bgy2cxgllc9d8ll74s3lglhfygjw4c63-html-xml-utils-7.7
- directory tree listing: https://gist.github.com/f303211f05f8424805b5314ae0ff7c9e
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxaddid -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxcite -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxextract --help` got 0 exit code
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxextract help` got 0 exit code
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxextract -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxcopy -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxincl -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxnum -V` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxnum -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxnum --version` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxpipe -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxremove -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxselect -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxtabletrans -v` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxuncdata --help` got 0 exit code
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxuncdata --help` and found version 7.6
- ran `/nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6/bin/hxref -v` and found version 7.6
- found 7.6 with grep in /nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6
- found 7.6 in filename of file in /nix/store/zmpviib2f0h0qh15j4qnzqxxkx2734n8-html-xml-utils-7.6
6.4 had a compile error:
```
scan.l:136:7: error: expected identifier or ‘(’ before ‘__extension__’
char *strndup(const char *s, size_t n);
^
```
This is caused by the standard library strndup() now living in string.h
and conflicting with another strndup() declared in scan.l. Version 6.9
fixes this.
This also removes the need for the boolean patch that we previously had.