Skip to content

odamex: 0.9.5 -> 11.1.1; add eljamm to maintainers#459626

Merged
Aleksanaa merged 2 commits intoNixOS:masterfrom
eljamm:update/odamex
Nov 14, 2025
Merged

odamex: 0.9.5 -> 11.1.1; add eljamm to maintainers#459626
Aleksanaa merged 2 commits intoNixOS:masterfrom
eljamm:update/odamex

Conversation

@eljamm
Copy link
Contributor

@eljamm eljamm commented Nov 8, 2025

So I may have forgotten to check for already-open PRs when I started working on this, but I think the result is good enough that it can probably supersede:

Tested Odamex with Freedoom, and although I didn't find any active players, everything seemed to be working fine.

ZHF: #457852

image

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@eljamm eljamm added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label Nov 8, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Nov 8, 2025
@eljamm

This comment was marked as outdated.

@eljamm

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Nov 8, 2025
@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 459626
Commit: cb5457a6b260d6b1772161e1f4add4c3a7b508a3 (subsequent changes)
Merge: ff7c5fd0417d3a26776e4bac71e12a9af2a7f001

Logs: https://github.com/eljamm/nixpkgs-review-gha/actions/runs/19190006064


x86_64-linux

✅ 1 package built:
  • odamex

aarch64-linux

✅ 1 package built:
  • odamex

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:
  • odamex

aarch64-darwin (sandbox = true)

❌ 1 package failed to build:
  • odamex

@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

This fails to build on Darwin because of broken cpptrace tests, likely because the current version of libdwarf is too new for cpptrace. Tried to build the internal cpptrace on Darwin, but libdwarf headers are missing. This shouldn't be a blocker, though, since this will be fixed when cpptrace is bumped.

We could also temporarily disable cpptrace tests on Darwin, but we'll need someone with a machine to properly test Odamex.

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

I can test on aarch64-darwin if you choose to disable the test.

@eljamm eljamm requested a review from iedame November 8, 2025 08:22
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 8, 2025
@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

I did some testing and I was unable to change the iwad directory through the interface, many buttons didn't do anything and return error 2 in terminal. I set up the iwad directory using the env variable but still got error 2.
Looks like it is broken on darwin unfortunately.

@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 459626
Commit: 10cc199e1ebeaab348b063fb0615a1a2acbd51ab (subsequent changes)
Merge: 8fb8b4f03934b70303a19bfee53d90113ec622ff

Logs: https://github.com/eljamm/nixpkgs-review-gha/actions/runs/19190517598


x86_64-linux

✅ 1 package built:
  • odamex

aarch64-linux

✅ 1 package built:
  • odamex

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • odamex

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • odamex

@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

I did some testing and I was unable to change the iwad directory through the interface, many buttons didn't do anything and return error 2 in terminal. I set up the iwad directory using the env variable but still got error 2.

Did you set the Odamex directory? You can either do it from the settings, or change OdamexDirectory in ~/.odalaunch to point to /run/current-system/sw/bin/ if you installed Odamex in your system, or /absolute/path/to/build/result/bin. You may have to restart the launcher after you do this, for the changes to take effect. Then, the orange button at the top-left should start the client and show you the WADs:

image

@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

Now, the launcher should automatically point to bin directory with ODAMEX_INSTALL_BINDIR, so you don't have to do the steps mentioned above to test. You only need to add the WAD directories.

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

execvp(/nix/store/112cmdzqzw5shj7rrci269nw0dxqs3ra-odamex-11.1.1/bin/odamex.app/Contents/MacOS/odamex, -waddir, ~/wad:) failed with error 2!
execvp(/nix/store/112cmdzqzw5shj7rrci269nw0dxqs3ra-odamex-11.1.1/bin/odamex.app/Contents/MacOS/odamex, -waddir, ~/wad:) failed with error 2!

this error have a strange path, because I have:
/nix/store/112cmdzqzw5shj7rrci269nw0dxqs3ra-odamex-11.1.1/bin/odalaunch
/nix/store/112cmdzqzw5shj7rrci269nw0dxqs3ra-odamex-11.1.1/Applications/odalaunch.app

my odamex directory is set as /nix/store/112cmdzqzw5shj7rrci269nw0dxqs3ra-odamex-11.1.1/bin

Regarding the interface issues, I found this:
odamex/odamex#1399 that maybe can be patched with odamex/odamex#1402

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

