Package Details: seaweedfs-git r2620.7de121d9-2

Git Clone URL: https://aur.archlinux.org/seaweedfs-git.git (read-only, click to copy)
Package Base: seaweedfs-git
Description: Seaweed-FS is a simple and highly scalable distributed file system, written on Go.
Upstream URL: https://github.com/chrislusf/seaweedfs
Licenses: Apache
Conflicts: seaweedfs
Provides: seaweedfs
Submitter: krevedko
Maintainer: None
Last Packager: krevedko
Votes: 3
Popularity: 0.000000
First Submitted: 2015-08-04 12:02 (UTC)
Last Updated: 2019-10-17 08:35 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

krevedko commented on 2021-10-06 13:38 (UTC) (edited on 2021-10-06 13:47 (UTC) by krevedko)

Thanks for patch, but i still unable take a time to debug/fix this patch, because of many errors like:

$ makepkg
...
rm: cannot remove '/var/user/projects/pkgbuild/seaweedfs-git/pkg/mod/gocloud.dev/pubsub/rabbitpubsub@v0.20.0/rabbit.go': Permission denied
rm: cannot remove '/var/user/projects/pkgbuild/seaweedfs-git/pkg/mod/gocloud.dev/pubsub/rabbitpubsub@v0.20.0/rabbit_test.go': Permission denied
rm: cannot remove '/var/user/projects/pkgbuild/seaweedfs-git/pkg/mod/gocloud.dev/pubsub/rabbitpubsub@v0.20.0/amqp.go': Permission denied

==> ERROR: An unknown error has occurred. Exiting...

Looks like, problems with GOFLAGS=... -modcacherw flag here. Will take next try next days.

jonathon commented on 2021-10-06 01:16 (UTC)

Heh, "this patch I made" while borrowing heavily from seaweedfs. ;)

robin.ysh commented on 2021-10-03 11:06 (UTC) (edited on 2021-10-03 11:07 (UTC) by robin.ysh)

The build currently fails because the Makefile has been removed in release 2.65 in this commit https://github.com/chrislusf/seaweedfs/commit/93741a67525a4aad4c07a3e0c29c15d38af7607e, can the maintainer take a look at this patch I made and possibly merge it? Thanks

diff --git a/PKGBUILD b/PKGBUILD
index 9e84416..502e953 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,42 @@
 pkgname=seaweedfs-git
 __gitroot=github.com/chrislusf/seaweedfs
-pkgver=r2620.7de121d9
-pkgrel=2
+pkgver=r6418.b2978491
+pkgrel=1
 pkgdesc="Seaweed-FS is a simple and highly scalable distributed file system, written on Go."
 arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h' 'arm')
 url="https://github.com/chrislusf/seaweedfs"
 license=('APACHE')
 depends=( )
-makedepends=('git' 'go' 'mercurial' 'gcc')
+makedepends=('git' 'go')
 provides=('seaweedfs')
 conflicts=('seaweedfs')
 source=("$pkgname::git+https://${__gitroot}")
 sha256sums=('SKIP')

+prepare() {
+  export GOPATH="${SRCDEST:-$srcdir}"
+
+  cd $srcdir/$pkgname
+  go mod vendor
+}
+
 build() {
-  cd "$srcdir/$pkgname"
-  make
+  export CGO_CPPFLAGS="$CPPFLAGS"
+  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CXXFLAGS="$CXXFLAGS"
+  export CGO_LDFLAGS="$LDFLAGS"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw"
+
+  cd $srcdir/$pkgname/weed
+  GOPATH="${SRCDEST:-$srcdir}" go build -gcflags="all=-N -l"
 }

 package() {
-  mkdir -p "$pkgdir/usr/bin"
-  install -p -m755 "$srcdir/$pkgname/weed/weed" "$pkgdir/usr/bin"
+  cd $srcdir/$pkgname
+  install -D     weed/weed "$pkgdir"/usr/bin/weed
+  install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
+  install -Dm644 LICENSE   "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
 pkgver() {
   cd "$srcdir/$pkgname"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"