-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
texlive: 2015 -> 2016 #16391
texlive: 2015 -> 2016 #16391
Conversation
CTAN reports that "The package is now part of the latex-graphics bundle" (Source: https://www.ctan.org/pkg/rotating?lang=en), is it ok to change this dependency ("rotating") with "graphics"? |
I also got:
but after running again |
Thanks, dblatex fixed up. That hash error was likely due to some transient network error, if it disappeared (or some mirrors serve a newer version of that file already). |
ok, I'm missing xelatex (and xetex apparently). pdflatex is here, but my work is too dependent to the former. My relevant systemPackages are the following:
|
The upstream machinery for creating symlinks have changed apparently, and now it's overwriting valid links to extra executables by invalid ones (and dead links are auto-cleaned by our code later). |
@vcunat I have at least one hash mismatch during build process output path ‘/nix/store/ck5gjbj2zf85bpjrw4vwm0n9cfn456sg-koma-script.tar.xz’ has sha512 hash ‘2lbvzgifrpfkmhvv9pcqpv4mcr3sdb4iv99qmzgwb6lagli0l8c93nzxviw2lclyy0gb69i264wcbs4nl4ax7zsq3a3n4mcjimnlcm2’ when ‘2pbcb0jwlfy76z673sxapb3gaca4hd6i15q7865gh45vkgjvv01x18xps1f15micfakzsccync0wl7mj1x2a0rmb0i006lnqrscs5if’ was expected I still curious, why hashes in CTAN changes |
@avnik that's because we are using a snapshot of the up-to-date TeX Live tree, where only the latest packages are available. I don't believe it's NixOS fault, perhaps we need to contact with upstream developers, so that they maintain version numbers in their packaging. See also what @vcunat wrote above:
|
|
BTW, I did ask upstream (tldistro ML), and even the yearly snapshots seem too large for them to mirror. Distributions are expected to do so themselves. |
@vcunat: I see that they use SVN internally, can fetchsvn give us more stable result? Or may be special downloader for TL stuff, derived from tlmgr? Another option is returning back to big tarball based snapshots, but use them as unpacked/fixed-output, and populate with symlinks. |
The big tarballs have the same release timing and mirroring as the small ones. We do fix output of the unpacked packages (all the thousands of them). AFAIK the svn is only for the infrastructure like the common binaries and not for the hundreds of megabytes (compressed) of packages. |
At least tags and branches have texmf-dist http://tug.org/svn/texlive/tags/texlive-2016.0/Master/texmf-dist/ so it have all "TL packages" stuff |
Also everything in trunk as well -- http://tug.org/svn/texlive/trunk/Master/texmf-dist/ |
I see. We could in theory extract individual packages from that with texlive.tlpdb as that contains file lists... But anyway, I don't see what we could get. I don't think there's a way to fetch efficiently individual files at individual revisions from svn (http to to web frontend might be the best shot) and it's likely without a mirror as well. And, from later #10026 discussion it's apparently not a problem for us to mirror snapshots of all the compressed packages (and e.g. update them yearly)... maybe not for docs as that's ~1.3 GB but the rest is 0.7 GB. |
Current way is enough good, as long as files not disappears/changed under foots. |
@jokogr: xe(la)tex and other bin/ links should be fine now, as in 2015. Thanks for noticing the problem. |
I also uploaded my snapshot to a temporary mirror, so you should no longer get hash mismatches. |
@vcunat thanks, my project started compiling... and xindy is broken again!
I think the TeX Live maintainers changed the way xindy is packaged, they don't compile it at all. So, instead of patching Could you also let me know how I could get into the installation environment so that I can help you more directly, with some patches? I mean a command like Many thanks again for your efforts so far! |
@jokogr: xindy fixed up now. For quick building of tex-envs I use commands like:
while being in the root of a nixpkgs repo checkout. You can |
Here's the diff I had to do to get the project building again:
If we document such changes will be needed, +1 to merge this. |
I just found it... you could use just |
This worked for all my tex stuff (a few letters, CVs and some pandoc-generated documents) without a problem. |
It has also worked with my PhD thesis and a couple of publications (IEEE On Tue, 6 Sep 2016 at 14:09 Joe Hermaszewski notifications@github.com
|
@vcunat I've run
but that didn't find many texlive tarballs (only http://lipa.ms.mff.cuni.cz/~cunav5am/nix/texlive-2016/texlive-20160523b-source.tar.xz)... |
@edolstra: I'm sorry, I purged the hashes in this PR in the meantime (perhaps a mistake to push it here). It should work on the previous refs, e.g. 3be36a5:
|
Oh, but that command will make them hash-addressed, won't it? I wanted to avoid those 7k additional hashes in nixpkgs, but if you want them hash-addressed, I see no better way than me adding those hashes afterwards. |
I'm probably missing something here. What exactly is the problem here? Note that if the texlive files are not fetched via regular |
The problem is that 7k sha512 hashes would take quite a lot of space in nixpkgs (they were in base16 originally, adding ~1 MB). Currently the implementation uses something similar to @edolstra: from my point of view it would work well to have |
Mirroring isn't finalized, but we'll have to fix that on the go.
I staged this. We can resolve mirroring a bit later, I suppose. Hashes of the outputs shouldn't change anyway. |
Mirroring isn't finalized, but we'll have to fix that on the go. (Picked from a merge contained in master: bd6e40c)
KOMA-Script is broken in the version (3.20) currently on nixos-unstable, but the issue was fixed in 3.21 so it can be fixed by upgrading koma-script to 3.21 in Nixpkgs. I updated |
I just took what was in upstream TeX Live 2016; we can individually update such problematic packages, but I don't think I can get to it within a week. |
Mirroring isn't finalized, but we'll have to fix that on the go. (Picked from a merge contained in master: bd6e40c)
@vcunat can I ask you to write a changelog entry for this PR? |
It's just a version update, but I can write a simple entry into release notes. It isn't possible to "just update", because there is no stable location where to download from, at least no in upstream. |
@vcunat e.g., if I download from http://ftp.ntua.gr/mirror/ctan/systems/texlive/tlnet/archive/koma-script.tar.xz, it currently has v3.21 as seen in the extracted |
@jokogr My understanding is that we cannot do that because that URL will become version 3.22 as soon as it is released, and then our build will be broken. Are we able to update the archives on http://lipa.ms.mff.cuni.cz/~cunav5am/nix/texlive-2016 to a newer version? If so, there's the solution. |
@cmfwyp I know that's the case, upstream URLs of future versions are going to be identical to the previous ones. Supposing that I host the updated package on my webserver, so I have a stable location for this version, my question was how to update the respective nix expressions, so that only this package gets updated. |
Mirroring isn't finalized, but we'll have to fix that on the go. (Picked from a merge contained in master: bd6e40c)
I finally got from words to deeds. Please, test your use cases!
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Note: only basic testing has been done so far; also see FIXME items.