72 |
72 |
|
73 |
73 |
LICENSE="GPL-3+ LGPL-2.1+"
|
74 |
74 |
SLOT="0"
|
75 |
|
IUSE="cet guile lzma multitarget nls +python +server sim source-highlight test vanilla xml xxhash zstd"
|
|
75 |
IUSE="cet debuginfod guile lzma multitarget nls +python +server sim source-highlight test vanilla xml xxhash zstd"
|
76 |
76 |
if [[ -n ${REGULAR_RELEASE} ]] ; then
|
77 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
|
77 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
78 |
78 |
fi
|
79 |
79 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
80 |
80 |
RESTRICT="!test? ( test )"
|
... | ... | |
86 |
86 |
>=sys-libs/readline-7:=
|
87 |
87 |
sys-libs/zlib
|
88 |
88 |
elibc_glibc? ( net-libs/libnsl:= )
|
|
89 |
debuginfod? (
|
|
90 |
dev-libs/elfutils[debuginfod(-)]
|
|
91 |
)
|
89 |
92 |
lzma? ( app-arch/xz-utils )
|
90 |
93 |
python? ( ${PYTHON_DEPS} )
|
91 |
94 |
guile? ( >=dev-scheme/guile-2.0 )
|
... | ... | |
142 |
145 |
src_configure() {
|
143 |
146 |
strip-unsupported-flags
|
144 |
147 |
|
|
148 |
# https://sourceware.org/PR22395, bug #853898
|
|
149 |
filter-lto
|
|
150 |
|
145 |
151 |
# See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html
|
146 |
152 |
# Avoid really confusing logs from subconfigure spam, makes logs far
|
147 |
153 |
# more legible.
|
... | ... | |
150 |
156 |
local myconf=(
|
151 |
157 |
# portage's econf() does not detect presence of --d-d-t
|
152 |
158 |
# because it greps only top-level ./configure. But not
|
153 |
|
# gnulib's or gdb's configure.
|
|
159 |
# libiberty's or gdb's configure.
|
154 |
160 |
--disable-dependency-tracking
|
|
161 |
--disable-silent-rules
|
155 |
162 |
|
156 |
163 |
--with-pkgversion="$(gdb_branding)"
|
157 |
164 |
--with-bugurl='https://bugs.gentoo.org/'
|
... | ... | |
159 |
166 |
# Disable modules that are in a combined binutils/gdb tree. bug #490566
|
160 |
167 |
--disable-{binutils,etc,gas,gold,gprof,gprofng,ld}
|
161 |
168 |
|
162 |
|
# avoid automagic dependency on (currently prefix) systems
|
163 |
|
# systems with debuginfod library, bug #754753
|
164 |
|
--without-debuginfod
|
|
169 |
$(use_with debuginfod)
|
165 |
170 |
|
166 |
171 |
$(use_enable test unit-tests)
|
167 |
172 |
|
... | ... | |
233 |
238 |
econf "${myconf[@]}"
|
234 |
239 |
}
|
235 |
240 |
|
236 |
|
src_compile() {
|
237 |
|
emake V=1
|
238 |
|
}
|
239 |
|
|
240 |
241 |
src_test() {
|
241 |
242 |
# Run the unittests (nabbed invocation from Fedora's spec file) at least
|
242 |
243 |
emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"'
|
... | ... | |
250 |
251 |
}
|
251 |
252 |
|
252 |
253 |
src_install() {
|
253 |
|
emake V=1 DESTDIR="${D}" install
|
|
254 |
emake DESTDIR="${D}" install
|
254 |
255 |
|
255 |
256 |
find "${ED}"/usr -name libiberty.a -delete || die
|
256 |
257 |
|