build: drop trusty from PPA builds, EOL and incompatible (#29651)
* build: drop trusty from PPA builds, EOL and incompatible * build: add Ubuntu Noble PPA build target
This commit is contained in:
parent
634d037937
commit
ad4fb2c729
51
build/ci.go
51
build/ci.go
@ -117,23 +117,15 @@ var (
|
|||||||
debEthereum,
|
debEthereum,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Distros for which packages are created.
|
// Distros for which packages are created
|
||||||
// Note: vivid is unsupported because there is no golang-1.6 package for it.
|
debDistros = []string{
|
||||||
// Note: the following Ubuntu releases have been officially deprecated on Launchpad:
|
"xenial", // 16.04, EOL: 04/2026
|
||||||
// wily, yakkety, zesty, artful, cosmic, disco, eoan, groovy, hirsuite, impish,
|
"bionic", // 18.04, EOL: 04/2028
|
||||||
// kinetic, lunar
|
"focal", // 20.04, EOL: 04/2030
|
||||||
debDistroGoBoots = map[string]string{
|
"jammy", // 22.04, EOL: 04/2032
|
||||||
"trusty": "golang-1.11", // 14.04, EOL: 04/2024
|
"noble", // 24.04, EOL: 04/2034
|
||||||
"xenial": "golang-go", // 16.04, EOL: 04/2026
|
|
||||||
"bionic": "golang-go", // 18.04, EOL: 04/2028
|
|
||||||
"focal": "golang-go", // 20.04, EOL: 04/2030
|
|
||||||
"jammy": "golang-go", // 22.04, EOL: 04/2032
|
|
||||||
"mantic": "golang-go", // 23.10, EOL: 07/2024
|
|
||||||
}
|
|
||||||
|
|
||||||
debGoBootPaths = map[string]string{
|
"mantic", // 23.10, EOL: 07/2024
|
||||||
"golang-1.11": "/usr/lib/go-1.11",
|
|
||||||
"golang-go": "/usr/lib/go",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is where the tests should be unpacked.
|
// This is where the tests should be unpacked.
|
||||||
@ -708,9 +700,9 @@ func doDebianSource(cmdline []string) {
|
|||||||
|
|
||||||
// Create Debian packages and upload them.
|
// Create Debian packages and upload them.
|
||||||
for _, pkg := range debPackages {
|
for _, pkg := range debPackages {
|
||||||
for distro, goboot := range debDistroGoBoots {
|
for _, distro := range debDistros {
|
||||||
// Prepare the debian package with the go-ethereum sources.
|
// Prepare the debian package with the go-ethereum sources.
|
||||||
meta := newDebMetadata(distro, goboot, *signer, env, now, pkg.Name, pkg.Version, pkg.Executables)
|
meta := newDebMetadata(distro, *signer, env, now, pkg.Name, pkg.Version, pkg.Executables)
|
||||||
pkgdir := stageDebianSource(*workdir, meta)
|
pkgdir := stageDebianSource(*workdir, meta)
|
||||||
|
|
||||||
// Add bootstrapper Go source code
|
// Add bootstrapper Go source code
|
||||||
@ -853,10 +845,7 @@ type debPackage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type debMetadata struct {
|
type debMetadata struct {
|
||||||
Env build.Environment
|
Env build.Environment
|
||||||
GoBootPackage string
|
|
||||||
GoBootPath string
|
|
||||||
|
|
||||||
PackageName string
|
PackageName string
|
||||||
|
|
||||||
// go-ethereum version being built. Note that this
|
// go-ethereum version being built. Note that this
|
||||||
@ -884,21 +873,19 @@ func (d debExecutable) Package() string {
|
|||||||
return d.BinaryName
|
return d.BinaryName
|
||||||
}
|
}
|
||||||
|
|
||||||
func newDebMetadata(distro, goboot, author string, env build.Environment, t time.Time, name string, version string, exes []debExecutable) debMetadata {
|
func newDebMetadata(distro, author string, env build.Environment, t time.Time, name string, version string, exes []debExecutable) debMetadata {
|
||||||
if author == "" {
|
if author == "" {
|
||||||
// No signing key, use default author.
|
// No signing key, use default author.
|
||||||
author = "Ethereum Builds <fjl@ethereum.org>"
|
author = "Ethereum Builds <fjl@ethereum.org>"
|
||||||
}
|
}
|
||||||
return debMetadata{
|
return debMetadata{
|
||||||
GoBootPackage: goboot,
|
PackageName: name,
|
||||||
GoBootPath: debGoBootPaths[goboot],
|
Env: env,
|
||||||
PackageName: name,
|
Author: author,
|
||||||
Env: env,
|
Distro: distro,
|
||||||
Author: author,
|
Version: version,
|
||||||
Distro: distro,
|
Time: t.Format(time.RFC1123Z),
|
||||||
Version: version,
|
Executables: exes,
|
||||||
Time: t.Format(time.RFC1123Z),
|
|
||||||
Executables: exes,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ Source: {{.Name}}
|
|||||||
Section: science
|
Section: science
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: {{.Author}}
|
Maintainer: {{.Author}}
|
||||||
Build-Depends: debhelper (>= 8.0.0), {{.GoBootPackage}}
|
Build-Depends: debhelper (>= 8.0.0), golang-go
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
Homepage: https://ethereum.org
|
Homepage: https://ethereum.org
|
||||||
Vcs-Git: https://github.com/ethereum/go-ethereum.git
|
Vcs-Git: https://github.com/ethereum/go-ethereum.git
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Launchpad rejects Go's access to $HOME, use custom folders
|
# Launchpad rejects Go's access to $HOME, use custom folders
|
||||||
export GOCACHE=/tmp/go-build
|
export GOCACHE=/tmp/go-build
|
||||||
export GOPATH=/tmp/gopath
|
export GOPATH=/tmp/gopath
|
||||||
export GOROOT_BOOTSTRAP={{.GoBootPath}}
|
export GOROOT_BOOTSTRAP=/usr/lib/go
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
# Don't try to be smart Launchpad, we know our build rules better than you
|
# Don't try to be smart Launchpad, we know our build rules better than you
|
||||||
|
Loading…
Reference in New Issue
Block a user