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 ms9.migadu.com with LMTPS id iKD2HJBfGmRh/wAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 02:53:20 +0100 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 4HEyHJBfGmTj/QAAG6o9tA (envelope-from ) for ; Wed, 22 Mar 2023 02:53:20 +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 469AC3D843 for ; Wed, 22 Mar 2023 02:53:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peney-0005RH-GF; Tue, 21 Mar 2023 21:53: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 1penew-0005PL-17 for guix-patches@gnu.org; Tue, 21 Mar 2023 21:53:02 -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 1penev-0003sO-P7 for guix-patches@gnu.org; Tue, 21 Mar 2023 21:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1penev-0004FE-LR for guix-patches@gnu.org; Tue, 21 Mar 2023 21:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62324] gnu: Add emu8051 Resent-From: c4droid Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Mar 2023 01:53:01 +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: Bruno Victal Cc: 62324@debbugs.gnu.org Received: via spool by 62324-submit@debbugs.gnu.org id=B62324.167944996116281 (code B ref 62324); Wed, 22 Mar 2023 01:53:01 +0000 Received: (at 62324) by debbugs.gnu.org; 22 Mar 2023 01:52:41 +0000 Received: from localhost ([127.0.0.1]:33050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peneb-0004EX-El for submit@debbugs.gnu.org; Tue, 21 Mar 2023 21:52:41 -0400 Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]:54275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peneV-0004E6-Uc for 62324@debbugs.gnu.org; Tue, 21 Mar 2023 21:52:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1679449940; bh=P9ssEO9TXACHY5ac2VDE03iHXbt1k+bdr7M/rAyyLDw=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=WggZzEWQ/732IzWqLBphF0d5IIDb+jnlvMm0WlYOGFzAW6SEM7YZypjXqrGCuFi7j C4QWAszjlOApWCEHnWUZ7zwwkL1QOx2ONLPk0KzrVT/SEfw1arq7W8VHurfTfK9cyO 5o4+BKV1LlJdz3fN5g7KifVeWvRjhxz05eoWS3uU= Received: from Workstation ([113.200.58.195]) by newxmesmtplogicsvrszc1-0.qq.com (NewEsmtp) with SMTP id D113CCEB; Wed, 22 Mar 2023 09:52:17 +0800 X-QQ-mid: xmsmtpt1679449937tfxo1s8n4 Message-ID: X-QQ-XMAILINFO: MI8xiyr9SLuAyEU+MQp3ISr2Ke0zmlgiWrkNDPN5x7Zpe8HNSB62rrg6WFjZiL 0Oq0mv0okmxWXqAz5FfFk/pE5WEzt1uU9pme13kID86TGy3m3hJBnzsaKQPoO0x+WPwcHXJLa425 eEO9q8s39ZVvWIzVBc0dro6CPKyseQ1TMcvPja/aNlNsUyb4htd2wVew0xeTrIGKI7RJvP1vAUp8 RJKNw/wd+4ro3IkCcNE56KerkqjYH0j+x9hIU45UOK9kuWt4YmHSzJiBEOt+1oNKmZ9J2QtHp8St tgfJJoYSjIS09run3q/2JhZeQ3ptJpI0vrEDy7fIOXovlEejzuBw+xmF4NQl2VDVvSzcKnYLyaQG y6Mhmxldbf1hvxVHuKnXFEG2O6q5U29NemXKPBQTgWo0K9M00/KGAN3miDprjr9VlC77B1lEo/6n tGVqC2MIzkGZMcmAcmTxL4M0rmNe4ABEKPtU6OP0pqmqh4C1LoDLy/PByHKZNG5OSHpufJ9iMcdq Ka5mxVKbd+hdhkH2qtzaJScBWQ18mgLMq+wEjpedfVWXH8NqmAiuQGjaKs1o7vAffjIz5w59zvan MlvFUTwSnjtKOX5bC2wQwSZTIPpAXGwRqmHyIfTi+jjuPpM9atosZNEVsF2u3W6Np44eTCraJ5El fW2BDcR7QQ7IB2380QeU25vmuaWWhtDxOmjVRYy8VTP7qw6Ca2Q7cK35ibe77XPONf1D4GOJKWX4 6oXYLFsDbvbi9km+IAL7gyk+InTcAwhOfggCyff6oVVyVKi4F3qDOsNk8XS8BI5ysRtjdPxqLgNe xxowDKT5S+lU4XEptxikycK/pH2RPTzI38qpIdUhKnQljh6+7p0/2KlZWQvl84CiDr88TB5uRF0T vfkaUWQZgBW1jviRthZ1yPAR9EGLzQQ8Z26IBp/fK15vwXQ4fKkR5t04xIZYgoKdg1hVcBvItt+n u5i/vRmRwUgysuJmITgw== References: <6ad8a739-992c-e578-ea8f-76e762f70c42@makinata.eu> User-agent: mu4e 1.8.13; emacs 28.2 From: c4droid Date: Wed, 22 Mar 2023 09:48:47 +0800 In-reply-to: <6ad8a739-992c-e578-ea8f-76e762f70c42@makinata.eu> Message-ID: <87h6udo8ml.fsf@foxmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679450000; a=rsa-sha256; cv=none; b=SAmcyJhnCY9NXFCalg+BC/dstoznPiBh+WCWNpHSxTmbmP/AAV0IP/11JwTdrwxfOyrak4 tIrawQUlHJP+RGF8VTm1uILgiIrKXGslIdQNMyOY+ks9lfE+FtJiiwbfaZnlEI0C7bq4NL f6jk5E3si5gkeCNAPNAxAqLHT7wfZ/dftaxR8QfKO2BVB66EPT8MnwwU2Z3Fw/iINA2DHS cFp/Nc9sbDxkOaW11Hh1ruOSh/hD2SFmEcZCZLfwFmVS8XHXfG1O8O7zBvXVYxNyMnCjgt omJGf1xhHLjibc5iGFVad2TWro92bXFpBC52ko1LCg18hqian0jCP3IzjKSDJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=WggZzEWQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foxmail.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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679450000; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id: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=P9ssEO9TXACHY5ac2VDE03iHXbt1k+bdr7M/rAyyLDw=; b=NBhQKKR8yZsAJjgOdRLst0PWqxqmHxHv8FBkwb/nov9ASkM7eQVPKAmJbEy/MB1UYQfu5j SxTpxNwtEk8+/uucWParjoROF1/xe8lYGu71jqCRt3ZkcOe4vSF+vSArR2UmhsyaCs1d+r XZ+SyXSjN/kK8CnEuCI0zQhNQtkzSXvfmdCn/TjHaMj5G0gG/dlY3lbh02BorZSaJgzseD yInoKSCZIrAHJDkAAI6DEwlc7jYzVSftXHhoYzb1flluY6Fqa8r+XMKFzrag5TOhOjmVyE IlT/+8PpgTUhpak1T2JyJOcv+Rcz1aMAFPTGo+X3gBzYJDDlu2D42T6HyUR/tQ== X-Spam: Yes X-Migadu-Spam-Score: 10.65 X-Spam-Score: 10.65 X-Migadu-Queue-Id: 469AC3D843 X-Migadu-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=WggZzEWQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foxmail.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-Scanner: scn1.migadu.com X-TUID: I2CHam9ODe8U Hi, Bruno Bruno Victal writes: > 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")))) > The modules and snippet field can be apply to build derivation > 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"))))))) > But here, I used G-Expressions here, report gexp is unbound variable. > 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