From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eIioM3Te/WWyfQEAqHPOHw:P1 (envelope-from ) for ; Fri, 22 Mar 2024 20:39:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eIioM3Te/WWyfQEAqHPOHw (envelope-from ) for ; Fri, 22 Mar 2024 20:39:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b="2 INVGy8"; dmarc=pass (policy=quarantine) header.from=runbox.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711136372; a=rsa-sha256; cv=none; b=GaFeXGcMvk3TJV9CIJKvQMbSCSAwR9zhzYdZPdfLQkhXOaqV2KSBO0PZnI2MoiMUFvHoAq X10vSJDJ9tXtVdLhEH8/Da1PA6huTj/ZX0bByaDMi8eev39aaxldCwJBU4tO/NgmxFM9Jc Z5MN/WkahJXQFeXphm4ybKIpy4Iz1DquSHJRwXqrYsm3W7WvuBKK6laEJla2HRlX7WcwGN bV35K7ykCj4b9TeJJzfTWj+EY0d4XHkknSTsUzeRF0yT1JPbevw/XG4pWnCYUBJD65OkXt nDuKSRTJTkzf2SYwPsGDZ/jfAyT9Y1mOMe6w1Ku/j4HUDvxNm154AswB+MgEfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b="2 INVGy8"; dmarc=pass (policy=quarantine) header.from=runbox.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711136372; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JIGRmVxdTypFz+435DcpoWRplmzWbnkpr9WJnAFS6tc=; b=R/WXXfs5coJ6xfaEvAWg5uQ0hH5AgdT2CDCNFffoIvPDq26Uw59p88Qx3lxJmTNjUofiRp HqzJCMsOHaPx5hQpinuB+cGs97gv7qfubvANBA+ZpXybJwC6vUElBQ5Ix4DyO0Nk7L/Whm CQlcEtgzyA0W3+l354hGMJcmOmfYSXz3P17WUB+RN/AT3fSMSMG+MTQfQeK4QzAbD/ifpF CpqbS523FmFRKfoiwHymGhiho29uJRnQ/JlbGPGgphiKG0zqlIWwUNYzkBbMa3CLl987am t6WdVc12HYYwc9wbDiJIbbuEDNqGM8JtrfrUx46e8MtvfubJumN4OddSu9gKZw== 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 65B7A1D43C for ; Fri, 22 Mar 2024 20:39:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnkjN-0006uE-5a; Fri, 22 Mar 2024 15:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnkjI-0006tz-Ax; Fri, 22 Mar 2024 15:39:04 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnkjF-0004t2-D6; Fri, 22 Mar 2024 15:39:04 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rnkjA-006q0k-8B; Fri, 22 Mar 2024 20:38:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type; bh=JIGRmVxdTypFz+435DcpoWRplmzWbnkpr9WJnAFS6tc=; b=2 INVGy8Ie/Xkrnj2WVDXIBEzCyMgDJzHpRMOhx8PGIcmiU7WX4D3q6pR3XPotz8gfk7LT5WYXh309e jG2NCtJro4FJsyd6ew7AMUY0YJ3fLDTwZi089idbmkI9CV4TWAd+rXsCS6DarC8Aljh2J1Xj7+hJg hVVS8h00tSIBPqZCMi6SNjvsdzrg6XQDDFwuOwpwxqbVVBnaVOJDUT9Wob2lLwcB5yDtU6A4zspWs 51Jp+MObdaAkr3oWZT6E+zWP3x2e5FYWVdKZIAPyGtIvHANNKoNVG5EXYBVmqTKgW51DtX7QpsQoY umvBwxMa1LiFtd/TnaiM+uSRPOGSsPJ9w==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rnkj9-0004dU-R5; Fri, 22 Mar 2024 20:38:55 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rnkj0-00EeGz-1n; Fri, 22 Mar 2024 20:38:46 +0100 Content-Type: multipart/mixed; boundary="------------9Vkflbvrs3eZRnULLW90cmbH" Message-ID: <7b845ef7-f15e-45b9-9a31-e645ce736ec4@runbox.com> Date: Fri, 22 Mar 2024 12:38:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: packaging python-cyvcf2 To: Simon Tournier , help-guix , guix-science@gnu.org References: <87il1eb867.fsf@gmail.com> From: Alexis Simon Content-Language: en-US In-Reply-To: <87il1eb867.fsf@gmail.com> Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=alexis.simon@runbox.com; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -9.77 X-Migadu-Queue-Id: 65B7A1D43C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.77 X-TUID: 750Yu51ZWk+c This is a multi-part message in MIME format. --------------9Vkflbvrs3eZRnULLW90cmbH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/03/2024 08:25, Simon Tournier wrote: > Hi, > > On jeu., 21 mars 2024 at 18:03, Alexis Simon via Guix-Science wrote: > >> The build is failing with this error: >> running build_ext >> # cyvcf2: htslib mode is BUILTIN >> # cyvcf2: htslib configure options is None >> error: [Errno 2] No such file or directory: './configure' >> error: in phase 'build': uncaught exception: >> %exception #<&invoke-error program: "python" arguments: ("./setup.py" >> "build") exit-status: 1 term-signal: #f stop-signal: #f> >> >> What is very disturbing is that it builds fine in a debugging >> environment following the documentation [2] > > Indeed! Well, another undocumented trick. ;-) > > guix build -L . python-cyvcf2 \ > --with-source=python-cyvcf2=/tmp/cyvcf2-0.30.28 > > where /tmp/cyvcf2-0.30.28 is the uncompressed output of “guix build -S” > that I tweak. Adding this: > > --8<---------------cut here---------------start------------->8--- > diff -u /tmp/guix-build-python-cyvcf2-0.30.28.drv-0/cyvcf2-0.30.28/setup.py /tmp/cyvcf2-0.30.28/setup.py > --- /tmp/guix-build-python-cyvcf2-0.30.28.drv-0/cyvcf2-0.30.28/setup.py 2024-01-30 17:46:32.000000000 +0100 > +++ /tmp/cyvcf2-0.30.28/setup.py 2024-03-22 16:15:28.124301350 +0100 > @@ -83,7 +83,13 @@ > if htslib_configure_options: > configure_args.extend(htslib_configure_options.split()) > > - subprocess.run(configure_args, check=True) > + print(configure_args, > + "File exists?", os.path.exists(configure_args[0]), > + flush=True) > + try: > + subprocess.run(configure_args, check=True) > + except: > + print("BANG!") > subprocess.run(["make"], check=True) > > os.chdir(current_directory) > --8<---------------cut here---------------end--------------->8--- > > It leads to this output: > > --8<---------------cut here---------------start------------->8--- > running build_ext > # cyvcf2: htslib mode is BUILTIN > # cyvcf2: htslib configure options is None > ['./configure', 'CFLAGS=-fPIC'] File exists? True > echo '# Default htscodecs.mk generated by Makefile' > htscodecs.mk > echo 'include $(HTSPREFIX)htscodecs_bundled.mk' >> htscodecs.mk > ./hts_probe_cc.sh 'gcc' '-g -Wall -O2 -fvisibility=hidden ' '-fvisibility=hidden' >> htscodecs.mk > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh: line 1: ./hts_probe_cc.sh: No such file or directory > Makefile:141: htscodecs.mk: No such file or directory > make: *** [Makefile:124: htscodecs.mk] Error 127 > BANG! > Traceback (most recent call last): > [...] > --8<---------------cut here---------------end--------------->8--- > > Arf, then I have not investigated further. > > I think it does not come from ’./configure’ as wrongly reported but from > something triggered by it. > > Let me know your progress. Maybe I could give a closer look next week. Thanks a lot for the trick, I was able to finish compiling it, but going another route (i.e. unbundling htslib). I've abandoned running the tests though, I'm hitting a module not found error. pytest doesn't manage to load the just built module, probably an issue with the paths. I'm attaching the new version for reference. Cheers, Alexis > > Cheers, > simon > --------------9Vkflbvrs3eZRnULLW90cmbH Content-Type: text/x-scheme; charset=UTF-8; name="cyvcf2.scm" Content-Disposition: attachment; filename="cyvcf2.scm" Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGN5dmNmMikKICAjOnVzZS1tb2R1bGUgKChndWl4IGxpY2Vuc2Vz KSAjOnByZWZpeCBsaWNlbnNlOikKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcykKICAj OnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBiYXNlKQogICM6dXNlLW1vZHVsZSAoZ251IHBh Y2thZ2VzIGF1dG90b29scykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBidWlsZC10 b29scykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBjbWFrZSkKICAjOnVzZS1tb2R1 bGUgKGdudSBwYWNrYWdlcyBjaGVjaykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBw eXRob24pCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgcHl0aG9uLWJ1aWxkKQogICM6 dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIHB5dGhvbi1jaGVjaykKICAjOnVzZS1tb2R1bGUg KGdudSBwYWNrYWdlcyBweXRob24teHl6KQogICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2Vz IHB5dGhvbi1zY2llbmNlKQogICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIHB5dGhvbi13 ZWIpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgYmlvaW5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l6enEycnhx a2siKSkKICAgICAgICAobW9kdWxlcyAnKChndWl4IGJ1aWxkIHV0aWxzKSkpCiAgICAgICAg KHNuaXBwZXQKICAgICAgICAgJyhiZWdpbgogICAgICAgICAgICAoZGVsZXRlLWZpbGUtcmVj dXJzaXZlbHkgImh0c2xpYiIpKSkpKQogICAgKGJ1aWxkLXN5c3RlbSBweXByb2plY3QtYnVp bGQtc3lzdGVtKQogICAgKGFyZ3VtZW50cwogICAgIGAoIzp0ZXN0cz8gI2YKICAgICAgICM6 cGhhc2VzCiAgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0YW5kYXJkLXBoYXNlcwogICAgICAg ICAgOyAoYWRkLWJlZm9yZSAnY2hlY2sgJ3JtLWZvbGRlcgogICAgICAgICAgOyAgIChsYW1i ZGEgXwogICAgICAgICAgOyAgICAgICAgICAgKGNvcHktcmVjdXJzaXZlbHkgImN5dmNmMi90 ZXN0cyIgIi4vdGVzdHMiKQogICAgICAgICAgOyAgICAgICAgICAgKGRlbGV0ZS1maWxlLXJl Y3Vyc2l2ZWx5ICJjeXZjZjIiKQogICAgICAgICAgOyAgICAgICAgICAgKG1rZGlyLXAgImN5 dmNmMiIpCiAgICAgICAgICA7ICAgICAgICAgICAoY29weS1yZWN1cnNpdmVseSAidGVzdHMi ICJjeXZjZjIvdGVzdHMiKSkpCiAgICAgICAgICAoYWRkLWFmdGVyICd1bnBhY2sgJ2ZpeC1z ZXR1cAogICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IGlucHV0cyAjOmFsbG93LW90aGVy LWtleXMpCiAgICAgICAgICAgICAgICAgICAgIChzdWJzdGl0dXRlKiAic2V0dXAucHkiCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKCIgb3Igbm90IGNoZWNrX2xpYmh0 c1xcKFxcKSIpICIiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKCgibGli cmFyeV9kaXJzPWh0c2xpYl9saWJyYXJ5X2RpcnMiKQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kICJsaWJyYXJ5X2RpcnM9W1wiIiAoYXNzb2Mt cmVmIGlucHV0cyAiaHRzbGliIikgIi9saWJcIl0iKSkKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICgoIlxcKyBodHNsaWJfaW5jbHVkZV9kaXJzIikKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCAiKyBbXCIiIChhc3NvYy1y ZWYgaW5wdXRzICJodHNsaWIiKSAiL2luY2x1ZGVcIl0iKSkpKSkKICAgICAgICAgIChhZGQt YmVmb3JlICdidWlsZCAnc2V0ZW52CiAgICAgICAgICAgICAobGFtYmRhIF8KICAgICAgICAg ICAgICAgICAgICAgKHNldGVudiAiQ1lUSE9OSVpFIiAiMSIpCiAgICAgICAgICAgICAgICAg ICAgIChzZXRlbnYgIkNZVkNGMl9IVFNMSUJfTU9ERSIgIkVYVEVSTkFMIikpKSkpKQogICAg KGlucHV0cyAobGlzdCBodHNsaWIgemxpYiBsaWJkZWZsYXRlIGN1cmwgb3BlbnNzbCBweXRo b24tY3l0aG9uKSkKICAgIChuYXRpdmUtaW5wdXRzIChsaXN0IHB5dGhvbi1weXRlc3QpKQog ICAgKHByb3BhZ2F0ZWQtaW5wdXRzIChsaXN0IHB5dGhvbi1jbGljawogICAgICAgICAgICAg ICAgICAgICAgICAgICAgIHB5dGhvbi1jb2xvcmVkbG9ncwogICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHB5dGhvbi1udW1weSkpCiAgICAoaG9tZS1wYWdlICJodHRwczovL2dpdGh1 Yi5jb20vYnJlbnRwL2N5dmNmMi8iKQogICAgKHN5bm9wc2lzICJmYXN0IHZjZiBwYXJzaW5n IHdpdGggY3l0aG9uICsgaHRzbGliIikKICAgIChkZXNjcmlwdGlvbiAiZmFzdCB2Y2YgcGFy c2luZyB3aXRoIGN5dGhvbiArIGh0c2xpYiIpCiAgICAobGljZW5zZSBsaWNlbnNlOmV4cGF0 KSkpCgo= --------------9Vkflbvrs3eZRnULLW90cmbH-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YGHWMNj4/WUCNAAA62LTzQ:P1 (envelope-from ) for ; Fri, 22 Mar 2024 22:32:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YGHWMNj4/WUCNAAA62LTzQ (envelope-from ) for ; Fri, 22 Mar 2024 22:32:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=runbox.com header.s=selector1 header.b="2 INVGy8"; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711143128; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JIGRmVxdTypFz+435DcpoWRplmzWbnkpr9WJnAFS6tc=; b=Z9qJKFccBEPkPQy3NB/hVz1n3+WnvBcoYGYxqQvCqj1ClJwzan2Z2s0vP+FtIB+FOQoIFB U9Uk0FbNZIaTvCiMi9I8owSWs1zm0y5DAha1PWBdV66/H7gkzdLiEHxS/R/iMtygWgQXdH pASDNyI8rj//SE2IhKPWFzedN7hmqgqE2mTrYPWejYRkT0Aqp3m7R80sULRyUIdImMTrCB opkwF6g6f1zDA7jwe/9EOFuuCE9ce8nNQZC+91YeC/MLQZ2EvgHMQi+05AKGJJ0xBWygtA +70EIyt5cCZMXt/6Uq28oypWRdWhD7nlrH8kokpzsSRRC1z/UerhcKAc7efhVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=runbox.com header.s=selector1 header.b="2 INVGy8"; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711143128; a=rsa-sha256; cv=none; b=gz4Go2fBqCKErOsZyHgMjLeFIjh/cHyrsDdGqPN4ZpiBAGz3pSGhSK3Y7ZKH+hUTF2c6f6 tNWmaILAnq2lzMo5p2ydfqflVREuIIzlNpQ8p16giu/21+rjeEy/OAc2mOcWr985aIKfuA omInFejdvE39j9FoKKyQArluBVsPCcvmUHy9+roiz0/qNJzQKNoQuc5Kk745S+V54FDvJ+ qkfaumvEplublpSIeLTgZnRsyPL/DugE00Myb1zV62RK8sQqLrVBp5fmwmhdZFkGFG+bLS zZG53u41RaEMHfYeHorPhPt2IQShEY6kR3wJTlOebMOOQnAo7S5XqtTSldI7yg== 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 7256A558DA for ; Fri, 22 Mar 2024 22:32:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnmUS-0004oR-D0; Fri, 22 Mar 2024 17:31:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnkjI-0006tz-Ax; Fri, 22 Mar 2024 15:39:04 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnkjF-0004t2-D6; Fri, 22 Mar 2024 15:39:04 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rnkjA-006q0k-8B; Fri, 22 Mar 2024 20:38:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type; bh=JIGRmVxdTypFz+435DcpoWRplmzWbnkpr9WJnAFS6tc=; b=2 INVGy8Ie/Xkrnj2WVDXIBEzCyMgDJzHpRMOhx8PGIcmiU7WX4D3q6pR3XPotz8gfk7LT5WYXh309e jG2NCtJro4FJsyd6ew7AMUY0YJ3fLDTwZi089idbmkI9CV4TWAd+rXsCS6DarC8Aljh2J1Xj7+hJg hVVS8h00tSIBPqZCMi6SNjvsdzrg6XQDDFwuOwpwxqbVVBnaVOJDUT9Wob2lLwcB5yDtU6A4zspWs 51Jp+MObdaAkr3oWZT6E+zWP3x2e5FYWVdKZIAPyGtIvHANNKoNVG5EXYBVmqTKgW51DtX7QpsQoY umvBwxMa1LiFtd/TnaiM+uSRPOGSsPJ9w==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rnkj9-0004dU-R5; Fri, 22 Mar 2024 20:38:55 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rnkj0-00EeGz-1n; Fri, 22 Mar 2024 20:38:46 +0100 Content-Type: multipart/mixed; boundary="------------9Vkflbvrs3eZRnULLW90cmbH" Message-ID: <7b845ef7-f15e-45b9-9a31-e645ce736ec4@runbox.com> Date: Fri, 22 Mar 2024 12:38:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: packaging python-cyvcf2 To: Simon Tournier , help-guix , guix-science@gnu.org References: <87il1eb867.fsf@gmail.com> Content-Language: en-US In-Reply-To: <87il1eb867.fsf@gmail.com> Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=alexis.simon@runbox.com; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 22 Mar 2024 17:31:47 -0400 X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexis Simon via Guix-Science Reply-To: Alexis Simon Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.82 X-Migadu-Queue-Id: 7256A558DA X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.82 X-TUID: 9UvlKL7Yg/E8 Message-ID: <20240322193841.K_DHUqx-tDHS_JZDmw705Tp9TdflgjdeYxSM0cWdrI8@z> This is a multi-part message in MIME format. --------------9Vkflbvrs3eZRnULLW90cmbH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/03/2024 08:25, Simon Tournier wrote: > Hi, > > On jeu., 21 mars 2024 at 18:03, Alexis Simon via Guix-Science wrote: > >> The build is failing with this error: >> running build_ext >> # cyvcf2: htslib mode is BUILTIN >> # cyvcf2: htslib configure options is None >> error: [Errno 2] No such file or directory: './configure' >> error: in phase 'build': uncaught exception: >> %exception #<&invoke-error program: "python" arguments: ("./setup.py" >> "build") exit-status: 1 term-signal: #f stop-signal: #f> >> >> What is very disturbing is that it builds fine in a debugging >> environment following the documentation [2] > > Indeed! Well, another undocumented trick. ;-) > > guix build -L . python-cyvcf2 \ > --with-source=python-cyvcf2=/tmp/cyvcf2-0.30.28 > > where /tmp/cyvcf2-0.30.28 is the uncompressed output of “guix build -S” > that I tweak. Adding this: > > --8<---------------cut here---------------start------------->8--- > diff -u /tmp/guix-build-python-cyvcf2-0.30.28.drv-0/cyvcf2-0.30.28/setup.py /tmp/cyvcf2-0.30.28/setup.py > --- /tmp/guix-build-python-cyvcf2-0.30.28.drv-0/cyvcf2-0.30.28/setup.py 2024-01-30 17:46:32.000000000 +0100 > +++ /tmp/cyvcf2-0.30.28/setup.py 2024-03-22 16:15:28.124301350 +0100 > @@ -83,7 +83,13 @@ > if htslib_configure_options: > configure_args.extend(htslib_configure_options.split()) > > - subprocess.run(configure_args, check=True) > + print(configure_args, > + "File exists?", os.path.exists(configure_args[0]), > + flush=True) > + try: > + subprocess.run(configure_args, check=True) > + except: > + print("BANG!") > subprocess.run(["make"], check=True) > > os.chdir(current_directory) > --8<---------------cut here---------------end--------------->8--- > > It leads to this output: > > --8<---------------cut here---------------start------------->8--- > running build_ext > # cyvcf2: htslib mode is BUILTIN > # cyvcf2: htslib configure options is None > ['./configure', 'CFLAGS=-fPIC'] File exists? True > echo '# Default htscodecs.mk generated by Makefile' > htscodecs.mk > echo 'include $(HTSPREFIX)htscodecs_bundled.mk' >> htscodecs.mk > ./hts_probe_cc.sh 'gcc' '-g -Wall -O2 -fvisibility=hidden ' '-fvisibility=hidden' >> htscodecs.mk > /gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh: line 1: ./hts_probe_cc.sh: No such file or directory > Makefile:141: htscodecs.mk: No such file or directory > make: *** [Makefile:124: htscodecs.mk] Error 127 > BANG! > Traceback (most recent call last): > [...] > --8<---------------cut here---------------end--------------->8--- > > Arf, then I have not investigated further. > > I think it does not come from ’./configure’ as wrongly reported but from > something triggered by it. > > Let me know your progress. Maybe I could give a closer look next week. Thanks a lot for the trick, I was able to finish compiling it, but going another route (i.e. unbundling htslib). I've abandoned running the tests though, I'm hitting a module not found error. pytest doesn't manage to load the just built module, probably an issue with the paths. I'm attaching the new version for reference. Cheers, Alexis > > Cheers, > simon > --------------9Vkflbvrs3eZRnULLW90cmbH Content-Type: text/x-scheme; charset=UTF-8; name="cyvcf2.scm" Content-Disposition: attachment; filename="cyvcf2.scm" Content-Transfer-Encoding: base64 KGRlZmluZS1tb2R1bGUgKGN5dmNmMikKICAjOnVzZS1tb2R1bGUgKChndWl4IGxpY2Vuc2Vz KSAjOnByZWZpeCBsaWNlbnNlOikKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcykKICAj OnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBiYXNlKQogICM6dXNlLW1vZHVsZSAoZ251IHBh Y2thZ2VzIGF1dG90b29scykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBidWlsZC10 b29scykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBjbWFrZSkKICAjOnVzZS1tb2R1 bGUgKGdudSBwYWNrYWdlcyBjaGVjaykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBw eXRob24pCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgcHl0aG9uLWJ1aWxkKQogICM6 dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIHB5dGhvbi1jaGVjaykKIC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dHBzOi8vZ2l0 aHViLmNvbS9icmVudHAvY3l2Y2YyIikKICAgICAgICAgICAgICAoY29tbWl0IChzdHJpbmct YXBwZW5kICJ2IiB2ZXJzaW9uKSkpKQogICAgICAgIChzaGEyNTYKICAgICAgICAgIChiYXNl MzIgIjE2eWhmYXg1MDl6eWlwOGtrcTJiMGxmbHg1YmRxNXdoeTdkNzg1YXlycXl6enEycnhx a2siKSkKICAgICAgICAobW9kdWxlcyAnKChndWl4IGJ1aWxkIHV0aWxzKSkpCiAgICAgICAg KHNuaXBwZXQKICAgICAgICAgJyhiZWdpbgogICAgICAgICAgICAoZGVsZXRlLWZpbGUtcmVj dXJzaXZlbHkgImh0c2xpYiIpKSkpKQogICAgKGJ1aWxkLXN5c3RlbSBweXByb2plY3QtYnVp bGQtc3lzdGVtKQogICAgKGFyZ3VtZW50cwogICAgIGAoIzp0ZXN0cz8gI2YKICAgICAgICM6 cGhhc2VzCiAgICAgICAgKG1vZGlmeS1waGFzZXMgJXN0YW5kYXJkLXBoYXNlcwogICAgICAg ICAgOyAoYWRkLWJlZm9yZSAnY2hlY2sgJ3JtLWZvbGRlcgogICAgICAgICAgOyAgIChsYW1i ZGEgXwogICAgICAgICAgOyAgICAgICAgICAgKGNvcHktcmVjdXJzaXZlbHkgImN5dmNmMi90 ZXN0cyIgIi4vdGVzdHMiKQogICAgICAgICAgOyAgICAgICAgICAgKGRlbGV0ZS1maWxlLXJl Y3Vyc2l2ZWx5ICJjeXZjZjIiKQogICAgICAgICAgOyAgICAgICAgICAgKG1rZGlyLXAgImN5 dmNmMiIpCiAgICAgICAgICA7ICAgICAgICAgICAoY29weS1yZWN1cnNpdmVseSAidGVzdHMi ICJjeXZjZjIvdGVzdHMiKSkpCiAgICAgICAgICAoYWRkLWFmdGVyICd1bnBhY2sgJ2ZpeC1z ZXR1cAogICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IGlucHV0cyAjOmFsbG93LW90aGVy LWtleXMpCiAgICAgICAgICAgICAgICAgICAgIChzdWJzdGl0dXRlKiAic2V0dXAucHkiCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKCIgb3Igbm90IGNoZWNrX2xpYmh0 c1xcKFxcKSIpICIiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKCgibGli cmFyeV9kaXJzPWh0c2xpYl9saWJyYXJ5X2RpcnMiKQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kICJsaWJyYXJ5X2RpcnM9W1wiIiAoYXNzb2Mt cmVmIGlucHV0cyAiaHRzbGliIikgIi9saWJcIl0iKSkKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICgoIlxcKyBodHNsaWJfaW5jbHVkZV9kaXJzIikKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCAiKyBbXCIiIChhc3NvYy1y ZWYgaW5wdXRzICJodHNsaWIiKSAiL2luY2x1ZGVcIl0iKSkpKSkKICAgICAgICAgIChhZGQt YmVmb3JlICdidWlsZCAnc2V0ZW52CiAgICAgICAgICAgICAobGFtYmRhIF8KICAgICAgICAg ICAgICAgICAgICAgKHNldGVudiAiQ1lUSE9OSVpFIiAiMSIpCiAgICAgICAgICAgICAgICAg ICAgIChzZXRlbnYgIkNZVkNGMl9IVFNMSUJfTU9ERSIgIkVYVEVSTkFMIikpKSkpKQogICAg KGlucHV0cyAobGlzdCBodHNsaWIgemxpYiBsaWJkZWZsYXRlIGN1cmwgb3BlbnNzbCBweXRo b24tY3l0aG9uKSkKICAgIChuYXRpdmUtaW5wdXRzIChsaXN0IHB5dGhvbi1weXRlc3QpKQog ICAgKHByb3BhZ2F0ZWQtaW5wdXRzIChsaXN0IHB5dGhvbi1jbGljawogICAgICAgICAgICAg ICAgICAgICAgICAgICAgIHB5dGhvbi1jb2xvcmVkbG9ncwogICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHB5dGhvbi1udW1weSkpCiAgICAoaG9tZS1wYWdlICJodHRwczovL2dpdGh1 Yi5jb20vYnJlbnRwL2N5dmNmMi8iKQogICAgKHN5bm9wc2lzICJmYXN0IHZjZiBwYXJzaW5n IHdpdGggY3l0aG9uICsgaHRzbGliIikKICAgIChkZXNjcmlwdGlvbiAiZmFzdCB2Y2YgcGFy c2luZyB3aXRoIGN5dGhvbiArIGh0c2xpYiIpCiAgICAobGljZW5zZSBsaWNlbnNlOmV4cGF0 KSkpCgo= --------------9Vkflbvrs3eZRnULLW90cmbH--