Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: dev-python/pygobject/files/pygobject-2.18.0-make_check.patch

Issue 661443: Fixes so that libcros can compile on ARM. We update to a newer version of (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
diff --git a/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch b/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
new file mode 100644
index 0000000000000000000000000000000000000000..f351092b2f80140aa9a306b12bbf863a24df35f2
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-2.18.0-make_check.patch
@@ -0,0 +1,57 @@
+--- tests/Makefile.am
++++ tests/Makefile.am
+@@ -11,7 +11,7 @@
+ test-thread.h \
+ test-unknown.h
+
+-noinst_LTLIBRARIES = testhelper.la
++check_LTLIBRARIES = testhelper.la
+ linked_LIBS = testhelper.la
+
+ testhelper_la_LDFLAGS = -module -avoid-version
+@@ -47,6 +47,7 @@
+ cp $(top_srcdir)/gobject/*.py $(top_builddir)/gobject; \
+ cp $(top_srcdir)/gio/*.py $(top_builddir)/gio; \
+ fi
++ $(LN_S) .libs/testhelper.so testhelper.so
+ @$(PYTHON) $(srcdir)/runtests.py $(top_builddir) $(top_srcdir)
+ @if test "$(top_builddir)" != "$(top_srcdir)"; then \
+ rm -f $(top_builddir)/glib/*.py; \
+@@ -58,8 +59,5 @@
+ @rm -fr $(top_builddir)/gio/*.pyc
+
+
+-all: $(LTLIBRARIES:.la=.so)
+ clean-local:
+- rm -f $(LTLIBRARIES:.la=.so)
+-.la.so:
+- $(LN_S) .libs/$@ $@ || true
++ rm -f .libs/testhelper.so
+--- tests/runtests.py
++++ tests/runtests.py
+@@ -6,6 +6,9 @@
+
+ import common
+
++# Some tests fail with translated messages.
++os.environ["LC_ALL"] = "C"
++
+ program = None
+ if len(sys.argv) == 3:
+ buildDir = sys.argv[1]
+--- tests/test_gio.py
++++ tests/test_gio.py
+@@ -386,9 +386,10 @@
+
+ def testQueryWritableNamespaces(self):
+ infolist = self.file.query_writable_namespaces()
+- for info in infolist:
+- if info.name == "xattr":
+- self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
++ if infolist:
++ for info in infolist:
++ if info.name == "xattr":
++ self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
+
+ def testSetAttribute(self):
+ self._f.write("testing attributes")

Powered by Google App Engine
This is Rietveld 408576698