Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453464 - net-irc/weechat-0.3.9.2 should install icon
Summary: net-irc/weechat-0.3.9.2 should install icon
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-22 03:11 UTC by M. B.
Modified: 2013-04-11 09:44 UTC (History)
2 users (show)

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


Attachments
install the icon as weechat.png (file_453464.txt,372 bytes, patch)
2013-01-22 03:11 UTC, M. B.
Details | Diff
cmake patch (cmake_install_icon_0.4.0.patch,1.04 KB, text/plain)
2013-03-12 21:11 UTC, M. B.
Details
new patch (weechat-icon.patch,1.04 KB, patch)
2013-04-08 23:01 UTC, M. B.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description M. B. 2013-01-22 03:11:29 UTC
Created attachment 336424 [details, diff]
install the icon as weechat.png

Weechat provides the icon weechat_icon_32.png in its tarball, but doesn't install it with the installation routine.

This patch makes the ebuild install the icon as `/usr/share/icons/hicolor/32x32/weechat.png`.
Comment 1 M. B. 2013-01-22 03:18:12 UTC
the patch applies as well against 0.4.0.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-01-22 14:56:40 UTC
Could you write the patch as cmake code so it can be included for upstream?
Comment 3 M. B. 2013-03-12 21:11:02 UTC
Created attachment 341852 [details]
cmake patch

patch against CMakeLists.txt.
Submitted to upstream as https://savannah.nongnu.org/patch/?7972
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-05 10:17:53 UTC
Added to cvs, hopefully upstream will incorporate it soon :-)
Comment 5 M. B. 2013-04-08 23:01:45 UTC
Created attachment 344894 [details, diff]
new patch

looks like i made some booboo.
the last patch caused the icon to get corrupted due to variable expansion (wth?)

if that can be reproduced by somebody (the installed png cannot be opened or at least differs from the one provided in the tar package), then this different version really is necessary.

my apologies; i am not really familiar with cmake.
Comment 6 Eugene Ho 2013-04-11 04:48:45 UTC
This patch should NOT have been inserted into the weechat-9999 ebuild. Applying the patch causes the following error when building weechat-9999:

CMake Error: File /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/weechat_icon_32.png does not exist.
CMake Error at CMakeLists.txt:135 (CONFIGURE_FILE):
  configure_file Problem configuring file

From what I understand, the patch in this bug only applies to 0.4.0 and prior; upstream git now installs the icon file without the patch.
* Upstream commit http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=4b4d80bdc5c81f92a4bb17b83bb29b155c6d8ff4 amends the makefile to install the icon file.
* Upstream commit http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=cac2342165fe36ce3929c116497324f363c2a35e renamed weechat_icon_32.png to weechat.png.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-11 09:44:59 UTC
Updated patch in cvs and removed it from live ebuild.