sagemath/sage

correct the test for galpol package in pari's spkg-configure.m4

Closed this issue · 10 comments

the test written there

if test "x$gp_galp_check = xC3\ \:\ C4"; then

always evaluates to true.
It is meant to check whether gp_galp_check (which may be empty) equals the string
"C3 : C4"

CC: @embray @kiwifb @isuruf @videlec

Component: build: configure

Author: Dima Pasechnik

Branch/Commit: 7d01e58

Reviewer: Isuru Fernando

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

Description changed:

--- 
+++ 
@@ -1,9 +1,9 @@
 the test written there
 
-```
+```bash
 if test "x$gp_galp_check = xC3\ \:\ C4"; then
 ```
 always evaluates to true.
-It is meant to check whether `gp_galp_check` equals the string
+It is meant to check whether `gp_galp_check` (which may be empty) equals the string
 `"C3 : C4"`
 
comment:1

my patchy knowledge of autoconf/m4/shell syntax does not suffice, please help...

comment:2

Shouldn't it be

"x$gp_galp_check" = "xC3 : C4"

?

Author: Dima Pasechnik

Commit: 7d01e58

comment:3

I've moved the test into the call to gp, now it works.


New commits:

7d01e58let gp do the check and return 0/1

Reviewer: Isuru Fernando

comment:5

I can confirm the issue and that this ticket correctly detects that galpol is not installed.