Skip to content

2-digit version of GNU patch is not recognised #39941

@dimpase

Description

@dimpase

Steps To Reproduce

On macOS one gets (from Homebrew) GNU patch version 2.8.
It does not get recognised, as the spkg-configure needs 3 numeric field, not 2.

e.g.

$ patch --version | sed -n -e 's/GNU patch *\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)/\1/p'
2.7.6.211-86ac
$
$ echo "GNU patch 2.8"| sed -n -e 's/GNU patch *\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)/\1/p' # no output!
$
$ echo "GNU patch 2.8.42 "| sed -n -e 's/GNU patch *\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)/\1/p'
2.8.42 

Expected Behavior

2.8 should work

Actual Behavior

it doesn't

Additional Information

https://groups.google.com/g/sage-devel/c/PW1M_C5sD9E/m/CbhWsDlnCgAJ as reported by @jhpalmieri

Environment

  • OS: macOS
  • Sage Version: 10.0+

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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions