- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 622
singular spkg-configure.m4: Better test for help #33390
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
Comments
comment:1
Perhaps something like diff --git a/build/pkgs/singular/spkg-configure.m4 b/build/pkgs/singular/spkg-configure.m4
index 0f629e4d31..95a67f79bc 100644
--- a/build/pkgs/singular/spkg-configure.m4
+++ b/build/pkgs/singular/spkg-configure.m4
@@ -6,7 +6,7 @@ SAGE_SPKG_CONFIGURE([singular], [
dnl Use pkg-config to ensure that Singular is new enough.
PKG_CHECK_MODULES([SINGULAR], [Singular >= 4.2.1], [
AC_MSG_CHECKING([that Singular's help is working])
- AS_IF([test x`echo "help;" | Singular 2>&1 | grep "error\ occurred"` = x], [
+ AS_IF([test x`echo -e "system(\"--browser\", \"builtin\"); \n help;" | Singular 2>&1 | grep "error\ occurred"` = x], [
AC_MSG_RESULT(yes)
dnl We have Singular. Now determine the shared library path on
dnl platforms on which sage.libs.singular needs to reload the library with RTLD_GLOBAL. will work? |
comment:2
Yes, I think this would work |
Branch: u/strogdon/trac_33390 |
comment:4
Let's make sure this is safe on other distros. New commits:
|
Commit: |
Author: Steven Trogdon |
comment:6
|
Reviewer: Matthias Koeppe |
comment:7
Can you please use |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
@orlitzky let me know if not as expected. I'm so accustomed to using bash that I forget there are other shells. |
comment:10
It worked in dash, zsh, and ksh; so good enough for me. Thanks! |
Changed branch from u/strogdon/trac_33390 to |
As reported in https://groups.google.com/g/sage-release/c/vxYHQA6LUGw/m/_LO2GLLlAAAJ, the current test is not suitable on some systems.
CC: @dimpase @strogdon @orlitzky
Component: build: configure
Author: Steven Trogdon
Branch/Commit:
645a88b
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33390
The text was updated successfully, but these errors were encountered: