Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 478436

Summary: kernel-2.eclass: add prefix support
Product: Gentoo Linux Reporter: Benda Xu <heroxbd>
Component: EclassesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: enhancement CC: kernel-misc, prefix
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://archives.gentoo.org/gentoo-dev/message/8a1c67b1d1145e55447c65c7b213dce9
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 315803    
Attachments: kernel-2.patch
kernel-2.patch
kernel-2.patch

Description Benda Xu gentoo-dev 2013-07-28 07:04:18 UTC
Merge from Prefix overlay

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2013-07-28 07:07:21 UTC
Created attachment 354382 [details, diff]
kernel-2.patch

almost trivial Prefix updates.
Comment 2 Benda Xu gentoo-dev 2013-07-28 07:08:33 UTC
Created attachment 354384 [details, diff]
kernel-2.patch

revise
Comment 3 Mike Pagano gentoo-dev 2013-07-29 23:51:34 UTC
I get rejects on this Benda. Can you check your patch against the latest kernel-2.eclass?
Comment 4 Benda Xu gentoo-dev 2013-08-12 06:57:53 UTC
Created attachment 355734 [details, diff]
kernel-2.patch

Ah-ha, there seems to be an update after I submitted the patch.

Refreshed. Please check.
Comment 5 Benda Xu gentoo-dev 2013-08-12 06:58:33 UTC
Thanks Mike, and excuse me for the delay.
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-03 17:13:20 UTC
Planning to review this among other changes very soon.
Comment 7 Benda Xu gentoo-dev 2013-09-21 11:12:28 UTC
Hey Tom. How's it going? The Prefix patch is a trivial one.
Comment 8 Daa Jaa 2014-06-13 14:35:45 UTC
Here is another patch, to avoid chowning when not running as root (saves more than 1246 minutes of errors on a raspberry).

--- old_gentoo_armv6l/usr/portage/eclass/kernel-2.eclass        2014-06-13 16:26:30.303066615 +0200
+++ gentoo_armv6l/usr/portage/eclass/kernel-2.eclass    2014-06-13 16:28:42.794444595 +0200
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.291 2013/11/22 13:35:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.291 2013/11/22 13:35:09 vapier Exp patched$
 
 # Description: kernel.eclass rewrite for a clean base regarding the 2.6
 #              series of kernel with back-compatibility for 2.4
@@ -698,7 +698,8 @@
 install_universal() {
        # Fix silly permissions in tarball
        cd "${WORKDIR}"
-       chown -R 0:0 * >& /dev/null
+       # would last more that 1246 minutes without root rights.
+       chown 0:0 . >& /dev/null && chown -R 0:0 * >& /dev/null
        chmod -R a+r-w+X,u+w *
        cd ${OLDPWD}
 }
Comment 9 Benda Xu gentoo-dev 2016-05-23 16:13:03 UTC
Ping kernel team.
Comment 10 Mike Pagano gentoo-dev 2016-05-23 23:34:50 UTC
I'm going to have to apply and run this for the next round of updates.  

Should this go to -dev for formal abuse?
Comment 11 Benda Xu gentoo-dev 2016-06-15 10:52:39 UTC
Landed after discussions on gentoo-dev.

  https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2673aca8d54b7c6fd859

Feel free to revert it if anything goes wrong.

Thanks all.