Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421169 - eutils.eclass: `doicon -s 48 path/to/program48x48.png program.png` fails
Summary: eutils.eclass: `doicon -s 48 path/to/program48x48.png program.png` fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-14 21:54 UTC by Samuli Suominen (RETIRED)
Modified: 2012-06-14 22:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-06-14 21:54:17 UTC
$ grep doicon skype-4.0.0.7-r2.ebuild 
doicon -s 48 icons/SkypeBlue_48x48.png skype.png

$ ls -l icons/SkypeBlue_48x48.png 
-rw-r--r-- 1 portage portage 3208 Jun 12 02:45 icons/SkypeBlue_48x48.png

$ pwd
/var/tmp/portage/net-im/skype-4.0.0.7-r2/work/skype-4.0.0.7

Output follows as:

>>> Install skype-4.0.0.7-r2 into /var/tmp/portage/net-im/skype-4.0.0.7-r2/image/ category net-im
 * skype.png is not a valid file/directory!
 * ERROR: net-im/skype-4.0.0.7-r2 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_install
 *   environment, line 2274:  Called doicon '-s' '48' 'icons/SkypeBlue_48x48.png' 'skype.png'
 *   environment, line  414:  Called _iconins 'doicon' '-s' '48' 'icons/SkypeBlue_48x48.png' 'skype.png'
 *   environment, line  297:  Called die
 * The specific snippet of code:
 *       fi ) || die
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-06-14 21:55:24 UTC
From eutils.eclass, just above doicon code is the example, matching this bug:

# example 2: doicon -s 48 foobar.png fuqbar.png
# results in: insinto /usr/share/icons/hicolor/48x48/apps
#             doins foobar.png fuqbar.png
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-06-14 21:56:55 UTC
Just plain `doicon -s 48 file.png` works, btw, but when you add one more argument it starts failing
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-06-14 22:10:31 UTC
brainfreeze, ignore me, completely read the example wrong.