Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239012 - sci-astronomy/stellarium-0.10.0 version bump
Summary: sci-astronomy/stellarium-0.10.0 version bump
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mr. Bones. (RETIRED)
URL: http://www.stellarium.org/
Whiteboard:
Keywords:
: 253209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-29 09:01 UTC by Peter Volkov (RETIRED)
Modified: 2009-01-23 19:49 UTC (History)
3 users (show)

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


Attachments
build log (stellarium_10_build.log.bz2,7.68 KB, application/octet-stream)
2008-10-09 19:56 UTC, Zeev Tarantov
Details
Stellarium beta1 ebuild v0.10.0 (stellarium-0.10.0.ebuild,2.17 KB, text/plain)
2008-10-25 15:16 UTC, Raphaël Droz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2008-09-29 09:01:57 UTC
New version is out. New features are impressive
http://stellarium.org/features_in_0.10.0.php

Please, bump whenever you find time to write ebuild.
Comment 1 Zeev Tarantov 2008-10-05 18:00:20 UTC
Copying the previous version ebuild works. Only thing you have to change is the file extension of the tarball - they changed it from .tar.gz to .tgz:

http://downloads.sourceforge.net/stellarium/stellarium-0.10.0.tgz
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-10-06 15:38:13 UTC
That's obviously incorrect since at least the epatch line needs to be removed.

For me, the build fails like this:

/var/tmp/portage/sci-astronomy/stellarium-0.10.0/work/stellarium-0.10.0/po/CMakeLists.txt:48:
ADD_DEPENDENCIES Adding dependency to non-existent target: update-po
Comment 3 Zeev Tarantov 2008-10-09 19:56:11 UTC
With this ebuild:

--- /usr/portage/sci-astronomy/stellarium/stellarium-0.9.1-r1.ebuild    2008-08-17 03:08:38.000000000 +0300
+++ /usr/local/portage/sci-astronomy/stellarium/stellarium-0.10.0.ebuild        2008-09-25 09:36:40.000000000 +0300
@@ -7,7 +7,7 @@

 DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time."
 HOMEPAGE="http://www.stellarium.org/"
-SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz"
+SRC_URI="mirror://sourceforge/stellarium/${P}.tgz"

 LICENSE="GPL-2"
 SLOT="0"
@@ -34,7 +34,6 @@
 src_unpack() {
        unpack ${A}
        cd "${S}"
-       epatch "${FILESDIR}"/${P}-gcc4.3.patch
        if ! use nls ; then
                sed -i \
                        -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' \

With this system:

Portage 2.2_rc11 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26.5 i686)
=================================================================
System uname: Linux-2.6.26.5-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-glibc2.0
Timestamp of tree: Thu, 09 Oct 2008 08:17:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18.50.0.9
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -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/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks keeptemp keepwork noclean parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--enable-new-dtags"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 archive bash-completion bidi bluetooth bzip2 cairo captury cddb cdparanoia cdr cli cracklib crypt ctype curl curlwrappers custom-optimization dbus dga dri dvd dvdr dvdread encode exif fam fastcgi fbcon ffmpeg fftw firefox flac gd gdbm geoip gif glib glitz gmp gnutls gpm gtk hal iconv ieee1394 innodb inotify isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas libnotify libsamplerate lm_sensors mad matroska midi mikmod mime mmap mmx mp3 mpeg mplayer mudflap musepack mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pch pcntl pcre pdf perl php pic png posix postgres ppds pppd python qt3 qt3support qt4 quicktime readline real realmedia reflection samba scanner sdl session sndfile spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg sysfs syslog sysvipc tcpd theora threads tidy tiff truetype unicode urandom usb vhosts vorbis wifi win32codecs wmf x264 x86 xcb xcomposite xml xmlreader xmlwriter xorg xulrunner xv xvid yahoo zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias asis" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa nouveau"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I get the attached build log. The program works. I have preserved the work dir and any info you want is available upon request.
Comment 4 Zeev Tarantov 2008-10-09 19:56:53 UTC
Created attachment 167774 [details]
build log
Comment 5 Raphaël Droz 2008-10-25 15:16:44 UTC
Created attachment 169818 [details]
Stellarium beta1 ebuild v0.10.0
Comment 6 Raphaël Droz 2008-10-25 15:19:11 UTC
Hello (sorry for self-reply) :
I went into cmake files of the stellarium source to make my first ebuild :S
I attached it (and a diff of previous and uploaded ebuild follow this message).

