[gentoo-commits] repo/gentoo:master commit in: app-text/libwpd/files/, app-text/libwpd/

2019-01-13 Thread Andreas Sturmlechner
commit: 517db018c664c25c9a4db3883ef1ec39cc3588dd
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Jan 13 17:41:00 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Jan 13 20:45:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517db018

app-text/libwpd: Fix build with GCC-4.8

Closes: https://bugs.gentoo.org/674402
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch | 16 
 app-text/libwpd/libwpd-0.10.3.ebuild  |  4 +++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch 
b/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch
new file mode 100644
index 000..f47847c1d21
--- /dev/null
+++ b/app-text/libwpd/files/libwpd-0.10.3-gcc-4.8.patch
@@ -0,0 +1,16 @@
+Authored by:  David Tardon David Tardon 2018-12-30
+Commit 333c8a26f231bea26ec3d56245315041bbf5577f
+
+fix build with gcc 4.8
+
+--- a/src/lib/WPXTable.h
 b/src/lib/WPXTable.h
+@@ -53,7 +53,7 @@
+   ~WPXTable();
+   void insertRow();
+   void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned 
char borderBits);
+-  const WPXTableCell  *getCell(size_t i, size_t j)
++  const WPXTableCell  *getCell(std::size_t i, std::size_t j)
+   {
+   return &(m_tableRows[i])[j];
+   }

diff --git a/app-text/libwpd/libwpd-0.10.3.ebuild 
b/app-text/libwpd/libwpd-0.10.3.ebuild
index febfff6725b..469e0bc7eba 100644
--- a/app-text/libwpd/libwpd-0.10.3.ebuild
+++ b/app-text/libwpd/libwpd-0.10.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -21,6 +21,8 @@ BDEPEND="
doc? ( app-doc/doxygen )
 "
 
