From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aFjqCYYma2L3xwAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 01:43:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ULfMCIYma2JJ2AAAG6o9tA (envelope-from ) for ; Fri, 29 Apr 2022 01:43:02 +0200 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 BC9B1410F9 for ; Fri, 29 Apr 2022 01:43:01 +0200 (CEST) Received: from localhost ([::1]:42916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkD0v-0000Qc-V8 for larch@yhetil.org; Thu, 28 Apr 2022 18:53:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkD0e-0000QS-I9 for guix-devel@gnu.org; Thu, 28 Apr 2022 18:53:16 -0400 Received: from mx1.riseup.net ([198.252.153.129]:35590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkD0c-00049H-E5 for guix-devel@gnu.org; Thu, 28 Apr 2022 18:53:16 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Kq9rS328nzDwDq; Thu, 28 Apr 2022 15:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1651186392; bh=LdnBwoGeUQNGhFMf3qHlP/0A3d0kbFzEfqCGTecEBJI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=redVbCIl4D+VMSEoGwH6Zq0Soj8lUZzcq25BWyPUYoYeArLfXN86Z5f8/GwR6PHsn IXQ66YUihb91lW7gk5MUxkSZ/87vYZZE4NcRN8wFefo3/1PAWL0vrhS2FT1D/WhcJr 4BymW5+3WuvTtH4Po7Ml0jGVqkvT8D7ugBQ7rsg8= X-Riseup-User-ID: 500B4F037CF0EEBDCC1A1A95A19F87ACF034BE8A6B548F309BDFD3A0E44A1A58 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Kq9rR2DhWz5vNs; Thu, 28 Apr 2022 15:53:11 -0700 (PDT) Date: Fri, 29 Apr 2022 00:52:49 +0200 From: raingloom To: Maxime Devos Subject: Re: The case for moving raw binaries Message-ID: <20220429005247.4af8b0a4@riseup.net> In-Reply-To: References: <615054d08116af35720a08a6fdb836e84cf0e873.camel@gmail.com> <65282c9d3d91b215499ab792604e11d0127e5215.camel@telenet.be> <228ccb21e58b37a659568787af29adaa69d39c2e.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.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_H3=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 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Liliana Marie Prikler Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651189381; 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=h+z2dRQIIeAkqttOSQmP6Viu89x4hci/Y76l/TZP66k=; b=chGUZLp3VR+f0biy7EX6zqomkJiEdxaA/MAtFWuF7/p3LY7c0KWZzlhoiSzhVcwO44p8HW hNrKCA+C0JeRvwakcZvLPLtJaBM4Rs2Zqx7ztCPhEoHSJKH4I4lBqj3GFRmmNO6FL4vAAb nPlLBzxWSR3GfVxH1CpN6mvHjGdqvogvjsYzIKD/a/QHhzf+QaedBaRbWlWiBBF18PeoTi pPP7CShSMzq/qU3uxvraDMzOLWjrgmqjO2fRixGkqqCRn1rW2E98Ie2DUBdGrBE/S4s8HW QKQKdMidYSKjtSaae8jFGWEJcYEVe6s0/FOXkMeQ6SOEYmFxnaTp8DXskioWJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651189381; a=rsa-sha256; cv=none; b=YJNqzE04aGn2ejEXy7g8mnwI01LRKfgPC0H6Mp25ktJuttrtPq1Ju+8RVgx4gsE3RxaSiQ gNdo6g8RN0Wksc24Ogibpx7GijLo8k5VS45CUUap6XpDe2EElq21NZdi9oQG/TzMXd+N7q XeKcxb69dBkIBbTi8nfFAMT6XjpR3mz9thsdZ6J89T3QjNmPt0qG6gyosiiOsUl+z9F7VV goYpIwCyKP2hVxTTzvdX1yAOssyd3MWB+pa8sCf+v+9wgeZVpdrs6w2JmNlJ9kyYPmQSxb 6nbWkiP/Tq91M2T5ePjJ4ZJ9Gx9+Eige+s8YlPxEoBPVCsFiO2xKXhiICfW35Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=redVbCIl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=redVbCIl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BC9B1410F9 X-Spam-Score: 4.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: YS0/57u5ZCgz On Thu, 28 Apr 2022 21:57:04 +0200 Maxime Devos wrote: > Liliana Marie Prikler schreef op do 28-04-2022 om 19:27 [+0200]: > > > How does this help with double wrapping?=C2=A0 Whether the wrappers / > > > originals are put in /bin or $RAWBIN_DIR, it's still wrapped > > > twice. =20 > > Because $RAWBIN_DIR can be ignored when wrapping.=C2=A0 This means that > > stuff that's already in it won't be added again. > > [...] > > Constructing the wrapper is not so much the problem, it's not > > wrapping the already wrapped binaries. =20 >=20 > Why can $RAWBIN_DIR be ignored when wrapping? If the build system > just sets $X during its wrappers, but the application needs $Y as well > (wrapped in a build phase), then if=C2=A0the extra wrapping is cancelled, > then the application won't get its $Y variable, which seems like a bug > to me. >=20 > Greetings, > Maxime. It should be pretty easy to detect a wrapped binary without moving it. We could just include a magic string in it and scan for that, the exact same way we scan for store references. If it contains the "wrapped" magic UUID, it's wrapped.