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

endless-sky: 0.10.10 -> 0.10.12 #388189

Merged
merged 7 commits into from
Mar 24, 2025

Conversation

TheGiraffe3
Copy link
Contributor

@TheGiraffe3 TheGiraffe3 commented Mar 8, 2025

Updated Endless Sky to 0.10.12, which was released about a month ago.
endless-sky/endless-sky@v0.10.10...v0.10.12

Things done

Thanks to momeemt:

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@TheGiraffe3 TheGiraffe3 changed the title endless-sky: update to 0.10.12 endless-sky: 0.10.10->0.10.12 Mar 8, 2025
@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Mar 8, 2025
@TheGiraffe3 TheGiraffe3 force-pushed the endless-sky-v0.10.12 branch 2 times, most recently from 45b7431 to 8bc7eea Compare March 8, 2025 14:41
@TheGiraffe3
Copy link
Contributor Author

I'm honestly not sure what the issue is here. Does Nix use a different SHA from all the other distributions?

Copy link
Member

@momeemt momeemt left a comment

Choose a reason for hiding this comment

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

Could you fix the pr title and commit message endless-sky: 0.10.10->0.10.12 to endless-sky: 0.10.10 -> 0.10.12?

@TheGiraffe3 TheGiraffe3 changed the title endless-sky: 0.10.10->0.10.12 endless-sky: 0.10.10 -> 0.10.12 Mar 8, 2025
Co-authored-by: Mutsuha Asada <me@momee.mt>
@TheGiraffe3 TheGiraffe3 force-pushed the endless-sky-v0.10.12 branch from 1d34a50 to 639743f Compare March 8, 2025 14:59
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1 10.rebuild-linux: 1-10 labels Mar 8, 2025
@nix-owners nix-owners bot requested a review from 360ied March 8, 2025 15:05
@TheGiraffe3
Copy link
Contributor Author

Worth noting that rian hasn't had any contributions since November. Ought someone else (probably me) become the maintainer if @360ied doesn't respond within a reasonable time?

@TheGiraffe3 TheGiraffe3 requested a review from momeemt March 14, 2025 12:04
@TheGiraffe3
Copy link
Contributor Author

This is waiting on @360ied, correct?

Copy link
Member

@momeemt momeemt left a comment

Choose a reason for hiding this comment

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

LGTM. You are also free to add yourself to the maintainers of packages you are interested in.

@momeemt momeemt added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Mar 14, 2025
@FliegendeWurst
Copy link
Member

I'm honestly not sure what the issue is here. Does Nix use a different SHA from all the other distributions?

Nix uses a content hash here, and the hash is formatted as SRI hash. So yes, the upstream SHA is not directly applicable.

@FliegendeWurst FliegendeWurst added the 11.by: upstream-developer This issue or PR was created by the developer of packaged software label Mar 23, 2025
Co-authored-by: Arne Keller <arne.keller@posteo.de>
@FliegendeWurst
Copy link
Member

Oh, the patch needs updating.

Would it be possible to override these entries in Files.cpp at build time?

static const string LOCAL_PATH = "/usr/local/";
static const string STANDARD_PATH = "/usr/";

@TheGiraffe3
Copy link
Contributor Author

I'm not sure what you mean?
The patch file seems to remove those lines, so I updated the patch with the new changes; does that resolve your comment?

@FliegendeWurst
Copy link
Member

I meant a build option to set the prefix, overriding both of these variables.

@FliegendeWurst
Copy link
Member

Though an updated patch also works.

@TheGiraffe3
Copy link
Contributor Author

An updated patch like the one currently modified or a patch to add another build option? The latter I'm not sure I'm proficient enough to add.

@FliegendeWurst
Copy link
Member

Adding a build option via a patch would bring little value. So yes, as you did here. Though it seems your updated patch is malformed?

@TheGiraffe3
Copy link
Contributor Author

I copied the current entry in Files.cpp in that area and added - signs in front of it. Are you referring to the commit information at the top?

@FliegendeWurst
Copy link
Member

No, I am referring to:

applying patch /nix/store/9bg70lmjqb8z40nhx3fjqfwcy19pvs0r-fixes.patch
patching file SConstruct
Hunk #1 succeeded at 196 with fuzz 1 (offset 141 lines).
patching file source/Files.cpp
patch: **** malformed patch at line 51: -       }

@FliegendeWurst
Copy link
Member

applying patch /nix/store/n503dxqvqwx31p4zlakrm9yvcrbh7yz0-fixes.patch
patching file SConstruct
Hunk #1 succeeded at 196 with fuzz 1 (offset 141 lines).
patching file source/Files.cpp
patch: **** malformed patch at line 54:         }

@FliegendeWurst
Copy link
Member

applying patch /nix/store/fayh6n9q10d9mj5hi1impygrc9q2nk4v-fixes.patch
patching file SConstruct
Hunk #1 succeeded at 196 with fuzz 1 (offset 141 lines).
patching file source/Files.cpp
patch: **** malformed patch at line 54:         dataPath = resources + "data/";

The easiest way to create a correct patch is to git checkout the source code, make the changes, and run git diff > the-patch.patch.

@FliegendeWurst
Copy link
Member

The new patch is well-formed but fails to apply. I think a minimal patch would be better, to avoid future conflicts.

diff --git a/source/Files.cpp b/source/Files.cpp
index f5dec21..ad57c55 100644
--- a/source/Files.cpp
+++ b/source/Files.cpp
@@ -115,6 +115,7 @@ void Files::Init(const char * const *argv)
 		else if(IsParent(STANDARD_PATH, resources))
 			resources = STANDARD_PATH / RESOURCE_PATH;
 #endif
+		resources = "%NIXPKGS_RESOURCES_PATH%";
 	}
 	// If the resources are not here, search in the directories containing this
 	// one. This allows, for example, a Mac app that does not actually have the

Thanks FliegendeWurst for the help with this!

Co-authored-by: Arne Keller <arne.keller@posteo.de>
@FliegendeWurst FliegendeWurst merged commit f0b75c4 into NixOS:master Mar 24, 2025
24 of 27 checks passed
@TheGiraffe3 TheGiraffe3 deleted the endless-sky-v0.10.12 branch March 24, 2025 13:17
@TheGiraffe3
Copy link
Contributor Author

I'm sorry for all the trouble about this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: upstream-developer This issue or PR was created by the developer of packaged software 12.approvals: 1 This PR was reviewed and approved by one reputable person 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants