Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 931197

Summary: =games-fps/quake1-data-2.40-r1 is broken because there are no versions of app-arch/lha that support Quake CD archives
Product: Gentoo Linux Reporter: Michał Dec <moog621>
Component: Current packagesAssignee: Gentoo Games <games>
Status: UNCONFIRMED ---    
Severity: normal CC: chewi, moog621
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/jca02266/lha/issues/46
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Dec 2024-05-04 11:58:01 UTC
At the moment of writing this bug, there are only 2 versions of app-arch/lha in Portage:
1. 114i_p20201004
2. 114i_p20210328

Both versions and even in fact the latest commit at the time of writing this bug report, 4f193b1e98700aa2bc9dfeef11943efc1f036154, are capable of reproducing these bugs.

The bug has been reported to upstream: https://github.com/jca02266/lha/issues/46
As discussed in the issue, this has been tested on amd64 and arm64, and both architectures on all 3 commits exhibit the same bug.

What should we do with games-fps/quake1-data and app-arch/lha in the meantime?
Comment 1 Michał Dec 2024-05-08 07:46:00 UTC
I found a solution. The file "resource.1" needs to be copied from the CD and renamed to anything as long as it has a ".exe" extension. That way, `lha` will correctly guess its type and successfully access the archive.

Info that helped: https://quakewiki.org/wiki/Resource.1
Since this is known to be compressed with -lh5, I just dug through the source code of `lha`. It didn't take long, the file extension hinting isn't very deep into lharc.c.