commit:     47879bafb12ce8ca10959d2831f5090f8d89e679
Author:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 24 21:37:24 2019 +0000
Commit:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 00:17:58 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47879baf

sys-kernel/raspberrypi-image: drop pkg_preinst

The first part of it is useless because it is about installing
config.txt and cmdline.txt, which this package doesn't do.

The second part is a check for /boot being mounted. This is done by
mount-boot eclass nowadays.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>

 .../raspberrypi-image-9999.ebuild                  | 23 ----------------------
 1 file changed, 23 deletions(-)

diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild 
b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
index dd395d591b0..a18735fa66e 100644
--- a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
+++ b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild
@@ -19,29 +19,6 @@ DOC_CONTENTS="Please configure your ram setup by editing 
/boot/config.txt"
 
 RESTRICT="binchecks strip"
 
-pkg_preinst() {
-       if [ -z "${REPLACING_VERSIONS}" ] ; then
-               local msg=""
-               if [ -e "${D}"/boot/cmdline.txt -a -e 
"${ROOT}"/boot/cmdline.txt ] ; then
-                       msg+="/boot/cmdline.txt "
-               fi
-               if [ -e "${D}"/boot/config.txt -a -e "${ROOT}"/boot/config.txt 
] ; then
-                       msg+="/boot/config.txt "
-               fi
-               if [ -n "${msg}" ] ; then
-                       msg="This package installs following files: ${msg}."
-                       msg="${msg} Please remove(backup) your copies during 
install"
-                       msg="${msg} and merge settings afterwards."
-                       msg="${msg} Further updates will be CONFIG_PROTECTed."
-                       die "${msg}"
-               fi
-       fi
-
-       if ! grep "${ROOT}boot" /proc/mounts >/dev/null 2>&1; then
-               ewarn "${ROOT}boot is not mounted, the files might not be 
installed at the right place"
-       fi
-}
-
 src_configure() { :; }
 
 src_compile() { :; }

Reply via email to