gnu: bridge-utils: Fix build system.
authorDavid Thompson <davet@gnu.org>
Wed, 6 May 2015 21:00:07 +0000 (17:00 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 7 May 2015 14:44:42 +0000 (10:44 -0400)
* gnu/packages/linux.scm (bridge-utils): Patch source to fix compilation
  error.  Patch Makefile to fail in case of future compilation errors.

gnu/packages/linux.scm

index 9ff753d..62d2777 100644 (file)
@@ -1033,6 +1033,17 @@ Linux-based operating systems.")
      '(#:phases (alist-cons-after
                  'unpack 'bootstrap
                  (lambda _
+                   ;; Fix "field ‘ip6’ has incomplete type" errors.
+                   (substitute* "libbridge/libbridge.h"
+                     (("#include <linux/if_bridge.h>")
+                      "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
+
+                   ;; Ensure that the entire build fails if one of the
+                   ;; sub-Makefiles fails.
+                   (substitute* "Makefile.in"
+                     (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
+                      "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
+
                    (zero? (system* "autoreconf" "-vf")))
                  %standard-phases)
        #:tests? #f))                              ; no 'check' target