Skip to content

OS X: system Pari is rejected because of unknown shell command #36729

@jhpalmieri

Description

@jhpalmieri

Steps To Reproduce

timeout is not a valid shell command in OS X, so the test

        AC_MSG_CHECKING([whether factor() bug 2469 of pari 2.15.3 is fixed])
        result=`echo "f=factor(2^2203-1); print(\"ok\")" | timeout 1 $GP -qf`

introduced in #35302 fails even with a recent version of pari installed via homebrew.

Expected Behavior

Sage should be able to use homebrew's version of pari.

Actual Behavior

config.log says

configure:24946: checking whether factor() bug 2469 of pari 2.15.3 is fixed
configure:24953: result: no; cannot use system pari/GP with known bug
...
configure:25276: no suitable system package found for SPKG pari

If I remove timeout from that line, then the system `pari is used, Sage builds correctly, and all tests pass. Also the shell command

echo "f=factor(2^2203-1); print(\"ok\")" | gp -qf 

executes without error and finishes very quickly.

Additional Information

No response

Environment

- **OS**: OS X 14.1
- **Sage Version**: 10.2.rc3

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions