Package Details: f4pga-git r781.5c805fa-2

Git Clone URL: https://aur.archlinux.org/f4pga-git.git (read-only, click to copy)
Package Base: f4pga-git
Description: F4PGA tools
Upstream URL: https://github.com/chipsalliance/f4pga
Licenses: Apache
Conflicts: f4pga, symbiflow-arch-defs-toolchain
Provides: f4pga
Submitter: xiretza
Maintainer: None
Last Packager: xiretza
Votes: 0
Popularity: 0.000000
First Submitted: 2022-05-22 14:41 (UTC)
Last Updated: 2022-06-03 17:05 (UTC)

Latest Comments

amibranch commented on 2023-10-07 13:10 (UTC) (edited on 2023-10-07 13:14 (UTC) by amibranch)

I was able to build and package commit 9c049e2 by applying the following changes to the PKGBUILD:

--- PKGBUILD
+++ PKGBUILD
@@ -26,12 +26,6 @@
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

-prepare() {
-   cd "$_pkgname"
-
-   patch -p1 < "$srcdir/0001-Use-actual-paths-instead-of-requiring-users-to-pass-.patch"
-}
-
 build() {
    cd "$_pkgname/f4pga"

@@ -41,6 +35,10 @@
 check() {
    cd "$_pkgname"

+   mkdir -p $srcdir/$_pkgname/build/quicklogic/third_party/
+   git clone https://github.com/QuickLogic-Corp/qlfpga-symbiflow-plugins.git $srcdir/$_pkgname/build/quicklogic/third_party/qlfpga-symbiflow-plugins
+   export PYTHONPATH="${PYTHONPATH}:$srcdir/$_pkgname"
+
    pytest
 }

If you improve the PKGBUILD please add the following dependencies to this package, as they (and probably more) are strictly required:

which python-yaml python-simplejson

I personally have concerns about the relative path towards the quicklogic-plugins-repository, but that is not the problem of this particular pkgbuild, but rather of the underlying repository.

However, I was not yet able to verify f4pga after installation, due to a bug that has already been reported to the authors.

fl.duriez commented on 2022-12-12 12:51 (UTC) (edited on 2022-12-12 12:51 (UTC) by fl.duriez)

Apply this patch to make it work:

diff --git a/PKGBUILD b/PKGBUILD
index ab60061..20263cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ checkdepends=('python-pytest')
 provides=("$_pkgname=$pkgver")
 conflicts=("$_pkgname" "symbiflow-arch-defs-toolchain")
 source=(
-       "git+$url.git"
+       "git+$url.git#commit=5c805fa"
        "0001-Use-actual-paths-instead-of-requiring-users-to-pass-.patch"
 )
 sha256sums=('SKIP'

hug commented on 2022-09-18 11:40 (UTC)

patch does not apply on latest git: ==> Starting prepare()... patching file f4pga/wrappers/sh/init.py Hunk #1 FAILED at 32. 1 out of 1 hunk FAILED -- saving rejects to file f4pga/wrappers/sh/init.py.rej ==> ERROR: A failure occurred in prepare(). Aborting... -> error making: f4pga-git