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
pdftk: reinit at 3.0.8 #75534
pdftk: reinit at 3.0.8 #75534
Conversation
Diff looks fine. I wonder if it is a good idea to have both for some time (so that there is an easy way to the old one in case something rare is found). The succesful build that prints a ton of Java compilation errors looks scary… Basic functionality seems to work, I tried |
I've added a copy as pdftk-legacy, maybe after the next release that can be removed.
It worked because those wrongly encoded chars were only in comments, I've fixed the gradle call so it's not as scary now. |
Have you updated the output hash, though? (also, @grahamc is it even possible to start detecting this on ofBorg? first build left something with the old outputHash in the store, so the new build succeeded) |
I've added the lowPrio () wrapping
That is not needed, because those comments have no effect on the output jar.
Good point, also maybe now I'm breaking auto-updates via bot with this pattern? |
Hm, I think so. Maybe this fixed-output doesn't pay off in this case… Also, maybe add youself as a maintainer? |
Ok, I double checked, ryantm actually uses TOFU :) https://github.com/ryantm/nixpkgs-update/blob/1aa24ed735ab8ce504eaa79ae34a93fe40ff230a/src/Update.hs#L188 If it looks good to you we could merge, I might be adding this way of building to other gradle derivations. |
As pointed out here, java-compiler upgrades would break this, so going back to the old perl-patchery stuff. |
I would just drop the old |
Furthermore I would rename it to pdftk-java and add an alias from pdftk to pdftk-java in |
@Mic92 it is unmaintained but working and its domain area is not exactly changing match; the port's upstream says they are not yet fully confident in the port. |
}; | ||
|
||
# Point to our local deps repo | ||
gradleInit = writeText "init.gradle" '' |
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.
Maybe this gradle fetching could be factored out into a proper fetcher for re-use eventually. But this does not need to happen as part of this PR.
@7c6f434c I would not call it |
Given this is a semiauto port, and The old |
pdftk: reinit at 3.0.8 (cherry picked from commit 9d16539)
Motivation for this change
I think this is basically a maintained rewrite of the previous package. See also https://gitlab.com/pdftk-java/pdftk#known-differences-with-pdftk
Independent testing would be good. I'm keeping maintainers as is, I hope that's ok. Also, supported platforms are a guess.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @