Package Details: auth-cli 0.2.0-1

Git Clone URL: https://aur.archlinux.org/auth-cli.git (read-only, click to copy)
Package Base: auth-cli
Description: Authenticator CLI, generate totps on the fly
Upstream URL: https://github.com/nnyyxxxx/auth
Keywords: cli cpp totp
Licenses: BSD-3-Clause
Submitter: adamperkowski
Maintainer: adamperkowski
Last Packager: adamperkowski
Votes: 2
Popularity: 1.16
First Submitted: 2025-04-15 11:48 (UTC)
Last Updated: 2025-04-15 11:48 (UTC)

Required by (0)

Sources (3)

Latest Comments

m040601 commented on 2025-04-27 04:37 (UTC) (edited on 2025-04-27 04:51 (UTC) by m040601)

I had to rebuild this package twice in the last days. And each time its "version" didnt changed. It stayed auth-cli 0.2.0. And you also didnt touch the PKGBUILD in days.

That's because you have as sources a mix of "fixed" ones and "rolling" ones:

12 source=(
13   "$pkgname-$pkgver::git+$url.git#tag=v$pkgver"
14   'catch2::git+https://github.com/catchorg/Catch2.git'
15   'tomlplusplus::git+https://github.com/marzer/tomlplusplus.git'

The first one, your own repo

13   "$pkgname-$pkgver::git+$url.git#tag=v$pkgver"

Requires git. Theoretically it shouldnti, as this is a non "xxx-git" PKGBUILD. But, OK, lets leave it, many others also do it this way.

It is almost like a "xxx-git" PKGBUILD, but only gets triggered when you specifically "tag" something on github. Not on every little tiny commit you do on github.

This is like pseudo version-123 PKGBUILD. Ok with that.

The problem is with "catch2" and "tomplusplus" that you include as sources,

14   'catch2::git+https://github.com/catchorg/Catch2.git'
15   'tomlplusplus::git+https://github.com/marzer/tomlplusplus.git'

They are actually like a source for a real "xxx-git" type PKGBUILD.

They dont belong mixed with a more stable source for a "xxx" version 123 type PKGBUILD.

Every time they make a small git commit on github, it triggers a rebuild of this "auth-cli" PKGBUILD on the AUR. That's what happened this week,

$ gcu-commits-repo-hub-all-atom https://github.com/marzer/tomlplusplus

  2025-04-24 15:57  mention `TOML_DISABLE_CONDITIONAL_NOEXCE
  2025-03-31 19:20  Allow tomlplusplus to be built by C++20
  2025-03-14 19:21  add DEL character example `invalid_parse
  2025-03-14 19:19  test MSVC default conformance mode, usin
  ....

$ gcu-commits-repo-hub-all-atom https://github.com/catchorg/Catch2

N 2025-04-26 19:05  Prevent unnecessarily finding C compiler
N 2025-04-26 18:00  Inherit C++14 requirement from upstream
N 2025-04-26 17:59  Use more modern `-S` for specifying CMak
N 2025-04-26 17:38  Fix formatting of CMake files
N 2025-04-26 17:37  Use CTest `--output-on-failure` flag
N 2025-04-26 17:37  Don't fail CI fast
N 2025-04-26 17:37  Export compile commands
N 2025-04-26 06:14  Upgrade CI runners to Ubuntu 22
  2025-04-18 15:29  Add MAINTAINERS.md
  2025-04-12 19:05  Update generator docs with relevant head
  2025-04-08 19:40  v3.8.1
  ....

So the consequence was the annoying rebuild with cmake/jsonpp/rhash. Everytime one of them makes a small commit.

I dont want that on my system. Or if I want that I choose a "xxx-git" PKGBUILD of the tool I am interested in.

Actually I checked both repos, and they both also do "releases" or "tags" very often.

$ gh rl git+https://github.com/catchorg/Catch2

TITLE            TYPE         TAG NAME         PUBLISHED
v3.8.1           Latest       v3.8.1           about 17 days ago
v3.8.0                        v3.8.0           about 3 months ago
v3.7.1                        v3.7.1           about 7 months ago
v3.7.0                        v3.7.0           about 8 months ago
v3.6.0                        v3.6.0           about 11 months ago
v3.5.4                        v3.5.4           about 1 year ago
v3.5.3                        v3.5.3           about 1 year ago
....

$ gh rl https://github.com/marzer/tomlplusplus

TITLE      TYPE         TAG NAME  PUBLISHED
v3.4.0     Latest       v3.4.0    about 1 year ago
v3.3.0                  v3.3.0    about 2 years ago
v3.2.0                  v3.2.0    about 2 years ago
v3.1.0                  v3.1.0    about 3 years ago
....

So please change the sources to use real tags/releases. Or change this PKGBUILD into a "auth-cli-git".

Thanks in advance.

nnyyxxxx commented on 2025-04-18 16:59 (UTC) (edited on 2025-04-18 17:00 (UTC) by nnyyxxxx)

that is not an error, it is related to:

check() {
  cd "$pkgname-$pkgver"
  ./build/AuthTests
}

For reasons unknown, this is included in the pkgbuild; it is the test suite I made for the application.

Randomness seeded to: 932139166
Error parsing TOML: Error while parsing key-value pair: expected '=', saw 'i'
       (error occurred at line 1, column 6 of '/tmp/auth_test_dir/>auth_test_db.toml')
===============================================================================
All tests passed (127 assertions in 27 test cases)

"Error parsing TOML" refers to a case in the test where it's testing invalid toml data.

building version 0.3.0 still outputs the same error

That is version 0.2.0, not 0.3.0; this pkgbuild hasn't been updated to 0.3.0 yet. Since it's building from the tagged releases and not the latest commit.

m040601 commented on 2025-04-16 00:01 (UTC) (edited on 2025-04-18 15:27 (UTC) by m040601)

Thanks for the PKGBUILD. Interesting new and usefull TOTP cli tool.

Just want to report that the PKGBUILD seems to build fine and everything gets nicely installed, man page, readme. And the tool seems to work perfectly.

Except this annoying error message during installation. The color is always "green". No "red" makefile errors. I'm not 100% sure whether it can be ignored or not.

So just to let you know,

everything going fine and then,
....
....
[100%] Built target AuthTests
make[1]: Leaving directory '/dev/shm/aurydesty/auth-cli/src/auth-cli-0.2.0/build'
==> Starting check()...
Randomness seeded to: 2657935920
Error parsing TOML: Error while parsing key-value pair: expected '=', saw 'i'
        (error occurred at line 1, column 6 of '/tmp/auth_test_dir/auth_test_db.toml')
===============================================================================
All tests passed (127 assertions in 27 test cases)
....
....
everything continues and ends fine
....
....

==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "auth-cli"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: auth-cli 0.2.0-1 (Wed 16 Apr 2025 12:51:34 AM WEST)

I assume this is some "internal" Makefile error, not a PKGBUILD error. Am I correct ?

UPDATE: 2025-04-18

building version 0.3.0 still outputs the same error

[100%] Built target AuthTests
make[1]: Leaving directory '/dev/shm/aurydesty/auth-cli/src/auth-cli-0.2.0/build'
==> Starting check()...
Randomness seeded to: 932139166
Error parsing TOML: Error while parsing key-value pair: expected '=', saw 'i'
        (error occurred at line 1, column 6 of '/tmp/auth_test_dir/auth_test_db.toml')
===============================================================================
All tests passed (127 assertions in 27 test cases)

==> Entering fakeroot environment...