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

texlive-new: fix updmap in combine function #14183

Closed
wants to merge 1 commit into from
Closed

texlive-new: fix updmap in combine function #14183

wants to merge 1 commit into from

Conversation

romildo
Copy link
Contributor

@romildo romildo commented Mar 24, 2016

Things done:
  • Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • 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.
More

Fixes issue #14157
cc @vcunat

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @vcunat to be a potential reviewer

@@ -158,7 +158,8 @@ in buildEnv {
texlinks.sh "$out/bin" && wrapBin
perl `type -P fmtutil.pl` --sys --refresh | grep '^fmtutil' # too verbose
#texlinks.sh "$out/bin" && wrapBin # do we need to regenerate format links?
perl `type -P updmap.pl` --sys --syncwithtrees --force
echo "y" | perl `type -P updmap.pl` --sys --syncwithtrees --force
perl `type -P updmap.pl` --sys --force
Copy link
Member

Choose a reason for hiding this comment

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

This second invocation fails for me due to missing --syncwithtrees. BTW, any hints how you found what was needed for you? When creating texlive-new, I could find no documentation describing what needs to be run and how, so I had to hack it together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By reading the output of nix-rebuild, I have found some hints.

updmap will read the following updmap.cfg files (in precedence order):

This means that no updmap.cfg could be found. So do not remove it.

updmap may write changes to the following updmap.cfg file:
  /nix/store/texmf-config/web2c/updmap.cfg

The generated updmap.cfg is going to the texmf-config subdirectory. So keep it.

Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2078.
Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
updmap: open() failed: No such file or directory at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2078.
Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
updmap: open() failed: No such file or directory at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2078.
Use of uninitialized value $fn in concatenation (.) or string at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
updmap: open() failed: No such file or directory at /nix/store/gywb923q8p2kss1jj80l28zna42wl0sc-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl line 2079.
Missing map files found, disabling
    dvips35.map (in builtin)
    pdftex35.map (in builtin)
    ps2pk35.map (in builtin)
in /nix/store/texmf-config/web2c/updmap.cfg
Do you really want to continue (y/N)? answer =n=

Some missing map files were found and updmap wants to know if we want to continue. If you choose not to continue (the default answer), no map file will be built. We can pipe y to updmap in order to answer yes to its question.

Please fix manually before running updmap(-sys) again!

No need to fix manually. On a second run without the --syncwithtrees options, updmap builds the map files.

At least it worked this way for me (before the latest updates to combine.nix I have seen today).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With my fix applied, the relevant output of nix-rebuild switch is:

updmap will read the following updmap.cfg files (in precedence order):
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-config/web2c/updmap.cfg
updmap [WARNING]: generated map otf-noEmbed.map (from otf-@kanjiEmbed@.map) does not exists, not activating it!
updmap [WARNING]: generated map ptex-noEmbed.map (from ptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!
updmap [WARNING]: generated map otf-up-noEmbed.map (from otf-up-@kanjiEmbed@.map) does not exists, not activating it!
updmap [WARNING]: generated map uptex-noEmbed.map (from uptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!
Missing map files found, disabling
    Acorn.map (in /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
    Alegreya.map (in /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
        [...]
    zi4.map (in /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
in /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-config/web2c/updmap.cfg
Do you really want to continue (y/N)? answer =y=
Creating new config file /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-config/web2c/updmap.cfg
/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/scripts/texlive/updmap.pl --syncwithtrees finished.
Now you need to run updmap normally to recreate map files.
updmap will read the following updmap.cfg files (in precedence order):
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-config/web2c/updmap.cfg
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-config/web2c/updmap.cfg
dvips output dir: "/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/dvipdfmx/updmap"
updmap [WARNING]: generated map otf-up-noEmbed.map (from otf-up-@kanjiEmbed@.map) does not exists, not activating it!
updmap [WARNING]: generated map otf-noEmbed.map (from otf-@kanjiEmbed@.map) does not exists, not activating it!
updmap [WARNING]: generated map ptex-noEmbed.map (from ptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!
updmap [WARNING]: generated map uptex-noEmbed.map (from uptex-@kanjiEmbed@@kanjiVariant@.map) does not exists, not activating it!

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
  prefer outlines                  : true (/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
  texhash enabled                  : true
  download standard fonts (dvips)  : true (/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
  download standard fonts (pdftex) : true (/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
  kanjiEmbed replacement string    : noEmbed (/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf/web2c/updmap.cfg)
  kanjiVariant replacement string  :  (default)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [ 12 files]
Scanning for KanjiMap entries    [  0 files]
Scanning for Map entries         [ 26 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/dvips/updmap:
       15892 2016-03-27 20:37:18 builtin35.map
       21365 2016-03-27 20:37:18 download35.map
      193499 2016-03-27 20:37:19 psfonts_pk.map
      394568 2016-03-27 20:37:18 psfonts_t1.map
      394563 2016-03-27 20:37:18 ps2pk.map
          14 2016-03-27 20:37:19 psfonts.map -> psfonts_t1.map
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/pdftex/updmap:
      394570 2016-03-27 20:37:19 pdftex_dl14.map
      392905 2016-03-27 20:37:19 pdftex_ndl14.map
          15 2016-03-27 20:37:19 pdftex.map -> pdftex_dl14.map
  /nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/fonts/map/dvipdfmx/updmap:
         415 2016-03-27 20:37:18 kanjix.map

Transcript written on "/nix/store/iz0hhhnnn5cvdcbc8xxgmvh6fkf8ny4x-texlive-combined-2015/share/texmf-var/web2c/updmap.log".
updmap: Updating ls-R files.

@vcunat
Copy link
Member

vcunat commented Mar 27, 2016

Over the long term, I think we should compose a set of regression tests for texlive.

vcunat pushed a commit to vcunat/nixpkgs that referenced this pull request Apr 2, 2016
@ttuegel
Copy link
Member

ttuegel commented Feb 14, 2017

@vcunat Does this still need to go in? If not, let's close this PR.

@romildo
Copy link
Contributor Author

romildo commented Feb 16, 2017

The issue is gone. Closing.

@romildo romildo closed this Feb 16, 2017
@romildo romildo deleted the fix.texlive-new branch January 10, 2018 19:59
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

4 participants