NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.32k stars 14.29k forks source link

haskellPackages.http2 not building on aarch64-darwin #157619

Closed kubukoz closed 2 years ago

kubukoz commented 2 years ago

Describe the bug

The haskellPackages.http2, which is a dependency of e.g. cachix, doesn't build on aarch64-darwin.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build github:nixos/nixpkgs\?rev=862c468fab39004fc4cc3d02399a9bceb0d3c0dd\#haskellPackages.http2 --sandbox

Expected behavior

The backage builds

Additional context

Build log ``` @nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" } setupCompilerEnvironmentPhase Build with /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7. @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/qqqknk29ahjfa7kknby7bixi7mmkvqhx-http2-3.0.2.tar.gz source root is http2-3.0.2 setting SOURCE_DATE_EPOCH to timestamp 1623289498 of file http2-3.0.2/util/server.hs @nix { "action": "setPhase", "phase": "patchPhase" } patching sources @nix { "action": "setPhase", "phase": "compileBuildDriverPhase" } compileBuildDriverPhase setupCompileFlags: -package-db=/private/tmp/nix-build-http2-3.0.2.drv-0/setup-package.conf.d -j10 -threaded -rtsopts [1 of 1] Compiling Main ( Setup.hs, /private/tmp/nix-build-http2-3.0.2.drv-0/Main.o ) Linking Setup ... @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "configurePhase" } configuring configureFlags: --verbose --prefix=/nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/yrzsgd2y8hk9w7f4q908vw1dkg0dlgxx-http2-3.0.2-doc/share/doc/http2-3.0.2 --with-gcc=clang --package-db=/private/tmp/nix-build-http2-3.0.2.drv-0/package.conf.d --ghc-options=-j10 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --extra-lib-dirs=/nix/store/c58pq79qqiibwdllx9y834cfs1kcigrf-ncurses-6.3/lib --extra-lib-dirs=/nix/store/vzcydn9ks7ga51bw6fi83hv1s4gwxi6h-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/3r1z37gqc3clssvqd4d7gn4wl2nrjadk-gmp-6.2.1/lib --extra-include-dirs=/nix/store/d9c50lflrilgcz29pwldnf64rbrrwnxf-libiconv-50/include --extra-lib-dirs=/nix/store/d9c50lflrilgcz29pwldnf64rbrrwnxf-libiconv-50/lib --extra-include-dirs=/nix/store/prxkpx6w80m32lsijiczdql6l8y7q9j5-libcxx-11.1.0-dev/include --extra-lib-dirs=/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib --extra-include-dirs=/nix/store/n4pglkwarzbd2bkkw2xfhqfqg6rxrl3w-libcxxabi-11.1.0-dev/include --extra-lib-dirs=/nix/store/mgfdqch9zgs7zg0xrmjky19z7lcbmrjk-libcxxabi-11.1.0/lib --extra-lib-dirs=/nix/store/8c6i9dchmbbkiyfwyc4lc1b77rwag2fn-compiler-rt-libc-11.1.0/lib --extra-framework-dirs=/nix/store/vqvfc2a4b5jm8phv9aphk7df15a1d6h5-apple-framework-CoreFoundation-11.0.0/Library/Frameworks --extra-include-dirs=/nix/store/pzpbjdkz5hhl8dfw068im8jfzdl370w4-libobjc-11.0.0/include --extra-lib-dirs=/nix/store/pzpbjdkz5hhl8dfw068im8jfzdl370w4-libobjc-11.0.0/lib Using Parsec parser Configuring http2-3.0.2... Flags chosen: devel=False, doc=False, h2spec=False Dependency array -any: using array-0.5.4.0 Dependency base >=4.9 && <5: using base-4.14.3.0 Dependency bytestring >=0.10: using bytestring-0.10.12.0 Dependency case-insensitive -any: using case-insensitive-1.2.1.0 Dependency containers >=0.5: using containers-0.6.5.1 Dependency http-types -any: using http-types-0.12.3 Dependency network -any: using network-3.1.1.1 Dependency network-byte-order >=0.1.5: using network-byte-order-0.1.6 Dependency psqueues -any: using psqueues-0.2.7.3 Dependency stm -any: using stm-2.5.0.1 Dependency time-manager -any: using time-manager-0.0.0 Dependency unix-time -any: using unix-time-0.4.7 Dependency async -any: using async-2.2.4 Dependency base >=4.9 && <5: using base-4.14.3.0 Dependency base16-bytestring >=1.0: using base16-bytestring-1.0.2.0 Dependency bytestring -any: using bytestring-0.10.12.0 Dependency cryptonite -any: using cryptonite-0.29 Dependency hspec >=1.3: using hspec-2.7.10 Dependency http-types -any: using http-types-0.12.3 Dependency http2 -any: using http2-3.0.2 Dependency network-run >=0.1.0: using network-run-0.2.4 Dependency typed-process -any: using typed-process-0.2.8.0 Dependency aeson -any: using aeson-1.5.6.0 Dependency base >=4.9 && <5: using base-4.14.3.0 Dependency base16-bytestring >=1.0: using base16-bytestring-1.0.2.0 Dependency bytestring -any: using bytestring-0.10.12.0 Dependency directory -any: using directory-1.3.6.0 Dependency filepath -any: using filepath-1.4.2.1 Dependency hspec >=1.3: using hspec-2.7.10 Dependency http2 -any: using http2-3.0.2 Dependency text -any: using text-1.2.4.1 Dependency unordered-containers -any: using unordered-containers-0.2.16.0 Dependency vector -any: using vector-0.12.3.1 Dependency Glob >=0.9: using Glob-0.10.2 Dependency aeson -any: using aeson-1.5.6.0 Dependency aeson-pretty -any: using aeson-pretty-0.8.9 Dependency base >=4.9 && <5: using base-4.14.3.0 Dependency base16-bytestring >=1.0: using base16-bytestring-1.0.2.0 Dependency bytestring -any: using bytestring-0.10.12.0 Dependency directory -any: using directory-1.3.6.0 Dependency filepath -any: using filepath-1.4.2.1 Dependency hspec >=1.3: using hspec-2.7.10 Dependency http2 -any: using http2-3.0.2 Dependency network-byte-order -any: using network-byte-order-0.1.6 Dependency text -any: using text-1.2.4.1 Dependency unordered-containers -any: using unordered-containers-0.2.16.0 Source component graph: component lib component test:frame dependency lib component test:hpack dependency lib component test:spec dependency lib Configured component graph: component http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include array-0.5.4.0 include base-4.14.3.0 include bytestring-0.10.12.0 include case-insensitive-1.2.1.0-IaATP8Pr3g0E42gLoYpZ31 include containers-0.6.5.1 include http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK include network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3 include network-byte-order-0.1.6-2fVatUydgLv679GKlow67E include psqueues-0.2.7.3-DR9E3ENTysaEeaerPt2Pps include stm-2.5.0.1 include time-manager-0.0.0-64v5QluyDIFLrj2ZpJoPpL include unix-time-0.4.7-IDbGtgJCbCK5XIHNx6ladV component http2-3.0.2-Abvc2gIKR527yinQiVIW4v-frame include Glob-0.10.2-IYp2OmUhUDP6m5g4g8qN6n include aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT include aeson-pretty-0.8.9-Kz8w5eygSWz2QNkJU6zdxO include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include directory-1.3.6.0 include filepath-1.4.2.1 include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include network-byte-order-0.1.6-2fVatUydgLv679GKlow67E include text-1.2.4.1 include unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U component http2-3.0.2-DMBLfCw07dTEAf6p456uEH-hpack include aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include directory-1.3.6.0 include filepath-1.4.2.1 include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include text-1.2.4.1 include unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3 component http2-3.0.2-C4MFjU7k3c5DnpffGxGxAn-spec include async-2.2.4-8pEzu5ipyi0Eg2Skx4NTvp include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include cryptonite-0.29-FtcJkY3nszBEmaDXz7ahxm include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include network-run-0.2.4-ZjOvUBRayD9lpK95Gc9Z2 include typed-process-0.2.8.0-B7Aj9bT8CK9Kr7ovtNh7YT Linked component graph: unit http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include array-0.5.4.0 include base-4.14.3.0 include bytestring-0.10.12.0 include case-insensitive-1.2.1.0-IaATP8Pr3g0E42gLoYpZ31 include containers-0.6.5.1 include http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK include network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3 include network-byte-order-0.1.6-2fVatUydgLv679GKlow67E include psqueues-0.2.7.3-DR9E3ENTysaEeaerPt2Pps include stm-2.5.0.1 include time-manager-0.0.0-64v5QluyDIFLrj2ZpJoPpL include unix-time-0.4.7-IDbGtgJCbCK5XIHNx6ladV Network.HPACK=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HPACK,Network.HPACK.Internal=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HPACK.Internal,Network.HPACK.Table=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HPACK.Table,Network.HPACK.Token=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HPACK.Token,Network.HTTP2=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2,Network.HTTP2.Client=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Client,Network.HTTP2.Client.Internal=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Client.Internal,Network.HTTP2.Frame=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Frame,Network.HTTP2.Internal=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Internal,Network.HTTP2.Priority=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Priority,Network.HTTP2.Priority.Internal=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Priority.Internal,Network.HTTP2.Server=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Server,Network.HTTP2.Server.Internal=http2-3.0.2-KNB2bolzEtI3qEXtlzH3su:Network.HTTP2.Server.Internal unit http2-3.0.2-Abvc2gIKR527yinQiVIW4v-frame include Glob-0.10.2-IYp2OmUhUDP6m5g4g8qN6n include aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT include aeson-pretty-0.8.9-Kz8w5eygSWz2QNkJU6zdxO include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include directory-1.3.6.0 include filepath-1.4.2.1 include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include network-byte-order-0.1.6-2fVatUydgLv679GKlow67E include text-1.2.4.1 include unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U unit http2-3.0.2-DMBLfCw07dTEAf6p456uEH-hpack include aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include directory-1.3.6.0 include filepath-1.4.2.1 include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include text-1.2.4.1 include unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3 unit http2-3.0.2-C4MFjU7k3c5DnpffGxGxAn-spec include async-2.2.4-8pEzu5ipyi0Eg2Skx4NTvp include base-4.14.3.0 include base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR include bytestring-0.10.12.0 include cryptonite-0.29-FtcJkY3nszBEmaDXz7ahxm include hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU include http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK include http2-3.0.2-KNB2bolzEtI3qEXtlzH3su include network-run-0.2.4-ZjOvUBRayD9lpK95Gc9Z2 include typed-process-0.2.8.0-B7Aj9bT8CK9Kr7ovtNh7YT Ready component graph: definite http2-3.0.2-KNB2bolzEtI3qEXtlzH3su depends array-0.5.4.0 depends base-4.14.3.0 depends bytestring-0.10.12.0 depends case-insensitive-1.2.1.0-IaATP8Pr3g0E42gLoYpZ31 depends containers-0.6.5.1 depends http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK depends network-3.1.1.1-3xFSBe7XCrO7SWRn35NgL3 depends network-byte-order-0.1.6-2fVatUydgLv679GKlow67E depends psqueues-0.2.7.3-DR9E3ENTysaEeaerPt2Pps depends stm-2.5.0.1 depends time-manager-0.0.0-64v5QluyDIFLrj2ZpJoPpL depends unix-time-0.4.7-IDbGtgJCbCK5XIHNx6ladV definite http2-3.0.2-DMBLfCw07dTEAf6p456uEH-hpack depends aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT depends base-4.14.3.0 depends base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR depends bytestring-0.10.12.0 depends directory-1.3.6.0 depends filepath-1.4.2.1 depends hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU depends http2-3.0.2-KNB2bolzEtI3qEXtlzH3su depends text-1.2.4.1 depends unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U depends vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3 definite http2-3.0.2-C4MFjU7k3c5DnpffGxGxAn-spec depends async-2.2.4-8pEzu5ipyi0Eg2Skx4NTvp depends base-4.14.3.0 depends base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR depends bytestring-0.10.12.0 depends cryptonite-0.29-FtcJkY3nszBEmaDXz7ahxm depends hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU depends http-types-0.12.3-5A5oXfhlnJ3Idn97Dm0rYK depends http2-3.0.2-KNB2bolzEtI3qEXtlzH3su depends network-run-0.2.4-ZjOvUBRayD9lpK95Gc9Z2 depends typed-process-0.2.8.0-B7Aj9bT8CK9Kr7ovtNh7YT definite http2-3.0.2-Abvc2gIKR527yinQiVIW4v-frame depends Glob-0.10.2-IYp2OmUhUDP6m5g4g8qN6n depends aeson-1.5.6.0-JDgltIxHZd450ZxQbCjtxT depends aeson-pretty-0.8.9-Kz8w5eygSWz2QNkJU6zdxO depends base-4.14.3.0 depends base16-bytestring-1.0.2.0-AcgltpyCxWqIlgQ14FLVfR depends bytestring-0.10.12.0 depends directory-1.3.6.0 depends filepath-1.4.2.1 depends hspec-2.7.10-H5Xu9oFVtB67D2pQdY5UqU depends http2-3.0.2-KNB2bolzEtI3qEXtlzH3su depends network-byte-order-0.1.6-2fVatUydgLv679GKlow67E depends text-1.2.4.1 depends unordered-containers-0.2.16.0-9u87fZki91oEhTGYIiGj9U Using Cabal-3.2.1.0 compiled by ghc-8.10 Using compiler: ghc-8.10.7 Using install prefix: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2 Executables installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/bin Libraries installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7/http2-3.0.2-KNB2bolzEtI3qEXtlzH3su Dynamic Libraries installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/lib/ghc-8.10.7/aarch64-osx-ghc-8.10.7 Private executables installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/libexec/aarch64-osx-ghc-8.10.7/http2-3.0.2 Data files installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/share/aarch64-osx-ghc-8.10.7/http2-3.0.2 Documentation installed in: /nix/store/yrzsgd2y8hk9w7f4q908vw1dkg0dlgxx-http2-3.0.2-doc/share/doc/http2-3.0.2 Configuration files installed in: /nix/store/m0avb5kzqfvyxn3sl6akh7g0wgf4cfiq-http2-3.0.2/etc No alex found Using ar found on system at: /nix/store/d853z4g5dp326kc7lqd9n3kh29wic1jf-cctools-binutils-darwin-949.0.1/bin/ar No c2hs found No cpphs found No doctest found Using gcc version 11.1.0 given by user at: /nix/store/hm2qzyqh6bh872rwlpjl4kw7a1nk173d-clang-wrapper-11.1.0/bin/clang Using ghc version 8.10.7 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/ghc Using ghc-pkg version 8.10.7 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/ghc-pkg No ghcjs found No ghcjs-pkg found No greencard found Using haddock version 2.24.2 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/haddock No happy found Using haskell-suite found on system at: haskell-suite-dummy-location Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location No hmake found Using hpc version 0.68 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/hpc Using hsc2hs version 0.68.7 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/hsc2hs Using hscolour version 1.24 found on system at: /nix/store/0r39cgb7xfcg290w62b7bhhg1kms6d72-hscolour-1.24.4/bin/HsColour No jhc found Using ld found on system at: /nix/store/zi3sasn6r874sn9ibvpig7jnh8ki3qag-cctools-binutils-darwin-wrapper-949.0.1/bin/ld No pkg-config found Using runghc version 8.10.7 found on system at: /nix/store/57qs2904y7351qxwf1ydw0drqv4hrg79-ghc-8.10.7/bin/runghc Using strip found on system at: /nix/store/hm2qzyqh6bh872rwlpjl4kw7a1nk173d-clang-wrapper-11.1.0/bin/strip Using tar found on system at: /nix/store/h5ars2hbr7j6dkknj5vf0fzjcjzkcfyg-gnutar-1.34/bin/tar No uhc found @nix { "action": "setPhase", "phase": "buildPhase" } building Preprocessing library for http2-3.0.2.. Building library for http2-3.0.2.. //skipped HPACK.Huffman encode and decode duality +++ OK, passed 100 tests. encode encodes decode decodes HPACK.Integer encode and decode duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. duality +++ OK, passed 100 tests. HTTP2.Frame encodeFrameHeader & decodeFrameHeader encode/decodes frames properly encodeFrame & decodeFrame encode/decodes frames properly encode/decodes padded frames properly HTTP2.Priority priority tree enqueue and dequeue frames from Firefox properly base priority queue queues entries based on weight deletes properly deletes entries properly HTTP2.Server server spec: Network.Socket.bind: permission denied (Operation not permitted) handles normal cases FAILED [1] Failures: test/HTTP2/ServerSpec.hs:33:9: 1) HTTP2.Server.server handles normal cases uncaught exception: IOException of type PermissionDenied Network.Socket.connect: : permission denied (Operation not permitted) To rerun use: --match "/HTTP2.Server/server/handles normal cases/" Randomized with seed 1196325887 Finished in 0.9322 seconds 31 examples, 1 failure Test suite spec: FAIL Test suite logged to: dist/test/http2-3.0.2-spec.log Test suite frame: RUNNING... Test suite frame: PASS Test suite logged to: dist/test/http2-3.0.2-frame.log 2 of 3 test suites (2 of 3 test cases) passed. ```

