Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190574 - gnome-extra/weather-wallpaper-0.1.0 (new ebuild)
Summary: gnome-extra/weather-wallpaper-0.1.0 (new ebuild)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Low enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://mundogeek.net/weather-wallpaper/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-08-28 21:29 UTC by Mario Witte
Modified: 2017-08-25 17:50 UTC (History)
6 users (show)

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


Attachments
gnome-extra/weather-wallpaper-0.1.0.ebuild (weather-wallpaper-0.1.0.ebuild,765 bytes, application/octet-stream)
2007-08-28 21:31 UTC, Mario Witte
Details
gnome-extra/weather-wallpaper-0.2.0 (new ebuild) (weather-wallpaper-0.2.0.ebuild,2.10 KB, text/plain)
2007-09-03 16:28 UTC, nflamel
Details
gnome-extra/weather-wallpaper-0.2.0-r1 (new ebuild, a few corrected bugs) (weather-wallpaper-0.2.0-r1.ebuild,2.08 KB, text/plain)
2007-09-04 23:37 UTC, nflamel
Details
gnome-extra/weather-wallpaper-0.2.0-r2.ebuild (weather-wallpaper-0.2.0-r2.ebuild,2.18 KB, text/plain)
2007-09-24 20:48 UTC, Mario Witte
Details
gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch (weather-wallpaper-0.2.0-r2.patch,437 bytes, patch)
2007-09-24 20:49 UTC, Mario Witte
Details | Diff
gnome-extra/weather-wallpaper-0.2.0-r3.ebuild (weather-wallpaper-0.2.0-r3.ebuild,2.18 KB, text/plain)
2007-09-25 08:56 UTC, Mario Witte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Witte 2007-08-28 21:29:48 UTC
weather-wallpaper is a small program that collects the weather forecast and creates a wallpaper with it.

Reproducible: Always

Steps to Reproduce:
Comment 1 Mario Witte 2007-08-28 21:31:21 UTC
Created attachment 129505 [details]
gnome-extra/weather-wallpaper-0.1.0.ebuild
Comment 2 nflamel 2007-09-03 16:28:23 UTC
Created attachment 129927 [details]
gnome-extra/weather-wallpaper-0.2.0 (new ebuild)

New ebuild for weather-wallpaper-0.2.0
Comment 3 Maxxer 2007-09-04 07:19:48 UTC
please add ~amd64 with the next update. thanks.
Comment 4 nflamel 2007-09-04 23:37:11 UTC
Created attachment 130051 [details]
gnome-extra/weather-wallpaper-0.2.0-r1 (new ebuild, a few corrected bugs)

