Skip to content

Conversation

@LRitzdorf
Copy link
Contributor

Submitting this as requested in #12282. It fixes an issue where, if the user's personal Git config sets log.showSignature, the resulting GPG info is grabbed by CMake and incorporated into src/version.h. This then manifested (for me) as a failure to build plugins.

I've updated both the CMake and Meson build files, both of which use git show to grab commit data. Only the CMake change is required to fix my plugin build problem. While I'm not sure where Meson is used (new to the Hyprland codebase, sorry), I assume it makes sense to fix this there as well. Please let me know if that's wrong, or if I missed any other locations — I've grepped for git show invocations, though, so I'm reasonably sure I've got them all.

This manifested for me as a failure to build plugins with `hyprpm`, but
the root cause was GPG data getting incorporated into `src/version.h`,
like so:

```c
#define GIT_COMMIT_MESSAGE "gpg: Signature made Sun 09 Nov 2025 03:31:36 PM PST
gpg:                using EDDSA key E26A4A2AB9676F54149F8EAA665806380871D640
gpg: Can't check signature: No public key
version: bump to 0.52.1"
```

This affected both `GIT_COMMIT_MESSAGE` and `GIT_COMMIT_DATE`, since
those are generated via `git show` (which can generate that extra GPG
info if the user's personal Git config sets `log.showSignature`).

See: #12282
@vaxerski vaxerski merged commit b62ab4b into hyprwm:main Nov 15, 2025
13 checks passed
@LRitzdorf LRitzdorf deleted the go-away-gpg branch November 16, 2025 01:00
ArchSav pushed a commit to ArchSav/Hyprland that referenced this pull request Nov 17, 2025
This manifested for me as a failure to build plugins with `hyprpm`, but
the root cause was GPG data getting incorporated into `src/version.h`,
like so:

```c
#define GIT_COMMIT_MESSAGE "gpg: Signature made Sun 09 Nov 2025 03:31:36 PM PST
gpg:                using EDDSA key E26A4A2AB9676F54149F8EAA665806380871D640
gpg: Can't check signature: No public key
version: bump to 0.52.1"
```

This affected both `GIT_COMMIT_MESSAGE` and `GIT_COMMIT_DATE`, since
those are generated via `git show` (which can generate that extra GPG
info if the user's personal Git config sets `log.showSignature`).

See: hyprwm#12282
vaxerski pushed a commit that referenced this pull request Dec 3, 2025
This manifested for me as a failure to build plugins with `hyprpm`, but
the root cause was GPG data getting incorporated into `src/version.h`,
like so:

```c
#define GIT_COMMIT_MESSAGE "gpg: Signature made Sun 09 Nov 2025 03:31:36 PM PST
gpg:                using EDDSA key E26A4A2AB9676F54149F8EAA665806380871D640
gpg: Can't check signature: No public key
version: bump to 0.52.1"
```

This affected both `GIT_COMMIT_MESSAGE` and `GIT_COMMIT_DATE`, since
those are generated via `git show` (which can generate that extra GPG
info if the user's personal Git config sets `log.showSignature`).

See: #12282
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.

2 participants