From mboxrd@z Thu Jan 1 00:00:00 1970 From: jiaming yuan Subject: Re: Packaging cquery Date: Sun, 13 Jan 2019 07:38:54 +0000 Message-ID: References: <71d33ed434ab33ab960ca174e6adb2ef@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giaMI-0003x2-8G for guix-devel@gnu.org; Sun, 13 Jan 2019 02:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giaMH-00034U-5A for guix-devel@gnu.org; Sun, 13 Jan 2019 02:39:02 -0500 Received: from mail-oln040092254014.outbound.protection.outlook.com ([40.92.254.14]:1760 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giaME-0002zY-VK for guix-devel@gnu.org; Sun, 13 Jan 2019 02:39:01 -0500 In-Reply-To: <71d33ed434ab33ab960ca174e6adb2ef@posteo.net> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "brettg@posteo.net" Cc: Guix devel Hi Brett, I have a working cquery and ccls package depends on clang-7: https://github.com/trivialfis/guixpkgs/blob/b64f6fd3f8d4e04c6752e20bb7769e1= c426f6ad4/code.scm#L114 I can't upstream it because there are too many bundled dependencies. Feel = free to look into it. :) brettg@posteo.net writes: > Hi all, I am attempting to package cquery. > > Here is my definition > > (define-public cquery > (package > (name "cquery") > (version "20180718") > (source (origin > (method url-fetch) > (uri (string-append > "https://github.com/cquery-project/cquery/archive/v" > version ".tar.gz")) > (sha256 > (base32 > "076cavgipn6g37fhvdcq0z915c5lxxa56mbxw9d6njksdxg1wdkj")))) > (build-system cmake-build-system) > (inputs > `(("python" ,python-wrapper) > ("clang" ,clang))) > (home-page "https://github.com/cquery-project/cquery") > (synopsis "C/C++ language server supporting multi-million line code > base, powered by libclang") > (description "Add later.") > (license license:x11-style))) > > the configuration seems to fail when cmake attempts to download > clang. Does anybody know how to get it to ignore this request and use > the system clang (which I assume is the correct (guix) way to do this. > > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Detecting CXX compile features > -- Detecting CXX compile features - done > -- Using downloaded Clang > -- Downloading Clang 6.0.0 > (https://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu= -14.04.tar.xz) > ... > CMake Error at cmake/DownloadAndExtractClang.cmake:82 (message): > SHA256 hash of downloaded Clang does not match expected hash. > Remove the > build directory and try running CMake again. If this keeps > happening, file > an issue to report the problem. > Call Stack (most recent call first): > CMakeLists.txt:96 (download_and_extract_clang) > > Thanks, > Brett Gilio -- Jiaming