From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37597) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifQG3-0004dq-Bh for guix-patches@gnu.org; Thu, 12 Dec 2019 10:20:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifQG2-0007Rp-8J for guix-patches@gnu.org; Thu, 12 Dec 2019 10:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifQG2-0007R5-3c for guix-patches@gnu.org; Thu, 12 Dec 2019 10:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ifQG1-00076i-TY for guix-patches@gnu.org; Thu, 12 Dec 2019 10:20:01 -0500 Subject: [bug#38436] [PATCH] gnu: Add gfortran-toolchain Resent-Message-ID: From: Konrad Hinsen In-Reply-To: <87wob17k95.fsf@gnu.org> References: <87y2vjjeuz.fsf@gnu.org> <87wob17k95.fsf@gnu.org> Date: Thu, 12 Dec 2019 16:19:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 38436@debbugs.gnu.org Hi Ludo, > The exact rule is given the the =E2=80=98--keyword=E2=80=99 options in > po/packages/Makevars. Namely, xgettext will recognize: Great, good to know! > (let-syntax ((synopsis (syntax-rules () ((_ str) str)))) > (make-gcc-toolchain gfortran #:synopsis (synopsis "=E2=80=A6"))) > > Quite an effort for this little thing, but I couldn=E2=80=99t find of any= thing > simpler. It looks like I still don't understand how this works. Why wouldn't the simpler (let ((synopsis (lambda (_) _))) (make-gcc-toolchain gfortran #:synopsis (synopsis "=E2=80=A6"))) be sufficient? And is there a good reason to prefer such constructs to (define-public gfortran-toolchain (package (inherit (make-gcc-toolchain gfortran)) (synopsis ...) (description ...) which I think expresses the intention more clearly? Cheers, Konrad