Package Details: bear 2.3.13-2

Git Clone URL: https://aur.archlinux.org/bear.git (read-only)
Package Base: bear
Description: tool to generate compilation database for clang tooling
Upstream URL: https://github.com/rizsotto/Bear
Licenses: GPL3
Conflicts: bear
Provides: bear
Submitter: mlq
Maintainer: codyps
Last Packager: codyps
Votes: 27
Popularity: 1.463731
First Submitted: 2013-07-08 09:40
Last Updated: 2019-01-30 02:30

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

smallmouse commented on 2019-03-18 23:27

Hi,

I believe python-pycodestyle and python-coverage might be madedepends

codyps commented on 2019-01-30 02:30

@raul_l: using lib64 does not work as lib64 is a symlink (which collides on install of a package trying to use lib64 as a directory)

For this package, it appears that using lib as CMAKE_INSTALL_LIBDIR works around the bug in it's CMakeLists.txt.

@DanielRichtmann: it is an upstream bug (using ${CMAKE_INSTALL_LIBDIR} like that is incorrect), but it's one we can workaround here.

Thank you both for looking into this issue.

raul_l commented on 2019-01-30 02:27

With the latest version I get the ..from LD_PRELOAD cannot be preloaded.. error. It appears to me that CMAKE_INSTALL_LIBDIR should be given as a relative path,

CMAKE_INSTALL_LIBDIR=lib

Or I can just leave out that variable (defaults to lib64 in my case), which also works.

DanielRichtmann commented on 2019-01-28 14:40

I just upgraded to 2.3.13 and stumbled across the following which prevents me from running bear without specifying the path to libear explicitly:

From PKGBUILD:

CMAKE_INSTALL_PREFIX=/usr
CMAKE_INSTALL_LIBDIR=/usr/lib

From CMakeLists.txt:

set(EAR_LIB_PATH "${CMAKE_INSTALL_LIBDIR}/bear")
set(DEFAULT_PRELOAD_FILE ${CMAKE_INSTALL_PREFIX}/${EAR_LIB_PATH}/${EAR_LIB_FILE} CACHE STRING "Default path to libear.")

Combining these, we get DEFAULT_PRELOAD_FILE equal to /usr//usr/lib/bear/libear.so.

Is this an issue in the PKGBUILD or should I submit an issue upstream?

miffi commented on 2019-01-14 01:59

Interesting. It compiles fine on my system.

Cake commented on 2018-11-27 13:52

The installation failed with the error as follows:

The following tests FAILED:
      1 - func_test (Failed)
Errors while running CTest
make[3]: *** [test/CMakeFiles/check.dir/build.make:57: test/CMakeFiles/check] Error 8
make[3]: Target 'test/CMakeFiles/check.dir/build' not remade because of errors.
make[2]: *** [CMakeFiles/Makefile2:164: test/CMakeFiles/check.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:171: test/CMakeFiles/check.dir/rule] Error 2
make[1]: Target 'check' not remade because of errors.
make: *** [Makefile:199: check] Error 2
==> ERROR: A failure occurred in check().
    Aborting...
==> ERROR: Makepkg was unable to build bear.
==> Restart building bear ? [y/N]

GeeXT commented on 2017-11-05 00:10

Update please. This version has a bug with newlocale that was fixed in latest minor release.

LeonardK commented on 2016-10-24 08:44

oops, wrong link but 2.2.1 is out :)

rizsotto commented on 2015-01-29 11:30

Moritz, thanks for the fix!

rizsotto commented on 2015-01-28 11:20

Please note, that the new version 2.x dependencies were changed. It no longer depends on libconfig, and the executable is written in Python.