Package Details: pam-python-git r31.9641aa5-4

Git Clone URL: https://aur.archlinux.org/pam-python-git.git (read-only, click to copy)
Package Base: pam-python-git
Description: Python for PAM (py3 fork)
Upstream URL: https://github.com/castlabs/pam-python
Licenses: GNU Affero General Public License
Conflicts: pam-python
Provides: pam-python
Submitter: postblue
Maintainer: postblue
Last Packager: postblue
Votes: 2
Popularity: 0.075492
First Submitted: 2022-09-26 09:46 (UTC)
Last Updated: 2024-08-06 09:18 (UTC)

Dependencies (6)

Required by (2)

Sources (1)

Latest Comments

RubenKelevra commented on 2024-08-01 15:56 (UTC)

Does not build due to missing dependencies.

Please consult the wiki how to check for missing dependencies yourself:

https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

==> Extracting sources...
  -> Creating working copy of pam-python git repo...
Cloning into 'pam-python'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Sources are ready.
pam-python-git-r31.9641aa5-3: parsing pkg list...
==> Making package: pam-python-git r31.9641aa5-3 (Thu 01 Aug 2024 05:53:20 PM CEST)
==> Retrieving sources...
==> Validating source files with sha256sums...
    pam-python ... Skipped
==> Making package: pam-python-git r31.9641aa5-3 (Thu Aug  1 17:53:23 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
make --directory src
make[1]: Entering directory '/build/pam-python-git/src/pam-python/src'
gcc -O0 -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -Wno-error=deprecated-declarations -g -o ctest ctest.c -lpam
CFLAGS="-Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -Wno-error=deprecated-declarations" python3 ./setup.py build
Traceback (most recent call last):
  File "/build/pam-python-git/src/pam-python/src/./setup.py", line 4, in <module>
    import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils'
make[1]: *** [Makefile:11: pam_python3.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/pam-python-git/src/pam-python/src'
make: *** [Makefile:6: lib] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/paru/aur_chroot/ruben/build
error: failed to build 'pam-python-git-r31.9641aa5-3': failed to run: makechrootpkg -r /var/lib/paru/aur_chroot -D /var/lib/repo/aur -d /var/cache/pacman/pkg/ -d /var/lib/repo/aur -- -feA --noconfirm --noprepare --holdver: 
error: packages failed to build: pam-python-git-r31.9641aa5-3

Raymo111 commented on 2024-06-19 16:40 (UTC) (edited on 2024-06-19 16:44 (UTC) by Raymo111)

The pkgbuild needs to be updated to fix the deprecated-declaration errors, by modifying this line sed -i'' 's|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile into sed -i 's|Werror|Werror -Wno-error=deprecated-declarations|;s|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile.

To use Howdy, python-configparser needs to be installed (AUR package), and the following symlinks also need to be created: sudo ln -s /usr/lib/security/pam_python{3,}.so and sudo ln -s /usr/lib/python3.12/{configparser,ConfigParser}.py.

TheHighGroundWin commented on 2024-05-23 12:49 (UTC)

sudo howdy test works, however pam does not seem to start authentication.

mathix commented on 2023-04-06 13:01 (UTC) (edited on 2023-04-06 13:02 (UTC) by mathix)

Not working on my device neither.

I think a simple fix could be to just run make lib to avoid building the docs, as the crash happened during the doc building process.

By doing so you can also remove python-sphinx from build dependencies.

(tested by cloning manually the fork and running only make lib)

postblue commented on 2022-10-08 15:35 (UTC) (edited on 2022-10-08 15:35 (UTC) by postblue)

I packaged this fork of pam-python because I wanted to use howdy without python2 installed since it was removed from the repositories.

Even if this doesn't work on your device, it's working well on mine so far. You can try using this other fork instead: https://github.com/kageurufu/pam-python

If the problem is due to the packaging, you are welcome to report it here.

If the problem is due to the program itself, please report it to its own bugtracker.

In any case, please provide useful feedback about your use case scenario, which error you are encountering and related journal messages.

wszqkzqk commented on 2022-10-07 02:31 (UTC)

This doesn't work on my device.