Package Details: gr-foo-git r169.cc8bfc6-1

Git Clone URL: https://aur.archlinux.org/gr-foo-git.git (read-only, click to copy)
Package Base: gr-foo-git
Description: gnuradio custom blocks by bastibl. Latest git checkout.
Upstream URL: https://github.com/bastibl/gr-foo
Licenses: GPL3
Conflicts: gr-foo
Provides: gr-foo
Submitter: dreieck
Maintainer: fixeria
Last Packager: fixeria
Votes: 2
Popularity: 0.000000
First Submitted: 2021-12-19 18:31 (UTC)
Last Updated: 2022-05-06 17:31 (UTC)

Required by (1)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2

lbaldesi commented on 2021-09-30 22:14 (UTC)

Hi, the problem comes from an error in the CMake module installed with Gnuradio 3.9.2. I turns out that it is working flawlessly with version 3.9.3.

To make the package compile with version 3.9.2 (the one in the official repo), the CMakeFiles.txt file must be patched adding these lines:

########################################################################
# PyBind11 Related
########################################################################

find_package(pybind11 REQUIRED)
execute_process(
    COMMAND "${PYTHON_EXECUTABLE}" -c
    "try:\n import numpy\n import os\n inc_path = numpy.get_include()\n if os.path.exists(os.path.join(inc_path, 'numpy', 'arrayobject.h')):\n  print(inc_path, end='')\nexcept:\n pass"
    OUTPUT_VARIABLE PYTHON_NUMPY_INCLUDE_DIR)

dreieck commented on 2021-09-30 16:28 (UTC)

After switching to branch maint-3.9, I get the error

-- Python checking for pygccxml - not found
CMake Error at /usr/lib64/cmake/gnuradio/GrPybind.cmake:243 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".
Call Stack (most recent call first):
  python/bindings/CMakeLists.txt:46 (GR_PYBIND_MAKE_OOT)

Even when python-pygccxml is installed. (Maybe it needs the python2 version?)

dreieck commented on 2021-09-30 16:27 (UTC) (edited on 2021-12-19 18:13 (UTC) by dreieck)

You need to switch the source to the branch maint-3.9:

source=('git+git://github.com/bastibl/gr-foo#branch=maint-3.9')

(And in build(), I removed the manual checkout, since #branch=maint-3.9 in the source array already checks out that specific branch.)

Also, then consider setting the dependencies more precisely:

depends=('gnuradio>=3.9' 'gnuradio<3.10')

Thanks for maintaining!

dreieck commented on 2021-09-30 13:38 (UTC)

The $pkgver of this package uses latest git commit hash in the beginning. This is not monotoneously increasing but erratic with respect to version number ordering.

Package version must be strictly monotoneously increasing.

So please change the versioning scheme accordingly. Try to see if there is some official upstream version; if so, use that first.

Then (or only), use somethign which is monotoneously increasing, i.e. git commit cound, for information sake followed by latest commit date. The git commit hash can then be added.

Don't forget to increment $epoch when changing versioning scheme.

Thanks for maintaining!

dreieck commented on 2021-09-30 13:34 (UTC)

Fails to build for me with

CMake Error at swig/CMakeLists.txt:36 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:50 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".

The latest gnuradio from the community repository is installed, version 3.9.2.0-3.

Full build() output:

==> Starting build()...
Branch 'maint-3.8' set up to track remote branch 'maint-3.8' from 'origin'.
Switched to a new branch 'maint-3.8'
-- The CXX compiler identification is GNU 11.1.0
-- The C compiler identification is GNU 11.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found UHD: /usr/lib/libuhd.so  
-- UHD library found.
-- Found LOG4CPP: /usr/lib/liblog4cpp.so
-- Checking for module 'gmp'
--   Found gmp, version 6.2.1
-- Found GMP: /usr/lib/libgmpxx.so  
-- Using GMP.
-- Found MPLIB: /usr/lib/libgmpxx.so  
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.76.0") found components: date_time program_options filesystem system regex thread unit_test_framework 
-- Found Volk: Volk::volk  
-- User set python executable /usr/bin/python3
-- Found PythonInterp: /usr/bin/python3 (found version "3.9.7") 
-- Found PythonLibs: /usr/lib/libpython3.9.so (found suitable exact version "3.9.7") 
-- Checking for module 'sndfile'
--   Found sndfile, version 1.0.31
-- Found SNDFILE: /usr/lib/libsndfile.so  
-- Checking for module 'fftw3f >= 3.0'
--   Found fftw3f , version 3.3.10
-- Found FFTW3f: /lib/libfftw3f.so  
-- Found Git: /usr/bin/git  
-- Extracting version information from git describe...
-- Using install prefix: /usr
-- Building for version: 7557bf48 / 1.1.0git
-- Found SWIG: /usr/bin/swig (found version "4.0.2")  
-- Found PythonLibs: /usr/lib/libpython3.9.so (found version "3.9.7") 
CMake Error at swig/CMakeLists.txt:36 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:50 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".


-- Configuring incomplete, errors occurred!
See also "/[...]/gr-foo/src/gr-foo/build/CMakeFiles/CMakeOutput.log".
See also "/[...]/gr-foo/src/gr-foo/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

Thanks for maintaining!

lbaldesi commented on 2020-10-28 15:22 (UTC) (edited on 2020-10-28 15:26 (UTC) by lbaldesi)

Hi and thank you for maintaining this pkg! The build fails as the master branch targets a version of GNU radio (3.9) which is not available either in AUR or the standard pacman repos. Changing the git branch to "maint-3.8" fixes the bug; git patch output follows:

diff --git a/PKGBUILD b/PKGBUILD
index d848130..dc02ace 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Mainintainer : Lucas Rooyakkers <lucas dot rooyakkers at queensu at ca>

 pkgname='gr-foo'
-pkgver=0236c7d
+pkgver=e17edbd
 pkgrel=1
 pkgdesc="gnuradio custom blocks by bastibl"
 arch=('any')
@@ -21,7 +21,7 @@ pkgver() {

 build() {
   cd "$_gitname"
-  git checkout master
+  git checkout maint-3.8
   mkdir build && cd build
   cmake -DCMAKE_INSTALL_PREFIX=/usr ../
   make