qt5.qtbase: prepare for structuredAttrs#472655
qt5.qtbase: prepare for structuredAttrs#472655SFrijters wants to merge 1 commit intoNixOS:stagingfrom
Conversation
a442e27 to
523f168
Compare
523f168 to
ef2cbcd
Compare
ef2cbcd to
cfe665d
Compare
|
Ugh, back to draft, for some variants I'm getting |
9c64598 to
ce7b405
Compare
|
|
|
New problem: build of |
|
I have fixed the problem locally in a hacky way by rewriting the paths in fixup, I just have to do it properly before I re-open this for review. |
ce7b405 to
314e85d
Compare
314e85d to
7a05aef
Compare
|
Setting up |
|
@K900 Since you reviewed my qt6 |
|
Need to be extra careful after #493988 - but I don't think the same issue applies since |
7a05aef to
74863b6
Compare
doronbehar
left a comment
There was a problem hiding this comment.
Changes look pretty good overall, but it is hard to review this due to the tangent issues this PR touches, all part of a single commit.
| ++ lib.optionals libGLSupported [ | ||
| libGL | ||
| ] |
There was a problem hiding this comment.
This kind of diff hunk is good I think, but I find it tangent to the main point of this PR. Could you please avoid these lib.{optional -> optionals} changes and focus on the actual changes of the PR? Or alternatively, separate it to a different commit?
| substituteInPlace configure --replace /bin/pwd pwd | ||
| substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls | ||
| substituteInPlace configure --replace-fail /bin/pwd pwd | ||
| substituteInPlace src/corelib/global/global.pri --replace-fail /bin/ls ${coreutils}/bin/ls |
There was a problem hiding this comment.
This change too is blessed, but should be a different commit.
| "-device ${qtPlatformCross stdenv.hostPlatform}" | ||
| "-device-option CROSS_COMPILE=${stdenv.cc.targetPrefix}" | ||
| "-device" | ||
| "${qtPlatformCross stdenv.hostPlatform}" |
There was a problem hiding this comment.
Nit:
| "${qtPlatformCross stdenv.hostPlatform}" | |
| (qtPlatformCross stdenv.hostPlatform) |
| postFixup = '' | ||
| # Don't retain build-time dependencies like gdb. | ||
| sed '/QMAKE_DEFAULT_.*DIRS/ d' -i $dev/mkspecs/qconfig.pri | ||
There was a problem hiding this comment.
Another unrelated change.
| done | ||
| fi | ||
| ${lib.optionalString (lib.hasAttr "devTools" args) ''devTools="${lib.concatStringsSep " " args.devTools}"''} |
There was a problem hiding this comment.
Could you explain how come this is needed all of a sudden?
| setupHook = | ||
| let | ||
| hook = makeSetupHook { | ||
| name = "qtbase5-setup-hook"; | ||
| substitutions = { | ||
| inherit | ||
| qtPluginPrefix | ||
| qtQmlPrefix | ||
| qtDocPrefix | ||
| fix_qt_builtin_paths | ||
| fix_qt_module_paths | ||
| ; | ||
| debug = debugSymbols; | ||
| }; | ||
| } ../hooks/qtbase-setup-hook.sh; | ||
| in | ||
| "${hook}/nix-support/setup-hook"; |
There was a problem hiding this comment.
How come it worked before without these substitutions?
This fixes the hook for downstream users when
__structuredAttrsare enabled.#237216
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.