Notify maintainers

@NixOS/haskell

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.1.0, macOS 12.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.6.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
kubukoz commented 2 years ago

this is failing with sandbox on:

HTTP2.Server
  server
spec: Network.Socket.bind: permission denied (Operation not permitted)
    handles normal cases FAILED [1]

Failures:

  test/HTTP2/ServerSpec.hs:33:9: 
  1) HTTP2.Server.server handles normal cases
       uncaught exception: IOException of type PermissionDenied
       Network.Socket.connect: <socket: 3>: permission denied (Operation not permitted)

  To rerun use: --match "/HTTP2.Server/server/handles normal cases/"

this is failing when sandboxing is off:

HTTP2.Server
  server
spec: Network.Socket.bind: resource busy (Address already in use)
    handles normal cases FAILED [1]

Failures:

  test/HTTP2/ServerSpec.hs:130:9: 
  1) HTTP2.Server.server handles normal cases
       expected: Just (Status {statusCode = 405, statusMessage = "Method Not Allowed"})
        but got: Just (Status {statusCode = 404, statusMessage = "fixme"})

  To rerun use: --match "/HTTP2.Server/server/handles normal cases/"
cdepillabout commented 2 years ago

I imagine @domenkozar might be interested in seeing this.

sternenseemann commented 2 years ago

This looks like an upstream issue, tbh.

kubukoz commented 2 years ago

Upstream is green though 😅

sternenseemann commented 2 years ago

https://github.com/kazu-yamamoto/http2/blob/v3.0.2/Network/HTTP2/Arch/Status.hs#L44, seems like this will fix itself with 3.0.3.

kubukoz commented 2 years ago

cool, is there something I can do to update it in nixpkgs? I'm not too familiar with the haskell package setup here

sternenseemann commented 2 years ago

We can't update to 3.0.3 it seems, as it requires aeson >= 2; You could try patching 3.0.2 instead and PRing that.

kubukoz commented 2 years ago

gotta love patch versions updating a dependency to a major version...

sternenseemann commented 2 years ago

160733 will fix this, but it may take a while to stabilize.