Summary: | graphics/php72-gd: Fails to build with ports libgd without XPM support | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Guido Falsi <madpilot> | ||||
Component: | Individual Port(s) | Assignee: | Torsten Zuehlsdorff <tz> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | jonaspalm, tz | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(tz) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Guido Falsi
2018-07-31 10:18:50 UTC
Created attachment 195686 [details]
Patch pgp-gd ports to correctly detect XPM availability in libgd
I have made a patch taking advantage of existing code.
I added a define to the check if xpm is present, and added another ifdef in the affected file.
This works for me with php 7.2.
It also works fine in poudriere for other php versions.
A commit references this bug: Author: tz Date: Tue Jul 31 12:55:44 UTC 2018 New revision: 475998 URL: https://svnweb.freebsd.org/changeset/ports/475998 Log: graphics/php7*-gd: fix broken build when XPM option is disabled The switch from bundled gd to graphics/gd broke the port if a user disabled the XPM option. PR: 230234 217222 Submitted by: Guido Falsi <madpilot@FreeBSD.org> Reported by: Guido Falsi <madpilot@FreeBSD.org>, Dani <i.dani@outlook.com> Changes: head/graphics/php70-gd/files/patch-config.m4 head/graphics/php70-gd/files/patch-gd.c head/graphics/php71-gd/files/patch-config.m4 head/graphics/php71-gd/files/patch-gd.c head/graphics/php72-gd/files/patch-config.m4 head/graphics/php72-gd/files/patch-gd.c Hello Guido, good catch und thank for the patch! I'm a little bit irritated since i tested with XPM option off, but after deleting my option-files and resetting it, i could reproduce the issue. And that your patch fixes it. My bad! Thanks, Torsten Thanks for the quick commit. Don't worry, this was a non trivial interaction between two ports, it's easy to miss this kind of things. |