Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2020 13:03:31 +0000 (UTC)
From:      Dmitri Goutnik <dmgk@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r555206 - in head/devel/tinygo: . files
Message-ID:  <202011151303.0AFD3VP6018185@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dmgk
Date: Sun Nov 15 13:03:30 2020
New Revision: 555206
URL: https://svnweb.freebsd.org/changeset/ports/555206

Log:
  devel/tinygo: Unbreak with go1.15.5
  
  - unbreak with go 1.15.5
  - drop maintainership

Modified:
  head/devel/tinygo/Makefile
  head/devel/tinygo/files/patch-Makefile

Modified: head/devel/tinygo/Makefile
==============================================================================
--- head/devel/tinygo/Makefile	Sun Nov 15 12:49:07 2020	(r555205)
+++ head/devel/tinygo/Makefile	Sun Nov 15 13:03:30 2020	(r555206)
@@ -3,9 +3,10 @@
 PORTNAME=	tinygo
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.14.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
-MAINTAINER=	dmgk@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Go compiler for small places
 
 LICENSE=	BSD3CLAUSE

Modified: head/devel/tinygo/files/patch-Makefile
==============================================================================
--- head/devel/tinygo/files/patch-Makefile	Sun Nov 15 12:49:07 2020	(r555205)
+++ head/devel/tinygo/files/patch-Makefile	Sun Nov 15 13:03:30 2020	(r555206)
@@ -1,4 +1,4 @@
---- Makefile.orig	2020-04-13 15:48:30 UTC
+--- Makefile.orig	2020-08-19 06:37:16 UTC
 +++ Makefile
 @@ -40,7 +40,7 @@ MD5SUM = md5sum
  TINYGO ?= tinygo
@@ -9,8 +9,17 @@
      LLVM_OPTION += '-DLLVM_CCACHE_BUILD=ON'
  endif
  
+@@ -104,7 +104,7 @@ LLD_LIBS = $(START_GROUP) -llldCOFF -llldCommon -llldC
+ ifneq ("$(wildcard $(LLVM_BUILDDIR)/bin/llvm-config*)","")
+     CGO_CPPFLAGS=$(shell $(LLVM_BUILDDIR)/bin/llvm-config --cppflags) -I$(abspath $(LLVM_BUILDDIR))/tools/clang/include -I$(abspath $(CLANG_SRC))/include -I$(abspath $(LLD_SRC))/include
+     CGO_CXXFLAGS=-std=c++14
+-    CGO_LDFLAGS+=$(LIBCLANG_PATH) -std=c++14 -L$(abspath $(LLVM_BUILDDIR)/lib) $(CLANG_LIBS) $(LLD_LIBS) $(shell $(LLVM_BUILDDIR)/bin/llvm-config --ldflags --libs --system-libs $(LLVM_COMPONENTS)) -lstdc++ $(CGO_LDFLAGS_EXTRA)
++    CGO_LDFLAGS+=$(LIBCLANG_PATH) -L$(abspath $(LLVM_BUILDDIR)/lib) $(CLANG_LIBS) $(LLD_LIBS) $(shell $(LLVM_BUILDDIR)/bin/llvm-config --ldflags --libs --system-libs $(LLVM_COMPONENTS)) -lstdc++ $(CGO_LDFLAGS_EXTRA)
+ endif
+ 
+ 
 @@ -121,13 +121,13 @@ fmt-check:
- gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive gen-device-stm32
+ gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive gen-device-stm32 gen-device-kendryte gen-device-nxp
  
  gen-device-avr:
 -	$(GO) build -o ./build/gen-device-avr ./tools/gen-device-avr/
@@ -25,7 +34,7 @@
  
  gen-device-nrf: build/gen-device-svd
  	./build/gen-device-svd -source=https://github.com/NordicSemiconductor/nrfx/tree/master/mdk lib/nrfx/mdk/ src/device/nrf/
-@@ -165,16 +165,16 @@ $(LLVM_BUILDDIR): $(LLVM_BUILDDIR)/build.ninja
+@@ -173,16 +173,16 @@ $(LLVM_BUILDDIR): $(LLVM_BUILDDIR)/build.ninja
  .PHONY: wasi-libc
  wasi-libc: lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a
  lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a:
@@ -45,8 +54,11 @@
  
  tinygo-test:
  	cd tests/tinygotest && tinygo test
-@@ -345,4 +345,3 @@ release: tinygo gen-device wasi-libc
+@@ -383,7 +383,6 @@ build/release: tinygo gen-device wasi-libc
  	./build/tinygo build-library -target=armv6m-none-eabi  -o build/release/tinygo/pkg/armv6m-none-eabi/picolibc.a picolibc
  	./build/tinygo build-library -target=armv7m-none-eabi  -o build/release/tinygo/pkg/armv7m-none-eabi/picolibc.a picolibc
  	./build/tinygo build-library -target=armv7em-none-eabi -o build/release/tinygo/pkg/armv7em-none-eabi/picolibc.a picolibc
--	tar -czf build/release.tar.gz -C build/release tinygo
+-
+ release: build/release
+ 	tar -czf build/release.tar.gz -C build/release tinygo
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011151303.0AFD3VP6018185>