-
-
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
rt: 4.4.4 -> 5.0.1 #120926
rt: 4.4.4 -> 5.0.1 #120926
Conversation
I'm quite skeptical about these patches you've applied, they don't seem to be relevant to NixOS as a whole. What's up? |
@ajs124 Would you mind adding yourself as a maintainer? |
|
What is the user/group patch fixing, is that run during build time? |
Yes, and there is no way to turn it off |
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.
The patches included in this PR needs more details:
What are their purpose? Are they found in other distributions?
They are probably not found in other distributions since I created some of them ;) Apart from the users-groups patch (which is needed to get it to "build" in the sandbox) the rest is to prevent RT from leaking its version all over the internet. May be a good choice so people don't find vulns for that specific version too easily |
@@ -82,18 +136,27 @@ stdenv.mkDerivation rec { | |||
"--enable-graphviz" | |||
"--enable-gd" | |||
"--enable-gpg" | |||
"--with-db-type=SQLite" | |||
"--enable-smime" | |||
"--with-db-type=Pg" |
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.
Does this mean that SQLite support is dropped? Does this have implications for existing installs?
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.
Hm. I'd be surprised if anyone is actually using this from nixpkgs right now. I see you fixed the build in 3e50e26. It has broken since. Trying to run the build from that commit doesn't work either, because the RT_SiteConfig.pm
isn't writable.
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.
Good points. The db-type change seems ok.
Thanks for providing more info, and for the work on the patches. :) I'd think patches that remove the RT version from misc places are more suited for upstream, imho. |
LGTM apart from the version number stripping patches. |
Dropped the two version-stripping patches. |
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.
LGTM, but not really familiar with perl
@stigtsp is happy with it
https://github.com/NixOS/nixpkgs/pull/120926
25 packages built:
perl530Packages.AlienBaseModuleBuild perl530Packages.AlienLibGumbo perl530Packages.CryptX509 perl530Packages.HTMLFormatExternal perl530Packages.HTMLGumbo perl530Packages.HTTPHeadersActionPack perl530Packages.MooXTypeTiny perl530Packages.PathDispatcher perl530Packages.ShellConfigGenerate perl530Packages.ShellGuess perl530Packages.TextWordDiff perl530Packages.WebMachine perl532Packages.AlienBaseModuleBuild perl532Packages.AlienLibGumbo perl532Packages.CryptX509 perl532Packages.HTMLFormatExternal perl532Packages.HTMLGumbo perl532Packages.HTTPHeadersActionPack perl532Packages.MooXTypeTiny perl532Packages.PathDispatcher perl532Packages.ShellConfigGenerate perl532Packages.ShellGuess perl532Packages.TextWordDiff perl532Packages.WebMachine rt
Is there a NixOS module available for this? If not, could someone share the relevant parts of their configuration.nix to use this with a web server (preferably nginx)? |
@sbourdeauducq: https://gist.github.com/ajs124/ff04ab14435908d914cf5cedbc56a52e It's probably not generic enough + I removed the postgres config, because that uses our own postgres module. Although scrolling over it, I forgot to remove the sandbox and apparmor parameters for the systemd services. |
@ajs124 thank you! |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)