From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6Gq0L6y0GWT+6AAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 14:44:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cAKfL6y0GWRQTgEA9RJhRA (envelope-from ) for ; Tue, 21 Mar 2023 14:44:12 +0100 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 85CEA27A6D for ; Tue, 21 Mar 2023 14:44:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679406252; 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; bh=z+587bXJy4RJ7gne3vo9tX8ZLoHoZ8kb02mYv6x6U64=; b=sWyiaMcKZbrQEvNhAZeeAruBvs6MTgcrS7dJwuqd3B+jC7tjwfSFdZwjvK6uLXee4ADwUT Tuu7RQ6X8h9Q7+OIhYxwmSA3FNnD7hTDFGO443fNj8P4cH/Til3IxKk8qA3dcr1YjuTwS5 sfVoOc4khcHt8fL81w3KTLvZHZwsx6pzLBAk8c6BurFrkgga1izVX95GhD1pJvqEpwQoGh vxFYg+sliu9NAHGI71Vv36P+jQxDpm/0Hd5jBHCSMt4lmlwT2++ZvJEyV2wcrV3aLk0FrN yubvXL38m2eJ3zv56qKvNP1Dud9iGxt64VrHIf1dMfqNj/lhwB/THQsV1M4C6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679406252; a=rsa-sha256; cv=none; b=B/l4HZowKYh/5dhoeq23/VSztBBQVjaBhVsdfvuwKeygOcJJrhsnix2QLN45lR2pU26PKq 1S6Oa5mYOeuacDikCsJ/1j9GrR4NOX1R/QQJm7nkHcTBsn94BqB4h9UhDs9hHOkqYoMwEI F6EUg60DvPaYbTbDpZqOvYhZgbdm7HbfVusJLJLVm4vHSu2bmIQB1u78Lg8JRiSaLgf5hk PB5XPZ+kN5YNE8lXMpdSyZwpJGHsi3xVmwsXdxIZiEqvaTOkFsai8D/mbMjTdB1f38MC7s 3CB6TmQ8+ayRruD43hTxwesbsNEOG7ttuPcplJ4APIeD03fTYBvHCZknbUrwnA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pecHU-0005wK-Dw; Tue, 21 Mar 2023 09:44:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecHS-0005qJ-W4 for guix-patches@gnu.org; Tue, 21 Mar 2023 09:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pecHS-0004iV-Ck for guix-patches@gnu.org; Tue, 21 Mar 2023 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pecHS-0001H8-1n for guix-patches@gnu.org; Tue, 21 Mar 2023 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62324] gnu: Add emu8051 Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: c4droid Cc: 62324@debbugs.gnu.org Received: via spool by 62324-submit@debbugs.gnu.org id=B62324.16794062034846 (code B ref 62324); Tue, 21 Mar 2023 13:44:02 +0000 Received: (at 62324) by debbugs.gnu.org; 21 Mar 2023 13:43:23 +0000 Received: from localhost ([127.0.0.1]:57976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecGo-0001G6-Of for submit@debbugs.gnu.org; Tue, 21 Mar 2023 09:43:22 -0400 Received: from smtpm3.myservices.hosting ([185.26.105.234]:46914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecGm-0001Fw-O3 for 62324@debbugs.gnu.org; Tue, 21 Mar 2023 09:43:21 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm3.myservices.hosting (Postfix) with ESMTP id C558820F41; Tue, 21 Mar 2023 14:43:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 6CBBC800A3; Tue, 21 Mar 2023 14:43:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sof2ud39V7da; Tue, 21 Mar 2023 14:43:15 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 05BD1800A0; Tue, 21 Mar 2023 14:43:14 +0100 (CET) Message-ID: <6ad8a739-992c-e578-ea8f-76e762f70c42@makinata.eu> Date: Tue, 21 Mar 2023 13:43:14 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US References: From: Bruno Victal In-Reply-To: Content-Type: text/plain; charset=UTF-8 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: X-Migadu-Queue-Id: 85CEA27A6D X-Spam-Score: -4.75 X-Migadu-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: Y/JaTW9qxtkT Hi, On 2023-03-21 07:20, c4droid wrote: > > + (arguments > + `(#:tests? #f ;No test suite > + #:make-flags (list (string-append "CC=" > + ,(cc-for-target))) > + #:phases (modify-phases %standard-phases > + (delete 'configure) ;No ./configure script > + (add-before 'build 'patch-ncurses > + ;; Replace LDFLAGS -lcurses to -lncurses > + (lambda* _ > + (substitute* "Makefile" > + (("-lcurses") > + "-lncurses")))) How about turning this 'patch-ncurses phase into a patch snippet instead? i.e. (source (origin (method ...) ... (modules '((guix build utils))) (snippet #~(begin ;; Replace LDFLAGS -lcurses to -lncurses (substitute* "Makefile" (("-lcurses") "-lncurses")))))) [...] > + (replace 'install > + ;; No installation procedure > + (lambda _ > + (install-file "emu" > + (string-append (assoc-ref %outputs "out") > + "/bin"))))))) Use G-Expressions here, i.e. (arguments (list #:tests? #f ;No test suite #:make-flags #~(list ...) #:phases #~(modify-phases ... ... (replace 'install (lambda _ (install-file "emu" (string-append #$output "/bin"))))))) Cheers, Bruno