tinywrkb / flatpaks

58 stars 13 forks source link

Rclone fails to build on Linux Mint 20.2 #4

Closed 1bcb closed 3 years ago

1bcb commented 3 years ago

System information: Linux Mint 20.2 Cinnamon Flatpak-builder 1.2.0 (PPA)

Steps to reproduce: 1)Clone the repository 2)Create a build directory 3)Install the golang sdk extension 4)Attempt to build org.rclone.rclone

The build process fails with the message Error: module rclone: Child process exited with code 2

Here is the full console output:

flatpak-builder --install --user --force-clean --state-dir=build/flatpak-builder --repo=build/flatpak-repo build/flatpak-target flatpaks/org.rclone.rclone/org.rclone.rclone.yaml
Downloading sources
Initializing build dir
Committing stage init to cache
Starting build of org.rclone.rclone
========================================================================
Building module rclone in /home/bgb/temp-downloads/Rclone-Flatpak-Test/build/flatpak-builder/build/rclone-1
========================================================================
Running: go get github.com/rclone/rclone@latest
go: downloading github.com/rclone/rclone v1.57.0
go: downloading github.com/ncw/go-acd v0.0.0-20201019170801-fe55f33415b1
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
go: downloading github.com/spf13/cobra v1.2.1
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/Azure/azure-pipeline-go v0.2.3
go: downloading github.com/Azure/azure-storage-blob-go v0.14.0
go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.14
go: downloading github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
go: downloading github.com/buengese/sgzip v0.1.1
go: downloading github.com/gabriel-vasile/mimetype v1.3.1
go: downloading github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.3
go: downloading github.com/Azure/go-autorest v14.2.0+incompatible
go: downloading google.golang.org/api v0.54.0
go: downloading github.com/jlaffaye/ftp v0.0.0-20210307004419-5d4190119067
go: downloading github.com/rfjakob/eme v1.1.2
go: downloading golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
go: downloading go.etcd.io/bbolt v1.3.6
go: downloading golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d
go: downloading golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
go: downloading github.com/colinmarc/hdfs/v2 v2.2.0
go: downloading github.com/ncw/swift/v2 v2.0.1
go: downloading github.com/jcmturner/gokrb5/v8 v8.4.2
go: downloading github.com/koofr/go-httpclient v0.0.0-20200420163713-93aa7c75b348
go: downloading github.com/koofr/go-koofrclient v0.0.0-20190724113126-8e5366da203a
go: downloading github.com/t3rm1n4l/go-mega v0.0.0-20200416171014-ffad7fcb44b8
go: downloading github.com/aws/aws-sdk-go v1.40.27
go: downloading github.com/yunify/qingstor-sdk-go/v3 v3.2.0
go: downloading github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55
go: downloading github.com/pkg/sftp v1.13.2
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/xanzy/ssh-agent v0.3.1
go: downloading github.com/google/uuid v1.3.0
go: downloading storj.io/uplink v1.4.6
go: downloading github.com/billziss-gh/cgofuse v1.5.0
go: downloading github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c
go: downloading github.com/hanwen/go-fuse/v2 v2.1.0
go: downloading bazil.org/fuse v0.0.0-20200524192727-fb710f7dfd05
go: downloading github.com/iguanesolutions/go-systemd/v5 v5.1.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading github.com/nsf/termbox-go v1.1.1
go: downloading github.com/a8m/tree v0.0.0-20210414114729-ce3525c5c2ef
go: downloading github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004
go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/prometheus/client_golang v1.11.0
go: downloading github.com/Unknwon/goconfig v0.0.0-20200908083735-df7de6a44db8
go: downloading github.com/shirou/gopsutil/v3 v3.21.8
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading github.com/hanwen/go-fuse v1.0.0
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/mattn/go-ieproxy v0.0.1
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/klauspost/compress v1.13.4
go: downloading cloud.google.com/go v0.93.3
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/Azure/go-autorest/autorest/date v0.3.0
go: downloading github.com/Azure/go-autorest/logger v0.2.1
go: downloading github.com/Azure/go-autorest/tracing v0.6.0
go: downloading github.com/form3tech-oss/jwt-go v3.2.5+incompatible
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/hashicorp/go-uuid v1.0.2
go: downloading github.com/jcmturner/gofork v1.0.0
go: downloading github.com/jcmturner/dnsutils/v2 v2.0.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/aalpar/deheap v0.0.0-20200318053559-9a0c2883bd56
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.1
go: downloading github.com/artyom/mtab v0.0.0-20141107123140-74b6fd01d416
go: downloading github.com/Microsoft/go-winio v0.5.0
go: downloading github.com/kr/fs v0.1.0
go: downloading github.com/spacemonkeygo/monkit/v3 v3.0.15
go: downloading github.com/zeebo/errs v1.2.2
go: downloading go.uber.org/zap v1.19.0
go: downloading storj.io/common v0.0.0-20210818163656-4667d2cafb27
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/anacrolix/dms v1.2.2
go: downloading github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
go: downloading github.com/go-chi/chi/v5 v5.0.3
go: downloading goftp.io/server v0.4.1
go: downloading github.com/abbot/go-http-auth v0.4.0
go: downloading golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b
go: downloading github.com/mattn/go-isatty v0.0.13
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.30.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading github.com/StackExchange/wmi v1.2.1
go: downloading github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading google.golang.org/grpc v1.40.0
go: downloading go.opencensus.io v0.23.0
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading google.golang.org/protobuf v1.27.1
go: downloading github.com/googleapis/gax-go v2.0.0+incompatible
go: downloading github.com/russross/blackfriday v1.5.2
go: downloading go.uber.org/atomic v1.9.0
go: downloading go.uber.org/multierr v1.7.0
go: downloading github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading storj.io/drpc v0.0.24
go: downloading github.com/vivint/infectious v0.0.0-20200605153912-25a574ae18a3
go: downloading github.com/tklauser/go-sysconf v0.3.9
go: downloading github.com/jcmturner/goidentity/v6 v6.0.1
go: downloading github.com/jcmturner/aescts/v2 v2.0.0
go: downloading github.com/jcmturner/rpc/v2 v2.0.3
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/go-ole/go-ole v1.2.5
go: downloading github.com/calebcase/tmpfile v1.0.3
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading google.golang.org/genproto v0.0.0-20210820002220-43fce44e7af1
go: downloading github.com/tklauser/numcpus v0.3.0
go get: installing executables with 'go get' in module mode is deprecated.
    Use 'go install pkg@version' instead.
    For more information, see https://golang.org/doc/go-get-install-deprecation
    or run 'go help get' or 'go help install'.
# github.com/rclone/rclone/backend/ftp
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:331:33: undefined: ftp.DialWithShutTimeout
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:334:33: undefined: ftp.DialWithWritingMDTM
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:507:16: c.IsGetTimeSupported undefined (type *ftp.ServerConn has no field or method IsGetTimeSupported)
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:508:16: c.IsSetTimeSupported undefined (type *ftp.ServerConn has no field or method IsSetTimeSupported)
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:509:16: c.IsTimePreciseInList undefined (type *ftp.ServerConn has no field or method IsTimePreciseInList)
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:999:21: c.GetTime undefined (type *ftp.ServerConn has no field or method GetTime)
pkg/mod/github.com/rclone/rclone@v1.57.0/backend/ftp/ftp.go:1022:9: c.SetTime undefined (type *ftp.ServerConn has no field or method SetTime)
Error: module rclone: Child process exited with code 2
tinywrkb commented 3 years ago

Should be solved now with 409640a3a61e405ddd5e92da7bfa45335706dd65.