From 81a974863d33db0ca66e3d0df6e98c00b7e2e500 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 2 Dec 2006 18:43:37 +0000 Subject: [PATCH] fix include/linux cp to not glob and to do error checking with die --- eclass/kernel-2.eclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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="" -- 2.26.2