From: Mike Frysinger Date: Sat, 2 Dec 2006 18:43:37 +0000 (+0000) Subject: fix include/linux cp to not glob and to do error checking with die X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81a974863d33db0ca66e3d0df6e98c00b7e2e500;p=gentoo.git fix include/linux cp to not glob and to do error checking with die --- diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 3498b25d6947..28c7f44b73fc 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.197 2006/10/26 06:55:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.198 2006/12/02 18:43:37 vapier Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -500,10 +500,12 @@ install_headers() { return 0 fi + # Do not use "linux/*" as that can cause problems with very long + # $S values where the cmdline to cp is too long cd "${S}" dodir ${ddir}/linux - cp -pPR "${S}"/include/linux/* ${D}/${ddir}/linux - rm -rf ${D}/${ddir}/linux/modules + cp -pPR "${S}"/include/linux "${D}"/${ddir}/ || die + rm -rf "${D}"/${ddir}/linux/modules # Handle multilib headers and crap local multi_dirs="" multi_defs=""