From 8591fae4cf34ac5abcf85bf0cee0225d6c472e32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Mon, 22 Sep 2014 21:12:26 +0200
Subject: [PATCH] syscalls: Adjust /proc/net/dev parser for old kernels.

* guix/build/syscalls.scm (%interface-line): Remove whitespace in rest
  pattern.  (There's no extra whitespace after the colon with Linux
  2.6.32.)
---
 guix/build/syscalls.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index f910ebd1521..7e5245fcc6e 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -295,7 +295,7 @@ (define* (network-interfaces #:optional sock)
 
 (define %interface-line
   ;; Regexp matching an interface line in Linux's /proc/net/dev.
-  (make-regexp "^[[:blank:]]*([[:alnum:]]+): .*$"))
+  (make-regexp "^[[:blank:]]*([[:alnum:]]+):.*$"))
 
 (define (all-network-interfaces)
   "Return all the registered network interfaces, including those that are not
-- 
GitLab