Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34909 - gnome-applets-2.4.1-r2 fails to patch
Summary: gnome-applets-2.4.1-r2 fails to patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 35089 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-02 11:49 UTC by André Lemos
Modified: 2003-12-04 14:23 UTC (History)
3 users (show)

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


Attachments
error log (gnome-applets-2.4.1-multiload_mem_fix.patch-5591.out,3.66 KB, text/plain)
2003-12-02 11:50 UTC, André Lemos
Details
Correct the ebuild (gnome-applets-2.4.1-r2.ebuild.diff,298 bytes, patch)
2003-12-03 10:09 UTC, François MASSON
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description André Lemos 2003-12-02 11:49:30 UTC
error follows
Comment 1 André Lemos 2003-12-02 11:50:31 UTC
Created attachment 21593 [details]
error log
Comment 2 tomchuk 2003-12-02 22:59:05 UTC
This only happens is USE=acpi" is set. ON line 43 of the ebuild EPATCH_OPTS is set to "-d ${S}/battstat" but not unset before trying to apply the multiload patch. Adding EPATCH_OPTS="" after "epatch ${FILESDIR}/battstat-acpi-events-2.3.90.diff" did the trick for me.

A quick diff of the change I made:

-------------------------------------------------------------------------------

--- gnome-applets-2.4.1-r2.ebuild.old   2003-12-03 01:54:22.535725800 -0500
+++ gnome-applets-2.4.1-r2.ebuild       2003-12-03 01:50:38.434794320 -0500
@@ -42,6 +42,7 @@
        if [ -n "`use acpi`" ]; then
                EPATCH_OPTS="-d ${S}/battstat"
                epatch ${FILESDIR}/battstat-acpi-events-2.3.90.diff
+               EPATCH_OPTS=""
        fi
 
        #
-------------------------------------------------------------------------------
Comment 3 Stephane Loeuillet 2003-12-03 07:15:33 UTC
bug and bug-fix confirmed

anyone to push it into portage ?
Comment 4 François MASSON 2003-12-03 10:09:53 UTC
Created attachment 21641 [details, diff]
Correct the ebuild

when 'ACPI' use flag is set, the variable EPATCH_OPTS is set to -d
${S}/battstat
which prevent next patch (i.e. multiload_mem_fix) from applying in the right
directory.
My patch set the EPATCH_OPTS to the right directory for the multiload_mem_fix
patch.
Comment 5 Andreas Eriksson 2003-12-03 17:38:18 UTC
This happens to me too.
Comment 6 Martin Klaffenboeck 2003-12-04 00:57:14 UTC
Same problem here, but the patch with EPATCH_OPTS="" works.

Martin
Comment 7 foser (RETIRED) gentoo-dev 2003-12-04 05:11:51 UTC
Hmm yeah.. fixed now in r2, just using old style cd.

gnome devs : don't use EPATCH_OPTS for now, lets try to keep ebuilds consistent here and i don't see what it adds (besides being longer and more abstract).

Thanks for the report.
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-12-04 06:17:45 UTC
well, i've been using EPATCH_OPTS because it saves us from make a new patch every version bump because ${S} has changed.
Comment 9 Alastair Tse (RETIRED) gentoo-dev 2003-12-04 07:02:43 UTC
maybe i should elaborate a bit more on this:

if [ -n "`use acpi`" ]; then
        EPATCH_OPTS="-d ${S}/battstat"  epatch ${FILESDIR}/battstat-acpi-events$    fi
einfo "EPATCH_OPTS:"  $EPATCH_OPTS

outputs:

mcvaio /usr/portage/gnome-base/gnome-applets % USE="acpi" sudo ebuild gnome-applets-2.4.1-r2.ebuild clean unpack
>>> md5 src_uri ;-) gnome-applets-2.4.1.tar.bz2
>>> Unpacking source...
>>> Unpacking gnome-applets-2.4.1.tar.bz2 to /fire/1/portage/scratch/portage/gnome-applets-2.4.1-r2/work
 * Applying battstat-acpi-events-2.3.90.diff...                           [ ok ] * EPATCH_OPTS:
 * Applying gnome-applets-2.4.1-multiload_mem_fix.patch...                [ ok ] * Fixing OMF Makefile: omf.make
>>> Source unpacked.

whereas:
    if [ -n "`use acpi`" ]; then
        EPATCH_OPTS="-d ${S}/battstat"
        epatch ${FILESDIR}/battstat-acpi-events-2.3.90.diff
    fi
    einfo "EPATCH_OPTS:"  $EPATCH_OPTS

produces an error:

mcvaio /usr/portage/gnome-base/gnome-applets % USE="acpi" sudo ebuild gnome-applets-2.4.1-r2.ebuild clean unpack
>>> md5 src_uri ;-) gnome-applets-2.4.1.tar.bz2
>>> Unpacking source...
>>> Unpacking gnome-applets-2.4.1.tar.bz2 to /fire/1/portage/scratch/portage/gnome-applets-2.4.1-r2/work
 * Applying battstat-acpi-events-2.3.90.diff...                           [ ok ] * EPATCH_OPTS: -d /fire/1/portage/scratch/portage/gnome-applets-2.4.1-r2/work/gnome-applets-2.4.1/battstat
 * Applying gnome-applets-2.4.1-multiload_mem_fix.patch...
 
 * Failed Patch: gnome-applets-2.4.1-multiload_mem_fix.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /fire/1/portage/scratch/portage/gnome-applets-2.4.1-r2/temp/gnome-applets-2.4.1-multiload_mem_fix.patch-11553.out


so just keep EPATCH_OPTS on the same line as epatch and there won't be any variable leakage. looking through the logs, it was my fault that i put a new line between EPATCH_OPTS and epatch when i committed the acpi patch.

Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-12-04 14:23:06 UTC
*** Bug 35089 has been marked as a duplicate of this bug. ***