jetpack-io / devbox

Instant, easy, and predictable development environments

Home Page:https://www.jetpack.io/devbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Package Issue Report]: php81Extensions.gd

hlubek opened this issue · comments

Are you requesting a new package or reporting an issue on an existing one?

An existing one.

If reporting an issue on an existing one, what is the name of the package?

php81Extensions.gd

What changes are you requesting?

It fails to build since yesterday when performing a devbox update.

Additional context

This is the error message:

Installing package: php81Extensions.gd.

[1/1] php81Extensions.gd
error: builder for '/nix/store/ffjkswblam2qpx2yvcbgk0pc31y65dcp-php-8.1.27.drv' failed with exit code 2;
       last 10 log lines:
       >                                  xmlStructuredErrorFunc handler);
       >                                                         ^
       > /private/tmp/nix-build-php-8.1.27.drv-0/php-8.1.27/ext/libxml/libxml.c:1016:8: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
       >         error = xmlGetLastError();
       >               ^ ~~~~~~~~~~~~~~~~~
       > 2 warnings and 1 error generated.

And this is in devbox.lock after the failed update:

    "php81Extensions.gd@latest": {
      "last_modified": "2024-01-27T14:55:31Z",
      "resolved": "github:NixOS/nixpkgs/160b762eda6d139ac10ae081f8f78d640dd523eb#php81Extensions.gd",
      "source": "devbox-search",
      "version": "8.1.27",
      "systems": {
        "aarch64-linux": {
          "store_path": "/nix/store/6i5x37a6341m7cnybpnrhbj3p4hwnv1y-php-gd-8.1.27"
        },
        "x86_64-linux": {
          "store_path": "/nix/store/q0jxg6vm96y0dgcmfymn9swh9sjqjczc-php-gd-8.1.27"
        }
      }
    }

This specific version did work:

"php81Extensions.gd@latest": {
      "last_modified": "2023-12-31T07:44:09Z",
      "resolved": "github:NixOS/nixpkgs/d44d59d2b5bd694cd9d996fd8c51d03e3e9ba7f7#php81Extensions.gd",
      "source": "devbox-search",
      "version": "8.1.27",
      ...
}

See also #1731 and php/php-src#12965 which mention this issue.

FYI I did solve it for now by specifying github:NixOS/nixpkgs/d44d59d2b5bd694cd9d996fd8c51d03e3e9ba7f7#php81Extensions.gd as the package in devbox.json instead of php81Extensions.gd@latest, but I consider this a workaround.