dev-util/oprofile: drop event files filtering
authorAndrew Savchenko <bircoph@gentoo.org>
Wed, 23 Aug 2017 06:11:26 +0000 (09:11 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Wed, 23 Aug 2017 06:41:57 +0000 (09:41 +0300)
Event files may be used in nontrivial way, so filtering them out
may result in broken oprofile, see
https://bugs.gentoo.org/show_bug.cgi?id=580016#c2

Package-Manager: Portage-2.3.8, Repoman-2.3.3
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
dev-util/oprofile/oprofile-1.2.0-r1.ebuild [moved from dev-util/oprofile/oprofile-1.2.0.ebuild with 84% similarity]
dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild [moved from dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild with 84% similarity]

similarity index 84%
rename from dev-util/oprofile/oprofile-1.2.0.ebuild
rename to dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index c548ac8146e9c8b8a0089eb81eefb8fe278e36a5..c34d294d89f5ffc516df673e38519d6f9d05cf31 100644 (file)
@@ -52,21 +52,6 @@ src_install() {
        dodoc ChangeLog* README TODO
        echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
        doenvd "${T}/10${PN}"
-
-       # filter out event files for alien arches, bug 580016
-       cd "${D}/usr/share/${PN}" || die
-       local arch="${ARCH}" f
-       case "${arch}" in
-               x86)
-                       arch=i386
-                       ;;
-               amd64)
-                       arch=x86-64
-                       ;;
-       esac
-       for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" ); do
-               rm -r "${f}" || die
-       done
 }
 
 pkg_postinst() {
similarity index 84%
rename from dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild
rename to dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
index 0c0f35aa14a12bfbf65a865e5ccfa1122f6a71c2..5eafde5bdbce2480fe015ff129f7531fc52f4948 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -65,21 +65,6 @@ src_install() {
        dodoc ChangeLog* README TODO
        echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
        doenvd "${T}/10${PN}"
-
-       # filter out event files for alien arches, bug 580016
-       cd "${D}/usr/share/${PN}" || die
-       local arch="${ARCH}" f
-       case "${arch}" in
-               x86)
-                       arch=i386
-                       ;;
-               amd64)
-                       arch=x86-64
-                       ;;
-       esac
-       for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" ); do
-               rm -r "${f}" || die
-       done
 }
 
 pkg_postinst() {