Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10825

git-lfs fails to compile

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • git users

      On a new funtoo next system using the Zen 2 stage 3 tarball, nvidia and xfce mix-ins and desktop flavour, git-lfs fails to compile. I emerged with the default USE flags. Build output below:

       * Package:    dev-vcs/git-lfs-3.3.0
       * Repository: dev-kit
       * USE:        amd64 elibc_glibc kernel_linux userland_GNU
       * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
      >>> Unpacking source...
      >>> Unpacking git-lfs-3.3.0.tar.gz to /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work
      >>> Source unpacked in /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work
      >>> Preparing source in /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0 ...
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0 ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0 ...
      WORK=/var/tmp/portage/dev-vcs/git-lfs-3.3.0/temp/go-build4192042181
      lfshttp/client.go:20:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/dpotapov/go-spnego
      git/gitattr/tree.go:8:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/git-lfs/gitobj/v2
      git/object_scanner.go:9:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/git-lfs/gitobj/v2/errors
      config/netrc.go:7:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/git-lfs/go-netrc/netrc
      git/filter_process_scanner.go:11:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/git-lfs/pktline
      filepathfilter/filepathfilter.go:7:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/git-lfs/wildmatch/v2
      tr/tr.go:8:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/leonelquinteros/gotext
      tasklog/log.go:12:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/mattn/go-isatty
      tasklog/log.go:13:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/olekukonko/ts
      errors/errors.go:56:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/pkg/errors
      filepathfilter/filepathfilter.go:8:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/rubyist/tracerx
      commands/command_checkout.go:14:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/spf13/cobra
      lfshttp/cookies.go:8:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/github.com/ssgelm/cookiejarparser
      lfshttp/proxy.go:9:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/golang.org/x/net/http/httpproxy
      lfshttp/client.go:27:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/golang.org/x/net/http2
      commands/command_prune.go:24:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/golang.org/x/sync/semaphore
      tools/util_linux.go:11:2: cannot find package "." in:
          /var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0/vendor/golang.org/x/sys/unix
       * ERROR: dev-vcs/git-lfs-3.3.0::dev-kit failed (compile phase):
       *   (no error message)
       * 
       * Call stack:
       *     ebuild.sh, line  93:  Called src_compile
       *   environment, line 689:  Called die
       * The specific snippet of code:
       *       go build "${mygobuildargs[@]}" -o git-lfs git-lfs.go || die;
       * 
       * If you need support, post the output of `emerge --info '=dev-vcs/git-lfs-3.3.0::dev-kit'`,
       * the complete build log and the output of `emerge -pqv '=dev-vcs/git-lfs-3.3.0::dev-kit'`.
       * The complete build log is located at '/var/tmp/portage/dev-vcs/git-lfs-3.3.0/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/git-lfs-3.3.0/temp/environment'.
       * Working directory: '/var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0'
       * S: '/var/tmp/portage/dev-vcs/git-lfs-3.3.0/work/git-lfs-3.3.0'
      

      This is a result of upstream breaking the dependency tree. Before they were using vendored golang dependencies but since the latest release they decided to use golang's package manager to fetch them

            siris siris
            madman10k madman10k
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: