Bug 278237 - textproc/opensearch fails to package with PLUGINS=off
Summary: textproc/opensearch fails to package with PLUGINS=off
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: opensearch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-07 18:27 UTC by Martin Waschbüsch
Modified: 2024-04-07 18:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (opensearch)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Waschbüsch 2024-04-07 18:27:13 UTC
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?