You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Trac #30128: always source sage-env-config before sage-env.
The sage-env script needs to know the values of SAGE_ROOT and
SAGE_SCRIPTS_DIR, for example, but due to a chicken-and-egg problem it
can't source the sage-env-config script where they are defined. Since
whoever is sourcing sage-env perforce knows where it is located, this
commit updates those callers to first source sage-env-config. This
solves the inter-dependency, and does so in a POSIX-compatible way.
A future commit will remove the bashism in sage-env that tries to
determine the location of sage-env-config on its own.
Copy file name to clipboardExpand all lines: build/bin/sage-spkg
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,7 @@ fi
166
166
# The following sets environment variables for building packages.
167
167
# Since this is sourced, it returns a non-zero value on errors rather
168
168
# than exiting. Using dot suggested by W. Cheung.
169
+
. sage-env-config
169
170
. sage-env
170
171
171
172
@@ -490,7 +491,7 @@ export PKG_NAME="$PKG_NAME"
490
491
export PKG_BASE="$PKG_BASE"
491
492
export PKG_VER="$PKG_VER"
492
493
493
-
for lib in "\$SAGE_ROOT/build/bin/sage-dist-helpers" "\$SAGE_SRC/bin/sage-env" "\$SAGE_ROOT/build/bin/sage-build-env-config"; do
494
+
for lib in "\$SAGE_ROOT/build/bin/sage-dist-helpers" "\$SAGE_SRC/bin/sage-env-config" "\$SAGE_SRC/bin/sage-env" "\$SAGE_ROOT/build/bin/sage-build-env-config"; do
0 commit comments