[Bug 269484] net/php80-ldap fails to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 11 Feb 2023 07:32:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269484

            Bug ID: 269484
           Summary: net/php80-ldap fails to build
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz@freebsd.org
          Reporter: dinoex@FreeBSD.org
          Assignee: tz@freebsd.org
             Flags: maintainer-feedback?(tz@freebsd.org)

Rebuilding packages in a clean jail.
After recent updates, net/php80-ldap fails to build:

/etc/make.conf:
USE_PACKAGE_DEPENDS=yes
DEPENDS_TARGET=package install
DEPENDS_SHOW_FLAVOR=yes

# make -C /usr/ports/net/php80-ldap clean package

[...]
checking size of long... 8
checking if we're at 64-bit platform... yes
configure: error: Cannot find ldap.h

comparing with last successful build from "3 Feb. 04:48"
The following line is missing.

===>   php80-ldap-8.0.27 depends on shared library: libldap.so.2 - found
(/usr/local/lib/libldap.so.2)

Diagnostics:

# grep -i ldap /usr/ports/lang/php80/Makefile.ext
.if ${PHP_MODNAME} == "ldap"
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-ldap-sasl=${LOCALBASE}
USE+=   ldap

# make -C /usr/ports/net/php80-ldap -V USE -V LIB_DEPENDS -V
_INCLUDE_USES_LDAP_MK 
ldap

It seems that that is caused by commit 6e1233be229212a0496f42d611bd40f3e3a628da


Suggested solution:

change the line in lang/php80/Makefile.ext:
-USE+=  ldap
+USES+=  ldap

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