8000 remove unused version number in Makefile by WinterMute · Pull Request #679 · switchbrew/libnx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

remove unused version number in Makefile #679

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

Merged
merged 2 commits into from
Jun 10, 2025
Merged

Conversation

WinterMute
Copy link
Contributor

Supercedes #678

@averne
Copy link
Contributor
averne commented Jun 2, 2025
8000

Hello, personally I appreciate that the current script creates an archive of the compiled code during the install step, which can be useful for regression tracking.
Could you consider leaving this in?

@WinterMute
Copy link
Contributor Author

Hello, personally I appreciate that the current script creates an archive of the compiled code during the install step, which can be useful for regression tracking. Could you consider leaving this in?

Have you considered using git for this purpose?

@SciresM
Copy link
Contributor
SciresM commented Jun 2, 2025

I would advocate for choosing #678 over this myself. I have to install wacky libnx versions myself and manage them without git commits, and would appreciate us keeping the dist-src target. I will probably pull request to re-add it if this is merged.

@WinterMute
Copy link
Contributor Author

An unused version number in the Makefile is a maintenance burden which doesn't need to exist. This is just cruft that was carried over from before we maintained everything via pacman.

@SciresM
Copy link
8000
Contributor
SciresM commented Jun 2, 2025

I don't care about the version number but I do care about the dist-src target. I would be fine with it using the commit hash the same way atmosphere does.

@SciresM
Copy link
Contributor
SciresM commented Jun 2, 2025

(Automatically parsing the commit hash the way ams does would, I believe, completely solve the "maintenance burden" problem.)

@averne
Copy link
Contributor
averne commented Jun 2, 2025

Hello, personally I appreciate that the current script creates an archive of the compiled code during the install step, which can be useful for regression tracking. Could you consider leaving this in?

Have you considered using git for this purpose?

Git doesn't keep compiled archives which van be a pain to compile with newer versions of the toolchain. I know this is not meant to work all the time and might create all sort of issues, but it's harmless and occasionally useful.

Side note. I worded my message as politely as possible and I believe in receiving the same amount of respect that was given, especially as a long-time contributor to the switch homebrew ecosystem.

@WinterMute
Copy link
Contributor Author

(Automatically parsing the commit hash the way ams does would, I believe, completely solve the "maintenance burden" problem.)

git hashes aren't available when packaging, archives are obtained from the github tag based on the version number in the PKGBUILD.

@SciresM
Copy link
Contributor
SciresM commented Jun 2, 2025

Git hashes are available when typing make dist-src, I use this in atmosphere. Would it be helpful if I pull requested it myself?

@SciresM
Copy link
Contributor
SciresM commented Jun 2, 2025

fwiw ams does "export ATMOSPHERE_GIT_HASH := $(shell git rev-parse --short=16 HEAD)" in makefile.

@SciresM
Copy link
Contributor
SciresM commented Jun 2, 2025

Anyway, I am on an international flight which is taking off as I post this, so I'll be unavailable for the next 11 hours.

I ask @fincs and @yellows8 personally in my capacity as a developer for this library and as a long-time maintainer for the switch as a homebrew ecosystem (and this library): please do not merge this as-is, since if it is merged I will have to pull request the addition of a fixed dist-src target.

@WinterMute WinterMute merged commit 2f471a1 into master Jun 10, 2025
1 check passed
@@ -98,14 +91,15 @@ all: lib/libnx.a lib/libnxd.a
dist-bin: all
@tar --exclude=*~ -cjf libnx-$(VERSION).tar.bz2 include lib default_icon.jpg switch_rules switch.ld switch.specs -C external/bsd include
Copy link
@oreo639 oreo639 Jun 10, 2025

Choose a reason for hiding this comment

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

dist-bin still references the removed VERSION.
(Presumably forgot to remove it?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bah, yes, missed the dist-bin target, thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

2084398 is missing from master

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

Successfully merging this pull request may close these issues.

4 participants
0