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

bootstrap && make distclean broken #29233

Closed
vbraun opened this issue Feb 22, 2020 · 17 comments
Closed

bootstrap && make distclean broken #29233

vbraun opened this issue Feb 22, 2020 · 17 comments

Comments

@vbraun
Copy link
Member

vbraun commented Feb 22, 2020

This ticket fixes it by deleting the generated files in bootstrap-clean instead of misc-clean.

CC: @dimpase @embray @jhpalmieri

Component: build: configure

Author: Matthias Koeppe

Branch/Commit: 0dc97db

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29233

@vbraun vbraun added this to the sage-9.1 milestone Feb 22, 2020
@vbraun
Copy link
Member Author

vbraun commented Feb 22, 2020

comment:1
 [dochtml] [installat] The HTML pages are in
 local/share/doc/sage/html/en/installation.
 [dochtml] Error building the documentation.
 [dochtml] Traceback (most recent call last):
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/runpy.py", line
 174, in _run_module_as_main
 [dochtml]     "__main__", fname, loader, pkg_name)
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/runpy.py", line
 72, in _run_code
 [dochtml]     exec code in run_globals
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__main__.py", line 2, in <module>
 [dochtml]     main()
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 1720, in main
 [dochtml]     builder()
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 336, in _wrapper
 [dochtml]     build_many(build_other_doc, L)
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/__init__.py", line 280, in build_many
 [dochtml]     _build_many(target, args, processes=NUM_THREADS)
 [dochtml]   File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage_setup/docbuild/utils.py", line 283, in build_many
 [dochtml]     raise worker_exc.original_exception
 [dochtml] OSError:
 /home/release/Sage/src/doc/en/installation/source.rst:228: WARNING:
 Include file u'/home/release/Sage/src/doc/en/installation/debian.txt' not
 found or reading it failed

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

comment:2

make distclean should remove ./configure

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

comment:3

Volker, are you sure you regenerated the configure tar ball?

@vbraun
Copy link
Member Author

vbraun commented Feb 22, 2020

comment:4

Our distclean doesn't remove ./configure, neither should it ihmo. Distclean should remove whatever configure output there is, but it should keep the actual configure script which would go into a proper tarball.

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

comment:5

well, then it's a bug that make distclean removes stuff not made by make all or by ./configure

@vbraun
Copy link
Member Author

vbraun commented Feb 22, 2020

comment:6

Correct. And to fix it we can either kludge around with make distclean to not delete what should be build artifacts, or move building the documentation from bootstrap to make doc.

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

comment:7

it's not just documentation. One possible way to use these is to generate help info before the build, something like: "you're on Debian, to make use of as many
Debian external packages as possible do apt-get install ..."

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

comment:8

also, it's used for CI. You need to tell your CI host what to install to minimise build time, and this is OS-specific and pre-build.

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

comment:9

OK, deletion should be done by bootstrap-clean, not misc-clean. My bad.

However, note that bootstrap is the correct build phase for making these files. This build phase, after all, prepares src for sdist, the distribution for dist and for configure.

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

New commits:

0dc97dbClean src/doc/en/installation/*.txt in bootstrap-clean, not misc-clean

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 22, 2020

Commit: 0dc97db

@mkoeppe

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Feb 22, 2020

comment:13

lgtm

@vbraun
Copy link
Member Author

vbraun commented Feb 23, 2020

Changed branch from u/mkoeppe/bootstrap____make_distclean_broken to 0dc97db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants