Skip to content

Commit

Permalink
comment out line in python-iso15118 that causes OSError on M1 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
catarial committed Nov 18, 2024
1 parent 8a74df7 commit 046c528
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/demo-patch-scripts/apply-runtime-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ echo "Applying pyjosev_module_enabledt.patch"
cd / && patch -p0 -N -i /tmp/demo-patches/pyjosev_module_enabledt.patch
echo "Applying simulator_enabledt.patch"
cd / && patch -p0 -N -i /tmp/demo-patches/simulator_enabledt.patch
echo "Applying iso15118_prevent_m1_crash.patch"
cd / && patch -p0 -N -i /tmp/demo-patches/iso15118_prevent_m1_crash.patch

echo "Applying enabled_payment_method_in_python.patch"
cd /ext && patch -p0 -i /tmp/demo-patches/enable_payment_method_in_python.patch
Expand Down
10 changes: 10 additions & 0 deletions manager/demo-patches/iso15118_prevent_m1_crash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- /ext/dist/libexec/everest/3rd_party/josev/iso15118/evcc/transport/udp_client.py
+++ /ext/dist/libexec/everest/3rd_party/josev/iso15118/evcc/transport/udp_client.py
@@ -65,7 +65,7 @@
# as the dual of bind(), in the server side, since bind() controls which
# interface(s) the socket receives multicast packets from.
interface_index = socket.if_nametoindex(iface)
- sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, interface_index)
+ # sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, interface_index)

return sock

0 comments on commit 046c528

Please sign in to comment.