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
photivo: fix build with lensfun >= 0.3 #23499
Conversation
@@ -10,6 +10,14 @@ stdenv.mkDerivation rec { | |||
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h"; | |||
}; | |||
|
|||
patches = [ | |||
(fetchpatch { | |||
url = "https://www.linuxquestions.org/questions/attachment.php?attachmentid=17287&d=1420577220"; |
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 have a feeling that this is better served by including the file in nixpkgs (with a reference to the original source) rather than downloading it from a comment in a forum post.
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.
Yeah, I agree. I have force pushed a new version that includes the patch directly. Thanks for the comment!
For some reason the current commit is broken for me:
|
Note that this might be caused by git modifying the patche's line endings:
I'm not sure how to disable this behavior in git though. |
Well, isn't that interesting… Seems like git will change the line ending unless you have a global configuration set or use a gitattributes file. I'm reluctant to add a gitattributes file just for this file. So I'm inclined to just use the forum source. It's been a stable link for like two years so hopefully it will stick around for longer. Alternatively, can use https://github.com/driesz/photivo/ as upstream, it seems to include this fix and some other stuff. Don't know how official it is, though. |
@rycee Agreed. Let's just use the forum source. Git should really have a global blacklist for things like patchfiles. |
Yeah, keeping precise newlines on I switched back to downloading the patch from the forum. |
Applied in 747b62f, thank you! |
Applied to 17.03 in 9279742 |
Cheers! |
Motivation for this change
To fix photivo build in master and 17.03.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)