!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
25 Mar 2022
@jtojnar:matrix.orgJan Tojnar package-overrides.nix corresponds to php-packages.nix in fossar/nix-phps 13:23:53
@jtojnar:matrix.orgJan Tojnar * php-packages.nix in Nixpkgs corresponds to package-overrides.nix in fossar/nix-phps 13:24:23
@drupol:matrix.orgPolSo I add a new entry in there with gd13:24:41
@drupol:matrix.orgPol * So I add a new entry in there with gd, and add the missing deps. 13:24:47
@jtojnar:matrix.orgJan Tojnaryeah13:24:51
@jtojnar:matrix.orgJan Tojnar but we should also check if removing the propagation from libgd was a right thing 13:25:49
@jtojnar:matrix.orgJan Tojnar(if not, it should be reverted)13:26:07
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
but we should also check if removing the propagation from libgd was a right thing
How do you do that ?
13:26:38
@jtojnar:matrix.orgJan Tojnarsorry, forgot to post the most likely responsible commit: https://github.com/NixOS/nixpkgs/commit/e986a2e0c2162941e12c9a32485a67f651a6c0d213:26:59
@drupol:matrix.orgPolWow13:28:59
@jtojnar:matrix.orgJan Tojnar Looking at ${gd.dev}/lib/pkgconfig/*.pc, those libraries are indeed listed in Requires.private field, not Requires. Nor does libpng seem to be mentioned in the headers. So it looks like a right call has been made. 13:29:37
@jtojnar:matrix.orgJan Tojnar🤦‍♀️, I actually proposed the change https://github.com/NixOS/nixpkgs/pull/158698#discussion_r80200816913:31:21
@jtojnar:matrix.orgJan Tojnar🤦‍♀️ I completely forgot about that13:31:43
@jtojnar:matrix.orgJan TojnarI wonder how does that even work for the newer version, it’s not like libpng is available there: https://github.com/NixOS/nixpkgs/blob/d6e2e39a6e5998e4ad4cbd9d422835b365dfa763/pkgs/top-level/php-packages.nix#L29513:41:09
@jtojnar:matrix.orgJan TojnarI would expect the pkg-config check here to fail: https://github.com/php/php-src/blob/20fe5e41629c31c8445d1df09d17b471be166774/ext/gd/config.m4#L7713:45:09
@jtojnar:matrix.orgJan Tojnaroh, apparently, it is only used for the bundled-libgd case: https://github.com/php/php-src/blob/20fe5e41629c31c8445d1df09d17b471be166774/ext/gd/config.m4#L18213:46:38
@drupol:matrix.orgPolSo, what's the battle plan in the end?14:16:59
@drupol:matrix.orgPolI think I got something working locally. Going to amend the PR14:18:09
@jtojnar:matrix.orgJan TojnarI would go with extra dependencies in package-overrides.nix14:19:03
@drupol:matrix.orgPolyep that's what I did.14:19:14
@jtojnar:matrix.orgJan Tojnarand maybe link to the gd change in commit message14:19:33
@drupol:matrix.orgPolDone.14:22:59
@drupol:matrix.orgPol#drumrolls14:23:06
@drupol:matrix.orgPolLooks like we have a winner!14:27:19
@drupol:matrix.orgPol Looks ok for you Jan Tojnar ? 14:30:58
@drupol:matrix.orgPolCommitted your change.14:33:48
@drupol:matrix.orgPolReady to be merged :)14:35:07
@drupol:matrix.orgPolDone.14:38:58
@jtojnar:matrix.orgJan Tojnarsorry, I meant squashing it even with the update commit, since that is still broken14:44:58
@jtojnar:matrix.orgJan Tojnar * sorry, I meant squashing it even with the update commit, since that one is still broken14:45:03

Show newer messages


Back to Room ListRoom Version: 6