Package Details: python-pocketsphinx-git r185.769492d-2

Git Clone URL: https://aur.archlinux.org/python-pocketsphinx-git.git (read-only, click to copy)
Package Base: python-pocketsphinx-git
Description: Python interface to CMU SphinxBase and PocketSphinx libraries
Upstream URL: https://github.com/bambocher/pocketsphinx-python
Licenses: BSD
Conflicts: python-pocketsphinx, python3-pocketsphinx, python3-pocketsphinx-git
Provides: python-pocketsphinx, python3-pocketsphinx, python3-pocketsphinx-git
Submitter: ImNtReal
Maintainer: EndlessEden
Last Packager: EndlessEden
Votes: 3
Popularity: 0.000000
First Submitted: 2016-07-09 23:17 (UTC)
Last Updated: 2022-07-08 17:17 (UTC)

Dependencies (5)

Required by (1)

  • jelvis (requires python-pocketsphinx) (optional)

Sources (3)

Pinned Comments

EndlessEden commented on 2022-07-08 17:18 (UTC)

Update: Unfortunately, upstream has removed python2 compatibility. So i have removed it as well. Id recommend some one make a python2 version, but backporting may be impossible.


I have tested this build in a clean chroot, it built for me on x86_64.

Latest Comments

1 2 Next › Last »

gardotd426 commented on 2023-06-11 20:57 (UTC)

Fails to build because of some swig error:

deps/sphinxbase/src/libsphinxbase/util/slamch.c:413:12: warning: type of ‘pow_ri’ does not match original declaration [-Wlto-type-mismatch]
  413 |     double pow_ri(real *, integer *);
      |            ^
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: return value type mismatch
  172 | pow_ri(real * ap, integer * bp)
      | ^
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: type ‘float’ should match type ‘double’
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: ‘pow_ri’ was previously declared here
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
deps/sphinxbase/src/libsphinxbase/util/slamch.c:47:20: warning: type of ‘lsame_’ does not match original declaration [-Wlto-type-mismatch]
   47 |     extern logical lsame_(char *, char *, ftnlen, ftnlen);
      |                    ^
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: type mismatch in parameter 3
   26 | logical lsame_(char *ca, char *cb)
      |         ^
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: type ‘void’ should match type ‘ftnlen’
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: ‘lsame_’ was previously declared here
building 'pocketsphinx._pocketsphinx' extension
swigging deps/pocketsphinx/swig/pocketsphinx.i to deps/pocketsphinx/swig/pocketsphinx_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/pocketsphinx/include -Ideps/sphinxbase/swig -outdir pocketsphinx -o deps/pocketsphinx/swig/pocketsphinx_wrap.c deps/pocketsphinx/swig/pocketsphinx.i
Deprecated command line option: -modern. Ignored, this option is now always on.
Unable to find file 'deps/pocketsphinx/swig/pocketsphinx.i'.
error: command '/usr/bin/swig' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...

daniel_shub commented on 2022-07-14 19:37 (UTC)

It still does not build for me in a clean chroot. I needed to add cmake as a makedepends since it is not part of the base-devel group (https://archlinux.org/groups/x86_64/base-devel/) but is called directly by the PKGBUILD. I also needed to install libpulse and alsa-lib to get it to build. I am assuming they are needed at runtime and therefore just regular depends.

EndlessEden commented on 2022-07-08 17:18 (UTC)

Update: Unfortunately, upstream has removed python2 compatibility. So i have removed it as well. Id recommend some one make a python2 version, but backporting may be impossible.


I have tested this build in a clean chroot, it built for me on x86_64.

SolarAquarion commented on 2022-07-02 21:53 (UTC) (edited on 2022-07-06 18:13 (UTC) by SolarAquarion)

The best idea is to move to a git commit before the move to cmake, and remove the python2 bindings

daniel_shub commented on 2022-02-10 17:49 (UTC)

This fails to build in a clean chroot

... checking for python3.10... (cached) /usr/bin/python checking for a version of Python >= '2.1.0'... yes checking for the distutils Python package... no configure: error: cannot import Python module "distutils". Please check your Python installation. The error was: <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives ==> ERROR: A failure occurred in build(). Aborting...

I tried adding python2-distutils-extra and python-distutils-extra to makedepends and that did not help.

EndlessEden commented on 2021-08-21 04:14 (UTC)

@nashgul - Thank you for pointers/patch, i will include a notice of contribution when i clean this up more in the future.

EndlessEden commented on 2021-08-21 04:14 (UTC) (edited on 2021-08-21 05:00 (UTC) by EndlessEden)

Updated: added missing depends, fixed typos in conflicts, cleaned up provides, etc. cleaned up layout slightly. Will improve more at a later date.

justinkb commented on 2021-02-07 08:54 (UTC)

this set of packages is a mess, so many errors with the package. missing deps, build deps, typo in conflicts array. Please relinquish maintainership

nashgul commented on 2020-04-02 07:47 (UTC) (edited on 2020-04-02 07:50 (UTC) by nashgul)

I need to do this for compiling...

--- PKGBUILD    2020-04-02 09:42:19.521066981 +0200
+++ PKGBUILD.patch      2020-04-02 09:46:22.604392992 +0200
@@ -10,7 +10,7 @@
 arch=('i686' 'x86_64')
 url='https://github.com/bambocher/pocketsphinx-python'
 license=('BSD')
-depends=('python' 'swig')
+depends=('python' 'swig' 'python-setuptools' 'python2-setuptools')
 makedepends=('git' 'python' 'python2')
 # The Python bindings to pocketsphinx are made by bambocher. Dependencies are
 # stored as git submodules and are maintained by the CMU Sphinx project.
@@ -33,7 +33,7 @@
     git submodule init
     git config submodule.deps/pocketsphinx.url ${srcdir}/pocketsphinx
     git config submodule.deps/sphinxbase.url ${srcdir}/sphinxbase
-    git submodule update
+    git submodule update --remote

     # We want a python2 package as well. Let's copy the sources.
     cd "${srcdir}"

xantares commented on 2020-02-19 19:06 (UTC)

It fails to build unless using:

git submodule update --remote