-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
nheko: build with gcc 11 #211776
nheko: build with gcc 11 #211776
Conversation
@GrahamcOfBorg build nheko |
aarch64 build is still broken in the same way: https://github.com/NixOS/nixpkgs/pull/211776/checks?check_run_id=10782064902 (i've replicated this failure locally, as well) looks like nheko's still building with gcc 9 for some reason: https://logs.nix.ci/?key=nixos/nixpkgs.211776&attempt_id=316673cb-1cf3-4250-88c5-38f1924ae8a7
x86-64 shows an error too, about the new compiler flag being unrecognized. i assume that's because it's also using the old gcc, but haven't confirmed. nheko doesn't actually use its |
i'm able to actually override the gcc version with this: nheko = libsForQt5.callPackage ../applications/networking/instant-messengers/nheko {
stdenv = gcc11Stdenv;
+ mkDerivation = libsForQt5.mkDerivationWith gcc11Stdenv.mkDerivation;
}; the edit: but now there's a linker error:
|
This should fix the aarch64 build where stdenv still defaults to gcc 9.
Thanks, I suspected Qt had something to do with it: another reason to not use |
The diff --git a/pkgs/applications/networking/instant-messengers/nheko/default.nix b/pkgs/applications/networking/instant-messengers/nheko/default.nix
index 680833ca2e6..09819510136 100644
--- a/pkgs/applications/networking/instant-messengers/nheko/default.nix
+++ b/pkgs/applications/networking/instant-messengers/nheko/default.nix
@@ -1,6 +1,5 @@
{ lib
, stdenv
-, mkDerivation
, fetchFromGitHub
, cmake
, asciidoc
@@ -24,6 +23,7 @@
, qtmultimedia
, qtquickcontrols2
, qttools
+, wrapQtAppsHook
, re2
, spdlog
, voipSupport ? true
@@ -31,7 +31,7 @@
, libnice
}:
-mkDerivation rec {
+stdenv.mkDerivation rec {
pname = "nheko";
version = "0.11.1";
@@ -47,6 +47,7 @@ mkDerivation rec {
cmake
lmdbxx
pkg-config
+ wrapQtAppsHook
];
buildInputs = [ Edit: the linking error persists, guess that we just cannot bypass that problem introduced in our bootstrap process. |
I don't think this approach is going to work unless you add Or we could just fix the bootstrap. 🤷 |
I confirmed with |
You need to set the flag in all of |
Well, then I guess it stays broken because this is unfeasible. |
fair enough. it sounds like the bootstrap stuff should make this easier if we just wait for that. i want to investigate a (temporary) source patch, but no idea when i’ll have the time for that.
what about the nixos-22.11 branch though? what was the motivation for backporting the nheko update? unless it was a security fix or something, i’d push to revert that branch to a version that builds on arm (any 0.10.x, i think).
… On Jan 21, 2023, at 13:10, Michele Guerini Rocco ***@***.***> wrote:
Well, then I guess it stays broken because this is unfeasible.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Nothing in particular, I normally backport updates for leaf packages like nheko. Sorry I didn't pay attention to the aarch64 failure, I guess I assume it was already broken. I'm ok with reverting. |
Uhm, I would have reverted only for 22.11. What are we supposed to do in case an update break a tier-2 platform? |
I think the canonical fix is to stick to |
Description of changes
This should fix the aarch64 build where stdenv still defaults to gcc 9.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes