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
partition-manager: 3.0.1 -> 3.3.1 #40895
Conversation
Success on x86_64-linux (full log) Attempted: partition-manager Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: partition-manager Partial log (click to expand)
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ]; | ||
|
||
# refer to kpmcore for the use of eject | ||
buildInputs = [ eject libatasmart utillinux makeWrapper ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makeWrapper
belongs in nativeBuildInputs
.
propagatedBuildInputs = [ kconfig kcrash kinit kpmcore ]; | ||
|
||
postInstall = '' | ||
wrapProgram "$out/bin/partitionmanager" --prefix QT_PLUGIN_PATH : "${kpmcore}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this, the program is wrapped twice: once by wrapGAppsHook
(why, it's a KDE app?) and once by makeWrapper
. Looks quite ugly. Any chance you can make it work with only one wrapper?
thanks, missed that 👍
I'm admittedly not sure, that's been introduced in be7b7d9. |
It seems as we can't (or shouldn't) drop
This happens even when using Unfortunately I don't know too much about the wrappers, so unless you have an idea how to simplify this I'd suggest to keep it for now as this repairs the build at least and makes the package functional again :-) |
The `3.0.1` build was broken (see the Hydra build from https://hydra.nixos.org/build/74368257 for further reference). Because of the missing `utillinux` build input the package fails fairly early: ``` -- Checking for module 'blkid' -- No package 'blkid' found CMake Error at /nix/store/9hmhxgj4jk6jmxihgavj6gm0p759misc-cmake-3.10.2/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message): A required package was not found ``` Additionally `partition-manager` was broken on non-KDE desktops (none+i3 in my case) as the plugins from `libsForQt5.kpmcore` couldn't be found in `QT_PLUGIN_PATH` unless it's installed in `environment.systemPackages` or with `nix-env -iA libsForQt5.kpmcore`. This has been fixed by adding a wrapper in the `postInstall` hook which prefixes the `QT_PLUGIN_PATH` with the plugin path from `kpmcore` used for the build.
3f88096
to
d0b6e7e
Compare
Success on x86_64-linux (full log) Attempted: partition-manager Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: partition-manager Partial log (click to expand)
|
I don't know much about |
Motivation for this change
The
3.0.1
build was broken (see the Hydra build fromhttps://hydra.nixos.org/build/74368257 for further reference).
Because of the missing
utillinux
build input the package fails fairlyearly:
Additionally
partition-manager
was broken on non-KDE desktops (none+i3in my case) as the plugins from
libsForQt5.kpmcore
couldn't be foundin
QT_PLUGIN_PATH
unless it's installed inenvironment.systemPackages
or withnix-env -iA libsForQt5.kpmcore
.This has been fixed by adding a wrapper in the
postInstall
hook whichprefixes the
QT_PLUGIN_PATH
with the plugin path fromkpmcore
usedfor the build.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)