Bug 290094 - sysutils/beats8: update to 8.19.12
Summary: sysutils/beats8: update to 8.19.12
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks: 293746
  Show dependency treegraph
 
Reported: 2025-10-08 17:42 UTC by Saro
Modified: 2026-03-17 21:15 UTC (History)
2 users (show)

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


Attachments
Beats 8.19.5 (15.65 KB, application/x-gzip)
2025-10-08 17:42 UTC, Saro
no flags Details
Beats 8.19.6 (15.65 KB, application/x-gzip)
2025-10-24 19:15 UTC, Saro
no flags Details
Beats 8.19.7 (15.64 KB, application/x-gzip)
2025-11-11 19:44 UTC, Saro
no flags Details
Beats 8.19.7_1 (15.62 KB, application/x-gzip)
2025-11-12 22:01 UTC, Saro
no flags Details
patch for Beats 8.19.7_1 (33.22 KB, patch)
2025-12-02 10:03 UTC, Mark Linimon
no flags Details | Diff
Beats 8.19.9 (34.38 KB, patch)
2025-12-31 14:55 UTC, Saro
no flags Details | Diff
Beats 8.19.10 (35.30 KB, patch)
2026-01-20 20:11 UTC, Saro
no flags Details | Diff
Beats 8.19.12 (37.35 KB, patch)
2026-03-09 15:23 UTC, Saro
web: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saro 2025-10-08 17:42:40 UTC
Created attachment 264415 [details]
Beats 8.19.5

Related to the ELK stack:

Bug #288653 for textproc/elasticsearch8 updates.
Bug #289759 for textproc/kibana8 updates.
Comment 1 Saro 2025-10-24 19:15:00 UTC
Created attachment 264859 [details]
Beats 8.19.6
Comment 2 Saro 2025-11-11 19:44:39 UTC
Created attachment 265342 [details]
Beats 8.19.7
Comment 3 Saro 2025-11-12 22:01:47 UTC
Created attachment 265383 [details]
Beats 8.19.7_1

Corrected GO_MODULE in Makefile.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2025-12-02 10:03:44 UTC
Created attachment 265768 [details]
patch for Beats 8.19.7_1

