Skip to content

Commit

Permalink
sys-devel/gdb: fix gcore collision on freebsd
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/507456
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: gentoo#7216
  • Loading branch information
stha09 authored and Sergei Trofimovich committed Feb 18, 2018
1 parent 1e4d76f commit 29264a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions sys-devel/gdb/gdb-8.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ src_install() {

# Remove shared info pages
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*

# gcore is part of ubin on freebsd
if [[ ${CHOST} == *-freebsd* ]]; then
rm "${ED}"/usr/bin/gcore || die
fi
}

pkg_postinst() {
Expand Down
7 changes: 6 additions & 1 deletion sys-devel/gdb/gdb-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
Expand Down Expand Up @@ -218,6 +218,11 @@ src_install() {

# Remove shared info pages
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*

# gcore is part of ubin on freebsd
if [[ ${CHOST} == *-freebsd* ]]; then
rm "${ED}"/usr/bin/gcore || die
fi
}

pkg_postinst() {
Expand Down

0 comments on commit 29264a5

Please sign in to comment.