Commit Graph

78355 Commits

Author SHA1 Message Date
Vladimír Čunát
4e6a21dbec
Merge #82510: gcc: fix building cross on 32-bit host
... into staging
2020-03-22 08:44:40 +01:00
Matthew Bauer
46f8756aee
Merge pull request #79593 from thefloweringash/wafhook-phases
wafHook: allow overriding phases and disabling of cross flags
2020-03-22 01:59:41 -04:00
Michael Weiss
b67aafe8b8
python3Packages.httplib2: 0.15 -> 0.17 (#82355) 2020-03-21 21:42:23 +01:00
Peter Hoeg
59281f742a libusb-compat: fix up the .so so it can find libusb1 2020-03-21 12:49:48 +08:00
Jonathan Ringer
cf0f90b85e pythonPackages.azure*: use pythonNamespaces 2020-03-18 12:20:51 -07:00
Jonathan Ringer
a9c994ad0b python: add pythonNamespacesHook 2020-03-18 12:20:51 -07:00
Niklas Hambüchen
16516cec82
Merge pull request #82552 from danderson/bug-57159-libvorbis
libvorbis: document that patch for CVE-2017-14160 also fixes CVE-2018-10393.
2020-03-18 02:50:23 +01:00
Jörg Thalheim
97c40baa9c
popt: set src to working mirror
rpm5.org no longer exists as a domain
2020-03-17 14:37:52 +00:00
David Anderson
b5f90159af libvorbis: document that patch for CVE-2017-14160 also fixes CVE-2018-10393.
Fixes #57159.

Signed-off-by: David Anderson <dave@natulte.net>
2020-03-17 01:11:24 -07:00
Matthew Bauer
67b0ddf3f3 Merge remote-tracking branch 'origin/staging' into mb-cross-fixes-march-2020 2020-03-16 14:34:03 -04:00
Matthew Bauer
e9c2957c14
treewide: add comments on where native inputs are needed
makes it more clear why this happens

Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
2020-03-16 14:27:23 -04:00
Jörg Thalheim
b8cff61c33
Merge pull request #82488 from r-ryantm/auto-update/libuv
libuv: 1.34.2 -> 1.35.0
2020-03-16 15:33:15 +00:00
Jörg Thalheim
f6e3f896c3
Merge pull request #82511 from alyssais/rust
rust_1_38, rust_1_42: drop patch version from attr
2020-03-15 18:43:45 +00:00
Vladimír Čunát
c82d181120
Merge #82566: gcc: 9.2.0 -> 9.3.0 (into staging) 2020-03-15 16:07:25 +01:00
Vladimír Čunát
855bbb53e4
Merge #82324: mesa: 19.3.3 -> 20.0.1 (into staging) 2020-03-15 11:13:45 +01:00
Frederik Rietdijk
7447fff95a
Fix sys.prefix in case of a Nix env
The prefix will now be correct in case of Nix env.

Note, however, that creating a venv from a Nix env still does not function. This does not seem to be possible
with the current approach either, because venv will copy or symlink our Python wrapper. In case it symlinks
(the default) it won't see a pyvenv.cfg. If it is copied I think it should function but it does not...
2020-03-14 21:39:32 +00:00
adisbladis
753122388d
Python: Add integration test verifying NIX_PYTHONPATH with Mypy 2020-03-14 21:39:32 +00:00
adisbladis
05571d3059
Python Add test for NIX_PYTHONPREFIX 2020-03-14 21:39:31 +00:00
adisbladis
d88a7735d2
Python: introduce NIX_PYTHONPREFIX in order to set site.PREFIXES
This is needed in case of `python.buildEnv` to make sure site.PREFIXES
does not only point to the unwrapped executable prefix.

--------------------------------------------------------------------------------

This PR is a story where your valiant hero sets out on a very simple adventure but ends up having to slay dragons, starts questioning his own sanity and finally manages to gain enough knowledge to slay the evil dragon and finally win the proverbial price.

It all started out on sunny spring day with trying to tackle the Nixops plugin infrastructure and make that nice enough to work with.

Our story begins in the shanty town of [NixOps-AWS](https://github.com/nixos/nixops-aws) where [mypy](http://mypy-lang.org/) type checking has not yet been seen.

As our deuteragonist (@grahamc) has made great strides in the capital city of [NixOps](https://github.com/nixos/nixops) our hero wanted to bring this out into the land and let the people rejoice in reliability and a wonderful development experience.

The plugin work itself was straight forward and our hero quickly slayed the first small dragon, at this point things felt good and our hero thought he was going to reach the town of NixOps-AWS very quickly.

But alas! Mypy did not want to go, it said:
`Cannot find implementation or library stub for module named 'nixops'`

Our hero felt a small sliver of life escape from his body. Things were not going to be so easy.

After some frustration our hero discovered there was a [rule of the land of Python](https://www.python.org/dev/peps/pep-0561/) that governed the import of types into the kingdom, more specificaly a very special document (file) called `py.typed`.
Things were looking good.

But no, what the law said did not seem to match reality. How could things be so?

After some frustrating debugging our valiant hero thought to himself "Hmm, I wonder if this is simply a Nix idiosyncrasy", and it turns out indeed it was.
Things that were working in the blessed way of the land of Python (inside a `virtualenv`) were not working the way they were from his home town of Nix (`nix-shell` + `python.withPackages`).

After even more frustrating attempts at reading the mypy documentation and trying to understand how things were supposed to work our hero started questioning his sanity.
This is where things started to get truly interesting.

Our hero started to use a number of powerful weapons, both forged in the land of Python (pdb) & by the mages of UNIX (printf-style-debugging & strace).

After first trying to slay the dragon simply by `strace` and a keen eye our hero did not spot any weak points.
Time to break out a more powerful sword (`pdb`) which also did not divulge any secrets about what was wrong.

Our hero went back to the `strace` output and after a fair bit of thought and analysis a pattern started to emerge. Mypy was looking in the wrong place (i.e. not in in the environment created by `python.withPackages` but in the interpreter store path) and our princess was in another castle!

Our hero went to the pub full of old grumpy men giving out the inner workings of the open source universe (Github) and acquired a copy of Mypy.
He littered the code with print statements & break points.
After a fierce battle full of blood, sweat & tears he ended up in 20f7f2dd71/mypy/sitepkgs.py and realised that everything came down to the Python `site` module and more specifically https://docs.python.org/3.7/library/site.html#site.getsitepackages which in turn relies on https://docs.python.org/3.7/library/site.html#site.PREFIXES .

Our hero created a copy of the environment created by `python.withPackages` and manually modified it to confirm his findings, and it turned out it was indeed the case.
Our hero had damaged the dragon and it was time for a celebration.

He went out and acquired some mead which he ingested while he typed up his story and waited for the dragon to finally die (the commit caused a mass-rebuild, I had to wait for my repro).

In the end all was good in [NixOps-AWS](https://github.com/nixos/nixops-aws)-town and type checks could run. (PR for that incoming tomorrow).
2020-03-14 21:39:31 +00:00
Ryan Mulligan
3be1ae971d
Merge pull request #82554 from r-ryantm/auto-update/libuninameslist
libuninameslist: 20190701 -> 20200313
2020-03-14 13:13:17 -07:00
Frederik Rietdijk
dbf125d286 Python: introduce tests for interpreters
This adds tests to the passthru of all Python interpreters.
2020-03-14 15:01:30 +01:00
Graham Christensen
39aac70d74 pythonMinimal: don't include site-customise
Experimenting with patching the site-customize file causes mass
rebuilds for no reason.
2020-03-14 15:02:51 +01:00
Frederik Rietdijk
0c13b0d7d3 Merge staging-next into staging 2020-03-14 14:34:59 +01:00
R. RyanTM
699eb40353 libinput: 1.15.2 -> 1.15.3 2020-03-14 14:32:55 +01:00
R. RyanTM
399d3b31d5 libzip: 1.6.0 -> 1.6.1 2020-03-14 14:29:31 +01:00
R. RyanTM
21b8df1019 minizincide: 2.3.2 -> 2.4.2 2020-03-14 14:25:50 +01:00
R. RyanTM
4e7d702bb9 cli11: 1.8.0 -> 1.9.0 2020-03-14 14:25:23 +01:00
R. RyanTM
77d2408f7d lightstep-tracer-cpp: 0.11.0 -> 0.12.0 2020-03-14 14:24:44 +01:00
Frederik Rietdijk
e4336956e4
Merge pull request #79316 from r-ryantm/auto-update/git-ftp
git-ftp: 1.5.2 -> 1.6.0
2020-03-14 14:24:09 +01:00
R. RyanTM
9ad2b5e69d libmysofa: 0.9.1 -> 1.0 2020-03-14 14:23:45 +01:00
R. RyanTM
6e8d817333 omnisharp-roslyn: 1.32.19 -> 1.34.11 2020-03-14 14:23:28 +01:00
Tim Steinbach
16eb11b5d3
jenkins: 2.204.4 -> 2.204.5 2020-03-14 04:59:52 -04:00
Jörg Thalheim
09ad2cffdc
radare2: 4.3.0 -> 4.3.1 2020-03-14 08:56:42 +00:00
Jörg Thalheim
1a3ca53dee
Merge pull request #82544 from r-ryantm/auto-update/hcloud
hcloud: 1.14.0 -> 1.16.1
2020-03-14 08:03:21 +00:00
R. RyanTM
b7af93ad34 libuninameslist: 20190701 -> 20200313 2020-03-14 07:55:27 +00:00
Vladimír Čunát
6dcb71ecc1
Merge branch 'staging-next' 2020-03-14 07:56:23 +01:00
R. RyanTM
5b8278737c hcloud: 1.14.0 -> 1.16.1 2020-03-14 06:29:32 +00:00
R. RyanTM
5ef871d24a jflex: 1.7.0 -> 1.8.1 2020-03-14 06:01:35 +00:00
Dylan Simon
1e769bdd2a tensorflow: 1.15.1 -> 1.15.2
(cherry picked from commit 0a5ec494b5)
2020-03-14 05:35:08 +00:00
Maximilian Bosch
1688d38004
gcc9: 9.2.0 -> 9.3.0 2020-03-14 06:28:18 +01:00
Orivej Desh
ee2ccdaf26 jemalloc: 5.1.0 -> 5.2.1 2020-03-14 04:56:32 +00:00
Benjamin Hipple
3a68a3313e cdb: fix meta.homepage
Without the .html, the server returns access denied.
2020-03-14 04:46:37 +00:00
Andrew Childs
e271476a4e openssl: fix platform detection on armv5tel-linux 2020-03-14 04:33:05 +00:00
rychale
7ed8a2c7f5 msgpack: 3.0.1 -> 3.2.0 2020-03-14 04:12:25 +00:00
Jan Tojnar
f5fade94bd
Merge pull request #82362 from jtojnar/mysql-wb
mysql-workbench: 8.0.15 → 8.0.19
2020-03-14 04:41:36 +01:00
Nathan van Doorn
dd938aa157 metamath: 0.180 -> 0.181 2020-03-14 03:24:44 +00:00
Mario Rodas
b86030608b pythonPackages.psutil: fix build on darwin
Disable tests because it segfaults on darwin
2020-03-13 20:20:40 -07:00
Maximilian Bosch
386a50f729
binaryen: 89 -> 91, emscripten: 1.38.28 -> 1.39.1 2020-03-14 02:37:37 +01:00
Mario Rodas
c64f415331
Merge pull request #82123 from r-ryantm/auto-update/python2.7-azure-mgmt-sql
python27Packages.azure-mgmt-sql: 0.16.0 -> 0.17.0
2020-03-13 19:26:28 -05:00
Josef Kemetmüller
de36c3b073
python37Packages.vtk: Fix build (#82336) 2020-03-13 18:12:34 -04:00