Obsolete use of egrep
Task Info (Flyspray) | |
---|---|
Opened By | Polarian (Polarian) |
Task ID | 80215 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-11-10 10:36:34 UTC |
Status | Assigned |
Assignee | Felix Yan (felixonmars) |
Details
Description:
Note: This is an upstream issue, however it will unlikely not be patched and acme.sh will not be compatible with Arch Linux (see [2])
Currently acme.sh script calls egrep a lot, which causes the following deprecation warning:
"egrep: warning: egrep is obsolescent; using grep -E"
GNU has been phasing out egrep [1] but it does not seem that upstream cares, a patch was written [2] but this is dumping the result to /dev/null, in other words ignoring a deprecation notice, their reason is to preserve compatibility on old systems.
I assume you can amend this commit and patch egrep
to grep -E
for all instances of egrep
which will make it compliant to GNU's deprecation notice, and therefore will continue to work as Arch Linux updates in the future.
Additional info:
- package version(s): theoretically all versions (3.0.7-1 tested however)
- link to upstream bug report: [3]
Steps to reproduce:
- Issue/renew a certificate with acme.sh, this should invoke egrep commands.
[1] https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep [2] https://github.com/acmesh-official/acme.sh/commit/fe890c62f4229c8696d85edfd2336130214135db [3] https://github.com/acmesh-official/acme.sh/issues/4835