^Triage: convert to git diff.
Comment 5 Saro 2025-12-31 14:55:49 UTC
Created attachment 266688 [details]
Beats 8.19.9
Comment 6 Saro 2026-01-20 20:11:48 UTC
Created attachment 267342 [details]
Beats 8.19.10
Comment 7 Kurt Jaeger freebsd_committer freebsd_triage 2026-03-07 11:43:50 UTC
(In reply to Saro from comment #6)
git apply /tmp/b8
/tmp/b8:173: space before tab in indent.
        "golang.org/x/text/cases"
/tmp/b8:174: space before tab in indent.
        "golang.org/x/text/language"
/tmp/b8:175: space before tab in indent.
        "gopkg.in/yaml.v3"
/tmp/b8:576: space before tab in indent.
        return cpuData, errors.Join(errs...)
/tmp/b8:591: space before tab in indent.
        procfs := m.Hostfs
error: patch failed: sysutils/beats8/Makefile:1
error: sysutils/beats8/Makefile: patch does not apply
Comment 8 Saro 2026-03-09 15:23:14 UTC
Created attachment 268652 [details]
Beats 8.19.12
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-15 03:27:59 UTC
(In reply to Saro from comment #3)
Why v7? It was v8 before and work.
Comment 10 Saro 2026-03-15 03:36:32 UTC
(In reply to Vladimir Druzenko from comment #9)

I noticed that too, but it's technically incorrect:

https://github.com/elastic/beats/blob/v8.19.12/go.mod

> module github.com/elastic/beats/v7

I'm honestly surprised it even worked with v8.
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-15 15:50:55 UTC
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: @dir %%ETCDIR%%
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%ETCDIR%%/filebeat.yml.reference
Error: Missing: %%ETCDIR%%/filebeat.yml.sample
Error: Missing: %%ETCDIR%%/heartbeat.yml.reference
Error: Missing: %%ETCDIR%%/heartbeat.yml.sample
Error: Missing: %%ETCDIR%%/metricbeat.yml.reference
Error: Missing: %%ETCDIR%%/metricbeat.yml.sample
Error: Missing: sbin/filebeat
Error: Missing: sbin/heartbeat
Error: Missing: sbin/metricbeat
Error: Missing: @dir /var/db/beats/filebeat
Error: Missing: @dir /var/db/beats/heartbeat
Error: Missing: @dir /var/db/beats/metricbeat
Error: Missing: @dir /var/db/beats
===> Error: Plist issues found.
*** Error code 1
Comment 12 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-16 14:56:33 UTC
Ignore my last message - bug on my side.
Comment 13 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-17 00:26:42 UTC
(In reply to Saro from comment #8)
You removed patch:
sysutils/beats8/files/patch-vendor_github.com_insomniacslk_dhcp_dhcpv4_bindtodevice__bsd.go
But returned it in sysutils/beats91.
Then removed again in sysutils/beats92 and sysutils/beats93.
What should be correct?
Comment 14 Saro 2026-03-17 16:09:19 UTC
(In reply to Vladimir Druzenko from comment #13)

I believe this is expected as branch 9.1 is slightly behind in updates right now.
Comment 15 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-17 16:25:29 UTC
(In reply to Saro from comment #14)
So it's correct: 8, 92 and 93 without patch and 91 with patch?
Comment 16 Saro 2026-03-17 17:39:19 UTC
(In reply to Vladimir Druzenko from comment #15)

Yes, that is correct. I was unable to build 8.19.12/9.2.6/9.3.1 as go complained about duplicate BindToInterface() functions.

8.19, 9.2 and 9.3 had `github.com/insomniacslk/dhcp` updated to v0.0.0-20251020182700-175e84fbb167:
https://github.com/elastic/beats/blob/v8.19.12/go.mod#L97
https://github.com/elastic/beats/blob/v9.2.6/go.mod#L97
https://github.com/elastic/beats/blob/v9.3.1/go.mod#L96

9.1.10 is still on v0.0.0-20220119180841-3c283ff8b7dd:
https://github.com/elastic/beats/blob/v9.1.10/go.mod#L97

Upstream also has this available for some time: https://github.com/insomniacslk/dhcp/blob/master/interfaces/bindtodevice_bsd.go

Full history (file was moved from 'dhcpv4/' folder): https://github.com/insomniacslk/dhcp/commits/master/interfaces/bindtodevice_bsd.go

Interesting thing is, even on commit 3c283ff8b7dd, the implementation was available although with different modules (syscall vs unix): https://github.com/insomniacslk/dhcp/blob/3c283ff8b7dd3a8ea2dbc37d13a35bba7aab00e5/interfaces/bindtodevice_bsd.go

It's possible I am interpreting the go.mod incorrectly, or this is a compiler change with recent go versions.
Comment 17 commit-hook freebsd_committer freebsd_triage 2026-03-17 21:14:16 UTC
A commit in branch main references this bug:

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

commit fae0cd1f8ee485b9c813d6d4c98b8ff6f3e46b8c
Author:     Saro <web@saromedia.com>
AuthorDate: 2026-03-17 20:06:17 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-17 21:12:08 +0000

    sysutils/beats8: Update 8.14.3 => 8.19.12

    Release Notes (42 new versions):
    https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-8.15.0.html
     . . .
    https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-8.19.12.html

    - Remove unnecessary '?' in "PKGNAMESUFFIX?=8".
    - Adjust COMMENT.
    - Simplify removing "./" from GO_TARGET.
    - Remove unnecessary '+' in "MAKE_ENV+=".
    - Fix GO_MODULE - must be "v7" instead of "v8".
    - Adjust CONFLICTS.
    - Use ".ifmake makesum" for generate distfiles with non-default modules too.
    - Add LOCAL/vvd/elastic to MASTER_SITES for those who can't download due
      to the HTTP error "Forbidden 403".
    - Replace PORTVERSION with DISTVERSION.
    - Add '(' and ')' around the block that is executed in the shell.
    - Refresh patches.
    - Fix description in rc.d scripts.

    PR:             290094
    Approved by:    elastic (maintainer, implicit - inactive for more than 6 months)
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>

 sysutils/beats8/Makefile                           | 46 +++++++++------
 sysutils/beats8/distinfo                           | 30 +++++-----
 sysutils/beats8/files/auditbeat.in                 |  4 +-
 sysutils/beats8/files/filebeat.in                  |  4 +-
 sysutils/beats8/files/heartbeat.in                 |  5 +-
 sysutils/beats8/files/metricbeat.in                |  4 +-
 sysutils/beats8/files/packetbeat.in                |  4 +-
 .../files/patch-auditbeat_auditbeat.reference.yml  |  8 +--
 .../beats8/files/patch-auditbeat_auditbeat.yml     |  2 +-
 .../beats8/files/patch-dev-tools_mage_settings.go  | 16 +++---
 .../files/patch-filebeat_filebeat.reference.yml    |  8 +--
 sysutils/beats8/files/patch-filebeat_filebeat.yml  |  8 +--
 sysutils/beats8/files/patch-go-sysinfo             | 67 +++++++++-------------
 ...libbeat_autodiscover_providers_docker_config.go |  4 +-
 ...libbeat_autodiscover_providers_docker_docker.go |  6 +-
 ...eat_autodiscover_providers_kubernetes_config.go |  4 +-
 ...autodiscover_providers_kubernetes_kubernetes.go |  4 +-
 .../beats8/files/patch-libbeat_scripts_Makefile    |  8 +--
 .../patch-metricbeat_metricbeat.reference.yml      |  8 +--
 .../beats8/files/patch-metricbeat_metricbeat.yml   |  6 +-
 .../patch-packetbeat_packetbeat.reference.yml      |  6 +-
 .../beats8/files/patch-packetbeat_packetbeat.yml   |  2 +-
 ...t-system-metrics_metric_cpu_metrics__freebsd.go |  6 +-
 ...m-metrics_metric_cpu_metrics__procfs__common.go | 10 ++--
 ...bus_dbus_transport__unixcred__freebsd.go (gone) | 12 ----
 ...niacslk_dhcp_dhcpv4_bindtodevice__bsd.go (gone) | 22 -------
 .../beats8/files/patch-vendor_modules.txt (new)    | 10 ++++
 27 files changed, 143 insertions(+), 171 deletions(-)
Comment 18 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-17 21:15:45 UTC
Thanks.