From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IP7cDj9ydWUeIAEAauVa8A:P1 (envelope-from ) for ; Sun, 10 Dec 2023 09:09:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IP7cDj9ydWUeIAEAauVa8A (envelope-from ) for ; Sun, 10 Dec 2023 09:09:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=riseup.net header.s=squak header.b=kHAqdQyp; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702195775; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ysRYP128GkjXavf473EBUBXQ5VOvWUMxxZtu9SaqmAc=; b=ST7wFtrBtQh8KWzVTlDchKcAeC5HyJj7djEfHM0lx2WdjplF004+VUP+GLzouYIU5RPKBO v0KUi0jiKh+fUErOY3igGg/4Ta7GKYRDUjJmMINi9DakxfM+sJjDHEkSclsNPf7hYUpxlt mbp7b8AWPAOk6fihgrgONrgXvNwwOUoHQqGI4wBzaQhV2aQYz5bEsYyNK0kWDeQ625bbrP jJNHL/NOd0Rldj540QWcYMbD1IxGaAa38zZP0/xs8jWRwPbCLJfGuUuD0cD+Qe7oK0eygH 4JGg1OMYw3KJymTrsaTjl/KyVnM/Rnj79cEwBictM9ohxGLSORxgQUes2hFfMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=riseup.net header.s=squak header.b=kHAqdQyp; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702195775; a=rsa-sha256; cv=none; b=SVbRf/STgYLL69X5UHR8pk4CxyytE4vgiK3qP/Dx3gieXHVHQrXUWd/0GhhgQ1jNkIdlCk iy5YikW7NZB/blH4CnZ7oCsSrqbeHu8XSDqhH6Np0Fl1lMbBoWJPZIcnXh35q3xMKFMJlw kgWDS8WGSB7n++L1WE+FPLtU0re5yA/smMT8PXxRSTOrHyTQ05+tmQDXlbK9eJBHAoCWPd GwVgzKbkXf2BMtcY9mxns4g/DLMMMkdS9ABc6j/TpTbQEiZSv1uzZz44KK8yu1Urm9NNEp Cc9Kox5b5OhxQ5vSMte5d83SvZ9WCMXyIfCtMB2ddjFBokhtkOO3/xUa0FKwSQ== 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 D5CC167178 for ; Sun, 10 Dec 2023 09:09:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCEs4-0004s1-0v; Sun, 10 Dec 2023 03:09:04 -0500 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 1rCEs2-0004rc-6O for help-guix@gnu.org; Sun, 10 Dec 2023 03:09:02 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCEs0-0005Wo-E5 for help-guix@gnu.org; Sun, 10 Dec 2023 03:09:01 -0500 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4SnyFN4R3Dz9vSb; Sun, 10 Dec 2023 08:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1702195736; bh=rbPmUr2BdR+rNP74Y/JTcEepO3G19eWgQdP38Zjpz1U=; h=From:To:Cc:Subject:Date:References:In-reply-to:From; b=kHAqdQypK03wu5m4udsbJhJ0PXzw/Bov5yB7rQ69MhyhQTHakobrRDy/QN1RoiAKw ttllc5bJN37yZFlzK7ZYHcAZWawZnkhnMy2jz56YD3B688aNmovzjlk7ZBvI+OqHms 4JgPufOkPDvkzrj5PcjXMIzwjoXb0+gNQ4LjV30w= X-Riseup-User-ID: 273352687B9DCF4C1EC7ECDAFD187074A8959A44A0D08238CE1C1CF54E95604D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4SnyFM6Hp0zJmsQ; Sun, 10 Dec 2023 08:08:54 +0000 (UTC) From: Csepp To: "Wicki Gabriel (wicg)" Cc: help-guix@gnu.org Subject: Re: 32-bit Python interpreter on a 64-bit system (ARM) Date: Sun, 10 Dec 2023 09:03:20 +0100 References: In-reply-to: Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.20 X-Spam-Score: -2.20 X-Migadu-Queue-Id: D5CC167178 X-Migadu-Scanner: mx10.migadu.com X-TUID: qNpKKVCz74zF =E2=80=9CWicki Gabriel (wicg)=E2=80=9D writes: > Hello! > > Due to dynamic linkage to a library that is only provided for ARMv6 archi= tecture > (32-bit) my Python application that is developed for a 64-bit ARM archite= cture > refuses to work (I load the library with ctypes). According to the intern= et this > could be solved by running that script with a 32-bit interpreter which - = of > course - is readily available in Guix. > How can I declare on the package (or on the system level if necessary) th= at this > specific script needs the interpreter of a different architecture than the > system/package is built for? > > To give you an example, the end-product will be a whole system configurat= ion > with packages and services and whatnot, that will be generated throught g= uix > system image my-img.scm =E2=80=93system=3Daarch64-linux=E2=80=8B but this= one package must make > use of the armhf-linux Python ELF. > > Thanks for any ideas and input! Maybe a cursed idea and completely untested, but you could wrap the express= ion that evaluates to the Python package with a block that temporarily changes = the current-system or target-system parameters. I think there is already a Gui= le function for this, most likely named with-parameters.