mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: bridge-utils: Fix build system.
* gnu/packages/linux.scm (bridge-utils): Patch source to fix compilation error. Patch Makefile to fail in case of future compilation errors.
This commit is contained in:
parent
105369a46b
commit
e5c8e4f361
1 changed files with 11 additions and 0 deletions
|
@ -1033,6 +1033,17 @@ (define-public bridge-utils
|
||||||
'(#:phases (alist-cons-after
|
'(#:phases (alist-cons-after
|
||||||
'unpack 'bootstrap
|
'unpack 'bootstrap
|
||||||
(lambda _
|
(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")))
|
(zero? (system* "autoreconf" "-vf")))
|
||||||
%standard-phases)
|
%standard-phases)
|
||||||
#:tests? #f)) ; no 'check' target
|
#:tests? #f)) ; no 'check' target
|
||||||
|
|
Loading…
Reference in a new issue