Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/gtest/files/, dev-cpp/gtest/
Date: Wed, 21 Aug 2019 05:07:15
Message-Id: 1566364015.856baf91fe985ca7e633f2611528a8c5f171c0b0.juippis@gentoo
1 commit: 856baf91fe985ca7e633f2611528a8c5f171c0b0
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 20 06:10:29 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 21 05:06:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856baf91
7
8 dev-cpp/gtest: Remove gtest-1.7.0-r1
9
10 Outdated EAPI and no reverse dependencies
11
12 Package-Manager: Portage-2.3.71, Repoman-2.3.17
13 Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
14 Closes: https://github.com/gentoo/gentoo/pull/12751
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 dev-cpp/gtest/Manifest | 1 -
18 .../files/configure-fix-pthread-linking.patch | 93 ----------------------
19 dev-cpp/gtest/gtest-1.7.0-r1.ebuild | 50 ------------
20 3 files changed, 144 deletions(-)
21
22 diff --git a/dev-cpp/gtest/Manifest b/dev-cpp/gtest/Manifest
23 index 263c2954cef..63ceaa70e4a 100644
24 --- a/dev-cpp/gtest/Manifest
25 +++ b/dev-cpp/gtest/Manifest
26 @@ -1,4 +1,3 @@
27 -DIST gtest-1.7.0.tar.gz 1001582 BLAKE2B 3d10c1e502c2fac1500d07301031a9328b29027a3f9719137e09d2c47556cf52bbc978a8fb7b37330a94beafa27d24c3bfc247b2f0d51306b53f43e7ae2373b4 SHA512 a9f5c047b39efb2d11b55ee9913662ca402ac6837b3ad2d278ecfbd1caf32ed4546f169e3e92503d57bf3b62ccf89cd062da1c7ea3638aae98e868d2766363c3
28 DIST gtest-1.8.0.tar.gz 1281617 BLAKE2B ac052b4d0eb0d8ded03a8c7dff05177818627b8a51f2dbc2c162b2ee2a5d1323539e7d0d02236d9ebb799995e018f0171c2fdaeb4de3bb339548265e50de79e6 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d
29 DIST gtest-1.8.1.tar.gz 992298 BLAKE2B 40ef3417fe424205c0617f07207347ce671ac87605f8ac9b8a333b0b06e3fbef9f556041ee324c18f957f3258ab9fe06704f31cdd038355fb7890180eb77ced1 SHA512 e6283c667558e1fd6e49fa96e52af0e415a3c8037afe1d28b7ff1ec4c2ef8f49beb70a9327b7fc77eb4052a58c4ccad8b5260ec90e4bceeac7a46ff59c4369d7
30 DIST gtest-1.9.0_pre20190607.tar.gz 958396 BLAKE2B 64ae2c86a320a6ed56d6f99383591f7a0176e3f1291144bddf6dc82733c78177963f95516bbaed494318d3d7451d164aeb0d4a192b415414bcc25b9875cf6e82 SHA512 6c17ba303ec1dc8a989075a6dc0eda9b023345d00f6b43e588676cc2cd291f8c508744e4aba86a6c6b651329ce47419ad04d5765ca5978eda507a1643e8a92c3
31
32 diff --git a/dev-cpp/gtest/files/configure-fix-pthread-linking.patch b/dev-cpp/gtest/files/configure-fix-pthread-linking.patch
33 deleted file mode 100644
34 index 75e5219b7a7..00000000000
35 --- a/dev-cpp/gtest/files/configure-fix-pthread-linking.patch
36 +++ /dev/null
37 @@ -1,93 +0,0 @@
38 -From fb71154012e634a5e780e93af5434bcdafaf2b24 Mon Sep 17 00:00:00 2001
39 -From: Justin Bronder <jsbronder@×××××.com>
40 -Date: Mon, 15 Oct 2012 17:25:07 -0400
41 -Subject: [PATCH] configure: fix pthread linking
42 -
43 -- Update the pthread check to make sure that we don't need -lpthread when
44 -compiling with -nostdlib.
45 -
46 -- Make sure that the necessary pthread library is passed to libtool.
47 -
48 -Fixes:
49 -
50 -$ ldd -r /usr/lib/libgtest.so
51 - linux-vdso.so.1 (0x00007fffe7dff000)
52 - libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6 (0x00007fbe09a9f000)
53 - libc.so.6 => /lib64/libc.so.6 (0x00007fbe096f7000)
54 - libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1 (0x00007fbe094e1000)
55 - libm.so.6 => /lib64/libm.so.6 (0x00007fbe091ee000)
56 - /lib64/ld-linux-x86-64.so.2 (0x00007fbe0a005000)
57 -undefined symbol: pthread_key_create (/usr/lib/libgtest.so)
58 -undefined symbol: pthread_getspecific (/usr/lib/libgtest.so)
59 -undefined symbol: pthread_key_delete (/usr/lib/libgtest.so)
60 -undefined symbol: pthread_setspecific (/usr/lib/libgtest.so)
61 ----
62 - Makefile.am | 1 +
63 - m4/acx_pthread.m4 | 39 ++++++++++++++++++++++++++++++++++++++-
64 - 2 files changed, 39 insertions(+), 1 deletions(-)
65 -
66 -diff --git a/Makefile.am b/Makefile.am
67 -index cb350b7..db2606e 100644
68 ---- a/Makefile.am
69 -+++ b/Makefile.am
70 -@@ -181,6 +181,7 @@ endif
71 - lib_LTLIBRARIES = lib/libgtest.la lib/libgtest_main.la
72 -
73 - lib_libgtest_la_SOURCES = src/gtest-all.cc
74 -+lib_libgtest_la_LIBADD = $(AM_LIBS)
75 -
76 - pkginclude_HEADERS = \
77 - include/gtest/gtest-death-test.h \
78 -diff --git a/m4/acx_pthread.m4 b/m4/acx_pthread.m4
79 -index 2cf20de..7fba4d9 100644
80 ---- a/m4/acx_pthread.m4
81 -+++ b/m4/acx_pthread.m4
82 -@@ -339,7 +339,44 @@ if test "x$acx_pthread_ok" = xyes; then
83 - # so it's not safe to assume that we may use pthreads
84 - acx_pthread_ok=no
85 - fi
86 --
87 -+
88 -+ AC_MSG_CHECKING([whether what we have so far is sufficient with -nostdlib])
89 -+ CFLAGS="-nostdlib $CFLAGS"
90 -+ # we need c with nostdlib
91 -+ LIBS="$LIBS -lc"
92 -+ AC_TRY_LINK([#include <pthread.h>],
93 -+ [pthread_t th; pthread_join(th, 0);
94 -+ pthread_attr_init(0); pthread_cleanup_push(0, 0);
95 -+ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
96 -+ [done=yes],[done=no])
97 -+
98 -+ if test "x$done" = xyes; then
99 -+ AC_MSG_RESULT([yes])
100 -+ else
101 -+ AC_MSG_RESULT([no])
102 -+ fi
103 -+
104 -+ if test x"$done" = xno; then
105 -+ AC_MSG_CHECKING([whether -lpthread saves the day])
106 -+ LIBS="-lpthread $LIBS"
107 -+ AC_TRY_LINK([#include <pthread.h>],
108 -+ [pthread_t th; pthread_join(th, 0);
109 -+ pthread_attr_init(0); pthread_cleanup_push(0, 0);
110 -+ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
111 -+ [done=yes],[done=no])
112 -+
113 -+ if test "x$done" = xyes; then
114 -+ AC_MSG_RESULT([yes])
115 -+ PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
116 -+ else
117 -+ AC_MSG_RESULT([no])
118 -+ AC_MSG_WARN([Impossible to determine how to use pthreads with shared libraries and -nostdlib])
119 -+ fi
120 -+ fi
121 -+
122 -+ CFLAGS="$save_CFLAGS"
123 -+ LIBS="$save_LIBS"
124 -+ CC="$save_CC"
125 - CFLAGS="$save_CFLAGS"
126 - LIBS="$save_LIBS"
127 - CC="$save_CC"
128 ---
129 -1.7.8.6
130 -
131
132 diff --git a/dev-cpp/gtest/gtest-1.7.0-r1.ebuild b/dev-cpp/gtest/gtest-1.7.0-r1.ebuild
133 deleted file mode 100644
134 index 360809f62e7..00000000000
135 --- a/dev-cpp/gtest/gtest-1.7.0-r1.ebuild
136 +++ /dev/null
137 @@ -1,50 +0,0 @@
138 -# Copyright 1999-2019 Gentoo Authors
139 -# Distributed under the terms of the GNU General Public License v2
140 -
141 -EAPI="5"
142 -
143 -AUTOTOOLS_AUTORECONF=1
144 -AUTOTOOLS_IN_SOURCE_BUILD=1
145 -# Python is required for tests and some build tasks.
146 -PYTHON_COMPAT=( python2_7 )
147 -
148 -inherit eutils python-any-r1 autotools-multilib
149 -
150 -DESCRIPTION="Google C++ Testing Framework"
151 -HOMEPAGE="https://github.com/google/googletest"
152 -SRC_URI="https://github.com/google/googletest/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
153 -
154 -LICENSE="BSD"
155 -SLOT="0"
156 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
157 -IUSE="examples static-libs"
158 -
159 -DEPEND="${PYTHON_DEPS}"
160 -RDEPEND=""
161 -
162 -PATCHES=(
163 - "${FILESDIR}/configure-fix-pthread-linking.patch" #371647
164 -)
165 -
166 -src_prepare() {
167 - sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die
168 - sed -i -r \
169 - -e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
170 - Makefile.am || die
171 - autotools-multilib_src_prepare
172 -}
173 -
174 -multilib_src_install() {
175 - default
176 - multilib_is_native_abi && dobin scripts/gtest-config
177 -}
178 -
179 -multilib_src_install_all() {
180 - prune_libtool_files --all
181 - einstalldocs
182 -
183 - if use examples ; then
184 - insinto /usr/share/doc/${PF}/examples
185 - doins samples/*.{cc,h}
186 - fi
187 -}