From 213b6b01171b608ab2c3e57a75969063878b3f05 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 14 Apr 2014 15:08:29 +0200 Subject: [systemd] patch src/core/socket.c for ubuntu 14 --- remote/modules/systemd/module.build | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'remote/modules/systemd/module.build') diff --git a/remote/modules/systemd/module.build b/remote/modules/systemd/module.build index 95576548..3b11c5ee 100644 --- a/remote/modules/systemd/module.build +++ b/remote/modules/systemd/module.build @@ -27,6 +27,17 @@ build () { cd "${MODULE_DIR}/src/$REQUIRED_VERSION" pinfo "calling configure" + # patch src/core/socket.c if activated in the config file + if [ "$REQUIRED_XATTR_PATCH" == "xyes" ]; then + # patch it + if [ -e "src/core/socket.c" ]; then + sed 's/^#include $/#include \n#include /g' src/core/socket.c \ + || perror "Could not patch '$(pwd)/src/core/socket.c'" + else + perror "'$(pwd)/src/core/socket.c' does not exist." + fi + fi + # Save potentially pre-used paths/flages OLDLDFLAGS="$LDFLAGS" OLDCPPFLAGS="$CPPFLAGS" -- cgit v1.2.3-55-g7522