Package Details: crowdsec 1.6.1-1

Git Clone URL: https://aur.archlinux.org/crowdsec.git (read-only, click to copy)
Package Base: crowdsec
Description: The open-source and collaborative security suite
Upstream URL: https://www.crowdsec.net
Licenses: MIT
Submitter: solveit
Maintainer: mhdi
Last Packager: mhdi
Votes: 20
Popularity: 0.87
First Submitted: 2021-12-01 20:49 (UTC)
Last Updated: 2024-04-17 12:40 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

doums commented on 2024-03-20 22:07 (UTC) (edited on 2024-03-20 22:09 (UTC) by doums)

After successful installation of crowdsec 1.6.0-2 I get warning about outdated version when running cscli commands

WARN[20-03-2024 23:01:13] Crowdsec is not the latest version. Current version is 'v1.5.5' and the latest stable version is 'v1.6.0'. Please update it!

For instance running sudo cscli version

2024/03/20 23:03:06 version: v1.5.5-8224c477027d8f2e1241eacc69a004dd470d3a0f
2024/03/20 23:03:06 Codename: alphaga
2024/03/20 23:03:06 BuildDate: 2023-11-09_23:28:46
2024/03/20 23:03:06 GoVersion: 1.21.4
2024/03/20 23:03:06 Platform: linux
2024/03/20 23:03:06 libre2: C++
2024/03/20 23:03:06 Constraint_parser: >= 1.0, <= 2.0
2024/03/20 23:03:06 Constraint_scenario: >= 1.0, < 3.0
2024/03/20 23:03:06 Constraint_api: v1
2024/03/20 23:03:06 Constraint_acquis: >= 1.0, < 2.0

What the heck?

Note I get this is after a fresh install, not a package upgrade

mirehasfun commented on 2024-03-13 09:53 (UTC) (edited on 2024-03-13 16:22 (UTC) by mirehasfun)

Hi @mhdi

Would it be possible to set the arch in the PKGBUILD to 'any' again? I am using crowdsec on a RPI3 and 4 / aarch64 and it compiles just fine.

xiota commented on 2024-02-23 21:08 (UTC)

@doums Install base-devel.

xiota commented on 2024-02-23 21:05 (UTC)

Since git isn't needed, the errors/warnings can be silenced with:

prepare() {
  # git not needed, silence warnings/errors
  install -m755 /dev/null git
  export PATH="$srcdir:$PATH"
}

Perhaps the files in etc/crowdsec could be added to a backup array?

doums commented on 2024-02-23 16:32 (UTC)

@mhdi I confirm now the packages builds successfully but with a bunch of errors:

  -> Stripping unneeded symbols from binaries and libraries...                                  /usr/share/makepkg/tidy/strip.sh: line 48: debugedit: command not found                                    

Though, the update of the package is failing:

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                          [----------------------------------------] 100%
(2/2) checking package integrity                                        [----------------------------------------] 100%
(2/2) loading package files                                             [----------------------------------------] 100%
(2/2) checking for file conflicts                                       [----------------------------------------] 100%
error: failed to commit transaction (conflicting files)
crowdsec: /etc/crowdsec/acquis.yaml exists in filesystem
crowdsec: /etc/crowdsec/config.yaml exists in filesystem
[...]
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

mhdi commented on 2024-02-23 12:43 (UTC) (edited on 2024-02-23 21:32 (UTC) by mhdi)

@xiota, I've tested the PKGBUILD in a clean chroot with and without git in makedepends. It builds fines in both cases. However, there are some errors.

git is included in makedepends:

==> Starting build()...
fatal: not a git repository (or any of the parent directories): .git

git is not included in makedepends:

==> Starting build()...
make: git: No such file or directory

Despite these errors, the package builds successfully. Therefore, I think git may not be necessary.

mhdi commented on 2024-02-23 11:15 (UTC)

Thank you, @xiota, for your comment. I've updated the PKGBUILD. @doums and @nl.smart, could you please confirm if the package builds correctly?

xiota commented on 2024-02-23 08:16 (UTC) (edited on 2024-02-23 08:21 (UTC) by xiota)

@mhdi After adding git to makedeps, I am able to reproduce (maybe) the issue reported by @nl.smart and @doums. The problem is caused by out-of-order execution. To fix, add -j1 to the make command on line 27 to prevent the race condition.

Note: No need to bump pkgrel because anyone who already successfully built this does not need to rebuild.

xiota commented on 2024-02-23 07:52 (UTC)

Clean chroot. Missing makedep on git.

==> Starting build()...
make: git: No such file or directory
make: git: No such file or directory
make: git: No such file or directory
...