From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EDzaJNoxP2fQ9gAAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Nov 2024 13:12:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EDzaJNoxP2fQ9gAAe85BDQ (envelope-from ) for ; Thu, 21 Nov 2024 14:12:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuziwo.info header.s=protonmail2 header.b=GdIpD+D7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tuziwo.info (policy=none); 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=1732194778; a=rsa-sha256; cv=none; b=iA6gzI8HLPc8Rd2E4D7fjBxkckxji1/ecqS/euEBuerg9a3iWXy7TdpspZC2ugv08RE2o+ hOvwY+plXKp4UiI1CWDRUKVx9T4r12TZ1UI1aLrf96wBRgKKCgcd6VLxVZZ3KOjhiF9vUJ qOoVoh0WWn2AuoKz8p4zBNIIA9O15DnBrrauB/hyWfQ0U7zsPwUkflPx56m6VltbozNyY1 ygU0Z+o57oJ1TqkJ+Hiwjj+g/FNAN/dBlJcnjrSPQ3PBnYkYuOM/+TlyJJJH8V5yze2H7m XP3UHGtCw08O0Ko3YdDGKCmjqu9Ek6KdWJLYd0+0JBZDLWSYVRBKF7Xx5JJB1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuziwo.info header.s=protonmail2 header.b=GdIpD+D7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tuziwo.info (policy=none); 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=1732194778; 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=iFp9urEPDJgh5cF0nD73I2TDlBEGc+08jkYgABbRwzc=; b=pD43Y6b4U9eZti4ySBUtukulRtYDIaj/hBptyArrt7kFNv2tqNXhGtuPB5F0NVz9AoNeBT f/I4fH+D86YsmXH1yfU8lalmIibB2eBpUHf082q/aL1a2La/BM4C2OzmBq/ha0Id8dRvkX rWYhi9rKm7pZ4OWRjcKLNe3zjMBp7kXYzoSN1eugaC+e6X0xQpflhwDkpT34nRTKO+hKZO zhZyyaZ2E4prljclck1uXas+lyst8tKMO5fvtlZnTcxvTX4kWlBL7L2pGwX2PDWqujhnNZ BTTPk+/Mnj4LDh8O8CxsrYHljFeIXSSl/M04uqdcTa7JlEjjVBL0p8YrILgubQ== 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 397251EC17 for ; Thu, 21 Nov 2024 14:12:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE5RC-0001kW-1O; Thu, 21 Nov 2024 06:33:30 -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 1tE5Pg-0000EV-Pq for help-guix@gnu.org; Thu, 21 Nov 2024 06:32:06 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tE5Pe-0007Nf-9f for help-guix@gnu.org; Thu, 21 Nov 2024 06:31:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuziwo.info; s=protonmail2; t=1732188699; x=1732447899; bh=iFp9urEPDJgh5cF0nD73I2TDlBEGc+08jkYgABbRwzc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=GdIpD+D7vO21BFleEYpPAnIX5WehKySo1VXLV0d8WBB3/QnWzdvnngJwbNMZcPSEz xgnO/iWN5YWGPuiCVmonaTlHh9VrUs0qxjneDPBoPwdOMS/hGTX3zpUc1dFHOwrwB+ CAcUmMBCUWLkU9bVwd1x8IzBZDSffX2qEbSweWvyKMBXecDayZUXN66xv512cYLLgK ZcAEmF2tO6RcaGVNWBD0RnppqPdqMNRasaVg0WKnpy7Q959S9WtEK2vUe+15GUwD7c edan2FIyjeKQ/rVH48LiptjwW52orXtmOQBgmzoWaEu/+j+2tToCm8PowgW1srgA5p +ne3mmD+emMEQ== Date: Thu, 21 Nov 2024 11:31:33 +0000 To: Marius From: woshilapin Cc: help-guix@gnu.org Subject: Re: How to: How to wrap executablea? Message-ID: In-Reply-To: <9D8BC476-2680-474E-A5C0-1708487C905E@disroot.org> References: <9D8BC476-2680-474E-A5C0-1708487C905E@disroot.org> Feedback-ID: 30348956:user:proton X-Pm-Message-ID: fcaed248a6beb17bbc54147728f78213c90475c2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=woshilapin@tuziwo.info; helo=mail-4018.proton.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Migadu-Spam-Score: -0.02 X-Spam-Score: -0.02 X-Migadu-Queue-Id: 397251EC17 X-Migadu-Scanner: mx12.migadu.com X-TUID: 8uzGJ98YjgXJ Hi Marius, =20 > I'm trying to execute a pre compiled program (on a Guix System) that I th= ink is trying to call /lib64/ld-linux-x86-64.so.2 by its absolute path. Sin= ce Guix System does use the store and usually makes use of variables like "= SHELL", "LIBRARY_PATH", etc. How do I wrap executables that technically are= gnu-linux cross platform but use absolute paths that depend on distributio= n? It might not be exactly the same problem, but I remember getting around thi= s kind of problem by providing guix's version of the library with `LD_LIBRA= RY_PATH`. Doing something like this. ``` eval "$(guix shell --search-paths)" export LD_LIBRARY_PATH=3D"${LIBRARY_PATH}" ``` It's probably a horrible hack (I honestly don't know enough to know if it's= nice or horrible), but it got me something to work with. Hope this helps, and I'd be happy to know of a cleaner solution. Sincerely, -- woshilapin / Jean