Bug 291006 - security/headscale: Update to 0.27.1
Summary: security/headscale: Update to 0.27.1
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: https://github.com/juanfont/headscale...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-14 07:41 UTC by Michael Muenz
Modified: 2025-11-18 19:38 UTC (History)
2 users (show)

See Also:


Attachments
0.27.1 update (1.61 KB, patch)
2025-11-14 07:41 UTC, Michael Muenz
m.muenz: maintainer-approval+
Details | Diff
updated 0.27.1 (2.58 KB, patch)
2025-11-18 08:50 UTC, Michael Muenz
m.muenz: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Muenz 2025-11-14 07:41:08 UTC
Created attachment 265406 [details]
0.27.1 update

Enclosed the patch for 0.27.1, version 0.27 has a breaking change, removing i386 support.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-14 12:11:15 UTC
Port require go 1.25:
-USES=           go:modules
+USES=           go:1.25,modules
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-14 12:14:13 UTC
2. Use one MKDIR instead of 3:
        ${MKDIR} ${STAGEDIR}${ETCDIR} \
                 ${STAGEDIR}/var/cache/${PORTNAME} \
                 ${STAGEDIR}/var/db/${PORTNAME}
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-14 12:15:44 UTC
3. Use ${ETCDIR} instead of ${PREFIX}/etc/${PORTNAME}.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-14 12:19:15 UTC
4.
-USE_RC_SUBR=    headscale
-USE_RC_SUBR=    ${PORTNAME}
Comment 5 Michael Muenz 2025-11-17 08:19:47 UTC
(In reply to Vladimir Druzenko from comment #1)

Where do you see this? In all changelogs I can only see "Uses go 1.24".
Comment 6 Herbert J. Skuhra 2025-11-17 09:04:55 UTC
https://github.com/juanfont/headscale/blob/v0.27.1/go.mod contains line go 1.25.
Comment 7 Herbert J. Skuhra 2025-11-17 09:19:07 UTC
(In reply to Herbert J. Skuhra from comment #6)
But this is already the case for 0.27.0:

===>  License BSD3CLAUSE accepted by the user
===>   headscale-0.27.0 depends on file: /usr/local/sbin/pkg - found
===>   headscale-0.27.0 depends on file: /usr/local/bin/go124 - found
=> v0.27.0.mod doesn't seem to exist in /usr/ports/distfiles/go/security_headscale/headscale-v0.27.0.
=> Attempting to fetch https://proxy.golang.org/github.com/juanfont/headscale/@v/v0.27.0.mod
v0.27.0.mod                                             11 kB 1466 kBps    00s
=> v0.27.0.zip doesn't seem to exist in /usr/ports/distfiles/go/security_headscale/headscale-v0.27.0.
=> Attempting to fetch https://proxy.golang.org/github.com/juanfont/headscale/@v/v0.27.0.zip
v0.27.0.zip                                           1303 kB 3885 kBps    01s
===> Fetching all distfiles required by headscale-0.27.0 for building
===> Fetching github.com/juanfont/headscale dependencies
go: downloading go1.25.0 (freebsd/amd64)
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-17 10:54:17 UTC
(In reply to Herbert J. Skuhra from comment #7)
Ye, this last line:
> go: downloading go1.25.0 (freebsd/amd64)
Comment 9 Michael Muenz 2025-11-18 08:50:36 UTC
Created attachment 265485 [details]
updated 0.27.1

Updated patch
Comment 10 commit-hook freebsd_committer freebsd_triage 2025-11-18 19:37:57 UTC
A commit in branch main references this bug:

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

commit 786767ed982249c163633aec972dbf49bf2e2894
Author:     Michael Muenz <m.muenz@gmail.com>
AuthorDate: 2025-11-18 19:33:27 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-11-18 19:33:27 +0000

    security/headscale: Update 0.27.0 => 0.27.1

    Changelog:
    https://github.com/juanfont/headscale/releases/tag/v0.27.1

    - Replace PORTVERSION with DISTVERSION.
    - Paramitrize USE_RC_SUBR.
    - Reduce MKDIR calls.
    - Use ${ETCDIR} instead of ${PREFIX}/etc/${PORTNAME}.

    PR:     291006

 security/headscale/Makefile | 19 +++++++++++--------
 security/headscale/distinfo | 10 +++++-----
 2 files changed, 16 insertions(+), 13 deletions(-)
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2025-11-18 19:38:12 UTC
Thanks.