Yeah, the mac installPhase is missing the other apps, I included odamex.app and now I see that odamex screen

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

Screenshot 2025-11-08 at 7 34 12 AM

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

Which executables do you have on linux? I'm not familiar with odamex so I'm not sure if only odalaunch and odamex are needed.
This is what I did to get it working: patched the GUI fix I linked in previous comment, included in installPhase the odamex.app and changed odamex bindir to Applications, since it looks for odamex.app/Contents/MacOS/odamex

@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

Which executables do you have on linux?

I have odalaunch, odamex and odasrv.

included in installPhase the odamex.app

Is it under odamex/odamex.app? Because I tried to copy that and it failed for some reason.

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

client/odamex.app, and I think odasrv is under server/odasrv but I didn't include that yet so need to confirm.

Considering the GUI patch only mentions ag-odalaunch, odalaunch and odamex I believe odasrv doesn't have an .app, just the executable

@eljamm eljamm force-pushed the update/odamex branch 2 times, most recently from ae14a27 to 8bcbc38 Compare November 8, 2025 11:39
@eljamm
Copy link
Contributor Author

eljamm commented Nov 8, 2025

@iedame could you please test again? specifically, I'd like to know if ODAMEX_BINDIR works on Darwin. You should delete the launcher's previous config file (rm ~/.odalaunch) and start fresh.

Edit: The server should be working fine under Darwin. For the record, I've been building and testing this on a macos GitHub runner with nixpkgs-review-gha, which is currently limited to the console, but is better than nothing.

@iedame
Copy link
Contributor

iedame commented Nov 8, 2025

I found the config file in /Library/Preferences/, it seems to work just fine now!

@NixOS/darwin-maintainers anyone can help test/review this on darwin please?

Copy link
Member

@keenanweaver keenanweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for doing this! Also closes #330272

I do get this crash on odalaunch, but it's probably something I'm doing in my config.

(odalaunch:154509): GLib-GIO-ERROR **: 07:11:24.223: No GSettings schemas are installed on the system
Trace/breakpoint trap      (core dumped) odalaunch

The Flatpak version works.

odasrv can't find IWADs, but the Flatpak version does the same thing.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 8, 2025
@thunze
Copy link
Member

thunze commented Nov 8, 2025

Also tracking here: #459759

@Aleksanaa
Copy link
Member

I do get this crash on odalaunch, but it's probably something I'm doing in my config.

gappsWrapperArgs? @eljamm

- Add eljamm to maintainers
- Use finalAttrs
- Add update script
- Add desktop files
@eljamm
Copy link
Contributor Author

eljamm commented Nov 9, 2025

I do get this crash on odalaunch, but it's probably something I'm doing in my config.

@keenanweaver could you try again?

odasrv can't find IWADs, but the Flatpak version does the same thing.

Yes, but you can pass them as an argument or with an env var.

@keenanweaver
Copy link
Member

@keenanweaver could you try again?

Everything is working perfectly now. Thanks!

@electricbrass
Copy link

I did some testing and I was unable to change the iwad directory through the interface, many buttons didn't do anything and return error 2 in terminal. I set up the iwad directory using the env variable but still got error 2. Looks like it is broken on darwin unfortunately.

The issue with some of the buttons in that gui being non-functional was an upstream bug that has since been fixed, the should be in the next release.

I do get this crash on odalaunch, but it's probably something I'm doing in my config.

I don't know for sure on this crash, but Odalaunch can be unstable with newer versions of wxWidgets. The Flatpak includes an older wxWidgets 3.0.5 for this reason. Odalaunch is essentially unmaintained at this point unfortunately.

@iedame
Copy link
Contributor

iedame commented Nov 9, 2025

The issue with some of the buttons in that gui being non-functional was an upstream bug that has since been fixed, the should be in the next release.

Yes, the patch includes those changes and it works correctly with the patch applied.

@electricbrass
Copy link

Ah, missed that bit of the discussion!

@Aleksanaa Aleksanaa added this pull request to the merge queue Nov 14, 2025
@Aleksanaa Aleksanaa mentioned this pull request Nov 14, 2025
13 tasks
Merged via the queue into NixOS:master with commit 00ad3e7 Nov 14, 2025
28 of 29 checks passed
@eljamm eljamm deleted the update/odamex branch November 14, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants