Skip to content

python39: backport patch to accomodate system library changes in Big Sur - #146477

Merged
jonringer merged 1 commit into
NixOS:stagingfrom
mweinelt:cpython-darwin
Dec 3, 2021
Merged

jonringer merged 1 commit into
NixOS:stagingfrom
mweinelt:cpython-darwin

Conversation

@mweinelt

Copy link
Copy Markdown
Member
Motivation for this change

Backports python/cpython#28053

@bergkvist Can you test this change?

Depending on when we merge #145752 I need to rebase this once more. But this should be backported to 21.11 if it indeed fixes python3.9 stuff on recent MacOS releases.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

(cherry picked from commit 9738723b2486cfe9988abbff0c873cce5cba1849)
@mweinelt
mweinelt requested a review from FRidh as a code owner November 18, 2021 09:59
@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Nov 18, 2021
@ofborg ofborg Bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 18, 2021

@jonringer jonringer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, waiting on darwin maintainer. cc @NixOS/darwin-maintainers

This should probably be backported to 21.05 and 21.11

@toonn

toonn commented Nov 20, 2021

Copy link
Copy Markdown
Contributor

Since no one's chimed in yet, didn't want to have it seem like Darwin maintainers are ignoring it. I've been running a nixpkgs-review on this for the last two days. (Only building 3 Python packages.)

@bergkvist

Copy link
Copy Markdown
Member

To test this properly, pkgs.python39 needs to be built on macOS Catalina (or older), and copied over to macOS Big Sur.

I'm guessing it should work to just copy the output path (/nix/store/...python3.9/) using something like rsync. I'm going to test this soon and post the results here.

@r-burns

r-burns commented Nov 21, 2021

Copy link
Copy Markdown
Contributor

I'm guessing it should work to just copy the output path (/nix/store/...python3.9/) using something like rsync. I'm going to test this soon and post the results here.

I think nix-copy-closure is the most convenient way, since it ensures the entire dependency graph is copied

@toonn

toonn commented Nov 21, 2021 •

Copy link
Copy Markdown
Contributor

The three packages failed to build but there's nothing in the logs.

Here's part of the output.
[nix-shell:~/src/nixpkgs]$ nixpkgs-review pr 146477 -p python39Packages."etcd" -p python39Packages."etesync" -p python39Packages."fabulous"
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs staging:refs/nixpkgs-review/0 pull/146477/head:refs/nixpkgs-review/1
remote: Enumerating objects: 1399, done.
remote: Counting objects: 100% (835/835), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 1399 (delta 834), reused 833 (delta 833), pack-reused 564
Receiving objects: 100% (1399/1399), 1.43 MiB | 306.00 KiB/s, done.
Resolving deltas: 100% (1001/1001), completed with 257 local objects.
From https://github.com/NixOS/nixpkgs
   75ceb8957b5..daffc694ef4  staging    -> refs/nixpkgs-review/0
$ git worktree add /Users/toonn/.cache/nixpkgs-review/pr-146477-3/nixpkgs daffc694ef4e4d4d92cc75ff96207c34cf09eeb4
Preparing worktree (detached HEAD daffc694ef4)
Updating files: 100% (28961/28961), done.
HEAD is now at daffc694ef4 Merge staging-next into staging
$ git merge --no-commit --no-ff a43a2eacb322c3799aa6eadd0061db1a3c176b78
Automatic merge went well; stopped before committing as requested
$ nix --experimental-features nix-command build --no-link --keep-going -f /Users/toonn/.cache/nixpkgs-review/pr-146477-3/build.nix
error: ca hash mismatch importing path '/nix/store/lfkj40ykgzy144wlpiwhr74la3sfb8c6-wheel-0.36.2-source';
         specified: sha256:1n1p7nzdylianwxz53h4n5hp1gcki4zvj3m2kcc1a8w1z99bclpj
         got:       sha256:1d3ah9nba7jmmld7qkn1zqlnizg5xzqshbblrbyzmyw9zick7vmk
error: ca hash mismatch importing path '/nix/store/lfkj40ykgzy144wlpiwhr74la3sfb8c6-wheel-0.36.2-source';
         specified: sha256:1n1p7nzdylianwxz53h4n5hp1gcki4zvj3m2kcc1a8w1z99bclpj
         got:       sha256:1d3ah9nba7jmmld7qkn1zqlnizg5xzqshbblrbyzmyw9zick7vmk
error: some substitutes for the outputs of derivation '/nix/store/25ravr8vf5m4j0mnlp66bkrx8c6parvz-wheel-0.36.2-source.drv' failed (usually happens due to networking issues); try '--fallback' to build derivation from source
[5/52/441 built (1 failed), 0 copied (1 failed) (0.7 MiB), 0.2 MiB DL] building error: 1 dependencies of derivation '/nix/store/w84cdkj4m4fc6ydb8m7jscxamzv2a6yq-python3.9-bootstrapped-pip-21.1.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wl9md9vky7pz67d7dhakdkqr9759ajp7-python3.9-setuptools-57.2.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4nxnlb97gf7mzb9ing7xwjcj4zlb207z-python-catch-conflicts-hook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pc58wdjfrxq9vhaxp6kpjqzindyf4rb5-setuptools-check-hook.drv' failed to build
error: 3 dependencies of derivation '/nix/store/n4ixlygysr0vnj8zla8gi0yqm1c1cxss-python3.9-pip-21.1.3.drv' failed to build
error: 4 dependencies of derivation '/nix/store/jp1zgcwdzbbgj9vnrdaj2jb2n75w4h4z-python3.9-wheel-0.36.2.drv' failed to build
error: 2 dependencies of derivation '/nix/store/42m68i5dmlayxalg301lyplm75xw5mbr-pip-build-hook.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/v90b1vj81hh59741bgpv8ls2iz2g8rlx-pip-install-hook.drv' failed to build
error: 2 dependencies of derivation '/nix/store/2kbv59j26nln4kgjcw0b4kjxig4c4q52-setuptools-setup-hook.drv' failed to build
error: 4 dependencies of derivation '/nix/store/4g61xpr2p9sik6zj1hn58g0bw9ll9a76-meson-0.57.1.drv' failed to build
error: 4 dependencies of derivation '/nix/store/ilchzzg1i6qvp4lccb1j1bmym7ihs2n8-python3.9-Cython-0.29.24.drv' failed to build
error: 5 dependencies of derivation '/nix/store/98694zddm72sq6rgqqy7zfv6634gpsg2-python3.9-appdirs-1.4.4.drv' failed to build
error: 5 dependencies of derivation '/nix/store/dhx8a40l8iz9w06ymwhpfdvbhsbzaxjp-python3.9-apsw-3.33.0-r1.drv' failed to build
error: 4 dependencies of derivation '/nix/store/74dy6hwdpnb93dffk5asx4n2csi814dc-python3.9-asn1crypto-1.4.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/c7jh1k1x5i5p3pidhcvdzqgrvh1cmsi4-python3.9-atomicwrites-1.4.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/z3hhwqbvgryis3bz27l18rd7gzddx4i1-python3.9-attrs-21.2.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/3yzg18lbfrqkvmjadxbs9mf8wwhb4zdw-python3.9-coverage-5.5.drv' failed to build
error: 4 dependencies of derivation '/nix/store/m2rrl5jyfvrrp3x4i49nb3qx8py0hqs9-python3.9-cryptography_vectors-3.4.8.drv' failed to build
error: 5 dependencies of derivation '/nix/store/3bz680v0byapj4vx1davc2zai7lffmam-python3.9-defusedxml-0.7.1.drv' failed to build
error: 5 dependencies of derivation '/nix/store/w9qi4k79x95ss6xl85dyw8n33im9pgy5-python3.9-docutils-0.17.1.drv' failed to build
error: 4 dependencies of derivation '/nix/store/x1n9g4vnvlxpb29xwk489yyqn2zxmy3a-python3.9-iniconfig-1.1.1.drv' failed to build
error: 5 dependencies of derivation '/nix/store/lavr2yp6g0gj8c61i95g67pvh8xxiq72-python3.9-olefile-0.46.drv' failed to build
error: 4 dependencies of derivation '/nix/store/y177hl3dilxnc11j5d1lj6i6msd3z8h3-python3.9-pbr-5.7.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/nlh5wyq6f8g8w3jkag9vdivz66pf1rwi-python3.9-pretend-1.0.9.drv' failed to build
error: 4 dependencies of derivation '/nix/store/gppskqr4z0igpk7ckiskyxvfz4fij6mr-python3.9-psutil-5.8.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/vln54w4f6pvdc9g07vldqzffppya5vvi-python3.9-ptyprocess-0.7.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/yz3pdzfm62z2nm2x4ara7r06pybynqrc-python3.9-pyasn1-0.4.8.drv' failed to build
error: 5 dependencies of derivation '/nix/store/i06badbxfix8gdsglga8wwg6370f0dsb-python3.9-pycodestyle-2.8.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/4d0q18pac6w7vvm4gwinaqcwswnar61y-python3.9-pycparser-2.20.drv' failed to build
error: 4 dependencies of derivation '/nix/store/1bwmak9mdb947gk2gjsi7mip7fwb68b7-python3.9-pyflakes-2.4.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/v7r8khw0d3x2xzima55xqmzgqkyzd2y6-python3.9-pyscrypt-1.6.2.drv' failed to build
error: 4 dependencies of derivation '/nix/store/zm60i44al6rxnslwaw8dbshy1m6378rw-python3.9-pysocks-1.7.1.drv' failed to build
error: 5 dependencies of derivation '/nix/store/waqavz7wmilwpnrxw44901v99mqklpfm-python3.9-pytz-2021.3.drv' failed to build
error: 4 dependencies of derivation '/nix/store/lg2s0b9f4v6zr1j9lrmhyrspcm9jzm54-python3.9-semantic_version-2.8.5.drv' failed to build
error: 4 dependencies of derivation '/nix/store/lfnqfk7ddpg40nfgk4fr3x2cs33g6n8m-python3.9-simplejson-3.17.5.drv' failed to build
error: 4 dependencies of derivation '/nix/store/jwm8pdd1k0ql659kq7nqsa0nsb01gblf-python3.9-six-1.16.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/05xykqhd9pa650zsng7ny1nakgd6lyim-python3.9-sortedcontainers-2.4.0.drv' failed to build
error: 4 dependencies of derivation '/nix/store/df8malhsnv5nf91rnq21qysrq328hkda-python3.9-toml-0.10.2.drv' failed to build
error: 4 dependencies of derivation '/nix/store/gx6bk0h50kk4g09xw07gyk5ki47fyygy-python3.9-wcwidth-0.2.5.drv' failed to build
error: 5 dependencies of derivation '/nix/store/3my01j0vjp69csqfvc8kzbf3b1zsd4qx-python3.9-Pygments-2.10.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/m68kx4229wyc6sc0m9am1syjlipjqbsf-python3.9-cffi-1.14.6.drv' failed to build
error: 5 dependencies of derivation '/nix/store/zlbnfhyybkj5z7ay3rf3ckzn2bfc9xx9-python3.9-flit-core-3.2.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/3jcs1a0miz9f9h7iwa51ff25pb3m1bd2-python3.9-hypothesis-6.24.5.drv' failed to build
error: 6 dependencies of derivation '/nix/store/p5z8gbssd2n4vy47kn9wnf3bmjfnc7q6-python3.9-mock-4.0.3.drv' failed to build
error: 5 dependencies of derivation '/nix/store/byra53zzj8l442n8gfcaji6zq538z74m-python3.9-nose-1.3.7.drv' failed to build
error: 6 dependencies of derivation '/nix/store/ca22rc689d0wwd1miff9sdrsv926a7qq-python3.9-peewee-3.14.8.drv' failed to build
error: 5 dependencies of derivation '/nix/store/gkmp414118vg1b06b6fbc73df8k0yrch-python3.9-pexpect-4.8.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/ayfv1mcmyk8s0qkl7hr7iqwshsgj7kcz-python3.9-pyparsing-2.4.7.drv' failed to build
error: 7 dependencies of derivation '/nix/store/79xq81vyfrc9flhi1iajba4f320irp88-python3.9-more-itertools-8.10.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/x5icjdl8yacisjb18kmh0ma1anrndz0r-python3.9-packaging-20.9.drv' failed to build
error: 5 dependencies of derivation '/nix/store/lk4jx4nl72kpaqsc20ajgkprqkl6ig5c-python3.9-tomli-1.2.2.drv' failed to build
error: 6 dependencies of derivation '/nix/store/vhy6mmnbj9la4bn34skd2mwgkja5v8b0-python3.9-setuptools-scm-6.3.2.drv' failed to build
error: 5 dependencies of derivation '/nix/store/f4clxs3cb7s14hvmx6ydwbvkyxf30kvc-python3.9-pluggy-1.0.0.drv' failed to build
error: 5 dependencies of derivation '/nix/store/74fjr7vmc73f3ikdhaqrmjs35g50qdfh-python3.9-py-1.10.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/66r8r49cdjflq5xj5822xxb6fc55rzgg-python3.9-python-dateutil-2.8.2.drv' failed to build
error: 7 dependencies of derivation '/nix/store/vanccjdcw25dwmilq8iainivrynpcybs-python3.9-setuptools-rust-0.12.1.drv' failed to build
error: 18 dependencies of derivation '/nix/store/d32a51f51583smjyl6hh6kakdxch69sm-python3.9-pytest-6.2.5.drv' failed to build
error: 6 dependencies of derivation '/nix/store/6aj88yjszc3mk1cbqvqxfldkkwzkk2lk-python3.9-vobject-0.9.6.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4b8cnlrm0s2pmmydx24ng565nr8ibcq9-pytest-check-hook.drv' failed to build
error: 7 dependencies of derivation '/nix/store/b68khqlvfyxf9ydi60y78jk05n2702k5-python3.9-apipkg-1.5.drv' failed to build
error: 7 dependencies of derivation '/nix/store/lfh0jnbrmd83imdzr6gzyl12a31372q5-python3.9-pyasn1-modules-0.2.8.drv' failed to build
error: 5 dependencies of derivation '/nix/store/4wv13r647n12pvch1hhfrimsdz75q72i-python3.9-pytest-asyncio-0.15.1.drv' failed to build
error: 6 dependencies of derivation '/nix/store/fyvw6li9knvcqdnazpawg3hkn30xqjar-python3.9-pytest-runner-5.3.1.drv' failed to build
error: 6 dependencies of derivation '/nix/store/w823ky95ycmbk7xyaspmyfb43wqyljk9-python3.9-brotli-1.0.9.drv' failed to build
error: 6 dependencies of derivation '/nix/store/z5yydfqlkp797jc3zzia1a6w032p1fgh-python3.9-buildcatrust-0.1.3.drv' failed to build
error: 6 dependencies of derivation '/nix/store/vy73ki3i0nikz08nv44qg5saq0grxzlj-python3.9-certifi-2021.10.08.drv' failed to build
error: 6 dependencies of derivation '/nix/store/sg88dfkcapij0pxpkajmimvwz899c9vy-python3.9-charset-normalizer-2.0.5.drv' failed to build
error: 8 dependencies of derivation '/nix/store/5ivzx9075m9zdbq5fx5ms1nlsrqkmmh3-python3.9-execnet-1.9.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/bnh1axamq79z9d231wd3f20h19gz1g45-python3.9-filelock-3.3.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/r8zvh2bg3dgs261vi6hxpym6393qh9c3-python3.9-idna-3.2.drv' failed to build
error: 6 dependencies of derivation '/nix/store/v5lm42qhszjrmfsls3z2l59c9q8598ix-python3.9-iso8601-0.1.16.drv' failed to build
error: 7 dependencies of derivation '/nix/store/qqjapxk5xr2xnjgjlc40xv03cpd88va1-python3.9-jpylyzer-2.0.0.drv' failed to build
error: 7 dependencies of derivation '/nix/store/42rybxz4wplas375k6md3kkm189i963f-python3.9-mccabe-0.6.1.drv' failed to build
error: 9 dependencies of derivation '/nix/store/xl6xg4q9llarnf2x1z7ass6xxc5kpn5q-python3.9-pytest-forked-1.3.0.drv' failed to build
error: 8 dependencies of derivation '/nix/store/wjghasl5mir2x8shzb928mbzqpxp1340-python3.9-pytest-mock-3.6.1.drv' failed to build
error: 7 dependencies of derivation '/nix/store/bdql1f7m7844kp2rcfnf70x15nycq90l-python3.9-pytest-subtests-0.5.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xsjdl4z3bj82n0c4qf4q6pznr8hb1kf7-nss-cacert-3.71.drv' failed to build
error: 10 dependencies of derivation '/nix/store/xrahixm9av9pjm8q5jpv3q18grxm096h-python3.9-flake8-4.0.1.drv' failed to build
error: 12 dependencies of derivation '/nix/store/r1ksa5ax2ln4mb4pvcj97rwf2qbcrsn9-python3.9-pytest-xdist-2.4.0.drv' failed to build
error: 6 dependencies of derivation '/nix/store/vlv8v412v4srdy3b7aanrdn7ri5k9gbw-python3.9-tzdata-2021.1.drv' failed to build
error: 6 dependencies of derivation '/nix/store/qj7as8884rg6qd0w1i3i6xj6laciwm15-python3.9-urllib3-1.26.7.drv' failed to build
error: 11 dependencies of derivation '/nix/store/cskc17vpajzi98cnzha8cfa9ww5g7czi-python3.9-hypothesis-6.24.5.drv' failed to build
error: 7 dependencies of derivation '/nix/store/xr8njlvcw00x3cxzb66kx43xp4ghy8g8-python3.9-orderedmultidict-1.0.1.drv' failed to build
error: 7 dependencies of derivation '/nix/store/hn3mq116ivijd4gc9ifbrrz60csnysfk-python3.9-chardet-4.0.0.drv' failed to build
error: 9 dependencies of derivation '/nix/store/h8iq19acrh3vnffwxr72pca1qij8j6ab-python3.9-furl-2.1.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fbh428a9mzy68351jr46gs11gdva1rgn-xorgproto-2021.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kmqlva13qd9cxl2r57vc43115f6yhxc9-libXau-1.0.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9aqadrwrgy9mjb5dpl2lgb3gzl07cvw6-libXdmcp-1.1.3.drv' failed to build
error: 2 dependencies of derivation '/nix/store/bllhy2rg96jrs37has96fx74nh8xw9hs-libxcb-1.14.drv' failed to build
error: 5 dependencies of derivation '/nix/store/frryn9l5zrdxx6f1wx4jgxxppsrw9vpx-python3.9-brotlicffi-1.0.9.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pd5612ik1daj45zs1sf7fyysdnm905lm-openjpeg-2.4.0.drv' failed to build

Unfortunately, I don't know which dependencies are failing to build and I can't look into this further in a timely fashion. Looking for other @NixOS/darwin-maintainers to check this out.

@reckenrode

reckenrode commented Nov 22, 2021 •

Copy link
Copy Markdown
Contributor
error: ca hash mismatch importing path '/nix/store/lfkj40ykgzy144wlpiwhr74la3sfb8c6-wheel-0.36.2-source';
         specified: sha256:1n1p7nzdylianwxz53h4n5hp1gcki4zvj3m2kcc1a8w1z99bclpj
         got:       sha256:1d3ah9nba7jmmld7qkn1zqlnizg5xzqshbblrbyzmyw9zick7vmk

Is your Nix store content-addressed? I can build these three packages on x86_64-darwin; I haven’t enabled that feature in my config.

@reckenrode

Copy link
Copy Markdown
Contributor

Result of nixpkgs-review pr 146477 run on x86_64-darwin 1

3 packages built:
  • python39Packages.etcd
  • python39Packages.etesync
  • python39Packages.fabulous

@bergkvist

bergkvist commented Nov 24, 2021 •

Copy link
Copy Markdown
Member

I've tested this and can confirm it is working.

My setup:

Build machine:

  • macOS Catalina (Version 10.15 x86_64 Darwin 19.6.0) running in KVM/QEMU on a Manjaro host

default.nix:

let
  pkgs = import (fetchTarball "https://github.com/mweinelt/nixpkgs/archive/a43a2eacb322c3799aa6eadd0061db1a3c176b78.tar.gz") {};
in pkgs.python39
nix-build default.nix
nix-copy-closure --to 192.168.0.19 /nix/store/ysjpxinb0fhd9nl96z12r59sz1wpy8b0-python3-3.9.6

Test machine:

  • macOS Big Sur (Version 11.6 x86_64 Darwin 20.6.0) - Macbook Pro from late 2019
$ /nix/store/ysjpxinb0fhd9nl96z12r59sz1wpy8b0-python3-3.9.6/bin/python3.9
Python 3.9.6 (default, Nov 24 2021, 22:30:15) 
[Clang 7.1.0 (tags/RELEASE_710/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library; print(find_library('c'))
/usr/lib/libc.dylib

For comparison, we can use python39 from Nov 6th in nixpkgs:

$ nix-shell -p python39
$ which python
/nix/store/vxnbc6hyrafl7ndky87zfnlq5l06z3ra-python3-3.9.6/bin/python

$ python
Python 3.9.6 (default, Nov  6 2021, 01:30:49) 
[Clang 7.1.0 (tags/RELEASE_710/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library; print(find_library('c'))
None

And as we can see, this patch makes find_library work for Python 3.9.6 on macOS Big Sur, which it doesn't in the version currently in nixpkgs.

@bergkvist

bergkvist commented Nov 25, 2021 •

Copy link
Copy Markdown
Member

Regarding nix-copy-closure; is there a way to use other ssh-ports than 22? I couldn't get this to work. I tried editing ~/.ssh/config without luck:

Host catalina
	HostName 192.168.0.41
	Port 2222
	User tobias

And doing

$ nix-copy-closure --from catalina /nix/store/ysjpxinb0fhd9nl96z12r59sz1wpy8b0-python3-3.9.6
zsh:1: command not found: nix-store
error: cannot connect to 'catalina'

Doing ssh catalina worked just fine, but nix-copy-closure failed to connect.

@jonringer jonringer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

diff LGTM

going to trust @bergkvist review

@github-actions

github-actions Bot commented Dec 3, 2021

Copy link
Copy Markdown
Contributor

Successfully created backport PR #148368 for staging-21.11.

@mweinelt
mweinelt deleted the cpython-darwin branch December 3, 2021 02:18
bergkvist referenced this pull request Dec 9, 2021
This patch has been merged in python 3.9.7.

python/cpython@4b55837
@bergkvist

Copy link
Copy Markdown
Member

Seems like this was reverted right after being merged: 925bbec

@mweinelt

mweinelt commented Dec 9, 2021

Copy link
Copy Markdown
Member Author

Yes, because on master we are updating past 3.9.6. However this ugprade is problematic to backport due to the loop kwarg deprecation that breaks alot of packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants