Hello,

Here are three new packages: go-bootstrap, go and the aerc mail client.

- go-boostrap compiles the 1.4 compiler which was the last version to be 
written in C
- go compiles to the lastest version using go-bootstrap

go-boostrap cannot be cross-compiled so you need to install go natively if you
want to build go for another target. (the usual circular dependency)
Feel free to try cross compiling and patch the configuration in case I missed 
something.

I also added a patch to disable go support for gcc. (didn't notice it was 
enabled
until I tried building go!)

Last but not least is the aerc mail client, written in go and designed for use
with the git+email workflow. It should not do space damage to patches as emails
are edited with your $EDITOR (default is vi if not set).
Copy/paste is somewhat broken for me though but your mileage may vary.

I tried to prevent go from cluttering the GOPATH (/root/go by deafult)
with build dependencies by doing something like GOPATH=$builddir/go but that
breaks one of aerc's dependencies for whatever reason.
If someone has a solution, patch welcome!


Have nice week-end,
Notag
[COPY] --- T2-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by scripts/Create-CopyPatch.
[COPY] 
[COPY] T2 SDE: package/*/go-bootstrap/go-bootstrap.desc
[COPY] Copyright (C) 2021 The T2 SDE Project
[COPY] 
[COPY] More information can be found in the files COPYING and README.
[COPY] 
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- T2-COPYRIGHT-NOTE-END ---

[I] Go lang compiler bootstrap package

[T] The Go programming language

[U] https://golang.org

[A] Google
[M] Notag <no...@maneto.fr>

[C] extra/development

[L] MIT
[S] Stable
[V] 1.4
[P] O -----5---9 105.000

[D] 2d563fdfc04fbe785f8e359e373da2e6452a3fb6f83e9c929ed8e204 
go-bootstrap-1.4.tar.gz 
!https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by scripts/Create-CopyPatch.
# 
# T2 SDE: package/*/go-bootstrap/go-bootstrap.conf
# Copyright (C) 2021 The T2 SDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

# go-bootstrap cannot be cross-compiled

makeopt=
makeinstopt=

export CGO_ENABLED=0
export GOROOT_FINAL=$root/$libdir/gobootstrap
export GOOS=$SDECFG_KERNEL

go-bootstrap_inmake() {
        cd src
        ./make.bash
        mkdir -p $GOROOT_FINAL
        cd ..
        cp -r * $GOROOT_FINAL
}

hook_add inmake 5 "go-bootstrap_inmake"
[COPY] --- T2-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by scripts/Create-CopyPatch.
[COPY] 
[COPY] T2 SDE: package/*/go/go.desc
[COPY] Copyright (C) 2021 The T2 SDE Project
[COPY] 
[COPY] More information can be found in the files COPYING and README.
[COPY] 
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- T2-COPYRIGHT-NOTE-END ---

[I] The Go programming language

[T] The Go programming language

[U] https://golang.org

[A] Google
[M] Notag <no...@maneto.fr>

[C] extra/development
[F] CROSS

[L] MIT
[S] Stable
[V] 1.15.8
[P] X -----5---9 106.000

[D] b8a2bb719cfda268e224a3301b4be23c785d7b9c6ef5e74bafb6194d go-1.15.8.tar.gz 
!https://golang.org/dl/go1.15.8.src.tar.gz
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by scripts/Create-CopyPatch.
# 
# T2 SDE: package/*/go/go.conf
# Copyright (C) 2021 The T2 SDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

makeopt=
makeinstopt=

export CGO_ENABLED=0
export GOROOT_FINAL=$root/$libdir/go
export GOOS=$SDECFG_KERNEL

if atstage native; then
        # use go-bootstrap if go is not already installed
        pkginstalled go-bootstrap && pkginstalled go || export 
GOROOT_BOOTSTRAP=$root/$libdir/gobootstrap
else
        # This means you need to build go natively on your host machine
        # before you are able to cross-compile for the target machine
        export GOHOSTARCH="$(go env | grep GOHOSTARCH | cut -d'"' -f2)"
        
        case $arch in
                x86-64) GOARCH=amd64;;
                x86) GOARCH=386;;
                arm64) GOARCH=aarch64;;
                mips) [ "$SDECFG_MIPS_ENDIANESS" = EL ] && myarch=mipsel;;
                mips64) [ "$SDECFG_MIPS64_ENDIANESS" = EL ] && myarch=mips64el;;
                powerpc64) [ "$SDECFG_POWERPC64_ENDIANESS" = le ] && 
