@@ -60,7 +60,6 @@ import (
6060
6161 "github.com/ethereum/go-ethereum/internal/build"
6262 "github.com/ethereum/go-ethereum/params"
63- sv "github.com/ethereum/go-ethereum/swarm/version"
6463)
6564
6665var (
8382 executablePath ("clef" ),
8483 }
8584
86- // Files that end up in the swarm*.zip archive.
87- swarmArchiveFiles = []string {
88- "COPYING" ,
89- executablePath ("swarm" ),
90- }
91-
9285 // A debian package is created for all executables listed here.
9386 debExecutables = []debExecutable {
9487 {
@@ -126,35 +119,18 @@ var (
126119 }
127120
128121 // A debian package is created for all executables listed here.
129- debSwarmExecutables = []debExecutable {
130- {
131- BinaryName : "swarm" ,
132- PackageName : "ethereum-swarm" ,
133- Description : "Ethereum Swarm daemon and tools" ,
134- },
135- }
136122
137123 debEthereum = debPackage {
138124 Name : "ethereum" ,
139125 Version : params .Version ,
140126 Executables : debExecutables ,
141127 }
142128
143- debSwarm = debPackage {
144- Name : "ethereum-swarm" ,
145- Version : sv .Version ,
146- Executables : debSwarmExecutables ,
147- }
148-
149129 // Debian meta packages to build and push to Ubuntu PPA
150130 debPackages = []debPackage {
151- debSwarm ,
152131 debEthereum ,
153132 }
154133
155- // Packages to be cross-compiled by the xgo command
156- allCrossCompiledArchiveFiles = append (allToolsArchiveFiles , swarmArchiveFiles ... )
157-
158134 // Distros for which packages are created.
159135 // Note: vivid is unsupported because there is no golang-1.6 package for it.
160136 // Note: wily is unsupported because it was officially deprecated on lanchpad.
@@ -409,9 +385,6 @@ func doArchive(cmdline []string) {
409385 basegeth = archiveBasename (* arch , params .ArchiveVersion (env .Commit ))
410386 geth = "geth-" + basegeth + ext
411387 alltools = "geth-alltools-" + basegeth + ext
412-
413- baseswarm = archiveBasename (* arch , sv .ArchiveVersion (env .Commit ))
414- swarm = "swarm-" + baseswarm + ext
415388 )
416389 maybeSkipArchive (env )
417390 if err := build .WriteArchive (geth , gethArchiveFiles ); err != nil {
@@ -420,10 +393,7 @@ func doArchive(cmdline []string) {
420393 if err := build .WriteArchive (alltools , allToolsArchiveFiles ); err != nil {
421394 log .Fatal (err )
422395 }
423- if err := build .WriteArchive (swarm , swarmArchiveFiles ); err != nil {
424- log .Fatal (err )
425- }
426- for _ , archive := range []string {geth , alltools , swarm } {
396+ for _ , archive := range []string {geth , alltools } {
427397 if err := archiveUpload (archive , * upload , * signer ); err != nil {
428398 log .Fatal (err )
429399 }
@@ -586,8 +556,8 @@ func isUnstableBuild(env build.Environment) bool {
586556}
587557
588558type debPackage struct {
589- Name string // the name of the Debian package to produce, e.g. "ethereum", or "ethereum-swarm"
590- Version string // the clean version of the debPackage, e.g. 1.8.12 or 0.3.0 , without any metadata
559+ Name string // the name of the Debian package to produce, e.g. "ethereum"
560+ Version string // the clean version of the debPackage, e.g. 1.8.12, without any metadata
591561 Executables []debExecutable // executables to be included in the package
592562}
593563
@@ -1023,7 +993,7 @@ func doXgo(cmdline []string) {
1023993
1024994 if * alltools {
1025995 args = append (args , []string {"--dest" , GOBIN }... )
1026- for _ , res := range allCrossCompiledArchiveFiles {
996+ for _ , res := range allToolsArchiveFiles {
1027997 if strings .HasPrefix (res , GOBIN ) {
1028998 // Binary tool found, cross build it explicitly
1029999 args = append (args , "./" + filepath .Join ("cmd" , filepath .Base (res )))
0 commit comments