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

Bye bye MD5 #22101

Merged
merged 16 commits into from Jan 25, 2017
Merged

Bye bye MD5 #22101

merged 16 commits into from Jan 25, 2017

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Jan 24, 2017

Motivation for this change

This PR removes all remaining usage of MD5 as a source hash.

I'm being a bit drastic in some cases

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

This was pointing to a broken upstream URL and is a beta release. No
dependent in the nixpkgs tree.
libjpeg62 is broken as well
This package has broken upstream url and was only used by warsow
The package is a java library that no other project is using and which
upstream source doesn't work.

See http://www.program-transformation.org/Tools/JJTraveler
The package is broken since September, doesn't have a maintainer and
uses md5 for hashing
The package has:

* broken source URL
* uses md5 hash
* no maintainer
* is a library with nobody depending on it
Unfortunately the upstream has gone and I didn't find any replacement
sources.
@mention-bot
Copy link

@zimbatm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @rbvermaa and @dezgeg to be potential reviewers.

@zimbatm zimbatm changed the title No md5 Bye bye MD5 Jan 24, 2017
@copumpkin
Copy link
Member

Can we actively prevent people from using md5 going forward?

@7c6f434c
Copy link
Member

7c6f434c commented Jan 24, 2017 via email

@edolstra
Copy link
Member

This PR does a bit more than remove md5... Looks good to me though.

@zimbatm
Copy link
Member Author

zimbatm commented Jan 24, 2017 via email

@aneeshusa
Copy link
Contributor

I'd say we assert on MD5 without an escape hatch and add it to the 17.03 release notes; if someone really wants to use MD5 they can patch nixpkgs themselves.

I also think it's be nice to remove MD5 from Nix itself.

@copumpkin
Copy link
Member

copumpkin commented Jan 24, 2017 via email

@@ -40,22 +40,6 @@ let
'';
};

mkDictFromRedIRIS =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -59,5 +59,6 @@ stdenv.mkDerivation rec {
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ astsmtl ];
platforms = platforms.linux;
broken = true; # Depends on a specific old libjpeg version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenkozar domenkozar merged commit f87deb0 into NixOS:master Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet