Package Details: lnd-git 0.17.3.beta.r15704.c32edbd73-1

Git Clone URL: https://aur.archlinux.org/lnd-git.git (read-only, click to copy)
Package Base: lnd-git
Description: The Lightning Network Daemon, for secure off-chain bitcoin transactions.
Upstream URL: https://github.com/lightningnetwork/lnd
Keywords: bitcoin cryptocurrency lightningnetwork lightning_network lnd
Licenses: MIT
Conflicts: lnd
Provides: lnd, lnd-cli
Submitter: thann
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 4
Popularity: 0.000000
First Submitted: 2017-06-13 03:10 (UTC)
Last Updated: 2023-12-11 00:42 (UTC)

Dependencies (4)

Required by (13)

Sources (1)

Latest Comments

1 2 Next › Last »

cotsuka commented on 2021-11-17 18:52 (UTC)

I'm having a hard time figuring out how to get tags to work properly with the final, installed version. I see the default build tags set in the PKGBUILD, but the built executable says tags="". I know the tags were actually built, but programs like loop check against the built executable's tags and say it doesn't have the right build tags to continue.

Anybody find a solution to this? I'm very certain I'm just missing a step when attempting to update the PKGBUILD.

pizzaman commented on 2020-04-22 10:02 (UTC)

@JKAbrams Should be working now.

JKAbrams commented on 2020-04-21 05:29 (UTC) (edited on 2020-04-21 05:29 (UTC) by JKAbrams)

pkgver gets a bit messed up:

==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.

==> ERROR: pkgver() generated an invalid version: cert/v1.0.2.r1.g4ed0a35b

pizzaman commented on 2018-12-12 10:14 (UTC) (edited on 2018-12-12 10:19 (UTC) by pizzaman)

@blacktemplar Upstream upgraded their supported Go version 1.10->1.11

With Go 1.11 (https://blog.golang.org/go1.11) they introduced "modules" which changes how packages are installed. The dependency dep is not needed anymore.

PKGBUILD changed substantially.

dmp1ce commented on 2018-12-10 16:41 (UTC)

Sorry. I forgot, I'm building from my github repository. https://github.com/dmp1ce/lnd-git

It looks like this repository needs and update. I removed dependency on dep.

blacktemplar commented on 2018-12-10 13:45 (UTC) (edited on 2018-12-10 13:49 (UTC) by blacktemplar)

@dmp1ce

I just retried and still get the error. The command "dep ensure" results in the error, I use the following dep version: (output of dep version)

   dep:
    version     : devel
    build date  : 
    git hash    : 
    go version  : go1.10.3
    go compiler : gc
    platform    : linux/amd64
    features    : ImportDuringSolve=false

dmp1ce commented on 2018-12-10 12:11 (UTC)

@blacktemplar possibly a temporary upstream issue. The package is building fine for me now.

blacktemplar commented on 2018-12-10 10:45 (UTC)

Just tried to install this and got the following error in package():

"could not find project Gopkg.toml, use dep init to initiate a manifest"

dmp1ce commented on 2018-07-18 14:37 (UTC)

I updated the PKGBUILD which now works for me. https://github.com/dmp1ce/lnd-git

dmp1ce commented on 2018-07-17 18:00 (UTC) (edited on 2018-07-17 18:32 (UTC) by dmp1ce)

Something along these lines might get it compiling:

diff --git a/PKGBUILD b/PKGBUILD
index 3e3d6cb..f1d1611 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 # Upstream: https://github.com/lightningnetwork/lnd

 pkgname=('lnd-git')
-pkgver=0.2.1.alpha.291.ge4563ca
+pkgver=0.4.2.beta.381.g6dff599d
 pkgrel=1
 pkgdesc='The Lighting Network Daemon, for secure off-chain bitcoin transactions.'
 arch=('i686' 'x86_64')
@@ -17,27 +17,34 @@ conflicts=('btcd')
 source=("$pkgname::git+https://github.com/lightningnetwork/lnd.git")
 md5sums=('SKIP')

+# create a fake go path directory and pushd into it
+# $1 real directory
+# $2 gopath directory
+_fake_gopath_pushd() {
+    mkdir -p "$GOPATH/src/${2%/*}"
+    rm -f "$GOPATH/src/$2"
+    ln -rsT "$1" "$GOPATH/src/$2"
+    pushd  "$GOPATH/src/$2" >/dev/null
+}
+
+_fake_gopath_popd() {
+    popd >/dev/null
+}
+
 pkgver() {
   cd $pkgname
   git describe --tags | sed 's/^v//;s/-/./g'
 }

-prepare() {
+build() {
   export GOPATH="$srcdir"
-  rm -fr "$srcdir/src"
-  git clone "$srcdir/$pkgname" "$GOPATH/src/github.com/lightningnetwork/lnd"
+  _fake_gopath_pushd lnd-git github.com/lightningnetwork/lnd
+  go get -d -v ./...
+  make && make install
+  _fake_gopath_popd
 }

 package() {
-  export GOPATH="$srcdir"
-  cd "$GOPATH/src/github.com/lightningnetwork/lnd"
-  glide install
-  go install . ./cmd/...
-  go get -u github.com/roasbeef/btcutil
-  cd $GOPATH/src/github.com/roasbeef/btcd
-  glide install
-  go install . ./cmd/...
-
   for _bin in btcctl btcd lnd; do
     install -Dm 755 "$srcdir/bin/$_bin" -t "$pkgdir/usr/bin";
   done

I'm not sure because right now I'm getting these errors:

github.com/awalterschulze/gographviz/ast
github.com/awalterschulze/gographviz/internal/errors
# github.com/lightningnetwork/lnd/chainntnfs/neutrinonotify
chainntnfs/neutrinonotify/neutrino.go:145:3: undefined: neutrino.WatchTxIDs
chainntnfs/neutrinonotify/neutrino.go:322:7: undefined: neutrino.AddTxIDs
chainntnfs/neutrinonotify/neutrino.go:631:3: undefined: neutrino.WatchOutPoints
chainntnfs/neutrinonotify/neutrino.go:667:3: undefined: neutrino.AddOutPoints
github.com/awalterschulze/gographviz/internal/lexer
# github.com/lightningnetwork/lnd/routing/chainview
routing/chainview/neutrino.go:109:3: undefined: neutrino.WatchOutPoints
routing/chainview/neutrino.go:326:23: undefined: builder.OutPointToFilterEntry
routing/chainview/neutrino.go:333:3: undefined: neutrino.AddOutPoints
# github.com/lightningnetwork/lnd/lnwallet/btcwallet
lnwallet/btcwallet/blockchain.go:44:4: undefined: neutrino.WatchOutPoints
github.com/awalterschulze/gographviz/internal/parser
github.com/lightningnetwork/lnd/lntest
github.com/awalterschulze/gographviz
github.com/lightningnetwork/lnd/cmd/lncli
# github.com/lightningnetwork/lnd/cmd/lncli
cmd/lncli/commands.go:2410:22: cannot use attrs (type gographviz.Attrs) as type map[string]string in argument to graphCanvas.AddNode
cmd/lncli/commands.go:2448:57: cannot use gographviz.Attrs literal (type gographviz.Attrs) as type map[string]string in argument to graphCanvas.AddEdge
==> ERROR: A failure occurred in build().
    Aborting...