FS#30513 - [nethack] hard-coded gzip path in PKGBUILD is broken since gzip 1.5-1

Attached to Project: Community Packages
Opened by Corey Thompson (cmtptr) - Monday, 02 July 2012, 21:39 GMT
Last edited by Jakob Gruber (schuay) - Tuesday, 03 July 2012, 18:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jakob Gruber (schuay)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
nethack-3.4.3-6 fails to execute gzip on saved game files because it is trying to exec /bin/gzip. Since 1.5-1, the gzip executable is located at /usr/bin/gzip. This path is sed'd into the source before it is built by the PKGBUILD, at line 25. I'm attaching my quick PKGBUILD patch to fix the issue, but a better solution would probably be one that doesn't depend on a hard-coded path.

Steps to reproduce:
1. Install nethack.
2. Begin a game.
3. Try to save your game (shift+s)
4. Notice the error messages:
No such file or directory
Exec to compress save/<uid><username> failed

This also affects loading saved games that were compressed before updating to gzip 1.5-1 (in that they can't be uncompressed and so aren't loaded by nethack).
This task depends upon

Closed by  Jakob Gruber (schuay)
Tuesday, 03 July 2012, 18:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 3.4.3-7, thanks for reporting!

Loading...