FS#80215 - [acme.sh] Obsolete use of egrep

Attached to Project: Arch Linux
Opened by Polarian (Polarian) - Friday, 10 November 2023, 10:36 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:21 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/acme.sh/issues/2
Comment by Toolybird (Toolybird) - Friday, 10 November 2023, 20:16 GMT
They're only warnings so this is minor. If there is no interest from the PM this will be closed as "Won't fix" (instead of hanging around indefinitely to rot). Especially when it's an upstream issue after all.

Loading...