Skip to content

Commit

Permalink
tetex: fix source urls
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Jan 24, 2017
1 parent f8e39ec commit 36ac705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/tools/typesetting/tex/tetex/default.nix
Expand Up @@ -4,13 +4,13 @@ stdenv.mkDerivation {
name = "tetex-3.0";

src = fetchurl {
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz;
md5 = "944a4641e79e61043fdaf8f38ecbb4b3";
url = http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz;
sha256 = "16v44465ipd9yyqri9rgxp6rbgs194k4sh1kckvccvdsnnp7w3ww";
};

texmf = fetchurl {
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-3.0.tar.gz;
md5 = "11aa15c8d3e28ee7815e0d5fcdf43fd4";
url = http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz;
sha256 = "1hj06qvm02a2hx1a67igp45kxlbkczjlg20gr8lbp73l36k8yfvc";
};

buildInputs = [ flex bison zlib libpng ncurses ed ];
Expand Down

12 comments on commit 36ac705

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately:

$ nix-build -A tetex
these derivations will be built:
  /nix/store/1lhxbp6xm9dmaa1d8dm8488z9v9d33k3-tetex-texmf-3.0.tar.gz.drv
  /nix/store/v3jbr9rbyw9zwjzxwdx56zkfw054v7ic-tetex-3.0.drv
building path(s) ‘/nix/store/kjz17xs66j21z5w3mx5hnjaymdqvdc3y-tetex-texmf-3.0.tar.gz’

trying http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   368  100   368    0     0    242      0  0:00:01  0:00:01 --:--:--   242
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
error: cannot download tetex-texmf-3.0.tar.gz from any mirror

@vcunat
Copy link
Member

@vcunat vcunat commented on 36ac705 Jan 25, 2017

Choose a reason for hiding this comment

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

The URL works for me. I suspect some mirrors don't have obsolete stuff. tetex is likely vulnerable, too – there are some CVEs and we don't seem to be fixing anything.

@zimbatm
Copy link
Member Author

Choose a reason for hiding this comment

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

My motivation was to remove the md5 checksums so for each package I tried in that order: (1) nix-prefetch-url, (2) find alternate upstream if broken, (3) upgrade if old version is unavailable, (4) remove package if new version is unavailable.

For this package I was at point (2). If nobody is using tetex we should remove it.

@vcunat
Copy link
Member

@vcunat vcunat commented on 36ac705 Jan 25, 2017

Choose a reason for hiding this comment

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

Well, bjornfor seems to be using it, at least. There are a few reverse dependencies that haven't been migrated yet.

@zimbatm
Copy link
Member Author

Choose a reason for hiding this comment

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

It's interesting that @bjornfor is getting a "403 Forbidden" instead of a 404

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

tetex is a dependency of asciidoc(-full). My interest is keeping asciidoc working.

I didn't know tetex was obsolete. I briefly looked into using texlive instead of tetex, but it doesn't look like a 1-1 replacement. For instance, asciidoc expects a 'dvipng' program, which seems like a tetex-only thing.

Oh, now the 403 is gone! I successfully downloaded tetex!

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait... it might have been downloaded via tarballs.nixos.org. But who cares!?

Tested manually with wget http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz. Works.

@7c6f434c
Copy link
Member

@7c6f434c 7c6f434c commented on 36ac705 Jan 25, 2017 via email

Choose a reason for hiding this comment

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

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

@7c6f434c: Thanks! (I missed that.)

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

On another PC, with a different ISP, I also get error 403:

$ wget http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz
--2017-01-25 18:14:20--  http://mirrors.ctan.org/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz
Resolving mirrors.ctan.org (mirrors.ctan.org)... 176.28.54.184, 2a01:488:67:1000:b01c:36b8:0:1
Connecting to mirrors.ctan.org (mirrors.ctan.org)|176.28.54.184|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ctan.uib.no/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz [following]
--2017-01-25 18:14:20--  http://ctan.uib.no/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz
Resolving ctan.uib.no (ctan.uib.no)... 129.177.13.120, 2001:700:200:13::120
Connecting to ctan.uib.no (ctan.uib.no)|129.177.13.120|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-01-25 18:14:20 ERROR 403: Forbidden.

Perhaps I'm hitting a misconfigured mirror (ctan.uib.no)?

@7c6f434c
Copy link
Member

@7c6f434c 7c6f434c commented on 36ac705 Jan 25, 2017 via email

Choose a reason for hiding this comment

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

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.