Skip to content

Commit 2688856

Browse files
authored
Merge branch 'main' into update-arm-compilers
2 parents 8b218e2 + 6e4b1ee commit 2688856

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

docker/build/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,13 @@ for TARGET in $TARGETS; do
473473
# Build the requested freebsd binaries
474474
if [ "$XGOARCH" == "." ] || [ "$XGOARCH" == "amd64" ]; then
475475
echo "Compiling for freebsd/amd64..."
476-
XGOOS="freebsd" XGOARCH="amd64" CC=x86_64-pc-freebsd12-gcc HOST=x86_64-pc-freebsd12 PREFIX=/freebsdcross/x86_64-pc-freebsd12 do_build
477-
export PKG_CONFIG_PATH=/freebsdcross/x86_64-pc-freebsd12/lib/pkgconfig
476+
XGOOS="freebsd" XGOARCH="amd64" CC=x86_64-pc-freebsd13-gcc HOST=x86_64-pc-freebsd13 PREFIX=/freebsdcross/x86_64-pc-freebsd13 do_build
477+
export PKG_CONFIG_PATH=/freebsdcross/x86_64-pc-freebsd13/lib/pkgconfig
478478

479479
if [[ "$USEMODULES" == false ]]; then
480-
CC=x86_64-pc-freebsd12-gcc CXX=x86_64-pc-freebsd12-g++ GOOS=freebsd GOARCH=amd64 CGO_ENABLED=1 go get $V $X "${T[@]}" -d "$PACK_RELPATH"
480+
CC=x86_64-pc-freebsd13-gcc CXX=x86_64-pc-freebsd13-g++ GOOS=freebsd GOARCH=amd64 CGO_ENABLED=1 go get $V $X "${T[@]}" -d "$PACK_RELPATH"
481481
fi
482-
CC=x86_64-pc-freebsd12-gcc CXX=x86_64-pc-freebsd12-g++ GOOS=freebsd GOARCH=amd64 CGO_ENABLED=1 $GOBIN build $V $X $TP $BV "${MOD[@]}" "${T[@]}" "${LDF[@]}" "${GC[@]}" "${BM[@]}" -o "/build/$NAME-freebsd12-amd64$(extension freebsd)" "$PACK_RELPATH"
482+
CC=x86_64-pc-freebsd13-gcc CXX=x86_64-pc-freebsd13-g++ GOOS=freebsd GOARCH=amd64 CGO_ENABLED=1 $GOBIN build $V $X $TP $BV "${MOD[@]}" "${T[@]}" "${LDF[@]}" "${GC[@]}" "${BM[@]}" -o "/build/$NAME-freebsd13-amd64$(extension freebsd)" "$PACK_RELPATH"
483483
fi
484484
if [ "$XGOARCH" == "." ] || [ "$XGOARCH" == "arm64" ]; then
485485
echo "skipping freebsd/arm64... as it is not yet supported"

docker/toolchain/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ ENV PATH=/osxcross/target/bin:$PATH
106106
###########################
107107

108108
COPY prep_freebsd.sh /prep_freebsd.sh
109-
RUN chmod +x /prep_freebsd.sh && \
110-
/prep_freebsd.sh
109+
#RUN chmod +x /prep_freebsd.sh && \
110+
# /prep_freebsd.sh
111111

112-
ENV PATH=/freebsdcross/x86_64-pc-freebsd12/bin:$PATH
112+
ENV PATH=/freebsdcross/x86_64-pc-freebsd13/bin:$PATH
113113

114114
# Inject the new Go root distribution downloader and bootstrapper
115115
COPY bootstrap_pure.sh /bootstrap_pure.sh

docker/toolchain/prep_freebsd.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# for their work on this subject which
1010
# I have been able to expand upon for cgo/golang
1111

12-
freebsd_ver=12
13-
freebsd_full_ver=12.4
12+
freebsd_ver=13
13+
freebsd_full_ver=13.4
1414
binutils_ver=2.39
1515
gmp_ver=6.2.1
1616
mpfr_ver=4.1.1
@@ -35,7 +35,7 @@ cd /tmp/freebsdbuild && \
3535
tar -xf /tmp/freebsdbuild/base.txz ./lib/ ./usr/lib/ ./usr/include/ && \
3636
cd /freebsdcross/x86_64-pc-freebsd${freebsd_ver}/usr/lib && \
3737
find . -xtype l|xargs ls -l|grep ' /lib/' \
38-
| awk '{print "ln -sf /freebsdcross/x86_64-pc-freebsd12"$11 " " $9}' \
38+
| awk '{print "ln -sf /freebsdcross/x86_64-pc-freebsd13"$11 " " $9}' \
3939
| /bin/sh && \
4040
rm -rf /tmp/freebsdbuild && mkdir /tmp/freebsdbuild
4141

xgo.bats

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
[ "$status" -eq 0 ]
2626
}
2727

28-
# FIXME:
29-
# @test "branches" {
30-
# run go run xgo.go --remote https://github.com/rwcarlsen/cyan --branch memprof --targets "linux/amd64" --image="${IMAGEID}" github.com/rwcarlsen/cyan/cmd/cyan
31-
# echo "$output"
32-
# [ "$status" -eq 0 ]
33-
# }
28+
# FIXME: does not work, see https://github.com/techknowlogick/xgo/issues/260
29+
#@test "branches" {
30+
# run go run xgo.go --remote https://github.com/rwcarlsen/cyan --branch memprof --targets "linux/amd64" --image="${IMAGEID}" github.com/rwcarlsen/cyan/cmd/cyan
31+
# echo "$output"
32+
# [ "$status" -eq 0 ]
33+
#}
3434

3535
@test "eth smoke" {
3636
git clone --depth 1 https://github.com/ethereum/go-ethereum.git /tmp/eth
@@ -46,10 +46,12 @@
4646
[ "$status" -eq 0 ]
4747
}
4848

49-
# FIXME:
50-
# @test "vikunja smoke" {
51-
# git clone --depth 1 https://kolaente.dev/vikunja/api /tmp/vikunja
52-
# run go run xgo.go --image="${IMAGEID}" --targets "darwin-10.6/amd64" /tmp/vikunja
53-
# echo "$output"
54-
# [ "$status" -eq 0 ]
55-
# }
49+
@test "vikunja smoke" {
50+
export vikunja_path=/tmp/vikunja
51+
git clone --depth 1 https://kolaente.dev/vikunja/api $vikunja_path
52+
mkdir -p $vikunja_path/frontend/dist/
53+
touch $vikunja_path/frontend/dist/index.html
54+
run go run xgo.go --image="${IMAGEID}" --targets "darwin-10.6/amd64" $vikunja_path
55+
echo "$output"
56+
[ "$status" -eq 0 ]
57+
}

0 commit comments

Comments
 (0)