GOARCH=ppc64le || GOARCH=ppc64;;
        esac
        export GOARCH
fi
go_inmake() {
        cd src
        ./make.bash
        mkdir -p $GOROOT_FINAL
        cd ..
        cp -r * $GOROOT_FINAL

        BINPATH="$GOROOT_FINAL/bin"
        for x in $BINPATH/*; do
        ls $BINPATH
                ln -svf $x $root/$bindir/${x##*/}
        done
}

hook_add inmake 5 "go_inmake"
[TIMESTAMP] 1612725574 Sun Feb  7 20:19:34 2021
[BUILDTIME] 100 (9)
[SIZE] 382.61 MB, 10717 files

[DEP] 00-dirtree
[DEP] bash
[DEP] binutils
[DEP] coreutils
[DEP] dash
[DEP] diffutils
[DEP] findutils
[DEP] gawk
[DEP] gcc
[DEP] glibc
[DEP] go-bootstrap
[DEP] grep
[DEP] sed
[DEP] tar
[DEP] zstd
[COPY] --- T2-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by scripts/Create-CopyPatch.
[COPY] 
[COPY] T2 SDE: package/*/aerc/aerc.desc
[COPY] Copyright (C) 2021 The T2 SDE Project
[COPY] 
[COPY] More information can be found in the files COPYING and README.
[COPY] 
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- T2-COPYRIGHT-NOTE-END ---

[I] aerc is an email client for your terminal written in Go

[T] aerc is an email client that runs in your terminal.
[T] It's highly efficient and extensible, perfect for the discerning hacker.
[T]
[T] Some of its features:
[T]  - Render HTML emails with an interactive terminal web browser
[T]  - Highlight patches with diffs, and browse with an embedded less session
[T]  - Vim-style keybindings
[T]  - ex-command system allowing for powerful automation at a single keystroke
[T]  - First-class support for git+email workflow (https://git-send-email.io/)

[U] https://aerc-mail.org/

[A] Drew DeVault <s...@cmpwn.com>
[M] Notag <no...@maneto.fr>

[C] base/x11

[L] MIT
[S] Stable
[V] 0.5.2
[P] X -----5---9 160.000

[D] c6bd0e3993523e5d0df463c5f05167816865030f1c92bc640f889997 aerc-0.5.2.tar.gz 
!https://git.sr.ht/~sircmpwn/aerc/archive/0.5.2.tar.gz
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by scripts/Create-CopyPatch.
# 
# T2 SDE: package/*/aerc/aerc.conf
# Copyright (C) 2021 The T2 SDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

export CGO_ENABLED=1

var_append makeopt " " "PREFIX=$root/$prefix"
var_append makeinstopt " " "PREFIX=$root/$prefix"
[TIMESTAMP] 1612820323 Mon Feb  8 22:38:43 2021
[BUILDTIME] 100 (9)
[SIZE] 10.81 MB, 30 files

[DEP] binutils
[DEP] coreutils
[DEP] diffutils
[DEP] findutils
[DEP] gcc
[DEP] glibc
[DEP] go
[DEP] grep
[DEP] make
[DEP] scdoc
[DEP] sed
Index: package/develop/gcc/gcc.conf
===================================================================
--- package/develop/gcc/gcc.conf        (revision 51551)
+++ package/develop/gcc/gcc.conf        (working copy)
@@ -168,7 +168,7 @@
 # var_append confopt " " "--enable-version-specific-runtime-libs"
 
 if atstage native; then
-       var_append languages ',' "objc,go"
+       var_append languages ',' "objc"
        var_append confopt " " "--with-gnu-as --with-gnu-ld 
--enable-threads=posix"
 fi
 
@@ -227,7 +227,6 @@
 
 if [ "$SDECFG_LIBC" != "glibc" ]; then
        var_append confopt " " "--disable-libsanitizer"
-       var_remove languages ',' "go"
 fi
 
 var_insert confopt ' ' '--enable-languages=$languages'
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
li...@t2-project.org with a subject of: unsubscribe t2

Reply via email to