+PATCHES=( "${FILESDIR}/${P}-gcc-4.8.patch" )
+
 src_configure() {
local myeconfargs=(
--program-suffix=-${SLOT}



[gentoo-commits] repo/gentoo:master commit in: app-text/libwpd/files/, app-text/libwpd/

2017-11-19 Thread Andreas Sturmlechner
commit: 3799aea08fcf7cec0a4ff5b3a2f5a2173c4566dc
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Nov 19 23:21:55 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Nov 19 23:49:16 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3799aea0

app-text/libwpd: Drop old

Package-Manager: Portage-2.3.14, Repoman-2.3.6

 app-text/libwpd/Manifest   |  1 -
 .../files/libwpd-0.10.1-CVE-2017-14226.patch   | 50 
 app-text/libwpd/libwpd-0.10.1-r1.ebuild| 53 --
 3 files changed, 104 deletions(-)

diff --git a/app-text/libwpd/Manifest b/app-text/libwpd/Manifest
index 96e519055c8..2a5e51c4922 100644
--- a/app-text/libwpd/Manifest
+++ b/app-text/libwpd/Manifest
@@ -1,2 +1 @@
-DIST libwpd-0.10.1.tar.xz 524004 SHA256 
09d3410bc770f9d9eedc8544b5c211771ea3322de3fee19b58ad7d40fb2984f6 SHA512 
976694b5e02fd9eb0b3769d5071e9ae88505f491d8fa34473e5b99cd350060a85ddfad9b3c38e9b37a280e695e4571d353fd69fe7b69a627097587912b58ad2c
 WHIRLPOOL 
c6c1124a7124edda4dad6788794c46067ad21c8fde0765ff1b1ca6305c08139e86ac0667d6fd6ca53e4bed41ad0b7aa6b4803fad5f7f72c529cf0c3b22bc7b43
 DIST libwpd-0.10.2.tar.xz 536400 SHA256 
323f68beaf4f35e5a4d7daffb4703d0566698280109210fa4eaa90dea27d6610 SHA512 
821dbc0535ebd4fa41bcf984e344e11176862676c66abebe45cf4284f8de6e6cc7629f8a605b169d034a5c2f3e2461513d61e11e549ca73b8328eb66ac3bdd79
 WHIRLPOOL 
9ac29bab74f6131966212b932601e397fb5f291aed78e5e1e9da1bafc3ac21329bf1f3b39fde4ed8e8b84918903bb5142624a44293631c515c96b8f9d3511cd6

diff --git a/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch 
b/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch
deleted file mode 100644
index 4a5c0df922f..000
--- a/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-Gentoo-bug: 630682 (CVE-2017-14226)
-
-Change-Id: I0d8d6887fa360c05d5f9e2a070410c77926b9ce1
-Reviewed-on: https://gerrit.libreoffice.org/42054
-Tested-by: Jenkins 
-Reviewed-by: Caolán McNamara 
-Tested-by: Caolán McNamara 
-
 a/src/lib/WP5StylesListener.cpp
-+++ b/src/lib/WP5StylesListener.cpp
-@@ -85,8 +85,9 @@
-   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 0.0);
-   m_currentPage.setPageSpan(1);
- 
--  for (std::vector::const_iterator HFiter = 
(m_nextPage.getHeaderFooterList()).begin();
--  HFiter != (m_nextPage.getHeaderFooterList()).end(); 
++HFiter)
-+  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
-+  for (std::vector::const_iterator HFiter = 
headerFooterList.begin();
-+  HFiter != headerFooterList.end(); ++HFiter)
-   {
-   if ((*HFiter).getOccurrence() != NEVER)
-   {
 a/src/lib/WP42StylesListener.cpp
-+++ b/src/lib/WP42StylesListener.cpp
-@@ -84,8 +84,9 @@
-   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 
0.0);
-   m_currentPage.setPageSpan(1);
- 
--  for (std::vector::const_iterator 
HFiter = (m_nextPage.getHeaderFooterList()).begin();
--  HFiter != 
(m_nextPage.getHeaderFooterList()).end(); ++HFiter)
-+  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
-+  for (std::vector::const_iterator 
HFiter = headerFooterList.begin();
-+  HFiter != headerFooterList.end(); ++HFiter)
-   {
-   if ((*HFiter).getOccurrence() != NEVER)
-   {
 a/src/lib/WP1StylesListener.cpp
-+++ b/src/lib/WP1StylesListener.cpp
-@@ -83,8 +83,9 @@
-   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 
0.0);
-   m_currentPage.setPageSpan(1);
- 
--  for (std::vector::const_iterator 
HFiter = (m_nextPage.getHeaderFooterList()).begin();
--  HFiter != 
(m_nextPage.getHeaderFooterList()).end(); ++HFiter)
-+  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
-+  for (std::vector::const_iterator 
HFiter = headerFooterList.begin();
-+  HFiter != headerFooterList.end(); ++HFiter)
-   {
-   if ((*HFiter).getOccurrence() != NEVER)
-   {

diff --git a/app-text/libwpd/libwpd-0.10.1-r1.ebuild 
b/app-text/libwpd/libwpd-0.10.1-r1.ebuild
deleted file mode 100644
index dbd2ea12c0e..000
--- a/app-text/libwpd/libwpd-0.10.1-r1.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit alternatives
-
-DESCRIPTION="WordPerfect Document import/export library"

[gentoo-commits] repo/gentoo:master commit in: app-text/libwpd/files/, app-text/libwpd/

2017-09-11 Thread Andreas Sturmlechner
commit: ba7ccf31e3da9b82f8dac073ef4eece87b72a43d
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Sep 11 17:35:21 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Sep 11 17:37:32 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7ccf31

app-text/libwpd: Security revbump for CVE-2017-14226

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../files/libwpd-0.10.1-CVE-2017-14226.patch   | 50 
 app-text/libwpd/libwpd-0.10.1-r1.ebuild| 53 ++
 2 files changed, 103 insertions(+)

diff --git a/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch 
b/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch
new file mode 100644
index 000..4a5c0df922f
--- /dev/null
+++ b/app-text/libwpd/files/libwpd-0.10.1-CVE-2017-14226.patch
@@ -0,0 +1,50 @@
+Gentoo-bug: 630682 (CVE-2017-14226)
+
+Change-Id: I0d8d6887fa360c05d5f9e2a070410c77926b9ce1
+Reviewed-on: https://gerrit.libreoffice.org/42054
+Tested-by: Jenkins 
+Reviewed-by: Caolán McNamara 
+Tested-by: Caolán McNamara 
+
+--- a/src/lib/WP5StylesListener.cpp
 b/src/lib/WP5StylesListener.cpp
+@@ -85,8 +85,9 @@
+   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 0.0);
+   m_currentPage.setPageSpan(1);
+ 
+-  for (std::vector::const_iterator HFiter = 
(m_nextPage.getHeaderFooterList()).begin();
+-  HFiter != (m_nextPage.getHeaderFooterList()).end(); 
++HFiter)
++  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
++  for (std::vector::const_iterator HFiter = 
headerFooterList.begin();
++  HFiter != headerFooterList.end(); ++HFiter)
+   {
+   if ((*HFiter).getOccurrence() != NEVER)
+   {
+--- a/src/lib/WP42StylesListener.cpp
 b/src/lib/WP42StylesListener.cpp
+@@ -84,8 +84,9 @@
+   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 
0.0);
+   m_currentPage.setPageSpan(1);
+ 
+-  for (std::vector::const_iterator 
HFiter = (m_nextPage.getHeaderFooterList()).begin();
+-  HFiter != 
(m_nextPage.getHeaderFooterList()).end(); ++HFiter)
++  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
++  for (std::vector::const_iterator 
HFiter = headerFooterList.begin();
++  HFiter != headerFooterList.end(); ++HFiter)
+   {
+   if ((*HFiter).getOccurrence() != NEVER)
+   {
+--- a/src/lib/WP1StylesListener.cpp
 b/src/lib/WP1StylesListener.cpp
+@@ -83,8 +83,9 @@
+   m_currentPage = WPXPageSpan(m_pageList.back(), 0.0, 
0.0);
+   m_currentPage.setPageSpan(1);
+ 
+-  for (std::vector::const_iterator 
HFiter = (m_nextPage.getHeaderFooterList()).begin();
+-  HFiter != 
(m_nextPage.getHeaderFooterList()).end(); ++HFiter)
++  std::vector headerFooterList = 
m_nextPage.getHeaderFooterList();
++  for (std::vector::const_iterator 
HFiter = headerFooterList.begin();
++  HFiter != headerFooterList.end(); ++HFiter)
+   {
+   if ((*HFiter).getOccurrence() != NEVER)
+   {

diff --git a/app-text/libwpd/libwpd-0.10.1-r1.ebuild 
b/app-text/libwpd/libwpd-0.10.1-r1.ebuild
new file mode 100644
index 000..62f8a7d31f2
--- /dev/null
+++ b/app-text/libwpd/libwpd-0.10.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit alternatives
+
+DESCRIPTION="WordPerfect Document import/export library"
+HOMEPAGE="http://libwpd.sf.net;
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 MPL-2.0 )"
+SLOT="0.10"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~x86 ~x86-fbsd"
+IUSE="doc +tools"
+
+RDEPEND="dev-libs/librevenge"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+   doc? ( app-doc/doxygen )
+"
+
+PATCHES=( "${FILESDIR}/${P}-CVE-2017-14226.patch" )
+
+src_configure() {
+   econf \
+   --disable-static \
+   --disable-werror \
+   $(use_with doc docs) \
+   $(use_enable tools) \
+   --program-suffix=-${SLOT}
+}
+
+src_install() {
+   default
+   find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+   if use tools; then
+   alternatives_auto_makesym /usr/bin/wpd2html 
"/usr/bin/wpd2html-[0-9].[0-9][0-9]"
+   alternatives_auto_makesym /usr/bin/wpd2raw 
"/usr/bin/wpd2raw-[0-9].[0-9][0-9]"
+