Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken for Quake 1 on amd64 and arm64 #46

Closed
grepwood opened this issue May 4, 2024 · 1 comment
Closed

Broken for Quake 1 on amd64 and arm64 #46

grepwood opened this issue May 4, 2024 · 1 comment

Comments

@grepwood
Copy link

grepwood commented May 4, 2024

I have the Quake 1.06 CD and wanted to extract the gamedata from it on arm64 in order to make the case that games-fps/quake1-data package in Gentoo can receive an arm64 keyword, making the installation of this package less of a hack on this CPU architecture.

The extraction failed and I've started looking into when and how it failed. If we mount the CD into /mnt/cdrom, we can do lha l /mnt/cdrom/resource.1 to try and receive the file list in the archive, however, it fails:

PERMISSION  UID  GID      SIZE  RATIO     STAMP           NAME
---------- ----------- ------- ------ ------------ --------------------
LHa: Error: Checksum error (LHarc file?)
---------- ----------- ------- ------ ------------ --------------------
 Total         0 files       0 ****** Nov  5  1996

As a matter of curiosity I've repeated the procedure on amd64 and got the same result.

This issue is reproducible with these commits:

@grepwood
Copy link
Author

grepwood commented May 8, 2024

I found out why this happens. The filename is resource.1 - meanwhile lha expects MS-DOS SFXs to have .exe extensions. Renaming the file fixes the issue, but that still means lha is unable to determine the file type based on internal file signatures.

@grepwood grepwood closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant