Skip to content

haskellPackages.streamly-archive: unbreak#122023

Merged
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
shlok:streamly-archive
May 7, 2021
Merged

haskellPackages.streamly-archive: unbreak#122023
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
shlok:streamly-archive

Conversation

@shlok
Copy link
Copy Markdown
Contributor

@shlok shlok commented May 7, 2021

Motivation for this change

The correct libarchive is now being passed into the package.

Things done
  • Tested compilation of all pkgs that depend on this change using nix-build --no-out-link -A haskellPackages.streamly-archive --arg config '{ allowBroken = true; }'
  • Ran maintainers/scripts/haskell/regenerate-hackage-packages.sh and included the result in the PR.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label May 7, 2021
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 7, 2021

@shiok If you want you can run maintainers/scripts/haskell/regenerate-haskell-packages.sh to immediately see and test the consequence of your change. (And then you can also put that into the commit.)

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 7, 2021
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 7, 2021

This builds fine for me. If you sqash this I can merge it. I would love if you could run the above mentioned script from the root of your nixpkgs repo as part of your commit. But I can run it afterwards if you want.

(The correct libarchive is now being passed into the package.)
@shlok shlok force-pushed the streamly-archive branch from e0f768d to d36f591 Compare May 7, 2021 14:20
@shlok
Copy link
Copy Markdown
Contributor Author

shlok commented May 7, 2021

@maralorn Thanks; I have squashed the commits now. Also included is the result of regenerate-hackage-packages.sh (although FYI, I had to do export LC_ALL=C.UTF-8 to avoid a certain commitBuffer: invalid argument (invalid character) error on my Debian 10).

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 7, 2021
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 7, 2021

@shlok Thank you for testing the script!

Huh, that seems worth investigating. Do you think it would be smart to set that variable in the beginning of the script to prevent this from happening for other users?

@maralorn maralorn merged commit eac6442 into NixOS:haskell-updates May 7, 2021
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 7, 2021

Thanks for the PR!

@shlok
Copy link
Copy Markdown
Contributor Author

shlok commented May 7, 2021

@shlok Thank you for testing the script!

My pleasure :)

Do you think it would be smart to set that variable in the beginning of the script to prevent this from happening for other users?

I'm not sure about that. For me it was a mere workaround based on an internet search that led me to commercialhaskell/stack#793

@shlok shlok deleted the streamly-archive branch May 7, 2021 14:48
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 7, 2021

Shows to double check, if you can tell: Does the fail happen while creating the nix-shell the script starts or this an error that hackage2nix throws?

@shlok
Copy link
Copy Markdown
Contributor Author

shlok commented May 7, 2021

It's thrown by hackage2nix:

hackage2nix: /home/user/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix: commitBuffer: invalid argument (invalid character)

(I added export LC_ALL=C.UTF-8 just before the hackage2nix line to "fix" the issue.)

By the way, I just noticed that LC_ALL is not set at all before my export line. It however is set on my local machine, so I guess this is a nix-shell thing.

@cdepillabout
Copy link
Copy Markdown
Member

I imagine that this LC_ALL=C.UTF-8 issue is the same as #64603 (comment).

We could probably set LC_ALL=C.UTF-8 in regenerate-hackage-packages.sh for users that don't have this already set on their system.

@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 8, 2021

I tried adressing this in 66de11d (#122117)

@Janik-Haag Janik-Haag added the 12.first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants