git: c39f73b9222b - main - devel/please: Update version 16.0.0=>17.12.7

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 24 Dec 2024 04:45:25 UTC
The branch main has been updated by bofh:

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

commit c39f73b9222b3947906e321f82a8f0bb5f6ed81b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-12-23 04:58:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-12-24 04:44:58 +0000

    devel/please: Update version 16.0.0=>17.12.7
    
    Thanks to Pat for the pointers and help in updating this.
    
    Changelog: https://github.com/thought-machine/please/releases/tag/v17.12.7
    
    PR:             276791
    Reported by:    yonas.yanfa@gmail.com
---
 devel/please/Makefile                            | 12 ++++--------
 devel/please/distinfo                            | 10 +++++-----
 devel/please/files/patch-tools_sandbox_main.c    | 11 -----------
 devel/please/files/patch-tools_sandbox_sandbox.c |  8 --------
 devel/please/pkg-plist                           |  6 +-----
 5 files changed, 10 insertions(+), 37 deletions(-)

diff --git a/devel/please/Makefile b/devel/please/Makefile
index 844e7438b9fb..25fecc33f77c 100644
--- a/devel/please/Makefile
+++ b/devel/please/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	please
 DISTVERSIONPREFIX=	v
-DISTVERSION=	16.0.0
+DISTVERSION=	17.12.7
 CATEGORIES=	devel
 MASTER_SITES=	https://raw.githubusercontent.com/thought-machine/please/${DISTVERSIONFULL}/
 DISTFILES=	go.mod
@@ -21,16 +21,12 @@ BUILD_DEPENDS=	bash:shells/bash \
 		git:devel/git \
 		protoc:devel/protobuf
 
-USES=		go:modules
+USES=		go:1.23,modules
 GO_MODULE=	github.com/thought-machine/please
 GO_TARGET=	src/please.go:please \
 		tools/build_langserver/langserver_main.go:build_langserver \
 		tools/http_cache/main.go:http_cache \
-		tools/jarcat/main.go:jarcat \
-		tools/please_go_embed/main.go:please_go_embed \
-		tools/please_go_filter/please_go_filter.go:please_go_filter \
-		tools/please_go/please_go.go:please_go \
-		tools/please_pex/pex_main.go:please_pex \
+		tools/please_shim/main.go:please_shim \
 		tools/release_signer/main.go:release_signer
 USE_GITHUB=	yes
 GH_ACCOUNT=	thought-machine
@@ -39,7 +35,7 @@ post-extract:
 	${REINPLACE_CMD} -e 's|99.0.9999|${DISTVERSION}|' ${WRKSRC}/src/core/version.go
 
 post-build:
-	cd ${WRKSRC} ; ${SETENV} ${CC} ${CFLAGS} -o please_sandbox tools/sandbox/main.c tools/sandbox/sandbox.c
+	cd ${WRKSRC} ; ${SETENV} ${CC} ${CFLAGS} -I${WRKSRC} -o please_sandbox tools/sandbox/main.c tools/sandbox/sandbox.c
 
 post-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/please_sandbox ${STAGEDIR}${PREFIX}/bin
diff --git a/devel/please/distinfo b/devel/please/distinfo
index 663cd024febd..93e85e78fe52 100644
--- a/devel/please/distinfo
+++ b/devel/please/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1734925708
-SHA256 (go/devel_please/thought-machine-please-v16.0.0_GH0/go.mod) = 2cd52d3b0f03b668d7934b1a17b3a22730e2da3e0478f4146a882f4e4cf7296c
-SIZE (go/devel_please/thought-machine-please-v16.0.0_GH0/go.mod) = 2486
-SHA256 (go/devel_please/thought-machine-please-v16.0.0_GH0/thought-machine-please-v16.0.0_GH0.tar.gz) = e9f5b962770ba4373316c5fd1f9a95ce2b53e79dc1a8bc9a6a02c00226891c76
-SIZE (go/devel_please/thought-machine-please-v16.0.0_GH0/thought-machine-please-v16.0.0_GH0.tar.gz) = 1798117
+TIMESTAMP = 1734928038
+SHA256 (go/devel_please/thought-machine-please-v17.12.7_GH0/go.mod) = 75cf810abecff9863a5e41f61e2ef64f3063637f9bc0d3396157798db3aba690
+SIZE (go/devel_please/thought-machine-please-v17.12.7_GH0/go.mod) = 5424
+SHA256 (go/devel_please/thought-machine-please-v17.12.7_GH0/thought-machine-please-v17.12.7_GH0.tar.gz) = c6690539ade3b0272ee7c95a33b311b888880b275e5504190d17db047374e8c1
+SIZE (go/devel_please/thought-machine-please-v17.12.7_GH0/thought-machine-please-v17.12.7_GH0.tar.gz) = 2069252
diff --git a/devel/please/files/patch-tools_sandbox_main.c b/devel/please/files/patch-tools_sandbox_main.c
deleted file mode 100644
index 79ac1c31e46e..000000000000
--- a/devel/please/files/patch-tools_sandbox_main.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- tools/sandbox/main.c.orig	2024-12-23 04:03:39 UTC
-+++ tools/sandbox/main.c
-@@ -7,7 +7,7 @@
- // support namespaces / cgroups. We still behave similarly otherwise
- // in order for it to be transparent to the rest of the system.
- #include <stdio.h>
--#include "tools/sandbox/sandbox.h"
-+#include "sandbox.h"
- 
- int main(int argc, char* argv[]) {
-     if (argc < 2) {
diff --git a/devel/please/files/patch-tools_sandbox_sandbox.c b/devel/please/files/patch-tools_sandbox_sandbox.c
deleted file mode 100644
index b9b0c2a98f64..000000000000
--- a/devel/please/files/patch-tools_sandbox_sandbox.c
+++ /dev/null
@@ -1,8 +0,0 @@
---- tools/sandbox/sandbox.c.orig	2024-12-23 04:06:56 UTC
-+++ tools/sandbox/sandbox.c
-@@ -1,4 +1,4 @@
--#include "tools/sandbox/sandbox.h"
-+#include "sandbox.h"
- 
- #define _GNU_SOURCE
- #include <stdio.h>
diff --git a/devel/please/pkg-plist b/devel/please/pkg-plist
index 8693c19b2e99..36641205cdd4 100644
--- a/devel/please/pkg-plist
+++ b/devel/please/pkg-plist
@@ -1,10 +1,6 @@
 bin/build_langserver
 bin/http_cache
-bin/jarcat
 bin/please
-bin/please_go
-bin/please_go_embed
-bin/please_go_filter
-bin/please_pex
 bin/please_sandbox
+bin/please_shim
 bin/release_signer