Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctags: fix source url #41382

Merged
merged 2 commits into from Jun 3, 2018
Merged

ctags: fix source url #41382

merged 2 commits into from Jun 3, 2018

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Jun 2, 2018

The upstream SVN appears to no longer exist:

svn: E170013: Unable to connect to a repository at URL 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk'
svn: E160013: '/svnroot/ctags/trunk' path not found

The download homepage just references the sourceforge download:
http://ctags.sourceforge.net/
which is version 5.8.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

The upstream SVN appears to no longer exist:
```
svn: E170013: Unable to connect to a repository at URL 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk'
svn: E160013: '/svnroot/ctags/trunk' path not found
```

The download homepage just references the sourceforge download:
http://ctags.sourceforge.net/
which is version 5.8.
# don't use $T(E)MP which is set to the build directory
configureFlags= [ "--enable-tmpdir=/tmp" ];
# lregex.c:411:4: error: format not a string literal and no format arguments [-Werror=format-security]
hardeningDisable = [ "format" ];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what the difference between this version and whatever they had in their (deco'd?) SVN repository is, but this one appears to not need the configure flag, although it does need the hardening flag.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should make this change. The latest available release (816, which we have now) is from 2014, this PR downgrades to a 2009 version (IIRC, with some CVE vulnerabilities). The 816 code is still there at https://sourceforge.net/p/ctags/code/HEAD/tree/trunk/ .

@bhipple
Copy link
Contributor Author

bhipple commented Jun 2, 2018

@GrahamcOfBorg build ctags

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: ctags

Partial log (click to expand)

cp ./ctags.1 /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/man1/ctags.1  &&  chmod 644 /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/man1/ctags.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8
shrinking /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/bin/ctags
gzipping man pages under /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/bin
patching script interpreter paths in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8
checking for references to /build in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8...
/nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: ctags

Partial log (click to expand)

cp ./ctags.1 /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8/share/man/man1/ctags.1  &&  chmod 644 /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8/share/man/man1/ctags.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8
shrinking /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8/bin/ctags
gzipping man pages under /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8/share/man/
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8/bin
patching script interpreter paths in /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8
checking for references to /build in /nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8...
/nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: ctags

Partial log (click to expand)

/nix/store/3ddiifgd68rm469dq8wxv2pcvcqm7ip8-ctags-5.8

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: ctags

Partial log (click to expand)

cp ./ctags.1 /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/man1/ctags.1  &&  chmod 644 /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/man1/ctags.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8
shrinking /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/bin/ctags
gzipping man pages under /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/share/man/
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8/bin
patching script interpreter paths in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8
checking for references to /build in /nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8...
/nix/store/l6lzqggbm85gbjif54qpsnmdxfwvf84n-ctags-5.8

Copy link
Contributor

@xeji xeji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to figure out the correct stable URL for fetching r816 from svn.

# don't use $T(E)MP which is set to the build directory
configureFlags= [ "--enable-tmpdir=/tmp" ];
# lregex.c:411:4: error: format not a string literal and no format arguments [-Werror=format-security]
hardeningDisable = [ "format" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should make this change. The latest available release (816, which we have now) is from 2014, this PR downgrades to a 2009 version (IIRC, with some CVE vulnerabilities). The 816 code is still there at https://sourceforge.net/p/ctags/code/HEAD/tree/trunk/ .

@xeji
Copy link
Contributor

xeji commented Jun 2, 2018

Update: just change the fetchsvn url to
url = "https://svn.code.sf.net/p/ctags/code/trunk";
and r816 downloads and builds fine. No other changes required.

@bhipple
Copy link
Contributor Author

bhipple commented Jun 3, 2018

Ah thanks @xeji! I'm glad we can just swap to a moved URL instead of downgrading to the "official" release, which appears semi-abandonded.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: ctags

Partial log (click to expand)

cp ./ctags.1 /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816/share/man/man1/ctags.1  &&  chmod 644 /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816/share/man/man1/ctags.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816
shrinking /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816/bin/ctags
gzipping man pages under /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816/share/man/
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816/bin
patching script interpreter paths in /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816
checking for references to /build in /nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816...
/nix/store/knj759y2cpg5vbmdk710ygzwcw8lh2ar-ctags-816

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: ctags

Partial log (click to expand)

cp ./ctags.1 /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816/share/man/man1/ctags.1  &&  chmod 644 /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816/share/man/man1/ctags.1
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816
shrinking /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816/bin/ctags
gzipping man pages under /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816/share/man/
strip is /nix/store/qg2agrqkf240s656d207zqhipl0bc2id-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816/bin
patching script interpreter paths in /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816
checking for references to /build in /nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816...
/nix/store/cj15bjd6yidazyb98akdqss3ais83bg3-ctags-816

@xeji xeji merged commit 646767e into NixOS:master Jun 3, 2018
orivej added a commit that referenced this pull request Jun 4, 2018
* master: (26 commits)
  python.pkgs.cairocffi: update tests for Cairo 1.15.12
  python.pkgs.cairocffi: 0.8.0 -> 0.8.1
  freecell-solver: fix build
  perlPackages.CPANPLUS: restore build inputs removed in #41394
  Fix GHCJS 8.4/8.2 in sandboxed builds (#41411)
  dockerTools.pullImage: expose image* attributes (#41366)
  rust: disable tests on darwin
  python.pkgs.detox: 0.11 -> 0.12
  certbot: disable check on darwin
  freeimage: fix build with glibc 2.27
  shadowsocks-libev: supports darwin (#41421)
  pythonPackages.jira: fix build (#41419)
  SDL: propagate libiconv
  schema2ldif: Init at 1.3
  nixos/exim: Add unit restart trigger (#41418)
  Add myself as maintainer for dnsdist
  Add myself as maintainer
  synapse-bt: init at 2018-06-04 (#41402)
  skim: 0.3.2 -> 0.4.0 (#41417)
  ctags: fix source url (#41382)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants