GNU bug report logs - #45240
[PATCH 0/2] μCsim: Extract from SDCC into separate package

Previous Next

Package: guix-patches;

Reported by: Simon South <simon <at> simonsouth.net>

Date: Mon, 14 Dec 2020 18:05:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45240 in the body.
You can then email your comments to 45240 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#45240; Package guix-patches. (Mon, 14 Dec 2020 18:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon South <simon <at> simonsouth.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 14 Dec 2020 18:05:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon South <simon <at> simonsouth.net>
To: guix-patches <at> gnu.org
Cc: Simon South <simon <at> simonsouth.net>
Subject: [PATCH 0/2] μCsim: Extract from SDCC into separate package
Date: Mon, 14 Dec 2020 12:58:09 -0500
Currently the package for SDCC, a C compiler suite for 8-bit microcontrollers,
builds and installs its own copy of μCsim, a collection of microcontroller
simulators.

This patch series adds a separate package for μCsim and removes the bundled
copy from SDCC.

Note that despite the name, "0.6-pre67" does appear to be the latest stable
version; the last "formal" release, 0.5.3, was made in 2004, and 0.6 has
apparently been in a pre-release state for four years now (see
http://mazsola.iit.uni-miskolc.hu/ucsim/download/unix/).

--
Simon South
simon <at> simonsouth.net


Simon South (2):
  gnu: Add μCsim.
  gnu: sdcc: Remove bundled μCsim.

 gnu/packages/embedded.scm | 43 ++++++++++++++++++++++++++++++++++++++-
 gnu/packages/sdcc.scm     |  4 +++-
 2 files changed, 45 insertions(+), 2 deletions(-)

-- 
2.29.2





Information forwarded to guix-patches <at> gnu.org:
bug#45240; Package guix-patches. (Mon, 14 Dec 2020 18:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 45240 <at> debbugs.gnu.org (full text, mbox):

From: Simon South <simon <at> simonsouth.net>
To: 45240 <at> debbugs.gnu.org
Cc: Simon South <simon <at> simonsouth.net>
Subject: [PATCH 1/2] gnu: Add μCsim.
Date: Mon, 14 Dec 2020 13:00:19 -0500
* gnu/packages/embedded.scm (ucsim): New variable.
---
 gnu/packages/embedded.scm | 43 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 42 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index f2c7ca5f9f..dd48fe317e 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -34,7 +34,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
-  #:use-module ((guix build utils) #:select (alist-replace))
+  #:use-module ((guix build utils) #:select (alist-replace delete-file-recursively))
   #:use-module (gnu packages)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages autotools)
@@ -1420,3 +1420,44 @@ handling communication with eBUS devices connected to a 2-wire bus system
 (\"energy bus\" used by numerous heating systems).")
     (home-page "https://ebusd.eu/")
     (license license:gpl3+)))
+
+(define-public ucsim
+  (package
+    (name "ucsim")
+    (version "0.6-pre67")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://mazsola.iit.uni-miskolc.hu/ucsim/download/unix/"
+                    "devel/ucsim-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0aahj9pbfjphjrm4hgs9pfmp6d5aikaq4yvxlrvhywjinnnf0qp1"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags '("--enable-avr-port"
+                           "--enable-m6809-port"
+                           "--enable-p1516-port"
+                           "--enable-st7-port")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-makefiles
+           (lambda _
+             (substitute* (find-files "." "(\\.mk$|\\.in$)")
+               (("/bin/sh") (which "sh")))
+             #t))
+         (add-after 'install 'remove-empty-directory
+           (lambda* (#:key outputs #:allow-other-keys)
+             (delete-file-recursively
+              (string-append (assoc-ref outputs "out") "/share/man"))
+             #t)))))
+    (native-inputs
+     `(("bison" ,bison)
+       ("flex" ,flex)))
+    (home-page "http://mazsola.iit.uni-miskolc.hu/ucsim/")
+    (synopsis "Simulators for various microcontroller families")
+    (description "μCsim is a collection of software simulators for
+microcontrollers in the Atmel AVR; Intel MCS-51 (8051); Motorola 68HC08 and
+6809; P1516; Padauk PDK13, PDK14 and PDK15; STMicroelectronics ST7 and STM8;
+and Zilog Z80 families, plus many of their variants.")
+    (license license:gpl2+)))
-- 
2.29.2





Information forwarded to guix-patches <at> gnu.org:
bug#45240; Package guix-patches. (Mon, 14 Dec 2020 18:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 45240 <at> debbugs.gnu.org (full text, mbox):

From: Simon South <simon <at> simonsouth.net>
To: 45240 <at> debbugs.gnu.org
Cc: Simon South <simon <at> simonsouth.net>
Subject: [PATCH 2/2] gnu: sdcc: Remove bundled μCsim.
Date: Mon, 14 Dec 2020 13:00:20 -0500
* gnu/packages/sdcc.scm (sdcc)[source]: Extend snippet to remove bundled μCsim
source.
[arguments]<#:configure-flags>: Replace "--enable-ucsim" with
"--disable-ucsim".
---
 gnu/packages/sdcc.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sdcc.scm b/gnu/packages/sdcc.scm
index aad2cf9e62..0ce71ed955 100644
--- a/gnu/packages/sdcc.scm
+++ b/gnu/packages/sdcc.scm
@@ -46,6 +46,8 @@
                '(begin
                   ;; Remove non-free source files
                   (delete-file-recursively "device/non-free")
+                  ;; Remove bundled μCsim source
+                  (delete-file-recursively "sim")
                   #t))
               (patches (search-patches "sdcc-disable-non-free-code.patch"))))
     (build-system gnu-build-system)
@@ -58,7 +60,7 @@
     (arguments
      `(;; gputils is required for PIC ports
        #:configure-flags
-       '("--disable-pic14-port" "--disable-pic16-port" "--enable-ucsim")
+       '("--disable-pic14-port" "--disable-pic16-port" "--disable-ucsim")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-makefile
-- 
2.29.2





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 21 Dec 2020 16:39:01 GMT) Full text and rfc822 format available.

Notification sent to Simon South <simon <at> simonsouth.net>:
bug acknowledged by developer. (Mon, 21 Dec 2020 16:39:01 GMT) Full text and rfc822 format available.

Message #16 received at 45240-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon South <simon <at> simonsouth.net>
Cc: 45240-done <at> debbugs.gnu.org
Subject: Re: [bug#45240] [PATCH 0/2] μCsim: Extract from
 SDCC into separate package
Date: Mon, 21 Dec 2020 17:38:08 +0100
Hi Simon,

Simon South <simon <at> simonsouth.net> skribis:

> Currently the package for SDCC, a C compiler suite for 8-bit microcontrollers,
> builds and installs its own copy of μCsim, a collection of microcontroller
> simulators.
>
> This patch series adds a separate package for μCsim and removes the bundled
> copy from SDCC.
>
> Note that despite the name, "0.6-pre67" does appear to be the latest stable
> version; the last "formal" release, 0.5.3, was made in 2004, and 0.6 has
> apparently been in a pre-release state for four years now (see
> http://mazsola.iit.uni-miskolc.hu/ucsim/download/unix/).

[...]

>   gnu: Add μCsim.
>   gnu: sdcc: Remove bundled μCsim.

Great, I applied both, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Jan 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 148 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.