-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
hspell: Add zlib #369595
hspell: Add zlib #369595
Conversation
I gave up on making nixpkgs work nicely when building cross-platform, feel free to revert 67f0a21 |
thanks for catching that. might need some tweaks to keep cross-compilation working though:
|
this fixes cross compilation again. patches = [ ./remove-shared-library-checks.patch ];
postPatch = "patchShebangs .";
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
- make CC=${buildPackages.stdenv.cc}/bin/cc find_sizes
+ make CC='${buildPackages.stdenv.cc}/bin/cc -I${lib.getDev buildPackages.zlib}/include -L${buildPackages.zlib}/lib' find_sizes
mv find_sizes find_sizes_build
make clean i don't know enough about the existing preBuild component to say if this is a good fix, but the result links against zlib so it's probably alright. |
Thanks. Incorporated your fix. Also confirmed (going back and forth between the version built against this and the one from $ geary
Hspell: can't run gzip -dc '/nix/store/rj33i89v9r2kpdhv3783ajf6dk0nxhii-hspell-1.4/share/hspell/hebrew.wgz.prefixes'.
Hspell: can't run gzip -dc '/nix/store/rj33i89v9r2kpdhv3783ajf6dk0nxhii-hspell-1.4/share/hspell/hebrew.wgz.prefixes'.
Could not create GBM EGL display: EGL_NOT_INITIALIZED. Aborting...
*[wrn] 18:29:13.0226 geary:application-client.vala:464: Forcing shutdown of Geary, 7s passed...
$
gzip:
gzip: stdout: Broken pipe
stdout: Broken pipe Looks like the gzip failure was breaking webkitgtk process. |
As mentioned by the configure script output, hspell will fall back on using `gzip` program when not linked against `zlib`: No Zlib library, defaulting to using pipes It has been removed in 67f0a21 for some reason. Without this patch, Geary is stuck loading messages, even though I can interact with the rest of its UI. I am also getting the following in the log so broken piping might be breaking webkitgtk for some reason: Hspell: can't run gzip -dc '/nix/store/14qk9r9ywvpqn0a24fvw1iwjv302d04j-hspell-1.4/share/hspell/hebrew.wgz.prefixes'. Could not create GBM EGL display: EGL_NOT_INITIALIZED. Aborting... And after quitting Geary: *[wrn] 18:29:13.0226 geary:application-client.vala:464: Forcing shutdown of Geary, 7s passed... gzip: gzip: stdout: Broken pipe stdout: Broken pipe Co-authored-by: Colin <[email protected]>
As mentioned by the configure script output, hspell will fall back
on using
gzip
program when not linked againstzlib
:It has been removed in 67f0a21 for some reason.
Without this patch, Geary is stuck loading messages, even though I can interact
with the rest of its UI. I am also getting the following in the log so broken
piping might be breaking webkitgtk for some reason:
And after quitting Geary:
cc @kampka @uninsane
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.