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 oBAUDs61fl+jLgAA0tVLHw (envelope-from ) for ; Thu, 08 Oct 2020 06:46:38 +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 cC7VCc61fl+nLwAAB5/wlQ (envelope-from ) for ; Thu, 08 Oct 2020 06:46:38 +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 8928C9401D9 for ; Thu, 8 Oct 2020 06:46:37 +0000 (UTC) Received: from localhost ([::1]:43436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQPhC-0003G2-My for larch@yhetil.org; Thu, 08 Oct 2020 02:46:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQPgh-0003Eh-Lw for bug-guix@gnu.org; Thu, 08 Oct 2020 02:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQPgg-0000nT-52 for bug-guix@gnu.org; Thu, 08 Oct 2020 02:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQPgg-0001hr-2T for bug-guix@gnu.org; Thu, 08 Oct 2020 02:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43855: gnu: python-shapely fails to build Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Oct 2020 06:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43855 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Malte Frank Gerdes Received: via spool by 43855-submit@debbugs.gnu.org id=B43855.16021395116492 (code B ref 43855); Thu, 08 Oct 2020 06:46:02 +0000 Received: (at 43855) by debbugs.gnu.org; 8 Oct 2020 06:45:11 +0000 Received: from localhost ([127.0.0.1]:58524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQPfr-0001ge-4j for submit@debbugs.gnu.org; Thu, 08 Oct 2020 02:45:11 -0400 Received: from flashner.co.il ([178.62.234.194]:37898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQPfm-0001fl-As for 43855@debbugs.gnu.org; Thu, 08 Oct 2020 02:45:09 -0400 Received: from localhost (unknown [37.46.46.107]) by flashner.co.il (Postfix) with ESMTPSA id 0BAB84014A; Thu, 8 Oct 2020 06:44:59 +0000 (UTC) Date: Thu, 8 Oct 2020 09:44:27 +0300 From: Efraim Flashner Message-ID: <20201008064427.GN21174@E5400> References: <86h7r567u6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TN8pJM9vJMHHFgJc" Content-Disposition: inline In-Reply-To: <86h7r567u6.fsf@gmail.com> 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 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43855@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.69 X-TUID: oG44nwLgqfYM --TN8pJM9vJMHHFgJc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 07, 2020 at 11:32:01PM +0200, Malte Frank Gerdes wrote: > Hi, >=20 > python-shapely fails to build, because it can't find the c libary, > the package definition was not complete (patch at the end). >=20 > Now the package finds a C libary but the Test Suite fails with the > follwoing error: >=20 > --8<---------------cut here---------------start------------->8--- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > FAIL: test_operations (tests.test_operations.OperationsTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/guix-build-python-shapely-1.6.4.post2.drv-0/Shapely-1.6.4.po= st2/tests/test_operations.py", line 25, in test_operations > self.assertIsInstance(point.intersection(Point(-1, -1)), > AssertionError: i= s not an instance of =20 > Malte >=20 > --8<---------------cut here---------------start------------->8--- > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index 459526941b..02744bfc6d 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -533,13 +533,16 @@ pidof, tty, taskset, pmap.") > (let ((geos (assoc-ref inputs "geos")) > (glibc (assoc-ref inputs ,(if (%current-target-system) > "cross-libc" "libc")))) > - (substitute* "shapely/geos.py" > - (("_lgeos =3D load_dll\\('geos_c', fallbacks=3D.*\\)") > - (string-append "_lgeos =3D load_dll('geos_c', fallback= s=3D['" > - geos "/lib/libgeos_c.so'])")) > - (("free =3D load_dll\\('c'\\)\\.free") > - (string-append "free =3D load_dll('c', fallbacks=3D['" > - glibc "/lib/libc.so.6']).free")))) > + (map > + (lambda (file) > + (substitute* file > + (("_lgeos =3D load_dll\\('geos_c', fallbacks=3D.*\\)= ") > + (string-append "_lgeos =3D load_dll('geos_c', fallb= acks=3D['" > + geos "/lib/libgeos_c.so'])")) > + (("free =3D load_dll\\('c'\\)\\.free") > + (string-append "free =3D load_dll('c', fallbacks=3D= ['" > + glibc "/lib/libc.so.6']).free")))) > + '("shapely/geos.py" "shapely/_buildcfg.py"))) > #t))))) > (home-page "https://github.com/Toblerity/Shapely") > (synopsis "Library for the manipulation and analysis of geometric ob= jects") > --8<---------------cut here---------------end--------------->8--- >=20 substitute* can take a list, so it would be simpler to write this as: substitute* '("shapely/geos.py" "shapely/_buildcfg.py") --=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 --TN8pJM9vJMHHFgJc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9+tUcACgkQQarn3Mo9 g1HfKQ/7BRlneN33T1CWvd0UnETLFtjRv9WyAVrHI0rtP8Dpi+hCFbpFEdiQ4cXK DcxSnC8cq51B3/Ect5DEdz8wdpCv5GX9gSlTDKEYsl+r/Q96epo600ZRF2yzMsqO Zhb4M3+ABIoNyx3wVhzSSSUY0m2z+qAEQ8Lwd2FwrMIeYcj0ulx/Pw8QXOd4nrFn 2VFrbgyhsy/lD0LkWWEO0KntW0FbxjqZU9nN3sG8ReBN2TYdprlt7re9NUFsC6rI 1w15KaiK82FBvZ4iHsogrdK8dULSNK7Js5ChvE5qfudrNxgj8bjnoBqJQI9SN7q9 ax+sEYaJPGRn1xbH1ncuFly1STVOdF8H8iGzXSKErxBkq9e3nW7QtVrLiu9firvB rUKzoe+AWDXndT2TzpDuXd2v6Xf0FSdi5YdW04U0qtsghhhXNSbeBp/J3cD7pega WgUSuK6ySI/57Kofi3foGLYNj+HM8eh938C7Xds6LU8iAddhyQ9mc4kyg6fTs9bM 3jPswW/tC5QwJoqgvfc3wnFOQzk8uDNurw+8h0Z0q/qCUNygYIEzxKvXc2+6+4VY EtgOxpqzobzL09fyEiXXViOP2PH2y0VmWRYx41b73TrT0+P6KFg7o0ZMDV2sG3hG rYsRdXDAT7BzyI3TxKIsXDfKW1qQCOKG9VBSKYBgYtoKAiqNSWY= =DhmD -----END PGP SIGNATURE----- --TN8pJM9vJMHHFgJc--