Package Details: cquery v20180718-8

Git Clone URL: https://aur.archlinux.org/cquery.git (read-only, click to copy)
Package Base: cquery
Description: cquery is a highly-scalable, low-latency language server for C/C++/Objective-C.
Upstream URL: https://github.com/cquery-project/cquery/
Keywords: c c++ language-server lsp
Licenses: MIT
Conflicts: cquery-git
Submitter: SilverRainZ
Maintainer: MaskRay (lilac)
Last Packager: lilac
Votes: 9
Popularity: 0.000000
First Submitted: 2018-01-28 05:06 (UTC)
Last Updated: 2019-01-03 17:28 (UTC)

Latest Comments

« First ‹ Previous 1 2

SilverRainZ commented on 2018-09-01 16:00 (UTC)

@sum01, sorry for so late and thanks for your patch. it will be updated via @lilac immediately.

sum01 commented on 2018-08-24 21:58 (UTC)

So is this going to be moved to using Cmake soon? I'm sure I'm not the only one with a failing build process.

sum01 commented on 2018-08-08 04:54 (UTC) (edited on 2018-08-16 13:38 (UTC) by sum01)

The build step was failing on my new arch machine, but it works with Cmake. Here's a patch. https://gitlab.com/snippets/1741908

diff --git a/PKGBUILD b/PKGBUILD
index c0bbe86..f8dfae9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@
 pkgname=cquery
 pkgver=v20180718
 __pkgver=${pkgver:1}
-pkgrel=2
+pkgrel=3
 pkgdesc='Low-latency vscode language server for large C++ code-bases, powered by libclang.'
 arch=('x86_64')
 url='https://github.com/cquery-project/cquery/'
 license=('MIT')
-depends=('clang')
-makedepends=('git' 'python' 'llvm')
+depends=('clang>=6.0.0')
+makedepends=('git' 'cmake>=3.1')
 conflicts=('cquery-git')
 source=("https://github.com/cquery-project/$pkgname/archive/$pkgver.tar.gz"
         'git+https://github.com/miloyip/rapidjson?commit=daabb88'
@@ -38,19 +38,13 @@ prepare() {
 }

 build() {
-    cd $pkgname-$__pkgver
-    # --variant=custom will not add extra CXXFLAGS
-    python waf configure --variant=custom --prefix="$pkgdir/usr" --llvm-config=/usr/bin/llvm-config
-    python waf build --variant=custom
-}
-
-check() {
-    cd $pkgname-$__pkgver
-    # yes | build/custom/bin/cquery --test-unit --test-index --clang-sanity-check
-    yes | build/custom/bin/cquery --test-unit --clang-sanity-check
+    mkdir -p $pkgname-$__pkgver/build
+    cd $pkgname-$__pkgver/build
+       cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DSYSTEM_CLANG=ON ..
+       cmake --build .
 }
-
 package() {
-    cd $pkgname-$__pkgver
-    python waf install --variant=custom
+    cd $pkgname-$__pkgver/build
+    DESTDIR="$pkgdir" make install
+       install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

As for the check() step, I didn't see references to testing in their Cmake file, so I'm not sure if it's supported. I tried make test & ctest, and neither worked.

sum01 commented on 2018-07-20 14:49 (UTC)

I assume you're aware, but just posting to ask for you to use the Cmake since it says that Waf is deprecated :)

phcerdan commented on 2018-07-11 04:01 (UTC)

In the description you may want to remove vscode. The language servers are independent of any editor or IDE. See the description of the upstream:

C/C++ language server supporting multi-million line code base, powered by libclang. Emacs, Vim, VSCode, and others with language server protocol support. Cross references, completion, diagnostics, semantic highlighting and more

sum01 commented on 2018-04-26 15:45 (UTC)

Ah, right, my bad. In that case, shouldn't they have correctly commited the submodules when tagging? I feel like something is wacky there.

SilverRainZ commented on 2018-04-26 06:25 (UTC)

@sum01, there is not a git repo in tarball.

sum01 commented on 2018-04-26 05:19 (UTC) (edited on 2018-04-26 05:33 (UTC) by sum01)

Instead of putting submodules in sources(), why not run this


prepare() {
    cd $pkgname-$__pkgver
    git submodule update --init --recursive
}

That'll pull the repos at the commit they're tagged on by Cquery's maintainers.

SilverRainZ commented on 2018-03-30 10:04 (UTC)

@dpriedel Thanks for reporting, fixed.

dpriedel commented on 2018-03-28 16:06 (UTC)

This package no longer completes the makepkg process with clang 6 installed. The index test fails because it has clang 5.0.1 hard coded.

I was able to rebuild the package by deleting the --test-index option.

Dave R