Subject: [PATCH] gnu: packages: Fix aircrack-ng for gcc-10.
From: Sergei Trofimovich <[email-masked]>
To: [email-masked]
Cc: Sergei Trofimovich <[email-masked]>
Date: Fri, 20 Aug 2021 08:27:14 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/networking.scm (aircrack-ng): Backport patches for
gcc-10 compatibility.
---
 gnu/packages/networking.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index ec5e383b0e..9483b1e3e7 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1807,7 +1807,23 @@ live network and disk I/O bandwidth monitor.")
        (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
                            version ".tar.gz"))
        (sha256
-        (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
+        (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))
+       (patches
+         (list
+           (origin
+             (method url-fetch)
+             (uri "https://github.com/aircrack-ng/aircrack-ng/commit/d4496006ac1e0c99908108b998ae39afb0658733.patch")
+             (file-name (string-append name "-gcc-10-p1.patch"))
+             (sha256
+              (base32
+               "0kyx2jdygr38y1bz4s8r4qyaimpfwh3bvn6qxqzn5bwhwkn3c7wj")))
+           (origin
+             (method url-fetch)
+             (uri "https://github.com/aircrack-ng/aircrack-ng/commit/f6f1396807607f5649d20631db517cfca3a1f5c4.patch")
+             (file-name (string-append name "-gcc-10-p2.patch"))
+             (sha256
+              (base32
+               "1c4bm7nbm9y9mlcyxi983kcvcviqsn93clyb9rxhlqwvyca3zfrg")))))))
     (build-system gnu-build-system)
     (native-inputs
      `(("autoconf" ,autoconf)
-- 
2.33.0