Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql tests fail #110

Open
pranaysashank opened this issue Aug 24, 2021 · 1 comment
Open

Postgresql tests fail #110

pranaysashank opened this issue Aug 24, 2021 · 1 comment

Comments

@pranaysashank
Copy link

When I try to build postgresql (version 13), two tests collate.icu.utf8 and foreigndata fail.

I noticed that the alpine repos have a patch to disable the collate.icu.utf8 which is perhaps relevant.

@pranaysashank
Copy link
Author

I applied the patch mentioned above and it makes postgres build. For packages that depend on postgres it looks like I also need to pass the following configure flags in addition to libpq.

--ld-option=-lpgcommon --ld-option=-lpgport

So for example to get a statically build executable for tmp-postgres, I'd need to change the definition in survey to

 tmp-postgres =
                appendConfigureFlag (addStaticLinkerFlagsWithPkgconfig
                  super.tmp-postgres
                  [ final.openssl final.postgresql ]
                  "--libs openssl libpq")
                  ["--ld-option=-lpgcommon --ld-option=-lpgport"];

Can anyone else reproduce this and is there a way to avoid adding them manually.

  • nixpkgs commit: 14b0f20fa1f56438b74100513c9b1f7c072cf789 with patches to disable LTO for python3 and the above mentioned patch for postgresql.
  • static-haskell-nix: from master
  • compiler : ghc-8.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant