Package Details: authenticator 4.1.6-1

Git Clone URL: https://aur.archlinux.org/authenticator.git (read-only, click to copy)
Package Base: authenticator
Description: 2FA code generator for GNOME
Upstream URL: https://gitlab.gnome.org/World/Authenticator
Keywords: 2FA authentication gnome
Licenses: GPL3
Submitter: lll2yu
Maintainer: talone (igor-dyatlov)
Last Packager: igor-dyatlov
Votes: 22
Popularity: 0.67
First Submitted: 2018-03-23 18:23 (UTC)
Last Updated: 2022-06-11 17:41 (UTC)

Pinned Comments

Latest Comments

txomon commented on 2022-05-19 08:29 (UTC)

The build also depends on clang for libspa-sys:

  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /.../authe
nticator/src/build/cargo-home/registry/src/github.com-1ecc6299db9ec823/bindgen-0.59.2/src/lib.rs:2144:31
  note: run with `RUST_BACKTRACE=1` environment variab

rafaelff commented on 2022-05-05 14:18 (UTC)

pipewire is required, otherwise the dependency libspa-sys v0.5.0 fails. See full build output: https://0x0.st/oAda.txt

talone commented on 2022-05-03 19:11 (UTC)

@igor-dyatlov: Done, thanks for offering to maintain the package! Feel free to change things as you like ;)

igor-dyatlov commented on 2022-05-03 17:40 (UTC)

@talone: You don't have to give up the package completely, just make me the co-maintainer

talone commented on 2022-05-02 18:42 (UTC)

Hello @igor-dyatlov , I saw your orphan request and you're right, I have very little time to maintain the package. Would you be interested in taking it? I absolutely agree to disown myself.

igor-dyatlov commented on 2022-04-19 15:38 (UTC) (edited on 2022-04-19 15:40 (UTC) by igor-dyatlov)

@talone: rewritten improved PKGBUILD https://pastebin.com/raw/96cqMDqr

talone commented on 2021-10-05 12:14 (UTC)

I'm not sure if that's what you are referring to, but yes we could likely use libadwaita instead of libadwaita-git. However, this package (authenticator) is no more maintained, as the upstream project doesn't want it packaged, and hence has made the packaging nearly impossible.

Kernald commented on 2021-09-03 05:03 (UTC)

I might be wrong, but I think https://archlinux.org/packages/extra/x86_64/libadwaita/ can be used now?

talone commented on 2021-03-28 17:40 (UTC)

Yes, the PKGBUILD is clean now, but it couldn't have been a week ago, and the actual version still doesn't work, hence the packaging is unreliable. If we wanted to package it right (make it work), it could require to bundle in another version of gst-plugins, and most likely a lot of its dependencies, and so on and so fourth.

Spixmaster commented on 2021-03-28 12:56 (UTC) (edited on 2021-03-29 08:30 (UTC) by Spixmaster)

@talone I did not know about the problems with the developer. He seems to be quite incompetent referencing his comments. I do not understand why you say that the software is hard to package. If I look at the PKGBUILD it is as clean as possible. I packaged way more difficult software.

Here is the list of applications for password managers from which an alternative can be chosen: https://wiki.archlinux.org/index.php/List_of_applications#Password_managers.

Personally, I would recommend the alternatives keysmith from KDE and qtpass.

talone commented on 2021-03-28 10:53 (UTC) (edited on 2021-03-28 10:54 (UTC) by talone)

Hold on. I've made the update to version 4, but still this package won't work. The maintainer doesn't seem really upset about adding untested commits to official releases (for instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/767). This added to the zbar problem that was still there less than a week ago makes me fear a lot about the future of authenticator.

Due to the developer decisions, the software cannot be packaged correctly. If you want to install it, you can use Flatpack as recommended by the maintainer, even tough I would strongly advise against using it at all, considering the position of the software developer (to make it short "use Flatpack, I won't make any effort to make Authenticator packageable").

When the issue above will be closed (on gst-plugins-good), there will be chances for the package to work... but for how long? Unstable, untested, or completely outdated dependencies might be added any time, so we do not know what to really expect. I'll still try to do my best packaging this, but, for now, I recommend you to:

  1. stick to version 3;

  2. quickly switch to another OTP generator.

For people who want more information, you can find that the maintainer of authenticator-git is also having trouble packaging this: https://aur.archlinux.org/packages/authenticator-git/

Also, awful citations of the software developer: https://gitlab.gnome.org/World/Authenticator/-/issues/219 including: "What can be done here is using Flatpak really." or even "Don't package it, thanks.".

Same on this issue: https://gitlab.gnome.org/World/Authenticator/-/issues/255

If someone feels like having the energy to patch the software, I'd be happy to hear about it, but for now I'm forced to comply with the developer's decision because no workaround seems to exist. I profoundly regret it, as I've been myself using this software for years.

talone commented on 2021-03-28 08:10 (UTC)

Actually there was: the maintainer switched from Python to Rust for his package, and one of the library used (zbar) was required (by rust-zbar) in a version inferior to the one available on the Arch repositories, making the update very tricky. At least, when I looked at it, it seemed impossible without nasty tricks.

Now, it's fortunate you're asking because it seems the maintainer of the binding (rust-zbar), has made an update 6 days ago that might allow the update here. I'll have a look as fast as I can. Apologizes for the delay.

Spixmaster commented on 2021-03-28 06:27 (UTC)

Is there a reason why this package is not updated for over a month?

talone commented on 2021-01-22 19:02 (UTC)

Hello FirstAirBender, alesasnouski and everyone,

I made an update that should fix the reported problem. Feel free to comment for any bug.

talone commented on 2021-01-18 08:53 (UTC)

Yes, I saw the comment by FirstAirBender and need to have a look at it. This problem was supposed to be fixed by the patch included.

alesasnouski commented on 2021-01-18 08:02 (UTC) (edited on 2021-01-18 08:04 (UTC) by alesasnouski)

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/Authenticator/widgets/window.py", line 79, in add_account
    add_window = AddAccountWindow()
  File "/usr/lib/python3.9/site-packages/Authenticator/widgets/accounts/add.py", line 41, in __init__
    self.init_template('AddAccountWindow')
TypeError: <lambda>() takes 0 positional arguments but 1 was given

FirstAirBender commented on 2021-01-15 03:55 (UTC)

Trying to add a new account button gives the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/Authenticator/widgets/window.py", line 79, in add_account
    add_window = AddAccountWindow()
  File "/usr/lib/python3.9/site-packages/Authenticator/widgets/accounts/add.py", line 41, in __init__
    self.init_template('AddAccountWindow')
TypeError: <lambda>() takes 0 positional arguments but 1 was given

talone commented on 2020-12-12 20:53 (UTC) (edited on 2020-12-12 20:54 (UTC) by talone)

Hello there,

I had to upgrade python-yoyo-migrations to 7.2 because it was flagged out-of-date. Because this package depends on it, there could potentially be problems due to this update; please comment if you experience any trouble.

gr211 commented on 2020-07-27 23:47 (UTC)

Hi @talone

thanks for fixing this, got so fed up with it I wrote my own clone in rust

https://aur.archlinux.org/packages/authenticator-rs-bin/

But still I like this one. Was wondering though, similar fixes have been made upstream, just not released as a version (you probably noticed that too actually):

https://gitlab.gnome.org/World/Authenticator/-/commits/master/

Since the original author does not seem upbeat about creating a new release, would it make it easier somehow to create a patch out of those commits above, ie a la

https://stackoverflow.com/questions/6658313/how-to-generate-a-git-patch-for-a-specific-commit

git diff tag1 tag2 -- > the-patch.diff

in lieu of remove_references.patch ?

Cheers

talone commented on 2020-07-27 13:52 (UTC)

@rafaelff: that's a good idea; anyway, because this is (supposedly) temporary, I think it can stay like that for now, but thanks for noticing it.

rafaelff commented on 2020-07-27 12:25 (UTC)

@talone: FYI, you could run git apply "$srcdir"/remove_references.patch from inside $pkgname dir instead of copying it.

talone commented on 2020-07-27 11:39 (UTC)

Hi everyone,

I am the new maintainer of the package, and just made it work today (no workaround needed anymore); no specific update, simply a bugfix.

kaipee2 commented on 2020-05-12 14:24 (UTC) (edited on 2020-05-12 14:26 (UTC) by kaipee2)

Upstream bug report for lambda TypeError: (https://gitlab.gnome.org/World/Authenticator/-/issues/177)

Developer comment:

Seems to be an issue in the code itself, I shouldn't be calling init_template at all

The following disables all calls to init_template and allows the application to launch

grep -rl "init_template" /usr/lib/python3.*/site-packages/Authenticator/ | sudo xargs sed -i 's/self.init_template/#self.init_template/g'

aorth commented on 2020-05-07 10:47 (UTC)

Currently failing:

$ authenticator 
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/Authenticator/application.py", line 208, in _is_locked_changed
    Window.get_default().refresh_view()
  File "/usr/lib/python3.8/site-packages/Authenticator/widgets/window.py", line 70, in get_default
    Window.instance = Window()
  File "/usr/lib/python3.8/site-packages/Authenticator/widgets/window.py", line 55, in __init__
    self.init_template('Window')
TypeError: <lambda>() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/Authenticator/application.py", line 77, in do_activate
    window = Window.get_default()
  File "/usr/lib/python3.8/site-packages/Authenticator/widgets/window.py", line 70, in get_default
    Window.instance = Window()
  File "/usr/lib/python3.8/site-packages/Authenticator/widgets/window.py", line 55, in __init__
    self.init_template('Window')
TypeError: <lambda>() takes 0 positional arguments but 1 was given

shaybox commented on 2019-10-04 00:03 (UTC) (edited on 2019-10-04 00:05 (UTC) by shaybox)

libsecret* needs to be a dependency, it's required for the app to work

lll2yu commented on 2019-06-18 13:45 (UTC)

@maslic @rafaelff added libhandy as dependency, apologies for the delay in update.

rafaelff commented on 2019-06-11 22:54 (UTC) (edited on 2019-06-11 22:55 (UTC) by rafaelff)

Indeed. Even though libhandy is not listed in the requirements.txt file, a grep in the source code shows it is required by a couple of files. Should be added to depends array.

commented on 2019-06-10 20:10 (UTC)

Seems it's missing libhandy as dependency:

Traceback (most recent call last):
  File "/usr/bin/authenticator", line 31, in <module>
    require_version("Handy", "0.0")
  File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Handy not available

Depau commented on 2019-05-23 19:47 (UTC)

Also, please considere these suggestions

From 66349a3992459c1914cd9c9b1042605477114987 Mon Sep 17 00:00:00 2001
From: Davide Depau <davide@depau.eu>
Date: Thu, 23 May 2019 21:45:15 +0200
Subject: [PATCH] Add suggestions from comment by @rafaelff

https://aur.archlinux.org/packages/authenticator-git/#comment-694669
---
 .SRCINFO | 8 ++++----
 PKGBUILD | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index cd60f16..e90c7d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = authenticator-git
    pkgdesc = 2FA code generator for GNOME
-   pkgver = 0.2.4.r15.g7091453
+   pkgver = 0.2.4.r16.gaf7aed5
    pkgrel = 1
    url = https://github.com/bilelmoussaoui/Authenticator
    arch = any
@@ -8,15 +8,15 @@ pkgbase = authenticator-git
    makedepends = meson
    makedepends = ninja
    makedepends = gobject-introspection
-   makedepends = gnome-common
-   depends = gtk3>=3.16.0
-   depends = python>=3.3.0
+   depends = gtk3
+   depends = python
    depends = glib2
    depends = python-pyotp
    depends = libsecret
    depends = python-pillow
    depends = pyzbar
    depends = python-gnupg
+   depends = python-beautifulsoup4
    provides = authenticator
    conflicts = authenticator
    source = authenticator::git+https://github.com/bilelmoussaoui/Authenticator.git
diff --git a/PKGBUILD b/PKGBUILD
index 62b87cc..04857e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 _pkgname=authenticator
 pkgname=$_pkgname-git
-pkgver=0.2.4.r15.g7091453
+pkgver=0.2.4.r16.gaf7aed5
 pkgrel=1
 pkgdesc="2FA code generator for GNOME "
 arch=('any')
 url="https://github.com/bilelmoussaoui/Authenticator"
 license=('GPL')
-depends=('gtk3>=3.16.0' 'python>=3.3.0' 'glib2' 'python-pyotp' 'libsecret' 'python-pillow' 'pyzbar' 'python-gnupg')
-makedepends=('meson' 'ninja' 'gobject-introspection' 'gnome-common')
+depends=('gtk3' 'python' 'glib2' 'python-pyotp' 'libsecret' 'python-pillow' 'pyzbar' 'python-gnupg' 'python-beautifulsoup4')
+makedepends=('meson' 'ninja' 'gobject-introspection')
 provides=('authenticator')
 conflicts=('authenticator')
 source=("$_pkgname::git+https://github.com/bilelmoussaoui/Authenticator.git")
@@ -22,7 +22,7 @@ pkgver() {

 prepare() {
   cd "$srcdir/$_pkgname"
-  meson build --prefix=/usr --libdir=lib
+  meson build --prefix=/usr --libdir=lib --libexecdir=lib
 }

 build() {
-- 
2.21.0

kaipee2 commented on 2019-03-01 09:14 (UTC)

Please update dependencies to replace python-pyzbar with pyzbar.

Looks like the package has been renamed, https://github.com/NaturalHistoryMuseum/python-pyzbar no longer exists.

cpuheater commented on 2018-11-28 15:03 (UTC)

'git' should be added to the makedepends list, otherwise you get ERROR: Cannot find the git package needed to handle git sources. in a clean build environment.

lll2yu commented on 2018-10-07 15:32 (UTC)

v0.2.5 was tagged at the time of pkg update. Though it's still tagged as 0.2.5 on flathub and in the meson.build file https://flathub.org/apps/details/com.github.bilelmoussaoui.Authenticator https://gitlab.gnome.org/World/Authenticator/blob/master/meson.build I've no idea why the tag was removed from gitlab repo.

Reverted to older tag so should be fixed now.

arun321 commented on 2018-10-07 15:10 (UTC)

==> Validating source files with sha256sums... authenticator ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of authenticator git repo... Cloning into 'authenticator'... done. fatal: '0.2.5' is not a commit and a branch 'makepkg' cannot be created from it ==> ERROR: Failure while creating working copy of authenticator git repo Aborting... Error making: authenticator

Please fix it.

askldjd commented on 2018-10-07 15:01 (UTC)

The current pkgver points to 0.2.5 and the AUR build is failing because the tag 0.2.5 was never released.

  -> Creating working copy of authenticator git repo...
Cloning into 'authenticator'...
done.
fatal: '0.2.5' is not a commit and a branch 'makepkg' cannot be created from it
==> ERROR: Failure while creating working copy of authenticator git repo
    Aborting...