all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Hamzeh Nasajpour" <h.nasajpour@pantherx.org>
To: "SuarezMiguelC via" <help-guix@gnu.org>
Subject: Re: Error in package building : error[E0463]: can't find crate for `openssl_src`
Date: Sun, 08 Nov 2020 23:02:10 +0330	[thread overview]
Message-ID: <bbe40725-d86b-4bcb-a97e-aac04c999a03@www.fastmail.com> (raw)
In-Reply-To: <bbc5ed5c-4e2e-4e9d-bc80-4f7903bbc872@www.fastmail.com>

Hi guys,

Anybody has any solution?  For now I face with this error in package installation:
```
...
   Compiling etebase-python v0.30.0 (/tmp/guix-build-python-etebase-py-0.30.0.drv-0/etebase-0.30.0)
error: unterminated double quote string
  --> src/lib.rs:63:44
   |
63 | include!(concat!(env!("OUT_DIR"), "/glue.rs"));
   |                                            ^^^^^

error: aborting due to previous error

error: could not compile `etebase-python`.
```

This error is related to this line: https://github.com/etesync/etebase-py/blob/master/src/lib.rs#L62

Quick review: 
1. I want to package `etebase-py`.
2. the build system for etebase-py tries to also build etebase-rs. 
3. It's using the `setuptools-rust` for installing the rust dependencies.
4. So I packaged `etebase-py` with `cargo` build system, then I can patch the build system to installing the python files. In this step I faced with the above errors.

This is my package definition:
```
(define-public python-etebase-py
  (package
    (name "python-etebase-py")
    (version "0.30.0")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "etebase" version))
        (sha256
          (base32
            "1py635aqnxx3jy4x6zffriqi0l9gc2gk06h0ms91k4rs68h0gb0i"))
        (modules '((guix build utils)))
        (snippet
         '(begin
            (substitute* "Cargo.toml"
              (("etebase = " all) "etebase = \"^0.1.0\" #"))
            (substitute* "Cargo.toml"
              (("flapigen = " all) "flapigen = \"^0.6.0-pre7\" #"))
            (substitute* "Cargo.toml"
              (("0.10.30.*") "0.10.30\" }\n"))
            (substitute* "src/lib.rs"
              (("mod fixes*") "#![feature(inner_deref)]\" \nmod fixes {"))
          #t))))
    (build-system cargo-build-system)
    (arguments
      `(#:tests? #f
        #:cargo-inputs
        (("rust-openssl" ,rust-openssl-0.10.30)
         ("rust-cpython" ,rust-cpython-0.3)
         ("rust-log" ,rust-log-0.4)
         ("rust-etebase-rs" ,rust-etebase-rs)
         ("rust-flapigen" ,rust-flapigen-0.6)        
         ("rust-env-logger" ,rust-env-logger-0.7))
        #:phases
         (modify-phases %standard-phases
           (add-after 'unpack 'disable-rust-installation
			(lambda* (#:key inputs #:allow-other-keys)
             (let ((openssl (assoc-ref inputs "openssl"))
                   (source  (assoc-ref %build-inputs "source"))
                   (libsodium (assoc-ref inputs "libsodium")))
               (setenv "RUST_BACKTRACE" "full")
               (setenv "RUSTC_BOOTSTRAP" "1")
               ;(setenv "OPENSSL_DIR" openssl)
               (setenv "SODIUM_LIB_DIR" (string-append libsodium "/lib")))
             #t))
             )))
    (native-inputs
      `(("libsodium" ,libsodium)
        ("python-msgpack" ,python-msgpack)
        ("openssl" ,openssl)
        ("perl" ,perl)
        ("pkg-config" ,pkg-config)
        ("python-setuptools-rust" ,python-setuptools-rust)))
    (inputs
      `(("python" ,python)))
    (home-page "https://github.com/etesync/etebase-py")
    (synopsis "A python client library for EteSync.")
    (description
              "This module provides a python API to interact with an EteSync server. 
It currently implements AddressBook and Calendar access, and supports two-way sync (both push and pull) to the server.")
    (license license:gpl3)))
```


Any idea?


      reply	other threads:[~2020-11-08 19:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21 11:16 Error in package building : error[E0463]: can't find crate for `openssl_src` Hamzeh Nasajpour
2020-10-21 12:46 ` John Soo
2020-10-21 13:37   ` Hamzeh Nasajpour
2020-10-21 13:40     ` John Soo
2020-10-21 13:46       ` Hamzeh Nasajpour
2020-10-21 13:57         ` Hamzeh Nasajpour
2020-10-21 14:37           ` John Soo
2020-10-22  8:36             ` Hamzeh Nasajpour
2020-10-24 19:47           ` Efraim Flashner
2020-10-25 10:02             ` Hamzeh Nasajpour
2020-11-08 19:32               ` Hamzeh Nasajpour [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbe40725-d86b-4bcb-a97e-aac04c999a03@www.fastmail.com \
    --to=h.nasajpour@pantherx.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.