File tree Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -473,13 +473,13 @@ for TARGET in $TARGETS; do
473
473
# Build the requested freebsd binaries
474
474
if [ " $XGOARCH " == " ." ] || [ " $XGOARCH " == " amd64" ]; then
475
475
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
478
478
479
479
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 "
481
481
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 "
483
483
fi
484
484
if [ " $XGOARCH " == " ." ] || [ " $XGOARCH " == " arm64" ]; then
485
485
echo " skipping freebsd/arm64... as it is not yet supported"
Original file line number Diff line number Diff line change @@ -106,10 +106,10 @@ ENV PATH=/osxcross/target/bin:$PATH
106
106
# ##########################
107
107
108
108
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
111
111
112
- ENV PATH=/freebsdcross/x86_64-pc-freebsd12 /bin:$PATH
112
+ ENV PATH=/freebsdcross/x86_64-pc-freebsd13 /bin:$PATH
113
113
114
114
# Inject the new Go root distribution downloader and bootstrapper
115
115
COPY bootstrap_pure.sh /bootstrap_pure.sh
Original file line number Diff line number Diff line change 9
9
# for their work on this subject which
10
10
# I have been able to expand upon for cgo/golang
11
11
12
- freebsd_ver=12
13
- freebsd_full_ver=12 .4
12
+ freebsd_ver=13
13
+ freebsd_full_ver=13 .4
14
14
binutils_ver=2.39
15
15
gmp_ver=6.2.1
16
16
mpfr_ver=4.1.1
@@ -35,7 +35,7 @@ cd /tmp/freebsdbuild && \
35
35
tar -xf /tmp/freebsdbuild/base.txz ./lib/ ./usr/lib/ ./usr/include/ && \
36
36
cd /freebsdcross/x86_64-pc-freebsd${freebsd_ver} /usr/lib && \
37
37
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}' \
39
39
| /bin/sh && \
40
40
rm -rf /tmp/freebsdbuild && mkdir /tmp/freebsdbuild
41
41
Original file line number Diff line number Diff line change 25
25
[ " $status " -eq 0 ]
26
26
}
27
27
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
+ # }
34
34
35
35
@test " eth smoke" {
36
36
git clone --depth 1 https://github.com/ethereum/go-ethereum.git /tmp/eth
46
46
[ " $status " -eq 0 ]
47
47
}
48
48
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
+ }
You can’t perform that action at this time.
0 commit comments