From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eNUiIeOuPWF6FgEAgWs5BA (envelope-from ) for ; Sun, 12 Sep 2021 09:40:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ADzFHOOuPWGMFAAAB5/wlQ (envelope-from ) for ; Sun, 12 Sep 2021 07:40:19 +0000 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 395A9470C for ; Sun, 12 Sep 2021 09:40:19 +0200 (CEST) Received: from localhost ([::1]:55172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPK66-00013i-4P for larch@yhetil.org; Sun, 12 Sep 2021 03:40:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPK5q-00013a-TL for guix-patches@gnu.org; Sun, 12 Sep 2021 03:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPK5q-0002PK-LS for guix-patches@gnu.org; Sun, 12 Sep 2021 03:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPK5q-0004Ee-FO for guix-patches@gnu.org; Sun, 12 Sep 2021 03:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47006] [WIP PATCH v2 2/2] gnu: Add zig. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Sep 2021 07:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: 47006@debbugs.gnu.org, =?UTF-8?Q?Andr=C3=A1s_?= =?UTF-8?Q?V=C3=B6r=C3=B6sk=C5=91i?= , maximedevos@telenet.be, efraim@flashner.co.il Received: via spool by 47006-submit@debbugs.gnu.org id=B47006.163143236716233 (code B ref 47006); Sun, 12 Sep 2021 07:40:02 +0000 Received: (at 47006) by debbugs.gnu.org; 12 Sep 2021 07:39:27 +0000 Received: from localhost ([127.0.0.1]:41956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPK5H-0004Dl-3p for submit@debbugs.gnu.org; Sun, 12 Sep 2021 03:39:27 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPK5F-0004DY-Hf for 47006@debbugs.gnu.org; Sun, 12 Sep 2021 03:39:25 -0400 Received: by mail-wm1-f65.google.com with SMTP id i3so4278178wmq.3 for <47006@debbugs.gnu.org>; Sun, 12 Sep 2021 00:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Zb75IgnCyCWloSyjd2A1WPsZw9BazBq+JzUXJB0L+Ik=; b=JIwML0f2c9BaTAM5WU8N+0oPF+H4la/7B7bbut8H/hVJGmp7HzPK4G96fKdIiIebSX X7WcrIQjhMhd1JNYTGWfyk31Q5p2FE1lxtIExa8EZZpVjGSuqRf11guZZa1YO8sbvO9e UstLBZlQolxcmZ3MhwN+mVod+QxPhGdvfhP53bH5lbc3arD5hrQhdtt5RwcNe7YyUT/T U0+H5tFTr2Eo9S+hm/2X4vo8xNAO985Z1TLwBRyfWTY1sZ92t4R/QMTvWkaevKabvHDV OkXm5KVhFc4GG89YwNgVL8f/UcNOC02n2Qcs6xkrz5C7hy1UozWizLeCqD/DpFeBKOQx t10g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Zb75IgnCyCWloSyjd2A1WPsZw9BazBq+JzUXJB0L+Ik=; b=W7GUwqTZBA2/koQf1+eWMnFYfbr2RbO6SuiGC3Bxgh36B6Gc+69MtsQ7GCaRdnn8hq Hhi0mevdrIYzWtKPdtGCfAAsaGsk9vZ3UMeph+MGOfqSl+LMWKe/sfC8zBLYoYxHLvAa ejpeO5Co97bN/j7qgWcGAfc3lwoywG+1gJIQzsYwV8NFBOX6JyZj72TxNtJBVmYoBj8l jsiIJCKWNzAqJwM1eUWQXvCHEhru098Nu6A8oBD84xOyVvRb+dahDyH6m9uw5gLRlkwM RFWPTkBTj3yYp9b3+vq6OHYSyfpGwpRMh5vLh1npqrn21c3kdwQCI9GjvEEl8MtvYnCq Jgtw== X-Gm-Message-State: AOAM5321kr0hqrqxMol0jGrLaTomQl6K5e3A0Wa+1aT3qbwKw0DQWDV9 F6zX5WyPlsCvEFqQny3kJIA= X-Google-Smtp-Source: ABdhPJzzLymTVMgJbYi74NcQ8UHH78Lm0zUiU8+GqL9aCnMmaqEIkNjaZd8Y4URX5N4reRiWEtCabw== X-Received: by 2002:a1c:80cd:: with SMTP id b196mr5650354wmd.36.1631432359712; Sun, 12 Sep 2021 00:39:19 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id r129sm3401803wmr.7.2021.09.12.00.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 00:39:19 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Sun, 12 Sep 2021 09:39:11 +0200 In-Reply-To: <93454096d15aed82b9bf4b1401a0fddcb156f2b7.camel@gmail.com> References: <0f6c5b692df8d06a0d7adddc9e5abf93894a366f.1631226695.git.liliana.prikler@gmail.com> <86wnnmnceg.fsf@mgsn.dev> <865yv6mmk2.fsf@mgsn.dev> <93454096d15aed82b9bf4b1401a0fddcb156f2b7.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631432419; 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: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=Zb75IgnCyCWloSyjd2A1WPsZw9BazBq+JzUXJB0L+Ik=; b=uWF+CMF7hwr3rFIsSO977GRT2wylccyIlTYtW1PV/ohvoL/qZYpL843gkrPvKTk3h3LZqv OYsw5xb08S4/obU/Da9EF0bOdx0VAVe9k5To14IlIqfNjwvYLzP6z4XnlZD5nOg85v8j/j IcXHiZ51tQARd10ZfgRtgEDKQuB4dh08Dz8G+RuNrJ1bg93uC0Low6aYoyEjVvt7DKwmEp CXAomlaIDZAWnBMiBdU7uif7OnzjMmjipZk+CrbJZ/XtYGRaRLU4YZfahyc/6VsGnFxsYe zMwYmIyTAplXcBU7tUM9dYmBjS71UTJ6klVBpPUlT6Pw1sNNQ7w5AxtKSUHfaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631432419; a=rsa-sha256; cv=none; b=EAIloWAaLEczIcCVzJjR6uz4uRYCIIq1x6YtylhRikR8mGqtyRYdWENjCK9HCNs4ceB4d0 omiubryfPdRlmuWQcZY/EI1sms6YgUNe17oT9/pK2LnbP+JM/6deKWNCapt9e7z6k3fGT7 nUkI9ZtgLjEPNzqzv8RtllfKUG3ENih01iJ7fBYHyyHCHD0zGRf1sXAMKwRkfl0KuoP8VA OwCTxypiMChz7AvwZ6juDLYU8F9WsebhiDdaYIL3hqja3L0DnQKx/KuwFu6ZvAYyOKplHD 0SbqjD7P385iHgpkInBk5yvcSKJlDDU4vnKuX4vrkggeVcROF96bPU/2s5HeMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JIwML0f2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JIwML0f2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 395A9470C X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: QvvDShpxDfr7 Hi, Am Sonntag, den 12.09.2021, 09:32 +0200 schrieb Liliana Marie Prikler: > > + (native-search-paths > > + (list > > + (search-path-specification > > + (variable "ZIG_INCLUDE_DIRS") > > + ;; XXX: It doesn't seem as though Zig can distinguish > > between > > C and C++ > > + ;; include paths, so provide both. > > + (files '("include/c++" "include"))) > > + (search-path-specification > > + ;; TODO: Might be confused with "ZIG_LIB_DIR"... Maybe use > > + ;; "ZIG_INCLUDE_PATH" and "ZIG_LIBRARY_PATH"? > > + (variable "ZIG_LIB_DIRS") > > + (files '("lib" "lib64"))))) > You can rewrite "zig-use-explicit-paths.patch" in-place with Emacs' > query-replace and/or sed (or even just manually, there are no lines > to add or remove) if you disagree with my environment variable naming > choice. Just make sure you don't accidentally break diff by deleting > trailing space. Another potential naming choice would be to prefix everything with ZIG_LIBC_ rather than simply ZIG_. Of course I thought about that only after sending my previous mail ^^"