sys-devel/gdb: fix gcore collision on freebsd
authorStephan Hartmann <stha09@googlemail.com>
Sat, 17 Feb 2018 18:38:52 +0000 (19:38 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 18 Feb 2018 12:08:46 +0000 (12:08 +0000)
Closes: https://bugs.gentoo.org/507456
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7216

sys-devel/gdb/gdb-8.1.ebuild
sys-devel/gdb/gdb-9999.ebuild

index d464d985828630a352ae5cac48d1c0748f4218ca..8ba27771a09d41e5247bf79121c70d876c0e220f 100644 (file)
@@ -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() {
index 8ae03593af2fc2df98f83050e10995b7ccd3fe3f..553005830a8ddccb86b95533b6938face3bd123b 100644 (file)
@@ -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"
@@ -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() {