Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931197 - =games-fps/quake1-data-2.40-r1 is broken because there are no versions of app-arch/lha that support Quake CD archives
Summary: =games-fps/quake1-data-2.40-r1 is broken because there are no versions of app...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-04 11:58 UTC by Michał Dec
Modified: 2024-05-08 07:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.