Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2017 19:22:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220293] graphics/graphviz: fix building php bindings
Message-ID:  <bug-220293-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220293

            Bug ID: 220293
           Summary: graphics/graphviz: fix building php bindings
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
             Flags: maintainer-feedback?(dinoex@FreeBSD.org)
          Assignee: dinoex@FreeBSD.org

Created attachment 183818
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183818&action=
=3Dedit
Patch

graphviz with enabled PHP bindings is marked as:

IGNORE_WITH_PHP=3D       56 71

this was blindly and incorrectly derived from WANT_PHP_VER=3D70 before.

In fact, it works fine with php 7.1, so the corresponding ignore is not nee=
ded.
It doesn't build with PHP 5 however, but the cause is its incorrect use of
swig: configure tries if it supports -php7 argument and uses it if it does.
This, however, makes swig generate php5 incompatible code. So we have to
override swig option here and use either -php5 or -php7 depending on actual=
 php
version.

While here, switch some conditions to options helpers and silence commands
which should be silent.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220293-13>