*Some errors solved ( manpages didn't work )
*added ~amd64, hope it should work

Any kind of feedback is welcome :)
Comment 5 Maxxer 2007-09-05 06:34:31 UTC
(In reply to comment #4)

> *added ~amd64, hope it should work

it's working fine on my box.
Comment 6 Mario Witte 2007-09-10 14:24:16 UTC
The new ebuild does not work correctly on my box. While the installation runs fine the script does not update the background image, I suspect that a dependency is not resolved correctly.

This is the output I get when running weather-wallpaper:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/bin/weather-wallpaper", line 254, in run
    statusIcon.set_from_stock(gtk.STOCK_REFRESH)
NameError: global name 'statusIcon' is not defined

The script continues to run but the background does not change and the status icon always shows the "update" icon.
Comment 7 Maxxer 2007-09-11 11:22:12 UTC
(In reply to comment #6)
> The new ebuild does not work correctly on my box.

to me too!
Comment 8 nflamel 2007-09-16 09:50:36 UTC
(In reply to comment #6)
> The new ebuild does not work correctly on my box. While the installation runs
> fine the script does not update the background image, I suspect that a
> dependency is not resolved correctly.
> 
> This is the output I get when running weather-wallpaper:
> 
> Exception in thread Thread-1:
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
>     self.run()
>   File "/usr/bin/weather-wallpaper", line 254, in run
>     statusIcon.set_from_stock(gtk.STOCK_REFRESH)
> NameError: global name 'statusIcon' is not defined
> 
> The script continues to run but the background does not change and the status
> icon always shows the "update" icon.
> 

Sorry, my gentoo box is down. I'll fix it as soon as posible.

Thanks for your feedback
Comment 9 nflamel 2007-09-20 08:58:25 UTC
(In reply to comment #6)
> The new ebuild does not work correctly on my box. While the installation runs
> fine the script does not update the background image, I suspect that a
> dependency is not resolved correctly.
> 
> This is the output I get when running weather-wallpaper:
> 
> Exception in thread Thread-1:
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
>     self.run()
>   File "/usr/bin/weather-wallpaper", line 254, in run
>     statusIcon.set_from_stock(gtk.STOCK_REFRESH)
> NameError: global name 'statusIcon' is not defined
> 
> The script continues to run but the background does not change and the status
> icon always shows the "update" icon.

Could you post which of dev-python/pygtk is installed in your system?
Comment 10 Mario Witte 2007-09-22 12:04:52 UTC
Right now I'm running pygtk-2.10.4 with the only opengl use flag enabled.
Comment 11 nflamel 2007-09-23 11:39:24 UTC
(In reply to comment #10)
> Right now I'm running pygtk-2.10.4 with the only opengl use flag enabled.
> 

Not seems to be related to pygtk. Could you post your "emerge --info" ?

Thanks
Comment 12 Mario Witte 2007-09-23 15:49:34 UTC
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-suspend2-r1 i686)
=================================================================
System uname: 2.6.22-suspend2-r1 i686 Intel(R) Pentium(R) M processor 1.70GHz
Timestamp of tree: Sun, 23 Sep 2007 07:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://85.25.128.62 http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://www.gigaload.org/gentoo.org"
LINGUAS="en de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/obby-0x539 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aiglx alsa amr apache2 applet automount avahi bash-completion beagle berkdb bitmap-fonts bluetooth bogofilter bonjour bonobo branding bzip2 bzlib cairo cdda cddb cdparanoia cdr cdrom chipcard chipcard2 clamav cli cpudetection crypt css csv cups curl curlwrappers daap dbus dga dhcp dillo divx4linux dlloader dri dvd dvdnav dvdr dvdread dvi eds enca encode epiphany escreen esd evo evo2 evolution exif expat fbcon fbsplash firefox flash font-server foomaticdb ftp galago gd gdbm gif gimpprint gmail gmailtimestamps gnome gpgme graphviz gs gsf gstreamer gtk gtk2 gtkhtml h323 hal hbci howl-compat html http ical icq icu idn imap imlib imlib2 ipod irmc ithreads jabber java javascript jboss jpeg jpeg2k keyring lame ldap lesstif libnotify libwww lm_sensors lzo mad mbox md5sum mdnsresponder-compat memlimit mhash mime mjpeg mmx mmxext mng mono mozbranding mozilla mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc msn musicbrainz mysql ncurses network nls nocd nptl nptlonly nsplugin obex odbc offensive ogg oggvorbis ole opengl pam pcmcia pcre pdf pdfkit pdflib perl png ppds python quicktime rar rdesktop readline real rss rtc rtsp ruby samba sasl skins slp smime sms soap sockets spell spreadsheet sqlite sse sse2 ssl startup-notification stream svg sysfs syslog sysvipc tagwriting theora threads thumbnail tidy tiff tokenizer truetype truetype-fonts type1 type1-fonts unicode urandom usb utf8 v4l v4l2 vim-with-x virus-scan vorbis wddx widescreen wifi win32codecs wma wmf wxwindows x264 x86 xine xinerama xml xml2 xmlreader xmlwriter xorg xosd xprint xscreensaver xv zeroconf zlib" ALSA_CARDS="emu10k1 emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw copy file hooks ladspa mulaw dsnoop extplug share dshare rate meter multi linear route lfloat" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Mario Witte 2007-09-24 20:47:07 UTC
There is a not yet released patch for the GTK error in upstream: https://bugs.launchpad.net/weather-wallpaper/+bug/137165

I have implemented this patch plus a fix for copying the images and built a new ebuild. The ebuild also has more detailed dependencies.
This ebuild works for me, anyone care to check it out?
Comment 14 Mario Witte 2007-09-24 20:48:11 UTC
Created attachment 131801 [details]
gnome-extra/weather-wallpaper-0.2.0-r2.ebuild
Comment 15 Mario Witte 2007-09-24 20:49:19 UTC
Created attachment 131803 [details, diff]
gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch

Fix for bug from upstream: https://bugs.launchpad.net/weather-wallpaper/+bug/137165
Comment 16 nflamel 2007-09-24 21:03:09 UTC
(In reply to comment #13)
> There is a not yet released patch for the GTK error in upstream:
> https://bugs.launchpad.net/weather-wallpaper/+bug/137165
> 
> I have implemented this patch plus a fix for copying the images and built a new
> ebuild. The ebuild also has more detailed dependencies.
> This ebuild works for me, anyone care to check it out?
> 

Works for me too, but I get this output:

** (inkscape:20992): WARNING **: Specified document /usr/share/weather-wallpaper/images/None.svg cannot be opened (is it valid SVG file?)

(inkscape:20992): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed
Comment 17 Maxxer 2007-09-24 21:17:58 UTC
    not working to me yet.

    this is the output when run from command line. The tray icon appears for a
    minute in update-mode, then after some disk and cpu time it disappears.

    $ weather-wallpaper 

    ** (inkscape:29835): CRITICAL **: Inkscape::XML::Document*
    sp_repr_read_file(const gchar*, const gchar*): assertion
    `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed

    ** (inkscape:29835): CRITICAL **: Inkscape::XML::Document*
    sp_repr_read_file(const gchar*, const gchar*): assertion
    `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed

    ** (inkscape:29835): WARNING **: Specified document
    /usr/share/weather-wallpaper/images/None.svg cannot be opened (is it valid SVG
    file?)

    (inkscape:29835): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops !=
    NULL' failed

Comment 18 Mario Witte 2007-09-25 08:56:25 UTC
Created attachment 131830 [details]
gnome-extra/weather-wallpaper-0.2.0-r3.ebuild

Sorry, the copying of the images was messed up again - but different from the first version...

As to the errors from inkscape: I also got these yesterday and thought it was some error with my inkscape setup. Recompiling inkscape fixed this for me.
Comment 19 Maxxer 2007-09-25 09:21:10 UTC
-r3 is working fine to me! thanks!
Comment 20 Hans de Graaff gentoo-dev Security 2007-11-05 20:34:37 UTC
I just had a quick look at the ebuild and noticed the following QA issues: 

* Please make sure patching is done in src_unpack, not src_install
* A number of variables need quoting because they may contains spaces (e.g. FILESDIR, ROOT, D)
* RDEPEND should not be empty. Is e.g. pygtk not needed during runtime?

Trying to run the application gives me: 

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/bin/weather-wallpaper", line 401, in run
    input_img = os.path.join(path, "images", image + ".svg")
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Comment 21 Mario Witte 2007-11-05 20:47:52 UTC
Unfortunately my gentoo system broke with an ext3 incosistency some days ago and for a quick fix I replaced it with ubuntu. The backdraw is that I won't have a gentoo desktop system to test the ebuild and my servers do not have X installed. I hope somebody else is willing to make the changes though.
Comment 22 upendra 2008-01-04 19:32:56 UTC
i think SRC_URI is not working for this ebuild weather-wallpaper-0.2.0-r3.ebuild
Comment 23 upendra 2008-01-04 20:10:16 UTC
(In reply to comment #22)
> i think SRC_URI is not working for this ebuild
> weather-wallpaper-0.2.0-r3.ebuild
> 

I chnged SRC_URI to http://mundogeek.net/repo/pool/ubuntu/all/weather-wallpaper_0.2.0-1.tar.gz

and then downloaded weather-wallpaper-0.2.0-r2.patch in files directory.

NOW !!

when I do emerge weather-wallpaper

following build log

cat /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/build.log
>>> Unpacking source...
>>> Unpacking weather-wallpaper_0.2.0-1.tar.gz to /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/work/weather-wallpaper-0.2.0 ...
No compile necesary
>>> Source compiled.
>>> Test phase [not enabled]: gnome-extra/weather-wallpaper-0.2.0-r3

>>> Install weather-wallpaper-0.2.0-r3 into /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/image/ category gnome-extra
 * Applying weather-wallpaper-0.2.0-r2.patch ...

 * Failed Patch: weather-wallpaper-0.2.0-r2.patch !
 *  ( /usr/local/portage/gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/weather-wallpaper-0.2.0-r2.patch-19462.out

 * 
 * ERROR: gnome-extra/weather-wallpaper-0.2.0-r3 failed.
 * Call stack:
 *                           ebuild.sh, line 1701:  Called dyn_install
 *                           ebuild.sh, line 1138:  Called qa_call 'src_install'
 *                           ebuild.sh, line   44:  Called src_install
 *   weather-wallpaper-0.2.0-r3.ebuild, line   38:  Called epatch '/usr/local/portage/gnome-extra/weather-wallpaper/files/weather-wallpaper-0.2.0-r2.patch'
 *                       eutils.eclass, line  304:  Called die
 * The specific snippet of code:
 *                              die "Failed Patch: ${patchname}!"
 *  The die message:
 *   Failed Patch: weather-wallpaper-0.2.0-r2.patch!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-extra/weather-wallpaper-0.2.0-r3/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'

Comment 24 Hans de Graaff gentoo-dev Security 2008-01-20 08:10:51 UTC
The patch is no longer needed since it has been applied in the new weather-wallpaper-0.2.0-1.tar.gz file.

However, trying to run this version gets me:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/bin/weather-wallpaper", line 401, in run
    input_img = os.path.join(path, "images", image + ".svg")
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Comment 25 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-30 11:15:29 UTC
align ebuild requests to same values
Comment 26 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-08-25 17:50:00 UTC

RESOLVED as OBSOLETE since there is no update and package is not in tree

Coordinated with leio