| 25 Nov 2024 |
maralorn | In reply to @lxsameer:matrix.org for example, as sterni suggested I'm using ghc-pkg list to ignore some packages like rts but that cause some issues with other packages like primitive I think the list of packages to never override is so short, that it is totally fine to maintain it manually. I guess it is base, ghc-internal, rts, ghc-experimental and template-haskell right now. Might be missing a few but not many. | 14:57:10 |
lxsameer | Thank you. I read more about hackage2nix | 14:58:07 |
sterni | what is the issue with primitive? | 15:17:09 |
lxsameer | In reply to @sternenseemann:systemli.org what is the issue with primitive? since it is in the ghc-pkgs list I didn't generate an override for it. But cabal throws the following error message:
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> configureFlags: --verbose --prefix=/nix/store/g58fsvxjn69yls3bswyqwh3p6sylvcz8-integer-conversion-0.1.1 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/dlfskyys6c0bczndvh2
hmvmmznw8s9gf-integer-conversion-0.1.1-doc/share/doc/integer-conversion-0.1.1 --with-gcc=gcc --package-db=/build/tmp.ILQq7Ci7Lr/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-R
TS --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-fo
r-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --extra-lib-dirs=/nix/store/53iigsmf32bwkfdhhihq2rppgk23k2rg-ncurses-6.4.20221231/lib --extra-lib-dirs=
/nix/store/pmf31rbzvv618qirwmzppjb63wsrl4zi-libffi-3.4.6/lib --extra-lib-dirs=/nix/store/yljlqz62v8a9brqmvib9pa4k7yanb15a-elfutils-0.191/lib --extra-lib-dirs=/nix/store/y54504sbwlbbm14hkvv48yw4smjw649c-gmp-with-cx
x-6.3.0/lib
> Using Parsec parser
> Configuring integer-conversion-0.1.1...
> CallStack (from HasCallStack):
> withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:368:14 in Cabal-3.10.3.0:Distribution.Simple.Utils
> Error: Setup: Encountered missing or private dependencies:
> primitive >=0.9.0.0 && <0.10
>
For full logs, run 'nix log /nix/store/rgp0ww32si0r2lr6kzj18qc4c5yhb8aa-integer-conversion-0.1.1.drv'.
| 15:25:33 |
maralorn | Yeah, some packages from ghc=pkgs list are reinstallable. | 15:33:06 |
sterni | primitive is not a core library in any version, though?! | 15:58:23 |
sterni | also, as I sad you of course have to check that the version also matches | 15:58:40 |
sterni | * also, as I said you of course have to check that the version also matches | 15:58:50 |
maralorn | I mean you'd depending on the situation ghc-pkg list can also contain non-boot packages. | 17:10:02 |
maralorn | * | 17:10:14 |
lxsameer | In reply to @sternenseemann:systemli.org also, as I sad you of course have to check that the version also matches The version matches exactly | 17:19:12 |
sterni | you should use an unwrapped ghc obviously | 17:19:40 |
lxsameer | In reply to @sternenseemann:systemli.org you should use an unwrapped ghc obviously for ghc-pkg? | 18:15:47 |
sterni | yes | 18:41:19 |
alexfmpe | Going forward, after the staging catch up, when do we target master and when haskell-updates? | 23:02:04 |
alexfmpe | I was going to see something in ghcup, but a dep didn't build out of the box with nix-shell -p
wondering where to branch from when attempting a fix | 23:03:25 |
sterni | if the rebuilds are not expensive and it's not going to cause nightmare merge conflicts with haskell-updates you can merg into master | 23:25:01 |
alexfmpe | I feel like we'll almost always have conflicts if overrides tend to get added at the end of configuration*.nix files | 23:56:15 |
| 26 Nov 2024 |
sterni | well that's the same with working on the branch—we always try to tell people to add overrides in a random place | 13:42:30 |
alexfmpe | Working on the branch means the PR author has to fix the conflict | 15:51:08 |
alexfmpe | Otherwise the PR maintainer does on their merge | 15:51:25 |
alexfmpe | Adding overrides in random places for the sake of less conflicts feels weird to me.
Wouldn't sorting them lexicographically solve that? | 15:52:54 |
sterni | you can also do that of course yeah, but the files aren't sorted lexicographically at the moment | 16:21:19 |
sterni | and there are good reasons to sometimes group things thematically which is done in an ad hoc fashion | 16:21:34 |
emily | we also place release notes randomly (in theory) | 16:23:37 |
emily | (in practice…) | 16:23:39 |
emily | the real solution is to split things into multiple files tbh | 16:23:51 |
emily | Nix is on one release note per file and NixOS will hopefully be at some point | 16:24:00 |
emily | it's marginally more Git-storage-friendly too (though packfiles complicate that) | 16:24:18 |
sterni | well then you have the problem with directories because the tree objects become huge at some point | 16:26:56 |