Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62639 - valgrind 2.2.0 fails to emerge
Summary: valgrind 2.2.0 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 10:06 UTC by f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Modified: 2004-09-03 01:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
valgrind-2.2.0.ebuild (valgrind-2.2.0.ebuild,1.37 KB, text/plain)
2004-09-02 12:14 UTC, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-09-02 10:06:23 UTC
>>> md5 src_uri ;-) valgrind-2.2.0.tar.bz2
>>> Unpacking source...
>>> Unpacking valgrind-2.2.0.tar.bz2 to /var/tmp/portage/valgrind-2.2.0/work
 * Removing net/if.h from the includes in vg_unsafe.h
sed: can't read coregrind/vg_unsafe.h: No such file or directory

!!! ERROR: dev-util/valgrind-2.2.0 failed.
!!! Function src_unpack, Line 30, Exitcode 2
!!! (no error message)



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-09-02 12:14:04 UTC
Created attachment 38770 [details]
valgrind-2.2.0.ebuild

attached you find a fixed ebuild that emerges fine again....
Comment 2 Michael Dale Long 2004-09-02 15:49:43 UTC
I have the same problem.  The attached ebuild fixed it.
Comment 3 Luca Barbato gentoo-dev 2004-09-02 23:58:59 UTC
in cvs, thanks
Comment 4 Andreas Kobara 2004-09-03 01:56:20 UTC
Why do we have a "less" line in the unpack function of the ebuild
which is in the portage tree (ChangeLog,v 1.36 2004/09/02 23:20:55 lu_zero) ?

That way the emerge needs keyboard input !

src_unpack() {
        unpack ${A}
        use ppc && cd "${WORKDIR}/${P}-ppc" || cd ${S}
        #ugly but working workaround
        if has_version '>=sys-kernel/linux26-headers-2.6.7' ; then
                einfo "Removing net/if.h from the includes in vg_unsafe.h"
                sed -i -e "s:#include <net/if.h>::" \
                        coregrind/vg_unsafe.h ||die
                less coregrind/vg_unsafe.h ||die
        fi
}

Regards,
Andy.