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 kKaLKeuZYmLwcgEAbAwnHQ (envelope-from ) for ; Fri, 22 Apr 2022 14:04:59 +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 6JysKOuZYmIEHAEAG6o9tA (envelope-from ) for ; Fri, 22 Apr 2022 14:04:59 +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 3446215423 for ; Fri, 22 Apr 2022 14:04:59 +0200 (CEST) Received: from localhost ([::1]:52162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhs1x-0006ML-Sc for larch@yhetil.org; Fri, 22 Apr 2022 08:04:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhr26-0001XP-JV for guix-patches@gnu.org; Fri, 22 Apr 2022 07:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhr26-0002vu-8s for guix-patches@gnu.org; Fri, 22 Apr 2022 07:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhr26-0003mc-7O for guix-patches@gnu.org; Fri, 22 Apr 2022 07:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54852] [PATCH] gnu: Add openjdk18. Resent-From: Rostislav Svoboda Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 11:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54852 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: Julien Lepiller , 54852@debbugs.gnu.org Received: via spool by 54852-submit@debbugs.gnu.org id=B54852.165062522014463 (code B ref 54852); Fri, 22 Apr 2022 11:01:02 +0000 Received: (at 54852) by debbugs.gnu.org; 22 Apr 2022 11:00:20 +0000 Received: from localhost ([127.0.0.1]:51563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhr1Q-0003lD-58 for submit@debbugs.gnu.org; Fri, 22 Apr 2022 07:00:20 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:47025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhr1O-0003ku-Fh for 54852@debbugs.gnu.org; Fri, 22 Apr 2022 07:00:19 -0400 Received: by mail-ed1-f52.google.com with SMTP id g23so2961407edy.13 for <54852@debbugs.gnu.org>; Fri, 22 Apr 2022 04:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OtD70efVjuoewe7qMXTFfYESxJEBkXs8gFGi7NrIXJk=; b=Cp8VhSJ2J69KOlUYGu4//fVhRKx4QJ1glXSWVJ3N+KSJ9WI6dN4owvzTsqPUQWM2hA b8VF+bMzoRBS39zwMUPv3PeiEBzZaaQHairxUj+fHnn8AOd4nYrAFRoa+uWEX95fgSR0 Qhuma2eTuZxJx+Oi5rmHXl6PsOnWVeDGKe/hTHLa04/EHl5/4tqAzDDVFvkyHOMU+JTv 506kAdYPhN7+GdHoEjifdSE/FXoCPDqWQiZPfxJOKh4wJB/x/3zR//0pf3V6EzPCBcua 6345UdrDhBlTMKX1AvTxW4xkUYK7JKFwjXi5gG8JuPBjRSWm2rJemWJxhj4RJVMfycgv G+ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OtD70efVjuoewe7qMXTFfYESxJEBkXs8gFGi7NrIXJk=; b=M2m4UUaYZsDYBQgUSvXVFcWLrhP0+ZJR2WrL+djvCzlbHAXd0zwqqbL/kVmaY+DY9I grAEbzkjObXHU511J5wG7kqehChJiY3iMozqhFm2m06M3FCZFyJ4Hg4uXjmzdebnuuWu Lltpyod0TM3l5vViBjj9vhan5TMiQCiyv3S/2bwqwomqeN6RUNTwmB4z/KIn5YJmLWno AF67Z53eDQl3L0eLDIJHP7BfOmGl5DnwTKHAutKOD40QWRV0udLYXXnVAm2QOtJNpIj2 FSlVKJzSO5ydhX4hs6cScNU9vTvEUGHDaWCY6dvVv37GXMg8G3SkYAo6xOs8xcKCP0SG PueA== X-Gm-Message-State: AOAM530XPds4wlhJwGClpd66aoQPAxSCdlbyeK+pamQTJ9LaVDhPAU50 HDCaJYMq1u9tbFivF2tulJULyhiIdaeq3eb5cN4= X-Google-Smtp-Source: ABdhPJxd5v7LiN2pURGC2fdbmip6KU/5dQNhPybnAGBJnCplpTsJ02D0ss7YF3OeNbGEcBOcKMppg4ldm7EjCQ8k+QA= X-Received: by 2002:a05:6402:51d2:b0:424:536:94dd with SMTP id r18-20020a05640251d200b00424053694ddmr4160456edd.191.1650625212396; Fri, 22 Apr 2022 04:00:12 -0700 (PDT) MIME-Version: 1.0 References: <20220411125335.4047-1-Rostislav.Svoboda@gmail.com> <3878c34d8b9b52c6a618bb47ff3a3142f3d55c9f.camel@telenet.be> In-Reply-To: <3878c34d8b9b52c6a618bb47ff3a3142f3d55c9f.camel@telenet.be> From: Rostislav Svoboda Date: Fri, 22 Apr 2022 12:59:35 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" 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=1650629099; 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: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=OtD70efVjuoewe7qMXTFfYESxJEBkXs8gFGi7NrIXJk=; b=fbkOCY//dZ5Ogwhz21jbu4RYtl0e62x/6mt94+lKXGetRn7Q/e+s53+Vuz4vq8yklENRD1 88eTCBq0eBEp1j4mD8roDVhfKuBksIRMPnlXuZ1gmTCRoH1b4FpC3v0oCf/S6/GCH0ooWp PUp5ZrIGmvgwOY4Ky/1spiNLOuqvxEKZO+/9uOQb+ZmuHo7gzgBagy0zx/ydRBX/Td80I1 e8cz6fpWMmDzb4/J1NfZR+Aea61k7vSvrY+95B9t0vlf/CdB7AedibTb7pzzTRrwWpLx45 2HNIukRroCs5h2HRAcmZ0hzY/CLnRp7kUhdBuYwepDeOI7PQgNlZDUcJXJtIhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650629099; a=rsa-sha256; cv=none; b=jG2TyNSINM2ihuma8PYiy5p+jSMxzAEm/oaWewozqL1tSBcUqrnKnfMND/F8hgjJWsW/77 E/X45KYtBlQbKpmwyEH8qro/C3hY21UNI2iMol6OhCmKwRi/sTfYlePwt68sPWKHWr8aOC K5vAH9lZ1p4YuT0lwzUdTXd9ONdFvBV3c16ICyMj2AUx3MSUZHVIhO9a+u/j6avcXYJiIZ ePp81fgzyale72L/uBIoiur8ve4SpZ5/gCO1/mucWKlGgH1u9ENdmsrS3DJBkyJIueobwl jRH9eFFzrPsdP36dcyjDpMYH7u7HdhdMw7qSr9oHW6B8e9NS6UetWkWMISgFYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Cp8VhSJ2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 5.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Cp8VhSJ2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 3446215423 X-Spam-Score: 5.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: LveiuAQ7o6VN > Is something like > > (modify-inputs (package-native-inputs opendjk17) > (replace "openjdk16:jdk" openjdk17)) > > possible? I think more appropriate would be: (modify-inputs (package-native-inputs openjdk17) (replace "openjdk16:jdk" `(,openjdk17 "jdk"))) however that would mean to assign a value Y to a variable named "I-represent-a-value-of-X". So hmm, better not this way. I personally prefer the: (native-inputs (map (lambda (input) (match (car input) ("openjdk16:jdk" `("openjdk17:jdk" ,openjdk17 "jdk")) (_ input))) (package-native-inputs openjdk17))) variant. IMO it better expresses the idea of substitution. Here, (if such a pattern repeats) we could define a new syntax `substitue` in the guix/packages.scm analogical to `delete`, `prepend`, `append` and `replace`. Cheers Bost