Skip to content

Commit 06a1be8

Browse files
authored
fix(ci): Move to xenial dist (#3)
Issue was caused by golang/go#31293 (comment)
1 parent c389200 commit 06a1be8

27 files changed

+442
-12
lines changed

.travis.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
11
os:
22
- linux
3+
dist: xenial
34
language: go
5+
go:
6+
- "1.12.7"
7+
addons:
8+
apt:
9+
packages:
10+
- bzr
11+
- procps
12+
- g++
13+
- g++-multilib
14+
- gcc
15+
- gcc-multilib
16+
- libc6-dev
17+
- libc6-dev-i386
18+
- make
19+
- pkg-config
20+
- binutils
21+
- binutils-dev
422
env:
523
matrix:
624
- ARCH=386 VERSION=2.10.1
725
- ARCH=amd64 VERSION=2.10.1
826
matrix:
927
fast_finish: true
28+
before_script:
29+
- rm -rf $(go env GOCACHE)
1030
script:
11-
- GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags static github.com/flga/freetype2/$VERSION
12-
- GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags 'static harfbuzz' github.com/flga/freetype2/$VERSION
13-
- GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags 'static harfbuzz subset' github.com/flga/freetype2/$VERSION
31+
- CGO_ENABLED=1 GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags static -ldflags "-linkmode external -extldflags -static" github.com/flga/freetype2/$VERSION
32+
- CGO_ENABLED=1 GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags 'static harfbuzz' -ldflags "-linkmode external -extldflags -static" github.com/flga/freetype2/$VERSION
33+
- CGO_ENABLED=1 GOOS=$(go env GOHOSTOS) GOARCH=$ARCH go test -v -tags 'static harfbuzz subset' -ldflags "-linkmode external -extldflags -static" github.com/flga/freetype2/$VERSION

2.10.1/cgo.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ package freetype2
44
// #cgo !static,!windows pkg-config: freetype2
55
//
66
// #cgo linux,386,static CFLAGS: -I${SRCDIR}/linux_386/include/freetype2 -Werror -Wall -Wextra -Wno-unused-parameter
7-
// #cgo linux,386,static,!harfbuzz LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetype -lm
8-
// #cgo linux,386,static,harfbuzz LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetypehb -lm
9-
// #cgo linux,386,static,harfbuzz,subset LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetypehb-subset -lm
7+
// #cgo linux,386,static,!harfbuzz LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetype -lbz2 -lpng16 -lz -lm
8+
// #cgo linux,386,static,harfbuzz LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetypehb -lharfbuzz -lfreetypehb -lbz2 -lpng16 -lz -lm
9+
// #cgo linux,386,static,harfbuzz,subset LDFLAGS: -L${SRCDIR}/linux_386/lib -lfreetypehb -lharfbuzz -lharfbuzz-subset -lbz2 -lpng16 -lz -lm
1010
//
1111
// #cgo linux,amd64,static CFLAGS: -I${SRCDIR}/linux_amd64/include/freetype2 -Werror -Wall -Wextra -Wno-unused-parameter
12-
// #cgo linux,amd64,static,!harfbuzz LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetype -lm
13-
// #cgo linux,amd64,static,harfbuzz LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetypehb -lm
14-
// #cgo linux,amd64,static,harfbuzz,subset LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetypehb-subset -lm
12+
// #cgo linux,amd64,static,!harfbuzz LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetype -lbz2 -lpng16 -lz -lm
13+
// #cgo linux,amd64,static,harfbuzz LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetypehb -lharfbuzz -lfreetypehb -lbz2 -lpng16 -lz -lm
14+
// #cgo linux,amd64,static,harfbuzz,subset LDFLAGS: -L${SRCDIR}/linux_amd64/lib -lfreetypehb -lharfbuzz -lharfbuzz-subset -lbz2 -lpng16 -lz -lm
1515
//
1616
// #include <stdlib.h>
1717
// #include <ft2build.h>

2.10.1/linux_386/lib/libbz2.a

101 KB
Binary file not shown.

2.10.1/linux_386/lib/libfreetype.a

-558 KB
Binary file not shown.

2.10.1/linux_386/lib/libfreetype.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libfreetype.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libfreetype.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/zlib/lib -lbz2 -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib/libpng16.la -lm -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libfreetype.
26+
current=23
27+
age=17
28+
revision=1
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib'

2.10.1/linux_386/lib/libfreetypehb.a

-10.2 MB
Binary file not shown.

2.10.1/linux_386/lib/libfreetypehb.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libfreetype.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libfreetype.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/zlib/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/harfbuzz/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/harfbuzz/lib/libharfbuzz.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib/libfreetype.la -lbz2 /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib/libpng16.la -lm -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libfreetype.
26+
current=23
27+
age=17
28+
revision=1
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetypehb/lib'
5.31 MB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libharfbuzz-subset.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-0.1
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libharfbuzz-subset.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/harfbuzz/lib/libharfbuzz.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib/libfreetype.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/zlib/lib -lbz2 -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib/libpng16.la -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libharfbuzz-subset.
26+
current=20503
27+
age=20503
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/harfbuzz/lib'

2.10.1/linux_386/lib/libharfbuzz.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libharfbuzz.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-0.1
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libharfbuzz.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/freetype/lib/libfreetype.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/zlib/lib -lbz2 -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib/libpng16.la -lm -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libharfbuzz.
26+
current=20503
27+
age=20503
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/harfbuzz/lib'

2.10.1/linux_386/lib/libpng16.a

325 KB
Binary file not shown.

2.10.1/linux_386/lib/libpng16.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libpng16.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libpng16.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/zlib/lib -lz -lm'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libpng16.
26+
current=53
27+
age=37
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_386/libpng/lib'

2.10.1/linux_386/lib/libz.a

132 KB
Binary file not shown.

2.10.1/linux_amd64/lib/libbz2.a

115 KB
Binary file not shown.

2.10.1/linux_amd64/lib/libfreetype.a

-659 KB
Binary file not shown.

2.10.1/linux_amd64/lib/libfreetype.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libfreetype.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libfreetype.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/zlib/lib -lbz2 -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib/libpng16.la -lm -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libfreetype.
26+
current=23
27+
age=17
28+
revision=1
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetype/lib'
-11.9 MB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libfreetype.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libfreetype.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/zlib/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/harfbuzz/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/harfbuzz/lib/libharfbuzz.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetype/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetype/lib/libfreetype.la -lbz2 /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib/libpng16.la -lm -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libfreetype.
26+
current=23
27+
age=17
28+
revision=1
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetypehb/lib'
6.27 MB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libharfbuzz-subset.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-0.1
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname=''
9+
10+
# Names of this library.
11+
library_names=''
12+
13+
# The name of the static archive.
14+
old_library='libharfbuzz-subset.a'
15+
16+
# Linker flags that cannot go in dependency_libs.
17+
inherited_linker_flags=''
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/harfbuzz/lib/libharfbuzz.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetype/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/freetype/lib/libfreetype.la -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/bzip2/lib -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/zlib/lib -lbz2 -L/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib /home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/libpng/lib/libpng16.la -lz'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libharfbuzz-subset.
26+
current=20503
27+
age=20503
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/home/travis/gopath/src/github.com/flga/freetype-builds/build/linux_amd64/harfbuzz/lib'

0 commit comments

Comments
 (0)