From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 21 22:03:46 2023 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 To: 62324@debbugs.gnu.org Subject: [PATCH 0/1] gnu: emu8051: Using snippet to replace patch-ncurses phases 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-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Replace patch-ncurses phases with snippet field. 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 phase [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (c4droid[at]foxmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.210 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.210 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 62324 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Replace patch-ncurses phases with snippet field. 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 phase [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.210 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.210 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (c4droid[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= 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 --=-=-=--