From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yLweDBc0fl+LAwAA0tVLHw (envelope-from ) for ; Wed, 07 Oct 2020 21:33:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gGHfBxc0fl/UQQAAbx9fmQ (envelope-from ) for ; Wed, 07 Oct 2020 21:33:11 +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 B0FCB9401BF for ; Wed, 7 Oct 2020 21:33:10 +0000 (UTC) Received: from localhost ([::1]:39160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQH3d-0005mP-KH for larch@yhetil.org; Wed, 07 Oct 2020 17:33:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQH3W-0005mH-PW for bug-guix@gnu.org; Wed, 07 Oct 2020 17:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQH3W-0000pM-GG for bug-guix@gnu.org; Wed, 07 Oct 2020 17:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQH3W-0004lz-C7 for bug-guix@gnu.org; Wed, 07 Oct 2020 17:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43855: gnu: python-shapely fails to build Resent-From: Malte Frank Gerdes Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 07 Oct 2020 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43855 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43855@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160210632818279 (code B ref -1); Wed, 07 Oct 2020 21:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2020 21:32:08 +0000 Received: from localhost ([127.0.0.1]:58269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQH2e-0004kk-Jm for submit@debbugs.gnu.org; Wed, 07 Oct 2020 17:32:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:56030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQH2d-0004kd-Hu for submit@debbugs.gnu.org; Wed, 07 Oct 2020 17:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQH2d-0005e0-AP for bug-guix@gnu.org; Wed, 07 Oct 2020 17:32:07 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:33781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQH2a-0000jR-DU for bug-guix@gnu.org; Wed, 07 Oct 2020 17:32:06 -0400 Received: by mail-ej1-x62c.google.com with SMTP id c22so5085730ejx.0 for ; Wed, 07 Oct 2020 14:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=R5uL50riCc1j1YiqDNZiYLG3XZtYHcf9jYW2mYv9ePM=; b=pKmpkbRckuouB1jj5eVxkgPl1xm7mAastTKicNzRwUxm/mBl/GzUAqpWi550kfYyE9 rcfLIPxvT/86AtcsFXHN/7eJFvLDU98FhjaAp5IKCbSkT+gDVlg3fPXwnstcv5ado5b7 Vg8tfqgCBrYXdHkGJJ/TjNa6JrLeBVReiNRtql9ugahOeG0mNe3o2Y4pE6g8wzWx0h4S i3gj0sFotF6Sd3KM4ciaGAYSstVltejyB9S3Un25tlxihC4YcFzQTAGzQ7dim1U8rD0T Ua6B5ogQ7wJwyR35xARPu1JWB4zoLVncAHNoS3l9QYqaBKgenVsL8Hm+ym5GRbGggpn3 JaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=R5uL50riCc1j1YiqDNZiYLG3XZtYHcf9jYW2mYv9ePM=; b=qdM+bIF1HjkFgAUZmaMyUZ1LYz15VCT4aF3U/5SV6GcamYEvF7MSAMQAiGbDdJeN5j B62FoQPB892b1WDOEmAc4O2/PiuqnHcTHCUQiBDoJhN0ff/aQczh9rh19+6U1kGkFwo4 WClZwOJOv5XQQojUz9xL2yPPEMl3nPiD89tZxYyJPtwYDE5F+ul5r2mKEBUaYvKxXzRJ AO/cM/L02kCN3FCUFwySa0DwbF95RC48wwRwiNDexsoThFnOkmuvI1iaA5QS9CFShFQS Gn8uyrnbDHs27btic2WDdLQ8207wpC3WOHgtO1WdYMaUvqZssL4KeO5uC9iRuA+qXL5v sa3w== X-Gm-Message-State: AOAM5318yRSSDRj3/DwPSmsmiL15NIlndBm11+MOqAe/vHWvU05+xVJ7 09NLaOPP8lYLcvmuKRR5pITBXnoQgY0= X-Google-Smtp-Source: ABdhPJz0DvgzxQ+InuU3MXIVKHXCtgROqnTDToK+F8WQlejl7AaJfdKDweCYWCKfbSheDlTuQXs6Ug== X-Received: by 2002:a17:906:a859:: with SMTP id dx25mr5333228ejb.459.1602106322292; Wed, 07 Oct 2020 14:32:02 -0700 (PDT) Received: from Morphium (ip-84-118-73-55.unity-media.net. [84.118.73.55]) by smtp.gmail.com with ESMTPSA id m7sm2673280edv.88.2020.10.07.14.32.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 14:32:01 -0700 (PDT) From: Malte Frank Gerdes Date: Wed, 07 Oct 2020 23:32:01 +0200 Message-ID: <86h7r567u6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=malte.f.gerdes@gmail.com; helo=mail-ej1-x62c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=pKmpkbRc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.09 X-TUID: xDuawzN42yhd Hi, python-shapely fails to build, because it can't find the c libary, the package definition was not complete (patch at the end). Now the package finds a C libary but the Test Suite fails with the follwoing error: --8<---------------cut here---------------start------------->8--- ====================================================================== 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.post2/tests/test_operations.py", line 25, in test_operations self.assertIsInstance(point.intersection(Point(-1, -1)), AssertionError: is not an instance of --8<---------------cut here---------------end--------------->8--- This package was last successfully built on 13th September. Malte --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 = load_dll\\('geos_c', fallbacks=.*\\)") - (string-append "_lgeos = load_dll('geos_c', fallbacks=['" - geos "/lib/libgeos_c.so'])")) - (("free = load_dll\\('c'\\)\\.free") - (string-append "free = load_dll('c', fallbacks=['" - glibc "/lib/libc.so.6']).free")))) + (map + (lambda (file) + (substitute* file + (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)") + (string-append "_lgeos = load_dll('geos_c', fallbacks=['" + geos "/lib/libgeos_c.so'])")) + (("free = load_dll\\('c'\\)\\.free") + (string-append "free = load_dll('c', fallbacks=['" + 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 objects") --8<---------------cut here---------------end--------------->8---