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 wLs9D/EwqmIKPQEAbAwnHQ (envelope-from ) for ; Wed, 15 Jun 2022 21:20:17 +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 sJAaDvEwqmICCQEAG6o9tA (envelope-from ) for ; Wed, 15 Jun 2022 21:20:17 +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 485F317405 for ; Wed, 15 Jun 2022 21:20:16 +0200 (CEST) Received: from localhost ([::1]:37426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1YYp-0002ER-4w for larch@yhetil.org; Wed, 15 Jun 2022 15:20:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1YYc-0002EG-NQ for guix-patches@gnu.org; Wed, 15 Jun 2022 15:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1YYc-0002DI-DJ for guix-patches@gnu.org; Wed, 15 Jun 2022 15:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1YYc-0007AE-6G for guix-patches@gnu.org; Wed, 15 Jun 2022 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55998] [PATCH] gnu: Add cctools. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Jun 2022 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55998 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 55998@debbugs.gnu.org Received: via spool by 55998-submit@debbugs.gnu.org id=B55998.165532075527478 (code B ref 55998); Wed, 15 Jun 2022 19:20:02 +0000 Received: (at 55998) by debbugs.gnu.org; 15 Jun 2022 19:19:15 +0000 Received: from localhost ([127.0.0.1]:39835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1YXq-000798-NT for submit@debbugs.gnu.org; Wed, 15 Jun 2022 15:19:14 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1YXp-00078s-Ex for 55998@debbugs.gnu.org; Wed, 15 Jun 2022 15:19:14 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 95F765C0226; Wed, 15 Jun 2022 15:19:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 15 Jun 2022 15:19:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm2; t=1655320747; x=1655407147; bh=uuxeoWR9G3nLWNGKakv3omA5W gDRvo+Rt177TwDzlnw=; b=P5LUDXh+Or58zZGoSxGQPfIwdAZeOTWc3w1sWHWw8 4gL0Pd5vUnOVxB3Vmg2ZIkpXTndt1ooyh0TKbe6yKB1M9mzEXJtO7PBdC84SfCy9 46S6MhgleurGsT48WttPG5We9iW8V/I9z4Y5FXsIWYuaI61RF6ajwi28s+OnNG4Y 79IDLaJKwJxXmio/k9NpxNNKEJeLfLvE6hFQRDnl6VPUhO+UnxkoL3emNOnGF0NB Sm2EASPCIfwyAaSZHTgy/7dOx35Q6KdjbdNwWR9uTkOnt2g9UUo3bYct/Mx+IFPv p2k4Joq3D/JK2jpiGx6noeClqHeWJcevk7EJeB0OrSD5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1655320747; x=1655407147; bh=u uxeoWR9G3nLWNGKakv3omA5WgDRvo+Rt177TwDzlnw=; b=OsKiPnTIqqb5+SKmk L8ziP3KQA83r10SKbZ1cCA6MQS5rDtolUoOW520W/Oj+AiZ8kvklHa8CnvBfzRev vW2+p6AmqHRquUhVr1GHivZKS6OJoEVARJrDoRVWn2C7MkzQdjF4cqQSiknRish6 gEOHhRihPIWTP/TW/VkIf5LFLKeDfKhlNDSnw/mS9FSK5e6V5JVk3JIvVIFZMGIS 73AzpPuB9gmubCNgcjvYzrpWlV2efYBx/SLLg6CNEl+1aiQPWWInOOUAE//j0i3i 9UkrqTE6gFlrNizkDjIxzNnHdlzdZkXwLu8IeaGg284dfNW/RSPXaR72kNHAlJGU q9gjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvuddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpefrhhhi lhhiphcuofgtifhrrghthhcuoehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtg homheqnecuggftrfgrthhtvghrnhepudduudfhjeejtdetkeejkeeihefhvedtieeihedu jeeileehgeekveetueeuheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepphhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Jun 2022 15:19:07 -0400 (EDT) Message-ID: Date: Wed, 15 Jun 2022 15:19:06 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US References: <25870e3b599bef45e57c972d019cbee3228e9e35.1655311589.git.philip@philipmcgrath.com> <149964d020ce967474ce946eda5031fa7ed99245.camel@telenet.be> From: Philip McGrath In-Reply-To: <149964d020ce967474ce946eda5031fa7ed99245.camel@telenet.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1655320817; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uuxeoWR9G3nLWNGKakv3omA5WgDRvo+Rt177TwDzlnw=; b=pqFLS9mj+MzK+m/pEXfuB5T2AzsJT66WsMeEHQZpjHZ4X/Toj3QO7PqPgtNGn0eiBOhCso TlAUVLX+j+ecS63J0ttHQ0SRQS/9Hv8IXmjVf1knHVqV3SG2M262LDZrZa61fWevz6K8HS sUI/X7LS1ygcHIOHaxcj0rnkULPPly9cdeIslGsgBrGTaFllq/rOYun5xcN4T6lahMiHTY 2bGAwoVc/7vEKDJUt+k8BQpibPRk+lnVcNle5w1rOSGuPu1qUt0iefuSMEDiIVnZYn0jcU 7T5a/7aB/RMxgLYK+q2yxTOZo+zbuP3OhViSaIjC5YLzcdkWvxmpjLEJ1jBzEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655320817; a=rsa-sha256; cv=none; b=UtA5PX2DOPDmQmvqX4tbcYYvpp5Op9wStZaDhJZz2cjHakUT6e6ZACGgdzoyMPsd+NVPNd mdVzUpJh/4I/vyCX4QxEI9kLDHMJiseykZXZ/hSiQX6va1LDtJyljbhl5iAX1cJj3LZaEy y/LcHxkz5HQi/mEZp/hwony/X0MzjuXPTTIdjbE/btWDHybM3kX+kEuO0Tl/6TRbHJvPVL NDASb/u3olcDjQUGX3i7+lFvG5OU5UUkdL5+rxQPQinh8s4ZCD3zTGLl0V6hrsrHiVySWT fi6o2gyOtMUWdDHiG7scL2nbgrbPNEpS/r4ZHnbDSHLONa4nKblKBISTwnXMXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b=P5LUDXh+; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=OsKiPnTI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b=P5LUDXh+; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=OsKiPnTI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 485F317405 X-Spam-Score: 0.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: cze061VGCFUI On 6/15/22 14:53, Maxime Devos wrote: > Philip McGrath schreef op wo 15-06-2022 om 13:15 [-0400]: >> +      (synopsis "Darwin's @code{cctools} and @code{ld64}") >> +      ;; Confusingly enough, the program is called ld64, but the command is >> +      ;; just ld (with no symlink), so @command{ld64} would be wrong. >> +      (description >> +       "Darwin's @code{cctools} are a set of tools somewhat similar in purpose >> +to GNU Binutils, but for Mach-O files targeting Darwin.  The suite includes >> +@command{install_name_tool}, @command{libtool}, and other specialized tools in >> +addition to standard utilities like @command{ld} and @command{as}.  This >> +package provides portable versions of the tools.") >> +      (license license:apsl2)))) > > How can this work? We don't have any (cross-compiled) Darwin libc > libraries to let it link against. Is this a draft patch? > Fortunately, we don't need a Darwin libc: tools like `install_name_tool` run on GNU/Linux, but work with Darwin binaries, somewhat like `patchelf` can work on a cross-compiled binary. From another point of view, it's a bit like some parts of MinGW. This patch is not enough for a Darwin cross-compilation toolchain, though I believe it would play a role analogous to GNU Binutils in such a toolchain. Still, several of the tools are useful (albeit niche) on their own, which is why I sent this patch now. A whole group of tools supports inspecting Mach-O binaries, for example. -Philip