sagemath/sage

Fix up "sage -i" for optional packages

mkoeppe opened this issue · 16 comments

Follow-up from #29113 ("Reimplement sage -i SPKG for optional/experimental packages as configure --enable-SPKG && make build").

This does not work in some situations as noted in #29418.

We fix it by reverting to the old installation method, but at least print some hints that explain the new configure arguments.

We will revisit this when other aspects of the Makefile have been cleaned up enough.

CC: @jhpalmieri @dimpase

Component: build

Author: Matthias Koeppe

Branch: 4de7648

Reviewer: John Palmieri

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

comment:1

Any progress here?

Dependencies: #29460

Description changed:

--- 
+++ 
@@ -2,3 +2,6 @@
 
 This does not work in some situations as noted in #29418.
 
+We fix it by reverting to the old installation method, but at least print some hints that explain the new configure arguments.
+
+We will revisit this when other aspects of the Makefile have been cleaned up enough.

New commits:

4de7648Partial revert of #29113; only display configure hints

Changed dependencies from #29460 to none

Author: Matthias Koeppe

Commit: 4de7648

comment:6

OK this should do the job for the next beta

comment:7

This looks good to me.

Reviewer: John Palmieri

comment:8

Thanks!

slel commented
comment:10

Isn't a space missing between "passing" and "$ENABLE_ARGS" here?

+        echo >&2 "to be installed by passing$ENABLE_ARGS to ./configure"
slel commented

Changed commit from 4de7648 to none

comment:11

$ENABLE_ARGS should contain a leading space: it's defined by the line

ENABLE_ARGS="$ENABLE_ARGS '--enable-$PKG'"

adding " '--enable-...'" (including a leading space) each time it's updated.