Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/files/, app-text/poppler/
Date: Tue, 09 Jan 2018 10:15:50
Message-Id: 1515492931.c145c4b7287e9dd9e80724030be17b7ee1944afc.asturm@gentoo
1 commit: c145c4b7287e9dd9e80724030be17b7ee1944afc
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 9 10:13:18 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 9 10:15:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c145c4b7
7
8 app-text/poppler: Fix build (missing include)
9
10 Closes: https://bugs.gentoo.org/643858
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 app-text/poppler/files/poppler-0.62.0-glibc.patch | 34 +++++++++++++++++++++++
14 app-text/poppler/poppler-0.62.0-r1.ebuild | 1 +
15 2 files changed, 35 insertions(+)
16
17 diff --git a/app-text/poppler/files/poppler-0.62.0-glibc.patch b/app-text/poppler/files/poppler-0.62.0-glibc.patch
18 new file mode 100644
19 index 00000000000..6808e91601d
20 --- /dev/null
21 +++ b/app-text/poppler/files/poppler-0.62.0-glibc.patch
22 @@ -0,0 +1,34 @@
23 +From 7b434a7ad9333a3b2250d636a517c58d9a12bca2 Mon Sep 17 00:00:00 2001
24 +From: Pekka Vuorela <pekka.vuorela@×××××××××××.com>
25 +Date: Fri, 15 Dec 2017 16:56:20 +0200
26 +Subject: Honor configuration for building glibc copy of strtok_r
27 +
28 +config.h didn't get included and HAVE_STRTOK_R was never defined.
29 +Now getting via glibc.h.
30 +---
31 + goo/glibc_strtok_r.cc | 3 +++
32 + 1 file changed, 3 insertions(+)
33 +
34 +diff --git a/goo/glibc_strtok_r.cc b/goo/glibc_strtok_r.cc
35 +index e779bf5..e323bc2 100644
36 +--- a/goo/glibc_strtok_r.cc
37 ++++ b/goo/glibc_strtok_r.cc
38 +@@ -50,12 +50,15 @@
39 + // Copyright (C) 2012 Alexey Pavlov <alexpux@×××××.com>
40 + // Copyright (C) 2012 Albert Astals Cid <aacid@×××.org>
41 + // Copyright (C) 2017 Adrian Johnson <ajohnson@×××××××.com>
42 ++// Copyright (C) 2017 Pekka Vuorela <pekka.vuorela@×××××××××××.com>
43 + //
44 + // To see a description of the changes please see the Changelog file that
45 + // came with your tarball or type make ChangeLog if you are building from git
46 + //
47 + //========================================================================
48 +
49 ++#include "glibc.h"
50 ++
51 + #ifndef HAVE_STRTOK_R
52 +
53 + #include <string.h>
54 +--
55 +cgit v1.1
56 +
57
58 diff --git a/app-text/poppler/poppler-0.62.0-r1.ebuild b/app-text/poppler/poppler-0.62.0-r1.ebuild
59 index b582e20f1f7..9b19e865af5 100644
60 --- a/app-text/poppler/poppler-0.62.0-r1.ebuild
61 +++ b/app-text/poppler/poppler-0.62.0-r1.ebuild
62 @@ -61,6 +61,7 @@ PATCHES=(
63 "${FILESDIR}/${PN}-0.61.0-respect-cflags.patch"
64 "${FILESDIR}/${PN}-0.62.0-openjpeg2.patch"
65 "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
66 + "${FILESDIR}/${P}-glibc.patch" # bug 643858
67 )
68
69 src_prepare() {