summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-07-17 08:37:51 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2016-07-17 08:39:23 +0100
commit04ef5ee090bd5130630a8aa4330f5dce0371f298 (patch)
tree8e01edd8df26692f74c38124b178bc9abb3c7b4a /app-text/liblangtag
parentsys-process/audit: Back to ~arch. (diff)
downloadgentoo-04ef5ee090bd5130630a8aa4330f5dce0371f298.tar.gz
gentoo-04ef5ee090bd5130630a8aa4330f5dce0371f298.tar.bz2
gentoo-04ef5ee090bd5130630a8aa4330f5dce0371f298.zip
app-text/liblangtag: fix broken enum declaration, bug #588966
Reported-by: Cynede Bug: https://bugs.gentoo.org/588966 Package-Manager: portage-2.3.0
Diffstat (limited to 'app-text/liblangtag')
-rw-r--r--app-text/liblangtag/files/liblangtag-0.6.0-enum.patch56
-rw-r--r--app-text/liblangtag/liblangtag-0.6.0-r1.ebuild (renamed from app-text/liblangtag/liblangtag-0.6.0.ebuild)2
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/liblangtag/files/liblangtag-0.6.0-enum.patch b/app-text/liblangtag/files/liblangtag-0.6.0-enum.patch
new file mode 100644
index 000000000000..59265a556fe7
--- /dev/null
+++ b/app-text/liblangtag/files/liblangtag-0.6.0-enum.patch
@@ -0,0 +1,56 @@
+From 3cc56cf32c006e7e8445c3ba49ffc128c646c88d Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon@redhat.com>
+Date: Wed, 23 Mar 2016 14:07:48 +0100
+Subject: [PATCH] enum must be declared before it's used
+
+---
+ liblangtag/lt-tag.h | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+diff --git a/liblangtag/lt-tag.h b/liblangtag/lt-tag.h
+index 939acf5..78e3797 100644
+--- a/liblangtag/lt-tag.h
++++ b/liblangtag/lt-tag.h
+@@ -37,6 +37,19 @@ LT_BEGIN_DECLS
+ */
+ typedef struct _lt_tag_t lt_tag_t;
+
++enum _lt_tag_filter_t {
++ LT_TAG_FILTER_NONE = 0,
++ LT_TAG_FILTER_LANGUAGE = 1 << 0,
++ LT_TAG_FILTER_EXTLANG = 1 << 1,
++ LT_TAG_FILTER_SCRIPT = 1 << 2,
++ LT_TAG_FILTER_REGION = 1 << 3,
++ LT_TAG_FILTER_VARIANT = 1 << 4,
++ LT_TAG_FILTER_EXTENSION = 1 << 5,
++ LT_TAG_FILTER_PRIVATEUSE = 1 << 6,
++ LT_TAG_FILTER_GRANDFATHERED = 1 << 7,
++ LT_TAG_FILTER_ALL = -1
++};
++
+ /**
+ * lt_tag_filter_t:
+ * @LT_TAG_FILTER_NONE: all of objects filtered.
+@@ -55,19 +68,6 @@ typedef struct _lt_tag_t lt_tag_t;
+ */
+ typedef enum _lt_tag_filter_t lt_tag_filter_t;
+
+-enum _lt_tag_filter_t {
+- LT_TAG_FILTER_NONE = 0,
+- LT_TAG_FILTER_LANGUAGE = 1 << 0,
+- LT_TAG_FILTER_EXTLANG = 1 << 1,
+- LT_TAG_FILTER_SCRIPT = 1 << 2,
+- LT_TAG_FILTER_REGION = 1 << 3,
+- LT_TAG_FILTER_VARIANT = 1 << 4,
+- LT_TAG_FILTER_EXTENSION = 1 << 5,
+- LT_TAG_FILTER_PRIVATEUSE = 1 << 6,
+- LT_TAG_FILTER_GRANDFATHERED = 1 << 7,
+- LT_TAG_FILTER_ALL = -1
+-};
+-
+ lt_tag_t *lt_tag_new (void);
+ lt_tag_t *lt_tag_ref (lt_tag_t *tag);
+ void lt_tag_unref (lt_tag_t *tag);
+--
+2.7.4.1.g5468f9e
+
diff --git a/app-text/liblangtag/liblangtag-0.6.0.ebuild b/app-text/liblangtag/liblangtag-0.6.0-r1.ebuild
index c431d7c9734c..2e7c4c1283fc 100644
--- a/app-text/liblangtag/liblangtag-0.6.0.ebuild
+++ b/app-text/liblangtag/liblangtag-0.6.0-r1.ebuild
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
# Upstream expect liblangtag to be installed when one runs tests...
RESTRICT="test"
+PATCHES=("${FILESDIR}"/${P}-enum.patch)
+
src_configure() {
econf \
$(use_enable introspection) \