[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in package building : error[E0463]: can't find crate for `open

From: Hamzeh Nasajpour
Subject: Re: Error in package building : error[E0463]: can't find crate for `openssl_src`
Date: Thu, 22 Oct 2020 12:06:59 +0330
User-agent: Cyrus-JMAP/3.3.0-529-g69105b1-fm-20201021.003-g69105b13

Hello John,

Thanks for your following up.

I put the `openssl` in `inputs` too and the problem wasn't resolved. I also I 
packaged the `openssl-src` and repackage the `openssl-sys` and this is didn't 
resolved the problem too. 

The point is with the following package definitions the `rust-openssl-sys` will 
be build/installed without any error, but in the `etebase-py` 
building/installation I get the previous error.

(define-public rust-openssl-src-111.0.1
    (name "rust-openssl-src")
    (version "111.0.1+1.1.1")
       (method url-fetch)
       (uri (crate-uri "openssl-src" version))
        (string-append name "-" version ".tar.gz"))
    (build-system cargo-build-system)
     `(#:skip-build? #t
       (("rust-gcc" ,rust-gcc-0.3))))
    (home-page "";)
    (synopsis "OpenSSL bindings")
    (description "OpenSSL bindings.")
    (license license:asl2.0)))

(define-public rust-openssl-sys-0.9
    (name "rust-openssl-sys")
    (version "0.9.58")
        (method url-fetch)
        (uri (crate-uri "openssl-sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
         (base32 "1pkq3x8w16kqvkg75g4w7nny56w9clssww0ibpzg015n153xnhm8"))))
    (build-system cargo-build-system)
       (("rust-libc" ,rust-libc-0.2)
        ;; Build dependencies:
        ("rust-autocfg" ,rust-autocfg-1.0)
        ("rust-cc" ,rust-cc-1)
        ("rust-pkg-config" ,rust-pkg-config-0.3)
        ("rust-openssl-src" ,rust-openssl-src-111.0.1)
        ("rust-vcpkg" ,rust-vcpkg-0.2))))
     `(("openssl" ,openssl)
       ("pkg-config" ,pkg-config)))
    (home-page "";)
    (synopsis "FFI bindings to OpenSSL")
     "This package provides FFI bindings to OpenSSL for use in rust crates.")
    (license license:expat)))

phase `patch-cargo-checksums' succeeded after 69.7 seconds
starting phase `build'                                                          
   Compiling autocfg v1.0.1
   Compiling memchr v2.3.3
   Compiling lazy_static v1.4.0
   Compiling regex-syntax v0.6.18
   Compiling libc v0.2.71
   Compiling pkg-config v0.3.17
   Compiling cc v1.0.58
   Compiling bitflags v1.2.1
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.30
   Compiling cpython v0.3.0
   Compiling cfg-if v0.1.10
   Compiling thread_local v1.0.1
   Compiling foreign-types v0.3.2
   Compiling aho-corasick v0.7.13
   Compiling num-traits v0.2.12
   Compiling regex v1.3.9
   Compiling openssl-sys v0.9.58
error[E0463]: can't find crate for `openssl_src`
6 | extern crate openssl_src;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `openssl-sys`.
warning: build failed, waiting for other jobs to finish...
error: build failed
command "cargo" "build" "--features" "" "--release" failed with status 101


reply via email to

[Prev in Thread] Current Thread [Next in Thread]