unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Packaging cquery
@ 2019-01-13  3:24 brettg
  2019-01-13  7:38 ` jiaming yuan
  2019-01-13  8:03 ` Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: brettg @ 2019-01-13  3:24 UTC (permalink / raw)
  To: Guix devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Packaging cquery
  2019-01-13  3:24 Packaging cquery brettg
@ 2019-01-13  7:38 ` jiaming yuan
  2019-01-13  8:03 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: jiaming yuan @ 2019-01-13  7:38 UTC (permalink / raw)
  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/b64f6fd3f8d4e04c6752e20bb7769e1c426f6ad4/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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Packaging cquery
  2019-01-13  3:24 Packaging cquery brettg
  2019-01-13  7:38 ` jiaming yuan
@ 2019-01-13  8:03 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2019-01-13  8:03 UTC (permalink / raw)
  To: brettg; +Cc: Guix devel

[-- Attachment #1: Type: text/plain, Size: 2033 bytes --]

On Sun, Jan 13, 2019 at 04:24:05AM +0100, brettg@posteo.net wrote:
> 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"))

'guix lint cquery' will remind you to use git-fetch =).

> 	    (sha256
> 	     (base32
> 	      "076cavgipn6g37fhvdcq0z915c5lxxa56mbxw9d6njksdxg1wdkj"))))

<snip>

> 
> 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)

Checking the source, I suspect you'll find the answer here:
https://github.com/cquery-project/cquery/blob/v20180718/CMakeLists.txt#L11

It looks like we have at least some of the third party libraries already
packaged but I'm not sure how the unbundling process is going to be. I'd
suggest starting with it as-is and working one those later.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-13  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-13  3:24 Packaging cquery brettg
2019-01-13  7:38 ` jiaming yuan
2019-01-13  8:03 ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).