-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
ente-auth: fix build failure because of wrong icon path #352749
Conversation
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.
Thanks for your contribution!
@MrSom3body can you share more details about what are you trying to fix? This package builds for me on master, but I get this error with your change:
install: cannot stat '/nix/store/dxgqlaxsjydgxshh29f0qsz7jszlkdgs-ente-auth-4.0.2/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png': No such file or directory
To test the build yourself, you can run nix-build -A ente-auth
from the root of your fork of nixpkgs.
FAV=$out/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png | ||
ICO=$out/share/icons | ||
|
||
install -D $FAV $ICO/ente-auth.png |
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.
FAV=$out/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png | |
ICO=$out/share/icons | |
install -D $FAV $ICO/ente-auth.png | |
install -D $out/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png -t $out/share/pixmaps |
Delete the below lines about imagemagick. These should be useless
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.
ICO
and FAV
are also used in a for loop right below, I think its cleaner to keep those variables.
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.
I'm saying the following should be removed. share/pixmaps is stipulated by the freedesktop specification, and this path does not need to specify the size. I don't think zooming with imagemagick is a good way.
Also remove imagemagick
from nativeBuildInputs
and function formal.
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.
Thanks for explaining this! Even though pixmaps
is deprecated, it seems like better choice than creating images with imagemagick
.
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.
Let's move this to a follow-up PR as it's irrelevant to this fix, so we can unbreak the build first.
Huh, that's weird, I get the same error message if I do not have the change. Here's my log. Going into the directory that it build, I can see the following directory structure: |
Are you also using Lix, like the original reporter of the build failure? |
Yes, I am. So it seems to be a problem with lix and not with the package itself. Should I close the pull request then? |
I get this error also with
(I am also a |
Spawning a shell is insufficient. The Nix daemon is unaffected by this. |
Sorry, didn't think. |
#345404 changed the |
Yeah can confirm for 2.18 now (back at my NixOS machine). And nice find. I just wonder why @chewblacka said the build worked for them without this fix. |
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.
Building this PR fails for me:
> install: cannot stat '/nix/store/dxgqlaxsjydgxshh29f0qsz7jszlkdgs-ente-auth-4.0.2/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png': No such file or directory
For full logs, run 'nix log /nix/store/xsw15jfkniv34zbvlqc8s0d0hcg7ldml-ente-auth-4.0.2.drv'.
FAV=$out/app/ente-auth/data/flutter_assets/assets/icons/auth-icon.png | ||
ICO=$out/share/icons | ||
|
||
install -D $FAV $ICO/ente-auth.png |
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.
Let's move this to a follow-up PR as it's irrelevant to this fix, so we can unbreak the build first.
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.
This fixes the error introduced by #345404 for me 👍
Regarding my build failure, it looks like this PR branched off at the wrong point in history (before #345404 was merged), so building this PR's branch does not work. Rebasing it on top of current |
aa85c19
to
586a943
Compare
This is not needed, because ofborg will rebase itself to master before testing, so does nixpkgs-review |
Yeah just wanted to clarify why it did not build for me at first :) |
@MrSom3body can you add this text to the PR description, as this PR is part of ZHF:
|
Will do when I'm back home |
I tested it with Edit: After looking at the flutter PR that broke this package, I assume this fix is good but just to be sure I'm building it (also a webkitgtk rebuild is needed). |
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.
Builds on x86_64-linux, thanks!
Fix build failure for ente-auth.
ZHF: #352882
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.