Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46770 - gai-pager doesn't start, cannot find background image (ebuild bug)
Summary: gai-pager doesn't start, cannot find background image (ebuild bug)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-04 09:07 UTC by Theefer
Modified: 2004-05-09 12:16 UTC (History)
0 users

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


Attachments
Fixes the problem + typo correction (gai-pager-0.2.patch,660 bytes, patch)
2004-04-04 09:12 UTC, Theefer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Theefer 2004-04-04 09:07:43 UTC
The current gai-pager-0.2 ebuild doesn't compile the program with the correct flags. The -DIMAGE_PATH flag used during the compilation gives the path to the background image directory. With the 0.2 ebuild, it has the value "${PREFIX}/share/pixmaps/gai-pager/", ie "${D}/share/pixmaps/gai-pager/", whereas it should be something like "/usr/share/pixmaps/gai-pager/". Otherwise, the program won't start properly because it cannot find the background image (searches in a wrong, inexistant directory).

Reproducible: Always
Steps to Reproduce:
1. Emerge gai-pager-0.2 (masked by default)
2. Run gai-pager

Actual Results:  
A window pops and vanishes in a few microseconds.

Expected Results:  
The program should have started correctly.
Comment 1 Theefer 2004-04-04 09:12:38 UTC
Created attachment 28692 [details, diff]
Fixes the problem + typo correction

This patch solves the problem by changing the IMAGE_PATH in the Makefile before
the compilation. The regexp is a bit hardcore (slash orgia), but it works just
fine.

However, it assumes that the general PREFIX is /usr. Maybe there is a way to
make it more generic, but I have not found an ebuild variable that would give
me the general PREFIX value.

The patch also fixes a typo in the doc installation ("README.gaiTODO" that
should be "README.gai TODO").
Comment 2 Thomas Raschbacher gentoo-dev 2004-05-09 12:16:37 UTC
it's in portage as -r1