Package Details: libsigrok-git 0.5.2.r1862.g0bc2487-1

Git Clone URL: https://aur.archlinux.org/libsigrok-git.git (read-only, click to copy)
Package Base: libsigrok-git
Description: Client software that supports various hardware logic analyzers, core library
Upstream URL: https://www.sigrok.org/wiki/Libsigrok
Licenses: GPL-3.0-or-later
Conflicts: libsigrok
Provides: libsigrok
Submitter: Manouchehri
Maintainer: xiota
Last Packager: xiota
Votes: 14
Popularity: 0.000000
First Submitted: 2015-09-08 21:55 (UTC)
Last Updated: 2026-03-03 20:43 (UTC)

Latest Comments

1 2 Next › Last »

arti commented on 2026-08-21 13:06 (UTC)

it needs more sed to build

sed -e 's&PyInt_Check&PyLong_Check&g; s&PyInt_AsLong&PyLong_AsLong&g' \
  -i "bindings/python/sigrok/core/classes.i"

taotieren commented on 2024-12-31 09:20 (UTC) (edited on 2024-12-31 10:37 (UTC) by taotieren)

Hi. Can you help to add libsigrokcxx library? The smuview-git package needs this library version 0.6.0. Thanks for your help.

# Maintainer: David Manouchehri <manouchehri@riseup.net>
# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
# Contributor: veox <veox at wemakethings dot net>
# Contributor: Vuokko <vuokko@msn.com>

_gitname='libsigrok'
pkgname="${_gitname}-git"
pkgver=0.2.1.r4392.gf06f7881
pkgrel=1
pkgdesc="Client software that supports various hardware logic analyzers, core library (git version)"
arch=('armv6h' 'armv7h' 'i686' 'x86_64')
url="http://www.sigrok.org/wiki/Libsigrok"
license=('GPL-3.0-only')
depends=(
  'glibc' 'glib2' 'gcc-libs' 'libzip' 'libftdi' 'libserialport-git'
  'glibmm' 'libieee1284' 'nettle' 'libtirpc' 'libsigc++' 'libusb'
  'hidapi' 'hicolor-icon-theme' 'python' 'zlib'
)
makedepends=('git' 'autoconf-archive' 'doxygen'
  'swig' 'python-setuptools' 'python-numpy' 'python-gobject' 'check'
)
conflicts=("${_gitname}")
provides=("${_gitname}")
source=(
  # "git://sigrok.org/${_gitname}"
  git+https://github.com/sigrokproject/libsigrok.git
)
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --exclude 'libsigrok-unreleased' --long | sed 's/^libsigrok-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  rm -rf "${srcdir}/build"
  mkdir -p "${srcdir}/build"
  cd "${srcdir}/${_gitname}"
  ./autogen.sh

  cd "${srcdir}/build"
  echo "CONFIGURE"
  ../${_gitname}/configure --prefix=/usr --disable-java --disable-ruby
  make
}

package() {
  cd "${srcdir}/build"

  make DESTDIR="${pkgdir}" PREFIX=/usr install

  cd ../"${_gitname}"
  install -Dm 644 'contrib/60-libsigrok.rules' "${pkgdir}/usr/lib/udev/rules.d/60-libsigrok.rules"
  install -Dm 644 'contrib/61-libsigrok-uaccess.rules' "${pkgdir}/usr/lib/udev/rules.d/61-libsigrok-uaccess.rules"
}

hasechris commented on 2024-08-15 22:20 (UTC) (edited on 2024-08-15 22:33 (UTC) by hasechris)

grmpf... upstream repo does not build anymore. Does someone maybe has an information regarding this error? doxygen is installed on my manjaro

