[Bug 278237] textproc/opensearch fails to package with PLUGINS=off

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Apr 2024 18:27:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278237

            Bug ID: 278237
           Summary: textproc/opensearch fails to package with PLUGINS=off
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: opensearch@FreeBSD.org
          Reporter: martin@waschbuesch.de
             Flags: maintainer-feedback?(opensearch@FreeBSD.org)
          Assignee: opensearch@FreeBSD.org

Just like in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269909
opensearch once again fails to build when disabling plugins:

===>   Building opensearch-2.11.1
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-notifications-core/:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-notifications/:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-observability/:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-performance-analyzer/:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-reports-scheduler/:No
such file or directory
pkg-static: Unable to access file
/wrkdirs/usr/ports/textproc/opensearch/work/stage/usr/local/etc/opensearch/opensearch-security/:No
such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/opensearch


At a first glance, in the Makefile

        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-notifications-core" >> ${TMPPLIST}
        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-notifications" >> ${TMPPLIST}
        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-observability" >> ${TMPPLIST}
        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-performance-analyzer" >> ${TMPPLIST}
        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-reports-scheduler" >> ${TMPPLIST}
        ${ECHO} "@dir(opensearch,opensearch,0750)
${ETCDIR}/opensearch-security" >> ${TMPPLIST}

should all be inside a check for the PLUGINS option

.if ${PORT_OPTIONS:MPLUGINS}
.endif

as these seem to be individual subdirs for the config of the plugins?

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