diff options
| author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2026-03-07 08:49:08 +0300 |
|---|---|---|
| committer | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2026-03-07 10:00:22 +0300 |
| commit | 9c737a8ff0626572323cf44b85aba52dc1ede76c (patch) | |
| tree | 15d5d19ec554d5d6bf9a0103a74bf58cb2e2e700 /gnu/packages/embedded.scm | |
| parent | 3962b739bf34a6a075ebdf2e4f5c702f19373835 (diff) | |
gnu: ebusd: Update to 26.1.
* gnu/packages/embedded.scm (ebusd): Update to 26.1. Use GEXPs.
[arguments]<#:phases>: Set the proper path to the installed configuration in
the "patch" phase. Update the ebusd configuration installation path in
"install-config" phase.
[native-inputs]: Update "config" input: use the latest commit from the
upstream as the upstream has migrated from the old CSV configuration format to
TypeSpec format. Change the installation file name to "ebusd-configuration".
Change-Id: I61b18bfe812511c41ea11829db2034ae68bab058
Diffstat (limited to 'gnu/packages/embedded.scm')
| -rw-r--r-- | gnu/packages/embedded.scm | 74 |
1 files changed, 36 insertions, 38 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index ba9dc4de6f0..db6a26625f3 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | ;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org> | 13 | ;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org> |
| 14 | ;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop> | 14 | ;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop> |
| 15 | ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org> | 15 | ;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 16 | ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> | 16 | ;;; Copyright © 2024, 2026 Artyom V. Poptsov <poptsov.artyom@gmail.com> |
| 17 | ;;; Copyright © 2025 Junker dk@junkeria.club | 17 | ;;; Copyright © 2025 Junker dk@junkeria.club |
| 18 | ;;; Copyright © 2025 Reza Housseini <reza@housseini.me> | 18 | ;;; Copyright © 2025 Reza Housseini <reza@housseini.me> |
| 19 | ;;; | 19 | ;;; |
| @@ -1870,7 +1870,7 @@ and more.") | |||
| 1870 | (define-public ebusd | 1870 | (define-public ebusd |
| 1871 | (package | 1871 | (package |
| 1872 | (name "ebusd") | 1872 | (name "ebusd") |
| 1873 | (version "25.1") | 1873 | (version "26.1") |
| 1874 | (source (origin | 1874 | (source (origin |
| 1875 | (method git-fetch) | 1875 | (method git-fetch) |
| 1876 | (uri (git-reference | 1876 | (uri (git-reference |
| @@ -1879,36 +1879,34 @@ and more.") | |||
| 1879 | (file-name (string-append name "-" version "-checkout")) | 1879 | (file-name (string-append name "-" version "-checkout")) |
| 1880 | (sha256 | 1880 | (sha256 |
| 1881 | (base32 | 1881 | (base32 |
| 1882 | "1k85vzjhhya7r41nid5yylr7jyvl09455hpny6wrjkipz68icgdf")))) | 1882 | "1as59bjv9m6hgzg7bjy4nwwzqkwf18a1ss515wjzziaz8a32nq0a")))) |
| 1883 | (build-system gnu-build-system) | 1883 | (build-system gnu-build-system) |
| 1884 | (arguments | 1884 | (arguments |
| 1885 | `(#:configure-flags '("--localstatedir=/var") | 1885 | (list #:configure-flags #~(list "--localstatedir=/var") |
| 1886 | #:phases | 1886 | #:phases |
| 1887 | (modify-phases %standard-phases | 1887 | #~(modify-phases %standard-phases |
| 1888 | (add-after 'unpack 'patch | 1888 | (add-after 'unpack 'patch |
| 1889 | (lambda* (#:key inputs #:allow-other-keys) | 1889 | (lambda _ |
| 1890 | (substitute* "src/ebusd/main.h" | 1890 | (let ((config (string-append #$output "/share/ebusd/"))) |
| 1891 | (("#define CONFIG_PATH .*") | 1891 | (substitute* "src/ebusd/main.h" |
| 1892 | (string-append "#define CONFIG_PATH \"" (assoc-ref inputs "config") | 1892 | (("#define CONFIG_PATH .*") |
| 1893 | "/ebusd-2.1.x/\"\n"))))) | 1893 | (format #f "#define CONFIG_PATH \"~a\"\n" config)))))) |
| 1894 | ;; If we don't set GIT_REVISION, then the build system will include the | 1894 | ;; If we don't set GIT_REVISION, then the build system will include the |
| 1895 | ;; current date in the version string, making the build unreproducible. | 1895 | ;; current date in the version string, making the build unreproducible. |
| 1896 | ;; | 1896 | ;; |
| 1897 | ;; See: | 1897 | ;; See: |
| 1898 | ;; * https://codeberg.org/guix/guix/issues/6638 | 1898 | ;; * https://codeberg.org/guix/guix/issues/6638 |
| 1899 | ;; * https://github.com/john30/ebusd/blob/v22.4/configure.ac#L159-L163 | 1899 | ;; * https://github.com/john30/ebusd/blob/v22.4/configure.ac#L159-L163 |
| 1900 | (add-after 'unpack 'set-version-info | 1900 | (add-after 'unpack 'set-version-info |
| 1901 | (lambda _ | 1901 | (lambda _ |
| 1902 | (setenv "GIT_REVISION" ,version))) | 1902 | (setenv "GIT_REVISION" #$version))) |
| 1903 | (add-after 'install 'install-config | 1903 | (add-after 'install 'install-config |
| 1904 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1904 | (lambda _ |
| 1905 | (let ((config-destination | 1905 | (let ((config-destination (string-append #$output |
| 1906 | (string-append (assoc-ref outputs "out") | 1906 | "/share/ebusd")) |
| 1907 | "/share/ebusd"))) | 1907 | (config #$(this-package-native-input "config"))) |
| 1908 | (copy-recursively (string-append (assoc-ref inputs "config") | 1908 | (copy-recursively (string-append config "/src/") |
| 1909 | "/ebusd-2.1.x") | 1909 | config-destination))))))) |
| 1910 | config-destination) | ||
| 1911 | #t)))))) | ||
| 1912 | (inputs | 1910 | (inputs |
| 1913 | (list mosquitto)) | 1911 | (list mosquitto)) |
| 1914 | (native-inputs | 1912 | (native-inputs |
| @@ -1916,14 +1914,14 @@ and more.") | |||
| 1916 | ("autoconf" ,autoconf) | 1914 | ("autoconf" ,autoconf) |
| 1917 | ("config" | 1915 | ("config" |
| 1918 | ,(origin | 1916 | ,(origin |
| 1919 | (method git-fetch) | 1917 | (method git-fetch) |
| 1920 | (uri (git-reference | 1918 | (uri (git-reference |
| 1921 | (url "https://github.com/john30/ebusd-configuration") | 1919 | (url "https://github.com/john30/ebusd-configuration") |
| 1922 | (commit "666c0f6b9c4d7545eff7f43ab28a1c7baeab7913"))) | 1920 | (commit "f72859829a4a6a03c51f5374356f4c0d6353e897"))) |
| 1923 | (file-name "config-checkout") | 1921 | (file-name "ebusd-configuration") |
| 1924 | (sha256 | 1922 | (sha256 |
| 1925 | (base32 | 1923 | (base32 |
| 1926 | "0yxnx8p4lbk614l16854r9s9d8s9c7ixgczfs8mph94xz0wkda7x")))))) | 1924 | "0683jnj6nvvhp6w6sam8ldakw39lf64wjlwjzva9v35ly2fddj5g")))))) |
| 1927 | (synopsis "Daemon for communicating with eBUS devices") | 1925 | (synopsis "Daemon for communicating with eBUS devices") |
| 1928 | (description "This package provides @command{ebusd}, a daemon for | 1926 | (description "This package provides @command{ebusd}, a daemon for |
| 1929 | handling communication with eBUS devices connected to a 2-wire bus system | 1927 | handling communication with eBUS devices connected to a 2-wire bus system |
