From 068745a0445edf6325b50675c5c090811fe77a73 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 3 Nov 2016 17:40:38 +0100
Subject: [PATCH] dbus-python: Upgrade to 1.2.4

  This is required to support aarch64 systems.
  The edition of PYTHON_LIBS is probably wrong but it what made it work. In future, it would be
  better clean up it.
---
 component/firewalld/buildout.cfg | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/component/firewalld/buildout.cfg b/component/firewalld/buildout.cfg
index e4b4f6401..cbd444fc0 100644
--- a/component/firewalld/buildout.cfg
+++ b/component/firewalld/buildout.cfg
@@ -1,5 +1,4 @@
 [buildout]
-
 parts =
   firewalld-patch
 
@@ -44,13 +43,13 @@ environment =
 
 [dbus-python]
 recipe = slapos.recipe.cmmi
-version = 1.2.0
+version = 1.2.4
 url = http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${:version}.tar.gz
-md5sum = b09cd2d1a057cc432ce944de3fc06bf7
+md5sum = 7372a588c83a7232b4e08159bfd48fe5 
 python-egg = ${buildout:parts-directory}/${:_buildout_section_name_}/lib/python2.7/site-packages
 environment =
   PKG_CONFIG_PATH=${dbus:location}/lib/pkgconfig:${dbus-glib:location}/lib/pkgconfig:${glib:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig
-  PATH=${pkgconfig:location}/bin:%(PATH)s
+  PATH=${pkgconfig:location}/bin:${python2.7:location}/bin:%(PATH)s
   DBUS_CFLAGS=-I${dbus:location}/include/dbus-1.0 -I${dbus:location}/lib/dbus-1.0/include
   DBUS_LIBS=-L${dbus:location}/lib -ldbus-1
   DBUS_GLIB_CFLAGS=-I${dbus-glib:location}/include/dbus-1.0
@@ -59,7 +58,7 @@ environment =
   LDFLAGS=-L${glib:location}/lib -Wl,-rpath=${glib:location}/lib
   PYTHON=${python2.7:location}/bin/python2.7
   PYTHON_INCLUDES=-I${python2.7:location}/include/python2.7
-  PYTHON_LIBS=-L${python2.7:location}/lib -lpython2.7
+  PYTHON_LIBS=-L${python2.7:location}/lib -lpython2.7 -lpthread -ldl -lutil -lm
 
 [gobject-introspection]
 recipe = slapos.recipe.cmmi
-- 
2.30.9