Package Details: python-flatbuffers-git 1:2.0.6.r130.g6e279164-1

Git Clone URL: https://aur.archlinux.org/flatbuffers-git.git (read-only, click to copy)
Package Base: flatbuffers-git
Description: An efficient cross platform serialization library for Python
Upstream URL: https://google.github.io/flatbuffers/
Licenses: Apache
Conflicts: python-flatbuffers
Provides: python-flatbuffers
Submitter: m3rcuriel
Maintainer: xiretza
Last Packager: xiretza
Votes: 0
Popularity: 0.000000
First Submitted: 2020-02-05 16:02 (UTC)
Last Updated: 2022-07-31 15:45 (UTC)

Dependencies (4)

Required by (9)

Sources (1)

Latest Comments

xiretza commented on 2022-06-15 13:57 (UTC)

  1. Again, please bump epoch=, the new pkgver scheme is not compatible with the old one.
  2. Don't use -DCMAKE_BUILD_TYPE=Release, see the CMake package guidelines: https://wiki.archlinux.org/title/CMake_package_guidelines#Notes_about_-O3

xiretza commented on 2022-06-03 11:14 (UTC)

Hi! Please bump epoch=, the new pkgver scheme is not compatible with the old one.

xiretza commented on 2022-05-20 18:01 (UTC)

Hi, here are a couple patches to fix dependencies, pkgver() and arch=:

From 352041ce0bcaa16d1a873beeea86de5e10bf9dee Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Fri, 20 May 2022 19:51:35 +0200
Subject: [PATCH 1/3] Add missing git makedepends

---
 .SRCINFO | 1 +
 PKGBUILD | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.SRCINFO b/.SRCINFO
index a78ba1a..b64fbda 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,7 @@ pkgbase = flatbuffers-git
    url = https://google.github.io/flatbuffers/
    arch = x86_64
    license = Apache
+   makedepends = git
    makedepends = cmake
    makedepends = python-setuptools
    depends = gcc-libs
diff --git a/PKGBUILD b/PKGBUILD
index e5e1dad..c2062c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ arch=(x86_64)
 url='https://google.github.io/flatbuffers/'
 license=(Apache)
 depends=(gcc-libs)
-makedepends=(cmake python-setuptools)
+makedepends=(git cmake python-setuptools)
 source=(git+https://github.com/google/flatbuffers)
 sha256sums=('SKIP')

--
2.36.1
From 34abfd019b5876595c9616e00fa5556abd26133a Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Fri, 20 May 2022 19:54:53 +0200
Subject: [PATCH 2/3] Fix pkgver

---
 .SRCINFO |  8 ++++----
 PKGBUILD | 11 ++++++-----
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index b64fbda..58bde10 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,8 @@
 pkgbase = flatbuffers-git
    pkgdesc = An efficient cross platform serialization library for C++, with support for Java, C# and Go
-   pkgver = 1856
+   pkgver = 2.0.6.r104.g74a25536
    pkgrel = 1
+   epoch = 1
    url = https://google.github.io/flatbuffers/
    arch = x86_64
    license = Apache
@@ -13,12 +14,11 @@ pkgbase = flatbuffers-git
    sha256sums = SKIP

 pkgname = flatbuffers-git
-   provides = flatbuffers
+   provides = flatbuffers=2.0.6.r104.g74a25536
    conflicts = flatbuffers

 pkgname = python-flatbuffers-git
    pkgdesc = An efficient cross platform serialization library for Python
    depends = python
-   provides = python-flatbuffers
+   provides = python-flatbuffers=2.0.6.r104.g74a25536
    conflicts = python-flatbuffers
-
diff --git a/PKGBUILD b/PKGBUILD
index c2062c8..8924373 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,8 @@
 pkgbase=flatbuffers-git
 _gitbase=flatbuffers
 pkgname=(flatbuffers-git python-flatbuffers-git)
-pkgver=1856
+epoch=1
+pkgver=2.0.6.r104.g74a25536
 pkgrel=1
 pkgdesc='An efficient cross platform serialization library for C++, with support for Java, C# and Go'
 arch=(x86_64)
@@ -17,7 +18,7 @@ sha256sums=('SKIP')

 pkgver() {
   cd ${srcdir}/${_gitbase}
-  git rev-list --count HEAD
+  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }

 prepare() {
@@ -46,7 +47,7 @@ check() {

 package_flatbuffers-git() {
   conflicts=('flatbuffers')
-  provides=('flatbuffers')
+  provides=("flatbuffers=$pkgver")
   cd $_gitbase
   make DESTDIR="$pkgdir" install
   install -Dm755 flatc -t "$pkgdir"/usr/bin
@@ -54,9 +55,9 @@ package_flatbuffers-git() {

 package_python-flatbuffers-git() {
   pkgdesc='An efficient cross platform serialization library for Python'
-  conflicts=('python-flatbuffers')
   depends=(python)
-  provides=('python-flatbuffers')
+  conflicts=('python-flatbuffers')
+  provides=("python-flatbuffers=$pkgver")

   cd $_gitbase/python
   VERSION=$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build
--
2.36.1
From 44fa0f3ac30bb4a174e1cc788f274ae331f4ce5d Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Fri, 20 May 2022 19:56:46 +0200
Subject: [PATCH 3/3] Set arch=any for python package

---
 .SRCINFO | 1 +
 PKGBUILD | 1 +
 2 files changed, 2 insertions(+)

diff --git a/.SRCINFO b/.SRCINFO
index 58bde10..070b749 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -19,6 +19,7 @@ pkgname = flatbuffers-git

 pkgname = python-flatbuffers-git
    pkgdesc = An efficient cross platform serialization library for Python
+   arch = any
    depends = python
    provides = python-flatbuffers=2.0.6.r104.g74a25536
    conflicts = python-flatbuffers
diff --git a/PKGBUILD b/PKGBUILD
index 8924373..c33a097 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -55,6 +55,7 @@ package_flatbuffers-git() {

 package_python-flatbuffers-git() {
   pkgdesc='An efficient cross platform serialization library for Python'
+  arch=(any)
   depends=(python)
   conflicts=('python-flatbuffers')
   provides=("python-flatbuffers=$pkgver")
--
2.36.1

kzd commented on 2022-02-23 06:25 (UTC)

Oddly, this package is failing for me in the build() phase with a bunch of VerifyField errors that want 3 arguments. Building the source repo separately with the same commands seems to work however. Installing the package after having done the successful build worked thereafter but of course this doesn't seem intentional.