From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 QGjdKSNiGmR/eAAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 03:04:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SPvnKSNiGmQgVgEA9RJhRA (envelope-from ) for ; Wed, 22 Mar 2023 03:04:19 +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 347A23D97B for ; Wed, 22 Mar 2023 03:04:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=yLuIRG0G; 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=1679450659; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:message-id:to:to: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=hVwAXCyzujHCMKa9OodnXGGBYJTeiKPtRKwX4eZgWrw=; b=Jwr76U+VIEkbGtXEYe/hzvCkhoL/emiPTQtR90cyM4lp6gEoT2uMvaCH5BCUwGeBR6Y/Si wsfmzyx5g0XnggKfPPZouU/vI7asVroHpNee5hxN/0t9E6KXV5k3o8U6dQnCigZc3UonqE /gTi8ORUuOOjAwOUIAzASiOlbqg8wjesQaa7GGo/QC/rjLQ7ci4ivQtxoHBshv5cPH6V1a VewFFh/g0sLWhHWfc20aaESYFXLki9dZNpBkPtHVX76gzwRbxYThU5Bv4VZTrAXvOaR+6I fwBez5hJEOx8x+3VUYhilFD/ydfi7UdWDROaZhHZOZvG8iQ0y7xkSPmgYoiA+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foxmail.com header.s=s201512 header.b=yLuIRG0G; 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-Seal: i=1; s=key1; d=yhetil.org; t=1679450659; a=rsa-sha256; cv=none; b=CS3tjU/xUzPPNQ2fepH3T/8K/x7Qbx1k54SCq11uJ9LVl93JIlO/RWruARb7oETJlT1iTz c8OsN5IFKhGaAOkIZxAV797qEl5v9DsLTKal2qN4bINJ/yjJ49x6fpBOSdeg1booFJil7x a8usJgs9ULX+HndN9lHCMhi66/BrQV1dTnCvM5Rvbmgaaja1yWUJWruBHwBMnfwlkDxIwt xMZdu8ana5SC25aKrJItF5eXt97Zg8W6N+xUcAN4mSW7B6J2VXoJmrA7rc3DwhtwGQCjEe HmM3Otxe2oYYvIQpgqQmw7fv2saHMYATUgr4abtjeFJ+gxZ6COAov/4CF/heQg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1penpg-0008Oh-87; Tue, 21 Mar 2023 22:04:09 -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 1penpa-0008Ny-S7 for guix-patches@gnu.org; Tue, 21 Mar 2023 22:04: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 1penpa-0000Kd-K4 for guix-patches@gnu.org; Tue, 21 Mar 2023 22:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1penpa-0006yh-Fs for guix-patches@gnu.org; Tue, 21 Mar 2023 22:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62324] [PATCH 0/1] gnu: emu8051: Using snippet to replace patch-ncurses phases References: In-Reply-To: Resent-From: c4droid Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Mar 2023 02:04: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: 62324@debbugs.gnu.org Received: via spool by 62324-submit@debbugs.gnu.org id=B62324.167945062626800 (code B ref 62324); Wed, 22 Mar 2023 02:04:02 +0000 Received: (at 62324) by debbugs.gnu.org; 22 Mar 2023 02:03:46 +0000 Received: from localhost ([127.0.0.1]:33062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1penpK-0006yC-2o for submit@debbugs.gnu.org; Tue, 21 Mar 2023 22:03:46 -0400 Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]:42311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1penpE-0006xm-Ki for 62324@debbugs.gnu.org; Tue, 21 Mar 2023 22:03:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1679450608; bh=hVwAXCyzujHCMKa9OodnXGGBYJTeiKPtRKwX4eZgWrw=; h=From:To:Subject:Date; b=yLuIRG0GYxJG5NvS9wW//o3luDSTTP2HXfxAqWzitmcome1S+udKjpe42y9fzPrEC NBKuYyfb6Aw+Yzz6C9P9tO289SjnE9QHZZfSQv/IMau9MsPQSSwNV5+bt2pbuFrYrb PoQfXf+gnBsfInpMrApI4sXAunXHarIXp4NrhAJk= Received: from Workstation ([113.200.58.195]) by newxmesmtplogicsvrszc2-0.qq.com (NewEsmtp) with SMTP id DA93000; Wed, 22 Mar 2023 10:03:26 +0800 X-QQ-mid: xmsmtpt1679450606twsppm5m0 Message-ID: X-QQ-XMAILINFO: MeFzsa+dhhSax9HDw/iXXhgDwyL5bo2GByKHqIxzw4LtlY1IqOFd6cVmouTn0C FmWBRaCO04uhLEusEE7F2TSCBmphZ8rp6Wifn9F540m6Y1A75hk05lEMpTzKRf2gzDYLAQSE9IRH klU2ghqvcKz5p1FS/trlhBgc8d4lO3c6g/hld1Q9PIHQIUzL/WT4A19ryZjKWsOey+8FVQlTOz7s +Mw0C+Faq5CVFDMTksvRK2eF6BOw8V0qMB5me2buyvEBe3tyZsWRtDACWKhWPMAfzEatBFnt3zl3 1jYsyKEExYKgr48QyIn+0la/VguQljwYO7NT62qtz7oWaqO1+YCJ/XHZTUlxCJvqpbxTEUcNzqlI +Numxw+vfXiwk6Uan+NGOHHNFBOXpxo0R+pxjvQo6Xj2viJQs3Hw/UYRiuH4tifXvWUqtPgzcDkj KubVQMTDjLY7N+AcbZIPFSljdUS7AQ0CkL8Dygy9emF/b4ZZkLZ7gWAHaQ4bPuUMJKKQ/GgTp1ZT 3gKquZymYLkCIqUZyIa1f+YwC7jY0+3wCXPNjveuvVYeI4WWZ5WP7kdIEGAypp7c6LT05rsQwzhu D6cz3jpg/JVYwaCbkBc39QIXpQeItk+8kWnas2fZuMU3bncGRGgkExY5af6neIWRU2tbKrw0o7Ye CN7oqZvH+eQBMNJoGZUZ3CwHjR2QOdBzWnko6yXUykUYM0PjJha8WEvD2SoqVC8wOCKbK43tM/VP PGj8ujSYfo/Xb1hr2zTYwxBtOSNGol4rZJ1SmCbs9fOZZ+Bdix71zRRa/SL1D6U3g07Xqvy0rBxS Yg9n4C7TnvXkVWCBLT/tW0w/RcUxkD9cnB4OlkWoVaCe4NoC5RhPjMd6upUzrYWGJt5TXXN6who7 Of7F1mAmHkf8hSyY3DoF8+ki1LbtSOhNxCV5moMnFJ/qG2+Q1YRWrqBMS0spap5pztBS98F5SMtK IKgTSM2Q4= User-agent: mu4e 1.8.13; emacs 28.2 From: c4droid Date: Wed, 22 Mar 2023 09:58:24 +0800 Message-ID: <87cz51o841.fsf@foxmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 347A23D97B X-Spam-Score: 1.75 X-Migadu-Spam-Score: 1.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: 6nTlmNkMifqW --=-=-= Content-Type: text/plain Replace patch-ncurses phases with snippet field. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-emu8051-Using-snippet-to-replace-patch-ncurses-p.patch >From 8f4aeb1d2f99b87ced20242cff6ed282649243d4 Mon Sep 17 00:00:00 2001 From: c4droid Date: Wed, 22 Mar 2023 09:57:13 +0800 Subject: [PATCH] gnu: emu8051: Using snippet to replace patch-ncurses phases --- gnu/packages/embedded.scm | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 50658e4..fdf950f 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -1763,28 +1763,27 @@ (define-public emu8051 (file-name (git-file-name name version)) (sha256 (base32 - "1xxmkcwvd5fjnhwbricafg4xvxvr8dxhfanyfp4rbksw37dgk2fx")))) + "1xxmkcwvd5fjnhwbricafg4xvxvr8dxhfanyfp4rbksw37dgk2fx")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Replace LDFLAGS -lcurses to -lncurses + (substitute* "Makefile" + (("-lcurses") "-lncurses")))))) (build-system gnu-build-system) (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")))) - (replace 'install - ;; No installation procedure - (lambda _ - (install-file "emu" - (string-append (assoc-ref %outputs "out") - "/bin"))))))) + #:make-flags #~(list (string-append "CC=" + ,(cc-for-target))) + #:phases #~(modify-phases %standard-phases + (delete 'configure) ;No ./configure script + (replace 'install + ;; No installation procedure + (lambda _ + (install-file "emu" + (string-append #$output "/bin"))))))) (inputs (list ncurses)) - (home-page "https://github.comjarikomppa/emu8051") + (home-page "https://github.com/jarikomppa/emu8051") (synopsis "8051/8052 emulator with curses-based UI") (description "emu8051 is a simulator of the 8051/8052 microcontrollers.") (license license:expat)))) -- 2.39.2 --=-=-= Content-Type: text/plain When changing install phases with gexp, report: Unbound variables: gexp --=-=-=--