devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Package Issue Report]: php81Extensions.gd

Open hlubek opened this issue 1 year ago • 1 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 https://github.com/jetpack-io/devbox/pull/1731 and https://github.com/php/php-src/issues/12965 which mention this issue.

hlubek avatar Jan 30 '24 09:01 hlubek