make  all-am
  GEN      include/libsigrok/git-version.h
  CC       src/serial.lo
  CC       src/serial_bt.lo
  CC       src/serial_hid.lo
  CC       src/serial_hid_bu86x.lo
  CC       src/serial_hid_ch9325.lo
  CC       src/serial_hid_cp2110.lo
  CC       src/serial_hid_victor.lo
  CC       src/serial_libsp.lo
  CC       src/serial_tcpraw.lo
  CC       src/scpi/scpi_serial.lo
  CC       src/ezusb.lo
  CC       src/usb.lo
  CC       src/scpi/scpi_usbtmc_libusb.lo
  CC       src/drivers.lo
  CC       src/driver_list_start.lo
  CC       src/driver_list_stop.lo
  GEN      doxy/xml/index.xml
make[1]: *** [Makefile:5843: doxy/xml/index.xml] Fehler 127
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet …
make: *** [Makefile:2211: all] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

EDIT: nevermind. Found the problem with editing the makefile (the error was piped to /dev/null...)

  GEN      doxy/xml/index.xml
doxygen: error while loading shared libraries: libclang.so.18.1: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:5866: doxy/xml/index.xml] Fehler 127
make: *** [Makefile:2218: all] Fehler 2

Seems i have to update my OS to latest version.

shaybox commented on 2022-02-12 22:01 (UTC) (edited on 2022-02-12 22:05 (UTC) by shaybox)

Could you add https://github.com/sigrokproject/libsigrok as a fallback source, the sigrok.org git repos have been experiencing outages for months

fenugrec commented on 2021-12-17 01:46 (UTC)

Hi, could you add "libgpib" (or linux-gpib ? not sure) as an optional dependency ? hp3478a support will not be enabled otherwise, it seems (looking at config.log)

anatolik commented on 2021-03-25 18:26 (UTC)

@ChaoticEngima it is a problem with liftdi and going to be fixed with "libftdi 1.5-2".

https://github.com/archlinux/svntogit-community/commit/38bd4a50b9c9b3ea6e426868f7f9c4caea7201c5#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a

ChaoticEngima commented on 2021-03-25 18:22 (UTC)

I was getting a build failure with one of the features in libsigrok. Installing libftdi-compat seems to correct the issue. This should probably be added as a dependency to this package.

  CC       src/hardware/asix-sigma/protocol.lo
In file included from ../libsigrok/src/hardware/asix-sigma/protocol.c:28:
../libsigrok/src/hardware/asix-sigma/protocol.h:29:10: fatal error: ftdi.h: No such file or directory
   29 | #include <ftdi.h>
      |          ^~~~~~~~
compilation terminated.
make[1]: *** [Makefile:3844: src/hardware/asix-sigma/protocol.lo] Error 1
make: *** [Makefile:2063: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: libsigrok-git

codyps commented on 2019-09-01 02:52 (UTC)

Ok. I've added a workaround for the doxygen 1.8.16 issue.

codyps commented on 2019-09-01 02:43 (UTC)

Follow up: current build failures are due to a regression present in doxygen 1.8.16 (the current archlinux shipped version of doxygen).

There is an upstream doxygen commit to fix the issue in doxygen:

commit a27369dbf3cccbe4b96bfde1aca49d96d4b396f0
Author: albert-github <albert.tests@gmail.com>
Date:   Tue Aug 13 19:23:42 2019 +0200

    issue #7190 1.8.16: Blank FILE_PATTERNS => no files processed

There's a pretty easy work-around to ("put stuff in FILE_PATTERNS in Doxyfile"), which I'll add here so this package can build

codyps commented on 2019-09-01 02:17 (UTC) (edited on 2019-09-01 02:40 (UTC) by codyps)

Yep, the same appears to be happening for me, even built outside of makepkg. Appears that something is broken-ish about the cxx bindings.

Unfortunately, pulseview needs the cxx bindings, so disabling them isn't a real solution here.

It appears that for some reason enums.py which is using the generated doxy/xml data is emitting none of the data structures it is expected to emit. It appears that the doxy/xml is entirely devoid of kind="enum" attributes that enums.py looks for.

I haven't determined why this is.