pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tinygo: fix installation on macOS



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Sat Feb 24 22:12:06 2024 +0100
Changeset:	f4b9122f8416b05e03c1bf41c559fd867e153657

Modified Files:
	tinygo/distinfo
	tinygo/patches/patch-Makefile

Log Message:
tinygo: fix installation on macOS

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f4b9122f8416b05e03c1bf41c559fd867e153657

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tinygo/distinfo               |  2 +-
 tinygo/patches/patch-Makefile | 14 ++++++++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs:
diff --git a/tinygo/distinfo b/tinygo/distinfo
index 6620c10ecb..4ee217a547 100644
--- a/tinygo/distinfo
+++ b/tinygo/distinfo
@@ -232,7 +232,7 @@ SHA1 (patch-.._go.bug.st_serial_serial__resetbuf__linux__bsd.go) = c1564c1e70764
 SHA1 (patch-.._go.bug.st_serial_serial__unix.go) = 9c09cfb29d05b1be659da0bdc764c298387241bc
 SHA1 (patch-.._go.bug.st_serial_unixutils_pipe.go) = d99b072e6c725fe6a8dbb0fea02b11a0f5c2d523
 SHA1 (patch-.._go.bug.st_serial_unixutils_select.go) = e8192f834ec3b9788c4f5faa35afc7c68b393761
-SHA1 (patch-Makefile) = 08054d54087606f2d5ed781061ba46c829356f62
+SHA1 (patch-Makefile) = 57d7d33b97aacaae3d85f43224dc74e020a13427
 SHA1 (patch-builder_buildid.go) = 747b6cfdae7c00eeb062650f56da5ecc67dc4d10
 SHA1 (patch-go.mod) = 9847e5d4bddca4f73936bb746b5374ad9d3ae11a
 SHA1 (patch-main.go) = 876fc346d206f369e57b2cb2255bb2e2e01d3d6b
diff --git a/tinygo/patches/patch-Makefile b/tinygo/patches/patch-Makefile
index 2f0c4a24f7..2abc16a1cf 100644
--- a/tinygo/patches/patch-Makefile
+++ b/tinygo/patches/patch-Makefile
@@ -1,8 +1,9 @@
 $NetBSD$
 
-Don't depend on git
+- Don't depend on git
+- fix PLIST issue with macOS cp(1)
 
---- Makefile.orig	2024-01-09 08:58:20.546074821 +0000
+--- Makefile.orig	2023-09-21 06:03:16.000000000 +0000
 +++ Makefile
 @@ -281,7 +281,7 @@ endif
  # Build the Go compiler.
@@ -13,3 +14,12 @@ Don't depend on git
  test: wasi-libc check-nodejs-version
  	CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test $(GOTESTFLAGS) -timeout=20m -buildmode exe -tags "byollvm osusergo" ./builder ./cgo ./compileopts ./compiler ./interp ./transform .
  
+@@ -846,7 +846,7 @@ endif
+ 	@cp -rp lib/mingw-w64/mingw-w64-crt/def-include                 build/release/tinygo/lib/mingw-w64/mingw-w64-crt
+ 	@cp -rp lib/mingw-w64/mingw-w64-crt/lib-common/api-ms-win-crt-* build/release/tinygo/lib/mingw-w64/mingw-w64-crt/lib-common
+ 	@cp -rp lib/mingw-w64/mingw-w64-crt/lib-common/kernel32.def.in  build/release/tinygo/lib/mingw-w64/mingw-w64-crt/lib-common
+-	@cp -rp lib/mingw-w64/mingw-w64-headers/crt/                    build/release/tinygo/lib/mingw-w64/mingw-w64-headers
++	@cp -rp lib/mingw-w64/mingw-w64-headers/crt                    build/release/tinygo/lib/mingw-w64/mingw-w64-headers
+ 	@cp -rp lib/mingw-w64/mingw-w64-headers/defaults/include        build/release/tinygo/lib/mingw-w64/mingw-w64-headers/defaults
+ 	@cp -rp lib/nrfx/*                   build/release/tinygo/lib/nrfx
+ 	@cp -rp lib/picolibc/newlib/libc/ctype       build/release/tinygo/lib/picolibc/newlib/libc


Home | Main Index | Thread Index | Old Index