cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

pdf-docs fail to build with 8.5-beta3 #530

Closed strogdon closed 5 years ago

strogdon commented 5 years ago

Gentoo:

Chapter 5.
(./reference.ind) [13] (./reference.aux) ){/usr/share/texmf-dist/fonts/enc/dvip
s/base/8r.enc}</usr/share/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb></usr/
share/texmf-dist/fonts/type1/urw/helvetic/uhvbo8a.pfb></usr/share/texmf-dist/fo
nts/type1/urw/times/utmb8a.pfb></usr/share/texmf-dist/fonts/type1/urw/times/utm
r8a.pfb>
Output written on reference.pdf (17 pages, 64077 bytes).
Transcript written on reference.log.
Latexmk: Index file 'reference.idx' was written
Latexmk: Log file says output to 'reference.pdf'
Latexmk: All targets (reference.pdf) are up-to-date
Build finished.  The built documents can be found in /var/tmp/portage/sci-mathematics/sage-9999/work/build_doc/pdf/en/reference
[website  ] building [html]: targets for 1 source files that are out of date
[website  ] updating environment: [config changed] 1 added, 0 changed, 0 removed
[website  ] Merging environment/index files...
[website  ] ... done (0 todos, 1 index, 0 citations, 0 modules)
[website  ] Merging js index files...
[website  ] ... done (7 js index entries)
[website  ] Exception occurred:
[website  ]   File "/usr/lib64/python2.7/shutil.py", line 97, in copyfile
[website  ]     with open(dst, 'wb') as fdst:
[website  ] IOError: [Errno 2] No such file or directory: u'/var/tmp/portage/sci-mathematics/sage-9999/work/build_doc/html/en/website/_static/CONTRIBUTING.md'
[website  ] The full traceback has been saved in /var/tmp/portage/sci-mathematics/sage-9999/temp/sphinx-err-ee4LoB.log, if you want to report the issue to the developers.
[Pwebsite  ] Please also report this if it was a user error, so that a better error message can be provided next time.
[website  ] A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Error building the documentation.

Prefix:

Chapter 5.
(./reference.ind) [13] (./reference.aux) ){/storage/strogdon/gentoo-rap/usr/sha
re/texmf-dist/fonts/enc/dvips/base/8r.enc}</storage/strogdon/gentoo-rap/usr/sha
re/texmf-dist/fonts/type1/urw/helvetic/uhvb8a.pfb></storage/strogdon/gentoo-rap
/usr/share/texmf-dist/fonts/type1/urw/helvetic/uhvbo8a.pfb></storage/strogdon/g
entoo-rap/usr/share/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></storage/strog
don/gentoo-rap/usr/share/texmf-dist/fonts/type1/urw/times/utmr8a.pfb>
Output written on reference.pdf (17 pages, 64077 bytes).
Transcript written on reference.log.
Latexmk: Index file 'reference.idx' was written
Latexmk: Log file says output to 'reference.pdf'
Latexmk: All targets (reference.pdf) are up-to-date
Build finished.  The built documents can be found in /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-9999/work/build_doc/pdf/en/reference
[website  ] building [html]: targets for 1 source files that are out of date
[website  ] updating environment: [config changed] 1 added, 0 changed, 0 removed
[website  ] Merging environment/index files...
[website  ] ... done (0 todos, 1 index, 0 citations, 0 modules)
[website  ] Merging js index files...
[website  ] ... done (7 js index entries)
[website  ] WARNING: cannot copy static file IOError(2, 'No such file or directory')
[website  ] copying static files... copying extra files... done
[website  ] The HTML pages are in ../../build_doc/html/en/website.
Error building the documentation.

It's late here. Perhaps you have the same. I'll investigate tomorrow. It appears to be in the same location.

strogdon commented 5 years ago

There may be a stale symlink

ls -al /var/tmp/portage/sci-mathematics/sage-9999/work/build_doc/html/en/website/_static/CONTRIBUTING.md
lrwxrwxrwx 1 portage portage 35 Nov 11 22:31 /var/tmp/portage/sci-mathematics/sage-9999/work/build_doc/html/en/website/_static/CONTRIBUTING.md -> ../../../../mathjax/CONTRIBUTING.md

doesn't exist.

kiwifb commented 5 years ago

No, I haven't tested building the pdf documentation so I hadn't seen that yet. I have been doing quite a lot of re-org of the installation of the documentation. I am anticipating the day where the doc can be built with either python-2 or 3, when that happens there will be some refactoring. I wanted to be in the best and most "economical" situation for when that happens.

So it looks like in my current design replacing mathjax content by links is done too early. At this stage of the build the links are broken because they are relative and will be correct once installed.

So I have some re-org to do. Almost the entire last commit of my last re-org will have to be reverted.

kiwifb commented 5 years ago

That should fix it. Please test and report.

strogdon commented 5 years ago

This now builds and installs.