** modifications :
- tgz extension of archive (as said in #1)
- KEYWORDS set to ~amd64 (because of qt and cmake on my arch)
- freetype dependency to slot 2 (as asked in configure)
- the build fails of #2 is due to a dependency of >=cmake-2.4.7 (which is not stable on amd64)
- removal of epatch (as said in #2)
- =x11-libs/qt-4.3*:4 replaced by x11-libs/qt:4 because stellarium-0.10 compile with >=qt-4.4.1

** additions :
- sound use flag because stellarium now allows to "hear" some pulsars and so (but a plugin is needed), in this case sdl-mixer seems to be necessary.
Is this keyword addition [useless|dirty|whatever] ?
Is there a virtual ebuild which should be more generic than sdl-mixer ?
- I tried to use LINGUAS but, of course I need advises and feedbacks :)

** questions :
- Why a curl dependency ?
- is virtual/opengl and virtual/glue mandatory if the ebuilds already depends upon (qt-opengl || ( qt && QT4_BUILT_WITH_USE_CHECK=opengl ) ) ?

Thanks in advance.

$ diff stellarium-0.9.1-r1.ebuild stellarium-0.10.0.ebuild
10c10
< SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz"
---
> SRC_URI="mirror://sourceforge/stellarium/${P}.tgz"
14,15c14,17
< KEYWORDS="amd64 ppc ppc64 x86"
< IUSE="nls"
---
> KEYWORDS="~amd64"
> IUSE="nls sound"
> # seems that stellarium 0.10 lets the plugins use a sound library
> # for example to hear the sound of some stellar objects
20c22
< 	media-libs/freetype
---
> 	media-libs/freetype:2
24c26,27
< 	|| ( ( x11-libs/qt-core:4 x11-libs/qt-gui:4 x11-libs/qt-script:4 x11-libs/qt-opengl:4 )  =x11-libs/qt-4.3*:4 )
---
> 	|| ( ( x11-libs/qt-core:4 x11-libs/qt-gui:4 x11-libs/qt-script:4 x11-libs/qt-opengl:4 ) >=x11-libs/qt-4.4.1 )
> 	sound? ( media-libs/sdl-mixer )
27c30
< 	>=dev-util/cmake-2.4.6
---
> 	>=dev-util/cmake-2.4.7
37d39
< 	epatch "${FILESDIR}"/${P}-gcc4.3.patch
39,42c41,53
< 		sed -i \
< 			-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' \
< 			CMakeLists.txt \
< 			|| die "sed failed"
---
> 		sed -i -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' CMakeLists.txt || die "sed failed"
> 	elif [ -n "$LINGUAS" ]; then
> 		# as some translations are not complete, should we put 'en' language everytime ?
> 		if [ ${#LINGUAS[*]} -eq 1 ]; then
> 			# 5th line : if we find this language in the list, remove all others
> 			sed -i "5{/${LINGUAS}/s/.*/${LINGUAS}/}" po/stellarium/CMakeLists.txt po/stellarium-skycultures/CMakeLists.txt\
> 			 || die "cannot set linguas"
> 		# else strip-linguas -i po/stellarium
> 		# or we should foreach $LINGUAS and 5th line of both files
> 		# notice : both may not have the same language list
> 		fi
> 	else
> 		ewarn "Use of nls without setting \$LINGUAS is a non-sense"
49,51c60
< 	cmake \
< 		-DCMAKE_INSTALL_PREFIX=/usr \
< 		|| die "cmake failed"
---
> 	cmake -DCMAKE_INSTALL_PREFIX=/usr || die "cmake failed"
Comment 7 Matt Turner gentoo-dev 2009-01-02 18:29:49 UTC
*** Bug 253209 has been marked as a duplicate of this bug. ***
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2009-01-23 19:49:00 UTC
0.10.0 has some known issues and doesn't play nice with USE=-nls so we'll skip this version and I'll evaluate 0.10.1 when it comes out in a few days and see if that version is better.