GNU bug report logs - #78369
[PATCH electronics-team] gnu: prjtrellis: Update to 1.4-0.898329d.

Previous Next

Package: guix-patches;

Reported by: Cayetano Santos <csantosb <at> inventati.org>

Date: Sun, 11 May 2025 10:43:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Cayetano Santos <csantosb <at> inventati.org>
Cc: 78369-done <at> debbugs.gnu.org, Gabriel Wicki <gabriel <at> erlikon.ch>,
 Ekaitz Zarraga <ekaitz <at> elenq.tech>
Subject: Re: [bug#78369] [PATCH electronics-team] gnu: prjtrellis: Update to
 1.4-0.898329d.
Date: Thu, 15 May 2025 11:10:36 +0900
Hi,

Cayetano Santos <csantosb <at> inventati.org> writes:

> * gnu/packages/electronics.scm (prjtrellis): Update to 1.4-0.898329d.

I've made the following changes:

--8<---------------cut here---------------start------------->8---
1 file changed, 7 insertions(+), 12 deletions(-)
gnu/packages/electronics.scm | 19 +++++++------------

modified   gnu/packages/electronics.scm
@@ -423,7 +423,7 @@ (define-public openboardview
     (license license:expat)))
 
 (define-public prjtrellis
-  ;; Last release is 2 years old.
+  ;; The last release is 2 years old; use the latest commit for now.
   (let ((commit "898329dddf6ce6463299973081f109d645b9c55f")
         (revision "0"))
     (package
@@ -450,21 +450,16 @@ (define-public prjtrellis
       (build-system cmake-build-system)
       (arguments
        (list
-        ;; The examples test directory requires nextpnr, using this package as a
-        ;; backend, which is provided by nextpnr-ecp5: the tests are to be run
-        ;; in this later package.
-        #:tests? #f
+        #:tests? #f                     ;no test suite
+        #:configure-flags
+        #~(list (string-append "-DPYBIND11_INCLUDE_DIR="
+                               (search-input-directory %build-inputs
+                                                       "include/pybind11")))
         #:phases
         #~(modify-phases %standard-phases
             (add-after 'unpack 'chdir
               (lambda _
-                (chdir "libtrellis")))
-            ;; point to pybind11 include dir
-            (add-after 'chdir 'setenv-pybind11
-              (lambda* (#:key inputs #:allow-other-keys)
-                (setenv "PYBIND11_INCLUDE_DIR"
-                        (string-append #$(this-package-input "pybind11")
-                                       "/include/pybind11")))))))
+                (chdir "libtrellis"))))))
       (native-inputs (list python))
       (inputs (list openocd boost pybind11))
       (synopsis "Placement and routing for ECP5 FPGAs")

--8<---------------cut here---------------end--------------->8---

And pushed!

-- 
Thanks,
Maxim




This bug report was last modified 64 days ago.

Previous Next


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