-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
'make -n TARGET' is broken #33125
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
A solution is to do a bit of |
comment:6
Isn't this just because invoking For example, this fixes diff --git a/Makefile b/Makefile
index 444e4f9e4a..9505152830 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ sageruntime: base-toolchain
@if [ -x relocate-once.py ]; then ./relocate-once.py; fi
$(MAKE) build/make/Makefile --stop
+build/bin/sage-logger \
- "cd build/make && ./install '$@'" logs/install.log
+ "cd build/make && MAKE=\"$(MAKE)\" MAKEFLAGS=\"$(MAKEFLAGS)\" ./install '$@'" logs/install.log
# CONFIG_FILES lists all files that appear in AC_CONFIG_FILES in configure.ac;
# except for build/make/Makefile-auto, which is unused by the build system |
comment:7
Did you test this on top of #32759? |
comment:8
No, the problem is that we want to pass jobserver flags to something that is not |
make -n sagelib
should only print, not run, commands.Likewise
make -q sagelib
should not run commands. As this is used inbuild/make/install
with output suppressed, this sometimes leads tosage -b
silently doing the rebuild and then reporting "Nothing to do".Broken for normal packages already in Sage 9.0; broken for script packages by #32759 by using
+
inbuild/make/Makefile.in
*-*-no-deps
rules for script packages.That
+
appears there is motivated by intended jobserver behavior; but unfortunately it also influences-n
,-q
,-t
handling.Depends on #33130
CC: @orlitzky
Component: build
Branch: u/mkoeppe/_make__n_target__is_broken
Issue created by migration from https://trac.sagemath.org/ticket/33125
The text was updated successfully, but these errors were encountered: