Closed embray closed 4 years ago
Description changed:
---
+++
@@ -16,3 +16,16 @@
Of course, this should never happen during normal development or usage, but apparently it *can* since I somehow made it happen.
+Attached is a possible fix: The configure script now detects this condition as an error, and aborts with an error message that's at least a bit more useful than none at all:
+
+```
+...
+ mpfr-4.0.1.p0
+ mpfrcx-0.5
+configure: error: multiple installation records for mpir at
+local/var/lib/sage/installed/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868
+local/var/lib/sage/installed/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0
+only one should exist so please delete one or both files and re-configure
+```
+
+It's impossible to know for sure what the best course of action is here, so we give the user a hint and leave it up to them to make a decision and retry.
Branch: u/embray/build/ticket-27566
New commits:
939c342 | Trac #27566: Detect the condition of multiple SPKG stamp files and error out of the configure script |
Author: Erik Bray
Moving tickets from the Sage 8.8 milestone that have been actively worked on in the last six months to the next release milestone (optimistically).
Ticket retargeted after milestone closed
Dependencies: #28788
This should be rebased on top of #28788 because it touches the same code.
Changed branch from u/embray/build/ticket-27566 to u/mkoeppe/build/ticket-27566
Last 10 new commits:
83633df | Merge branch 'develop' into t/28788/mrs/38/verbose-configure |
684b80c | Merge tag '9.1.beta3' into t/28788/mrs/38/verbose-configure |
1dd1252 | Put configure box messages also into log, via AS_MESSAGE_FD |
192c24d | Send configure's macOS message to the right FD |
0196d25 | fixup log |
5bcc0e4 | tox.ini [check_configure]: New - test that 'configure --quiet' is quiet |
bef6d57 | Improve spkg messages |
bf4ee6c | Trac #27566: Detect the condition of multiple SPKG stamp files and error out of the configure script |
383290a | m4/sage_spkg_enable.m4: SAGE_SPKG_ENABLE: Do not trip over multiple install records |
51dc4b3 | Rewrite to avoid use of wc |
Changed author from Erik Bray to Erik Bray, Matthias Koeppe
Description changed:
---
+++
@@ -29,3 +29,5 @@
It's impossible to know for sure what the best course of action is here, so we give the user a hint and leave it up to them to make a decision and retry. + +The branch is on top of #28788.
Branch pushed to git repo; I updated commit sha1. New commits:
e5678b4 | Merge tag '9.1.beta4' into t/27566/build/ticket-27566 |
Needs review
Branch pushed to git repo; I updated commit sha1. New commits:
ec9ab87 | Merge tag '9.1.beta6' into t/27566/build/ticket-27566 |
Changed dependencies from #28788 to none
New commits:
ec9ab87 | Merge tag '9.1.beta6' into t/27566/build/ticket-27566 |
@embray please take a look.
Waiting for review
I hate to slow down the configure script even more to display a message about a one-in-a-million error condition. The change to sage_spkg_enable.m4
alone avoids the error. But everything works as advertised.
Reviewer: Michael Orlitzky
Thanks!
Changed branch from u/mkoeppe/build/ticket-27566 to ec9ab87
If, by some accident, one ends up with multiple stamp files for the same package in
local/var/lib/sage/installed
, an error occurs when running./configure
.For example, in my case, in the course of development I somehow accidentally wound up with two install records for different versions of mpir. This results in an error appearing during
./configure
like:Of course, this should never happen during normal development or usage, but apparently it can since I somehow made it happen.
Attached is a possible fix: The configure script now detects this condition as an error, and aborts with an error message that's at least a bit more useful than none at all:
It's impossible to know for sure what the best course of action is here, so we give the user a hint and leave it up to them to make a decision and retry.
The branch is on top of #28788.
CC: @dimpase @jhpalmieri @saraedum @orlitzky
Component: build: configure
Author: Erik Bray, Matthias Koeppe
Branch/Commit:
ec9ab87
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/27566