Bug 299329 - mail/rspamd: Fix packing list for worker-hs_helper with vectorscan
Summary: mail/rspamd: Fix packing list for worker-hs_helper with vectorscan
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vsevolod Stakhov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-12 10:55 UTC by Alexander Moisseev
Modified: 2026-10-12 11:37 UTC (History)
0 users

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


Attachments
patch (1.37 KB, patch)
2026-10-12 10:55 UTC, Alexander Moisseev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Moisseev 2026-10-12 10:55:18 UTC
Created attachment 275622 [details]
patch

Follow-up to 8f3058ca4f8 ("mail/rspamd: Add vectorscan support", PR 296532).

Both the HYPERSCAN and VECTORSCAN options pass -DENABLE_HYPERSCAN=ON to
CMake, and conf/worker-hs_helper.{conf,inc} are installed whenever
ENABLE_HYPERSCAN is on (cmake/InstallRspamdFiles.cmake).  The packing
list, however, gates those entries on %%HYPERSCAN%% only:

- With VECTORSCAN enabled (the new default on amd64, aarch64 and
powerpc64le) the two files are staged but commented out of the
manifest: check-orphans/check-plist fail and the files are missing
from the package.
- On architectures where the HYPERSCAN option is not defined (aarch64,
powerpc64le, i386, armv7, powerpc, powerpc64) %%HYPERSCAN%% is never
defined in PLIST_SUB, so the literal leaks into the packing list.
The PLIST_SUB block dropped by 8f3058ca4f8 was what defined that
variable on non-amd64.

Gate the entries on either scanner backend via a new HS_HELPER
PLIST_SUB variable and bump PORTREVISION.
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-10-12 11:37:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58d392be23a82497ed8a697309d21e53fe2e638f

commit 58d392be23a82497ed8a697309d21e53fe2e638f
Author:     Vsevolod Stakhov <vsevolod@FreeBSD.org>
AuthorDate: 2026-10-12 11:36:09 +0000
Commit:     Vsevolod Stakhov <vsevolod@FreeBSD.org>
CommitDate: 2026-10-12 11:36:09 +0000

    mail/rspamd: Package hs_helper configs with VECTORSCAN

    Follow-up to 8f3058ca4f8 ("mail/rspamd: Add vectorscan support", PR 296532).

    Both the HYPERSCAN and VECTORSCAN options pass -DENABLE_HYPERSCAN=ON to
    CMake, and conf/worker-hs_helper.{conf,inc} are installed whenever
    ENABLE_HYPERSCAN is on (cmake/InstallRspamdFiles.cmake).  The packing
    list, however, gates those entries on %%HYPERSCAN%% only:

    - With VECTORSCAN enabled (the new default on amd64, aarch64 and
    powerpc64le) the two files are staged but commented out of the
    manifest: check-orphans/check-plist fail and the files are missing
    from the package.
    - On architectures where the HYPERSCAN option is not defined (aarch64,
    powerpc64le, i386, armv7, powerpc, powerpc64) %%HYPERSCAN%% is never
    defined in PLIST_SUB, so the literal leaks into the packing list.
    The PLIST_SUB block dropped by 8f3058ca4f8 was what defined that
    variable on non-amd64.

    Gate the entries on either scanner backend via a new HS_HELPER
    PLIST_SUB variable and bump PORTREVISION.

    PR:             299329
    Submitted by:   Alexander Moisseev <moiseev@mezonplus.ru>
    Fixes:          8f3058ca4f84d07d7144473296e5065728c76361

 mail/rspamd/Makefile  | 12 +++++++++++-
 mail/rspamd/pkg-plist |  4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)