FS#4452 - Gawk package has wrong flags

Attached to Project: Arch Linux
Opened by name withheld (Gullible Jones) - Thursday, 13 April 2006, 19:46 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 21 April 2006, 05:31 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Check this out:

[begin console output]
:: Synchronizing package databases...
shadowhand [################] 100% 7K 16.6K/s 00:00:00
:: testing is up to date
:: current is up to date
:: extra is up to date
:: community is up to date
:: Replace mawk with gawk from "current"? [Y/n] y

Remove: mawk

Targets: gawk-3.1.5-2 autoconf-2.59-2 mawk-1.3.3-7 sysvinit-2.86-2

Total Package Size: 1.0 MB

Proceed with upgrade? [Y/n] n
[end console output]

Now there are two funny things here... First of all, both mawk and gawk are being installed. Second, and a little less obvious: I have *already installed* gawk.
This task depends upon

Closed by  Judd Vinet (judd)
Friday, 21 April 2006, 22:42 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Thursday, 13 April 2006, 20:28 GMT
Try again. Now that autoconf and sysvinit have been updated to require awk instead of mawk, this problem should go away.
Comment by Judd Vinet (judd) - Thursday, 13 April 2006, 20:29 GMT
If something is still depending on mawk, please let me know. pacman -Qi mawk
Comment by name withheld (Gullible Jones) - Thursday, 13 April 2006, 21:49 GMT
Yep, it works now. As it happens there was another problem - I had both installed. You see, installing gawk requires mawk to be removed, but removing mawk necessarily removes sysvinit and autoconf, even though autoremoval of a package for replacement by another should ignore dependencies. So I removed mawk (ignoring deps) and installed gawk, but mawk somehow stayed around, or got installed again later... Makes no sense to me.

Anyway, I think another part of the problem was that the packages should conflict with each other but don't...
Comment by name withheld (Gullible Jones) - Thursday, 13 April 2006, 21:56 GMT
Umm BTW, why is mawk being replaced with gawk? I thought mawk performed significatly better?
Comment by Judd Vinet (judd) - Thursday, 13 April 2006, 22:01 GMT
>> Anyway, I think another part of the problem was that the packages should conflict with each other but don't...

Yes, I was going to make them conflict, but technically, they don't. Mawk now only provides /usr/bin/mawk and /usr/man/man1/mawk.1.

>> Umm BTW, why is mawk being replaced with gawk? I thought mawk performed significatly better?

There are some differences b/w the two with some awk functions. Also, JGC reported a couple packages that wouldn't build properly with mawk. And we've had multiple requests to move to gawk instead. So for the mawk lovers, it is still present in Extra.
Comment by name withheld (Gullible Jones) - Thursday, 13 April 2006, 23:26 GMT
Ah, alright. And FWIW, initscripts-gensplash from Community still depends on mawk.
Comment by name withheld (Gullible Jones) - Thursday, 13 April 2006, 23:27 GMT
Scratch the above, Snowman's on it already. :D

Loading...