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

Bug 200863

Summary: kamikaze-sources fails to emerge with portage-2.1.4 (rc3 or rc4) but works with 2.1.3.19
Product: Portage Development Reporter: Alexandru Munteanu <io_fx>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: io_fx
Priority: High Keywords: InVCS, REGRESSION
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 200044    
Attachments: preserve ${KV} since kernel-2.eclass uses it

Description Alexandru Munteanu 2007-11-30 20:13:59 UTC
Hello,

I'm reporting this issue because I believe there is a bug in the portage.
I have successfully installed kamikaze-sources several times with portage
version 2.1.3.19, but when I upgraded to 2.1.4, it won't emerge any more
(apparently any version of kamikaze-sources fails).

Reproducible: Always

Steps to Reproduce:
1.Emerge portage-2.1.4-rc4
2.Emerge layman and set custom kernels as explained here : http://forums.gentoo.org/viewtopic-t-610850-highlight-seren.html (section 6.3 an d 9.1)
3.Emerge kamikaze-sources : emerge -av kamikaze-sources

Actual Results:  
Here is the error message for version 2.6.23-r5 :

FATAL: unable to locate: /var/tmp/portage/sys-kernel/kamikaze-sources-2.6.23-r5/distdir/linux-.bz2

Notice that there is no kernel version in "linux-.bz2".

Expected Results:  
Expected results : to emerge the package successfully even with portage upgraded.

The ebuild for this example is quite simple :
(I have only erased 2 lines with einfo)

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

UNIPATCH_LIST="${DISTDIR}/linux-${KV}.bz2"
K_PREPATCHED="yes"
K_NOUSENAME="yes"
UNIPATCH_STRICTORDER="yes"

ETYPE="sources"
inherit eutils kernel-2
detect_version

DESCRIPTION="Kamikaze-Sources is an experimental kernel patchset with many new features."
HOMEPAGE="http://kamikaze.waninkoko.info"

KEYWORDS="~x86 ~amd64 ~ppc ~ppc64"
RESTRICT="nomirror"

SRC_URI="${KERNEL_URI}
        http://kamikaze.waninkoko.info/patches/${OKV}/${EXTRAVERSION/-}/linux-${KV}.bz2"

src_install() {
        kernel-2_src_install
}

pkg_postinst() {
        postinst_sources
}
Comment 1 Zac Medico gentoo-dev 2007-12-01 00:31:54 UTC
Created attachment 137421 [details, diff]
preserve ${KV} since kernel-2.eclass uses it

If this patch is saved as /tmp/kv.patch, then it can be applied as follows:

patch /usr/lib/portage/bin/isolated-functions.sh < /tmp/kv.patch
Comment 2 Alexandru Munteanu 2007-12-02 16:10:40 UTC
Thank you. This patch solves the issue.
Comment 3 Zac Medico gentoo-dev 2007-12-03 01:09:25 UTC
This has been released in 2.1.4_rc5.