Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77986 - [nawk] Please provide ‘awk’

Attached to Project: Community Packages
Opened by Klaus Alexander Seistrup (kseistrup) - Friday, 24 March 2023, 15:46 GMT
Last edited by Toolybird (Toolybird) - Saturday, 25 March 2023, 20:51 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

If nawk is indeed The One True AWK, surely the nawk package ought to provide ‘awk’ — something only core/gawk does at the moment.
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 25 March 2023, 20:51 GMT
Reason for closing:  Deferred
Additional comments about closing:  See comments
Comment by Doug Newgard (Scimmia) - Friday, 24 March 2023, 15:53 GMT
So things that depend on awk because they call 'awk' will work just fine here? Not without also making a symlink and conflicting with gawk, at the very least.
Comment by Klaus Alexander Seistrup (kseistrup) - Friday, 24 March 2023, 15:59 GMT
Things that depend on awk should work, yes. If they make use of features only available in gawk, they should depend on gawk, IMHO.

You're right about the symlink, I didn't take that into consideration.
Comment by Doug Newgard (Scimmia) - Friday, 24 March 2023, 16:12 GMT
That's the whole point, this is only installed as nawk, not as awk, so things WON'T work without removing gawk, and that doesn't seem like a good idea.
Comment by Klaus Alexander Seistrup (kseistrup) - Friday, 24 March 2023, 16:54 GMT
Right.

My intention was that users who want the full AWK language [installed as awk], and who don't need all the GNU extensions to the language, could install the lightweight nawk.

But yes, we don't have an “alternatives” system like Debian, whereby a system administrator can install, say, gawk, nawk, and mawk alongside one another, and then choose which of them should provide awk.

Perhaps my suggestion should rather be implemented in the vein of dashbinsh from AUR that re-symlinks dash to sh.
Comment by Toolybird (Toolybird) - Friday, 24 March 2023, 23:06 GMT
Related  FS#26878 

"base" and "base-devel" currently depend on gawk. Without some largish distro rejigging, I cannot see how this can happen...at least until pacman implements an "alternatives" system (which has been talked about, but I can't find reference to right now).
Comment by Klaus Alexander Seistrup (kseistrup) - Saturday, 25 March 2023, 05:16 GMT
You're right. Without investigating if “base” and “base-devel” really require the gawk extensions to the language, or if they will be fine with a POSIX awk implementation and nothing more, I too can't see how it can be done.

Perhaps this issue should be closed, so as to not waste more people's time.

Loading...