Please add dev-lang to DEPEND for linux-headers in order to make it pull in perl (which can get removed by `emerge --depclean --with-bdeps=n` since autotools are no more part of system set). Just installing perl (dev-lang/perl which pulls in app-admin/perl-cleaner and empty sys-devel/libperl) is sufficient to make linux-headers installable. Reproducible: Always Steps to Reproduce: 1. emerge --depclean --with-bdeps=n (removes perl, autotools & friends) 2. emerge --oneshot linux-headers Actual Results: >>> Unpacking source... >>> Unpacking gentoo-headers-base-2.6.39.tar.xz to /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work >>> Unpacking gentoo-headers-2.6.39-1.tar.xz to /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work >>> Source unpacked in /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work >>> Preparing source in /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work/gentoo-headers-base-2.6.39 ... * Applying various patches (bugfixes/updates) ... * 00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch ... [ ok ] * 00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch ... [ ok ] * 00_all_0003-linux-stddef.h-export-offsetof-to-userspace.patch ... [ ok ] * 00_all_0004-linux-pull-in-other-needed-headers-for-userspace.patch ... [ ok ] * 00_all_0005-netfilter-pull-in-limits.h.patch ... [ ok ] * 00_all_0006-convert-PAGE_SIZE-usage.patch ... [ ok ] * 00_all_0007-HACK-asm-pull-in-C-library-headers.patch ... [ ok ] * Done with patching >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work/gentoo-headers-base-2.6.39 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-kernel/linux-headers-2.6.39/work/gentoo-headers-base-2.6.39 ... >>> Source compiled. >>> Test phase [not enabled]: sys-kernel/linux-headers-2.6.39 >>> Install linux-headers-2.6.39 into /var/tmp/portage/sys-kernel/linux-headers-2.6.39/image/ category sys-kernel make -j2 headers_install INSTALL_HDR_PATH=/var/tmp/portage/sys-kernel/linux-headers-2.6.39/image///usr/include/.. ARCH=x86 CROSS_COMPILE=i686-pc-linux-gnu- CHK include/linux/version.h UPD include/linux/version.h HOSTCC scripts/unifdef INSTALL include/drm (13 files) INSTALL include/asm-generic (34 files) /bin/sh: perl: command not found /bin/sh: perl: command not found make[2]: *** [/var/tmp/portage/sys-kernel/linux-headers-2.6.39/image///usr/include/../include/drm/.install] Error 127 make[1]: *** [drm] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/sys-kernel/linux-headers-2.6.39/image///usr/include/../include/asm-generic/.install] Error 127 make[1]: *** [asm-generic] Error 2 make: *** [headers_install] Error 2 emake failed
should be all set now in the tree; thanks for the report! Commit message: Newer kernel builds need perl http://sources.gentoo.org/sys-kernel/linux-headers/linux-headers-2.6.39.ebuild?r1=1.6&r2=1.7