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>
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() {
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
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() {