summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2026-02-20 16:12:09 +0000
committerArun Isaac <arunisaac@systemreboot.net>2026-03-20 00:39:35 +0000
commitdb97989cb7a315a86ec894333241982f826a1eec (patch)
treeaa83d3943a6e08ece89ae4d9208330b5418610e8 /gnu/packages
parent27d648a39f1cc14c44b1a6d1fa74c2a93a117a56 (diff)
gnu: lufa: Patch incompatible cast compilation error.
* gnu/packages/patches/lufa-fix-incompatible-cast.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/avr-xyz.scm (lufa)[source]: Use it.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/avr-xyz.scm4
-rw-r--r--gnu/packages/patches/lufa-fix-incompatible-cast.patch40
2 files changed, 43 insertions, 1 deletions
diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm
index 0e5fff46aab..03dec7e981f 100644
--- a/gnu/packages/avr-xyz.scm
+++ b/gnu/packages/avr-xyz.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022, 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2023 Maxim Cournoyer <maxim@guixotic.coop>
+;;; Copyright © 2026 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -123,7 +124,8 @@ multipart HEX files.")
(file-name (git-file-name name version))
(sha256
(base32
- "0ylr7qsiikcy827k18zj1vdzf0kb8hb0gjmifd75y8krkhhar49g"))))
+ "0ylr7qsiikcy827k18zj1vdzf0kb8hb0gjmifd75y8krkhhar49g"))
+ (patches (search-patches "lufa-fix-incompatible-cast.patch"))))
(outputs '("bootloaders" "demos" "projects" "doc"))
(build-system gnu-build-system)
(arguments
diff --git a/gnu/packages/patches/lufa-fix-incompatible-cast.patch b/gnu/packages/patches/lufa-fix-incompatible-cast.patch
new file mode 100644
index 00000000000..81d54de43e5
--- /dev/null
+++ b/gnu/packages/patches/lufa-fix-incompatible-cast.patch
@@ -0,0 +1,40 @@
+From a13ca118d3987890b749a2a96a92f74771821f8a Mon Sep 17 00:00:00 2001
+From: Dean Camera <dean@fourwalledcubicle.com>
+Date: Sun, 30 Jun 2024 13:44:17 +1000
+Subject: [PATCH] Webserver: Fix incompatible cast warning.
+
+---
+ Projects/Webserver/Lib/DHCPServerApp.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Projects/Webserver/Lib/DHCPServerApp.c b/Projects/Webserver/Lib/DHCPServerApp.c
+index 610d9bb6a..dfc579059 100644
+--- a/Projects/Webserver/Lib/DHCPServerApp.c
++++ b/Projects/Webserver/Lib/DHCPServerApp.c
+@@ -39,7 +39,7 @@
+
+ #if defined(ENABLE_DHCP_SERVER) || defined(__DOXYGEN__)
+
+-struct uip_conn* BroadcastConnection;
++struct uip_udp_conn* BroadcastConnection;
+
+ uint8_t LeasedIPs[255 / 8];
+
+@@ -107,7 +107,7 @@ void DHCPServerApp_Callback(void)
+ sizeof(uip_ipaddr_t), &GatewayIPAddress);
+
+ /* Send the DHCP OFFER packet */
+- uip_poll_conn(BroadcastConnection);
++ uip_udp_periodic_conn(BroadcastConnection);
+ memcpy(&uip_udp_conn->ripaddr, &uip_broadcast_addr, sizeof(uip_ipaddr_t));
+ uip_udp_send(AppDataSize);
+
+@@ -135,7 +135,7 @@ void DHCPServerApp_Callback(void)
+ }
+
+ /* Send the DHCP ACK or NAK packet */
+- uip_poll_conn(BroadcastConnection);
++ uip_udp_periodic_conn(BroadcastConnection);
+ memcpy(&uip_udp_conn->ripaddr, &uip_broadcast_addr, sizeof(uip_ipaddr_t));
+ uip_udp_send(AppDataSize);
+