Skip to content
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

mediawiki: 1.29.1 -> 1.31.1 #51475

Merged
merged 1 commit into from Dec 4, 2018
Merged

mediawiki: 1.29.1 -> 1.31.1 #51475

merged 1 commit into from Dec 4, 2018

Conversation

redvers
Copy link
Member

@redvers redvers commented Dec 3, 2018

Motivation for this change

MediaWiki 1.29 is an obsolete release of MediaWiki. The final security and maintenance release was released on 20 September 2018"
MediaWiki 1.31 is the latest release of MediaWiki

Sources:

https://www.mediawiki.org/wiki/MediaWiki_1.29
https://www.mediawiki.org/wiki/MediaWiki_1.31

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

1.29.1 is out of support and has security vulnerabilities. 1.31.1 is current LTS.
@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 3, 2018

Thanks for this.
One remarks though: this module is doing things wrong, somewhat.
mediawiki should be a derivation (ie package) living under pkgs, and the service module should rely on this package. At least that's how the majority of service modules are written.
(plus it would allow someone on non-nixos or with a different setup to still install mediawiki through nix without automatically setting it up as a service)

@redvers
Copy link
Member Author

redvers commented Dec 3, 2018

Thanks for this.
One remarks though: this module is doing things wrong, somewhat.
mediawiki should be a derivation (ie package) living under pkgs, and the service module should rely on this pkgs. At least that's how the majority of service modules are written.
(plus it would allow some on non-nixos or with a different setup to still install mediawiki through nix without automatically setting it up as a service)

I'm happy to do this but to be honest that's probably above my 'pay grade' with respect to doing it properly in a timely manner (I'm still very much at the 'cargo cult'-stage of NixOS contributions).

I'm happy to do this and raise another PR with this change and maintain the new package after this one is pushed.

I just wanted to get the update in as it was with the minimal changes for obvious reasons.

@markuskowa
Copy link
Member

This module is probably not fully functional anymore. The postgresql init may fail because it tries to run as root instead of the postgresql super user.

@redvers
Copy link
Member Author

redvers commented Dec 3, 2018

This module is probably not fully functional anymore. The postgresql init may fail because it tries to run as root instead of the postgresql super user.

That is correct for new installations. For existing installations which would get the security update they would continue as the table updates are done as the user configured in your configuration.nix.

I'm in the process of writing up docs to do a basic installation.

The howto covers that as:

[code]
su - postgres
createuser --interactive root

** rebuild goes here **

dropuser root
[/code]

Is that good? no.
Does it need to be fixed? yes.

It was on the list of things I was going to work on post-update.

@markuskowa
Copy link
Member

It should be enough to add -U postgresql to the commands in the init script.

@makefu
Copy link
Contributor

makefu commented Dec 4, 2018

I think the update of the module logic should be part of a second PR, this one is only about a security patch of mediawiki.

@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 4, 2018

Agreed @makefu and that is what @redvers propose to do
So merging this to begin with.

@c0bw3b c0bw3b merged commit 68b17ad into NixOS:master Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants