From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id e4McIfWElF8MFAAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 19:48:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2NORHPWElF9KQQAAB5/wlQ (envelope-from ) for ; Sat, 24 Oct 2020 19:48:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D52E69402A0 for ; Sat, 24 Oct 2020 19:48:04 +0000 (UTC) Received: from localhost ([::1]:53524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWPWF-0006gN-Os for larch@yhetil.org; Sat, 24 Oct 2020 15:48:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWPVw-0006fU-52 for help-guix@gnu.org; Sat, 24 Oct 2020 15:47:45 -0400 Received: from flashner.co.il ([178.62.234.194]:54368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWPVt-0007Tq-QH for help-guix@gnu.org; Sat, 24 Oct 2020 15:47:43 -0400 Received: from localhost (unknown [141.226.13.8]) by flashner.co.il (Postfix) with ESMTPSA id 0BDB6404E9; Sat, 24 Oct 2020 19:47:39 +0000 (UTC) Date: Sat, 24 Oct 2020 22:47:07 +0300 From: Efraim Flashner To: Hamzeh Nasajpour Subject: Re: Error in package building : error[E0463]: can't find crate for `openssl_src` Message-ID: <20201024194707.GA984@E5400> References: <47a7d80e-0e3f-45bb-80c7-d2b829ad0149@www.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/24 15:47:40 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: SuarezMiguelC via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: N8ZY6nl8aSLk --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 21, 2020 at 05:27:16PM +0330, Hamzeh Nasajpour wrote: > I'm so sorry I had a mistake in the previous package definition, I was in= testing. Please remove these lines in the previous definition: > ``` > (substitute* "Cargo.toml" > (("0.10.30\"" all) "0.10.30\"}# ")) > ``` >=20 > It means that my package definition is: > ``` > (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 =3D " all) "#etebase =3D ")) > (substitute* "Cargo.toml" > (("flapigen =3D " all) "flapigen =3D \"^0.6.0-pre7\" #")) I'd add in a substitution here for openssl like this (untested): ;; Don't depend on vendored sources (("0.10.30.*") "0.10.30\" }\n") > #t)))) > (build-system cargo-build-system) > (arguments > `(#:tests? #f > #:cargo-inputs > (("rust-openssl" ,rust-openssl-0.10) > ("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 'patch-env-var > (lambda* (#:key inputs #:allow-other-keys) > (let ((openssl (assoc-ref inputs "openssl"))) > (invoke "rm" "setup.py") > (setenv "RUST_BACKTRACE" "full") > (setenv "OPENSSL_DIR" openssl)) > #t)) > ))) > (native-inputs > `(("openssl" ,openssl) > ("python-msgpack" ,python-msgpack) > ("python-setuptools-rust" ,python-setuptools-rust))) > (inputs > `(("python" ,python) > ; ("rust-etebase-rs" ,rust-etebase-rs) > )) > (home-page "https://github.com/etesync/etebase-rs") > (synopsis "A python client library for EteSync.") > (description > "This module provides a python API to interact with an EteS= ync server.=20 > It currently implements AddressBook and Calendar access, and supports two= -way sync (both push and pull) to the server.") > (license license:gpl3))) > ``` >=20 > With above definition, I set the `OPENSSL_DIR` and add `openssl` as input= but the problem not resolved: > ``` > phase `patch-cargo-checksums' succeeded after 57.8 seconds > starting phase `build' = = = =20 > 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 cc v1.0.58 > Compiling pkg-config v0.3.17 > Compiling bitflags v1.2.1 > Compiling openssl v0.10.30 > Compiling cpython v0.3.0 > Compiling foreign-types-shared v0.1.1 > 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` > --> /tmp/guix-build-python-etebase-py-0.30.0.drv-0/etebase-0.30.0/guix-v= endor/rust-openssl-sys-0.9.58.tar.xz/build/main.rs:6:1 > | > 6 | extern crate openssl_src; > | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate >=20 > error: aborting due to previous error >=20 > 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 > ``` >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl+UhLgACgkQQarn3Mo9 g1GH7w/8D4MRMjqGkPH1Q2xguymh85pWYiZL0+CxxQANEf3BDPVdoS1lpB7pklZY YH+XqOekV27uZrlA/dj950lDereSecroOER5325p7cslJuJovq6SwinVQ3XNtWu1 fD95wGXVcRQ4oPy37gp4v4+IGiAD72ALQ+G4JncNxTDb1F/tp2vhuf2+7F9JWWmn eMjO1+tjEooiN/cyYS/9U8FeB3Nkp9BAn0A0DRFzg7ZYvXIa025LZqqGXxJ1KJ1T VwTYV5iyEnemSMilKekMCXo19JiirJAYvTsRBcIgw0+dAc4Wz4YAxaShUr/bAf+j AsNDzqtVA3D7VNLY2w9L2N7JRY8sIFof2IahCslFo0VYN95z/6U0g3g9vDZlGGUu 4SyJY7fo1XyX9XfagWludYOwKHw2/ODA9+FcM70o8ea0H8lltxs3nIIhtLl6GG1m ejA7FMpSWc00HA76Ce5sDw6aczKlGv/dn56I1NpTMFO1J8QLrIx5CaX4ZYg8UDcZ pZT/FdDCnvTHTlPwB4TLc+dhw/q0TEMkNSPvVddygxCTzWHKr/IvcClFdcjpxGpI MPktX1P3gG8yUduN7u6u3ib/qQUG69JY5xSGrp4pwfv5q5HksQYfNqjuHFscs2WA iJNZJWxyJdIhRK7ulOLHc+9J+29m9TcwU9ziVugQk7wsE9Xw5Ik= =vTmD -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--