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

darwin.stdenv: remove openssl #21101

Closed
wants to merge 2 commits into from
Closed

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Dec 12, 2016

Motivation for this change

Together with #21078 this will get rid of openssl and lzo in the darwin stdenv.

I'm testing a branch WIP with #21078, #21099 and #21101.

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.

+bootstrap-python-2.7.12.drv
+bzip2-1.0.6.0.1.drv
-bzip2-1.0.6.0.1.drv
-clang-5.3.patch
+cmake-3.6.2.drv
-cmake-3.6.2.drv
-curl-7.51.0.drv
-curl-7.51.0.tar.bz2.drv
-db-5.3.28.drv
-db-5.3.28.tar.gz.drv
-e0ec3471cb09.drv
-gdbm-1.12.drv
-gdbm-1.12.drv
-gdbm-1.12.tar.gz.drv
-hook.drv
+libarchive-3.2.2.drv
-libarchive-3.2.2.drv
-libssh2-1.7.0.drv
-libssh2-1.7.0.tar.gz.drv
-libxml2-2.9.4.drv
-link-against-ncurses.patch
+lzo-2.09.drv
-lzo-2.09.drv
-no-arch_only-6.3.patch
-openssl-1.0.2j.drv
-openssl-1.0.2j.drv
-openssl-1.0.2j.tar.gz.drv
+pkg-config-0.29.drv
-pkg-config-0.29.drv
-properly-detect-curses.patch
-python-2.7-distutils-C++.patch
-python-2.7.12.drv
-python-2.7.12.drv
-readline-6.3.tar.gz.drv
-readline-6.3p08.drv
-readline-6.3p08.drv
-readline63-001.drv
-readline63-002.drv
-readline63-003.drv
-readline63-004.drv
-readline63-005.drv
-readline63-006.drv
-readline63-007.drv
-readline63-008.drv
-setup-hook.sh
-sqlite-3.15.0.drv
-sqlite-autoconf-3150000.tar.gz.drv
-use-etc-ssl-certs.patch

@LnL7 LnL7 added 1.severity: mass-darwin-rebuild 6.topic: darwin Running or building packages on Darwin labels Dec 12, 2016
@mention-bot
Copy link

@LnL7, thanks for your PR! By analyzing the history of the files in this pull request, we identified @aneeshusa, @vcunat and @chaoflow to be potential reviewers.

@copumpkin
Copy link
Member

copumpkin commented Dec 12, 2016

Can you elaborate on what your goal is here? Is it to reduce closure size? If so, how much does it improve that situation?

@LnL7
Copy link
Member Author

LnL7 commented Dec 12, 2016

The main thing I would like is to make diff with the linux stdenv smaller, the main things that I would like to get rid of are curl and openssl.

@copumpkin
Copy link
Member

copumpkin commented Dec 12, 2016 via email

@LnL7
Copy link
Member Author

LnL7 commented Dec 12, 2016

I think the main thing that brings in a lot of stuff is cmake, I'm not sure why it uses --system-libs.

@copumpkin
Copy link
Member

copumpkin commented Dec 12, 2016 via email

@LnL7
Copy link
Member Author

LnL7 commented Dec 12, 2016

It doesn't pull in openssl directly, it's stuff like curl and libarchive.

-e 's|-llzo2|-L${lzo}/lib -llzo2|'
'' + optionalString withOpenssl ''
sed -i $lib/lib/libarchive.la \
-e 's|-lcrypto|-L${openssl.out}/lib -lcrypto|
Copy link
Member Author

Choose a reason for hiding this comment

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

I missed a quote here.

@LnL7
Copy link
Member Author

LnL7 commented Jan 2, 2017

Closing in favor of #21596

@LnL7 LnL7 closed this Jan 2, 2017
@LnL7 LnL7 deleted the darwin-stdenv-openssl branch January 2, 2017 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.severity: mass-darwin-rebuild 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants