Package: dhcpcanon
Severity: important
Tags: upstream patch ftbfs

Dear Maintainer, hi.

I've packaged scapy 2.6.0, sent it to experimental and rebuilt it's
reverse dependencies. dhcpcanon FTBFS with this latest version because
one function was moved to another module. I'll attach the patch to fix
it here and will upload scapy to unstable next weekend.

Cheers,
Charles
>From e063a1821ead5a29f41517efe0887de154003bf5 Mon Sep 17 00:00:00 2001
From: Carlos Henrique Lima Melara <charlesmel...@riseup.net>
Date: Sat, 5 Oct 2024 10:00:17 -0300
Subject: [PATCH] d/p/fix-FTBFS-with-scapy-2.6.0.patch: add new patch

---
 debian/changelog                              |  6 +++
 .../patches/fix-FTBFS-with-scapy-2.6.0.patch  | 39 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 46 insertions(+)
 create mode 100644 debian/patches/fix-FTBFS-with-scapy-2.6.0.patch

diff --git a/debian/changelog b/debian/changelog
index 590d3b0..743efb3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dhcpcanon (0.8.5-3) UNRELEASED; urgency=medium
+
+  * d/p/fix-FTBFS-with-scapy-2.6.0.patch: add new patch.
+
+ -- Carlos Henrique Lima Melara <charlesmel...@riseup.net>  Sat, 05 Oct 2024 09:55:45 -0300
+
 dhcpcanon (0.8.5-2.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --git a/debian/patches/fix-FTBFS-with-scapy-2.6.0.patch b/debian/patches/fix-FTBFS-with-scapy-2.6.0.patch
new file mode 100644
index 0000000..0989088
--- /dev/null
+++ b/debian/patches/fix-FTBFS-with-scapy-2.6.0.patch
@@ -0,0 +1,39 @@
+From: Carlos Henrique Lima Melara <charlesmel...@riseup.net>
+Date: Sat, 5 Oct 2024 09:53:30 -0300
+Subject: fix FTBFS with scapy 2.6.0
+
+In the latest version of scapy, get_if_raw_hwaddr has been moved to
+scapy.arch.unix module.
+Forwarded: https://github.com/juga0/dhcpcanon/issues/37
+Last-Update: 2024-10-05
+---
+ dhcpcanon/dhcpcap.py    | 2 +-
+ dhcpcanon/dhcpcapfsm.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dhcpcanon/dhcpcap.py b/dhcpcanon/dhcpcap.py
+index c6da57f..453cfd2 100644
+--- a/dhcpcanon/dhcpcap.py
++++ b/dhcpcanon/dhcpcap.py
+@@ -10,7 +10,7 @@ import logging
+
+ import attr
+ from netaddr import IPNetwork
+-from scapy.arch import get_if_raw_hwaddr
++from scapy.arch.unix import get_if_raw_hwaddr
+ from scapy.config import conf
+ from scapy.layers.dhcp import BOOTP, DHCP
+ from scapy.layers.inet import IP, UDP
+diff --git a/dhcpcanon/dhcpcapfsm.py b/dhcpcanon/dhcpcapfsm.py
+index 1f4bb0b..d4a5669 100644
+--- a/dhcpcanon/dhcpcapfsm.py
++++ b/dhcpcanon/dhcpcapfsm.py
+@@ -7,7 +7,7 @@ from __future__ import absolute_import, unicode_literals
+ import logging
+
+ from netaddr import AddrFormatError
+-from scapy.arch import get_if_raw_hwaddr
++from scapy.arch.unix import get_if_raw_hwaddr
+ from scapy.automaton import ATMT, Automaton
+ from scapy.config import conf
+ from scapy.sendrecv import sendp
diff --git a/debian/patches/series b/debian/patches/series
index 7e0a548..feb99da 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 follow-scapy-changes
 0001-Remove-external-links-to-avoid-privacy-breach.patch
 0002-Do-not-use-bootstrap-sphinx-theme.patch
+fix-FTBFS-with-scapy-2.6.0.patch
-- 
2.45.2

Reply via email to