Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97761 - gnome2_src_install in gnome2.eclass doesn't call die if make install fails
Summary: gnome2_src_install in gnome2.eclass doesn't call die if make install fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 87815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-02 13:35 UTC by Marien Zwart (RETIRED)
Modified: 2005-08-01 16:13 UTC (History)
1 user (show)

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


Attachments
patch to gnome2.eclass, adding || die in src_install (patch,572 bytes, patch)
2005-07-02 13:36 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2005-07-02 13:35:18 UTC
gnome2_src_install does an einstall or make install without checking the exit
code. If make dies, either because of an ebuild or package bug or because of a
misconfigured/broken system, it will happily merge the bits that did get
installed to the fs and carry on. This can cause weird bugs. The eclass should
probably call  die if make fails.

Reproducible: Didn't try
Steps to Reproduce:
1. cause an ebuild using gnome2.eclass to fail in the install stage (either by
using a broken ebuild or by doing something weird to the system (setting the
clock a while in the past for instance))

Actual Results:  
Merge "succeeded"

Expected Results:  
Merge should have failed.

I will attach a patch that adds the || die, but I haven't tested this nearly as
much as is probably needed for a change to an important eclass like this.
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2005-07-02 13:36:21 UTC
Created attachment 62503 [details, diff]
patch to gnome2.eclass, adding || die in src_install
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2005-07-06 18:24:39 UTC
*** Bug 87815 has been marked as a duplicate of this bug. ***
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2005-07-18 08:29:43 UTC
This is a good suggestion. Apparently it's very rare seeing a package that
inherits from gnome2.eclass fail in the middle of "make install", but when it
happens it should certainly break the emerge process.

I'm not sure if omitting the '|| die' syntax was deliberate but I think it was
probably involuntary.

Marien,
Have you been testing your modified eclass in your system?
Comment 4 foser (RETIRED) gentoo-dev 2005-08-01 16:13:04 UTC
gnome 2 is so good it never fails & I didn't want to be confronted with my
mortality.

fixed now, thanks.