Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446263 - sci-astronomy/gasgano-2.4.3 does not run
Summary: sci-astronomy/gasgano-2.4.3 does not run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 15:43 UTC by Peter Weilbacher
Modified: 2012-12-07 17:14 UTC (History)
1 user (show)

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


Attachments
patch against gasgano-2.4.3-r1.ebuild (gasgano-2.4.3-r1_ebuild.diff,774 bytes, patch)
2012-12-07 12:26 UTC, Peter Weilbacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Weilbacher 2012-12-06 15:43:28 UTC
The ebuild unpacks the files into Gentoo-typical directories (e.g. /usr/share/gasgano), but does not adapt the shell script that starts the program (/usr/bin/gasgano), or at least doesn't adapt it correctly.

In the script after installation I see paths like
   BASE=/usr/lib/gasgano
   JREBASE=/usr/lib/gasgano
   CLASSPATH=$CLASSPATH:$BASE/lib/gasgano.jar
all of which point to non-existing directories and/or files.

I fiddled around with the script, and adapted paths so that it would start at least:
  BASE=/usr/share/gasgano
  JREBASE=/opt/sun-jre-bin-1.6.0.37
but I think this should really somehow use the settings that I can set using |eselect java|.

When starting it the first time, it also gives an error about not finding "gasgano/config/VLT.oca", but I cannot tell at the moment, where it is looking for it by default.

Reproducible: Always

Steps to Reproduce:
Start gasgano in the shell:
$ gasgano
Actual Results:  
Output, that shows wrong java setup created by the gasgano script:

Gasgano requires Java version 1.6 or higher.
The available Java run-time (/usr/lib/gasgano/bin/java) is too old. Exiting...

Expected Results:  
gasgano should start without giving errors.

$ emerge --info gasgano
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 06 Dec 2012 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --load-average=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noinfo parallel-fetch sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://de-mirror.org/distro/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-s -j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb binfilter bzip2 cairo cddb cdr cli consolekit cracklib crypt css cups cxx dbus dell device-mapper dga dirac directfb dri dvd dvdr dvi dvipdfm encode exif extras fat fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran fts3 g3dvl gd gdbm gdu gif gimp gimpprint gnome gnuplot gnutls gpm gtk hddtemp iconv id3tag ipv6 jfs jpeg jpeg2k laptop latex3 lcdfilter lcms libedit libnotify loop-aes mad mmx modules mozbranding mp3 mpeg mplayer mudflap multilib ncurses network nls nptl nsplugin ntfs nvidia ogg onlyalpine opengl openmp pam passfile pcre pdf png pni policykit ppds pppd readline sasl schroedinger sdl secure-delete session smp spell sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssl ssse3 svg system-sqlite tcpd theora threads thunar tiff tk truetype unicode usb v4l v4l2 vaapi vdpau vim-pager vim-syntax vim-with-x vorbis vpx wifi x264 xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de pl es" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epjitsu epson epson2" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" XFCE_PLUGINS="menu trash logout clock brightness" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sci-astronomy/gasgano-2.4.3 was built with the following:
USE="(multilib) -doc"
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2012-12-06 22:15:26 UTC
+*gasgano-2.4.3-r1 (06 Dec 2012)
+
+  06 Dec 2012; Sébastien Fabbro <bicatali@gentoo.org> +gasgano-2.4.3-r1.ebuild,
+  -gasgano-2.4.3.ebuild:
+  Fixed bad sed command resulting in wrong script (bug #446263)
+



please re-open if it is still wrong (not very much tested, my box went down). thanks.
Comment 2 Peter Weilbacher 2012-12-07 11:41:01 UTC
Hi Sébastien,

thanks for your quick response! I now get an error when trying to emerge the package, it has something to do with the documentation:

 * Package:    sci-astronomy/gasgano-2.4.3-r1
 * Repository: gentoo
 * Maintainer: sci-astronomy@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
 * Using: icedtea-bin-7
>>> Unpacking source...
>>> Unpacking gasgano-2.4.3.tar.gz to /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work
>>> Source unpacked in /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work
>>> Preparing source in /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work/gasgano-2.4.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work/gasgano-2.4.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work/gasgano-2.4.3 ...
java-pkg-2_src_compile: build.xml not found so nothing to do.
>>> Source compiled.
>>> Test phase [not enabled]: sci-astronomy/gasgano-2.4.3-r1

>>> Install gasgano-2.4.3-r1 into /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/image/ category sci-astronomy
 * ERROR: sci-astronomy/gasgano-2.4.3-r1 failed (install phase):
 *   !!! newdoc: /var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/distdir/VLT-PRO-ESO-19000-1932-V4.pdf does not exist
 * 
 * If you need support, post the output of `emerge --info '=sci-astronomy/gasgano-2.4.3-r1'`,
 * the complete build log and the output of `emerge -pqv '=sci-astronomy/gasgano-2.4.3-r1'`.
 * The complete build log is located at '/home/root/log/sci-astronomy:gasgano-2.4.3-r1:20121207-111901.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work/gasgano-2.4.3'
 * S: '/var/tmp/portage/sci-astronomy/gasgano-2.4.3-r1/work/gasgano-2.4.3'
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.3.3"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info

If I comment out the line with newdoc in the ebuild and re-emerge, it does install. However, it does not run. I get 

$ gasgano
Error: Could not find or load main class org.eso.gasgano.Gasgano

or

$ gasgano -debug
The available Java run-time (/usr/bin/java) has version >= 1.6
 date:             Fr 7. Dez 12:34:08 CET 2012
 jre:		/usr/bin/java
 JRE:		/usr/bin/java
 BASE:		/usr
 options:		-debug
 optjre:		 -Xmx100m -Ddebug.mode=true  -Dlog4j.debug -Dlog4j.configuration=file:/usr/config/log4j-debug.properties -classpath :/usr/lib/dfs.jar:/usr/lib/gasgano.jar:/usr/lib/javacpl.jar:/usr/lib/gnu-regexp.jar:/usr/lib/jalString.jar:/usr/lib/oca.jar:/usr/lib/log4j.jar:/usr/lib/fits.jar:/usr/lib/dfsBetUtil.jar
 CLASSPATH:

/usr/lib/dfs.jar
/usr/lib/gasgano.jar
/usr/lib/javacpl.jar
/usr/lib/gnu-regexp.jar
/usr/lib/jalString.jar
/usr/lib/oca.jar
/usr/lib/log4j.jar
/usr/lib/fits.jar
/usr/lib/dfsBetUtil.jar
Error: Could not find or load main class org.eso.gasgano.Gasgano


I think the sed line in the ebuild needs extra escaping and needs to make sure that BASE is at the start of the line (otherwise it replaces the JREBASEs, too, like this:
	sed -i \
		-e "s:^BASE=\`pwd\`:BASE=${EPREFIX}/usr/share/${PN}:" \
		-e 's:$BASE/share/:$BASE/lib/:g' \
		bin/gasgano || die
Comment 3 Peter Weilbacher 2012-12-07 12:26:03 UTC
Created attachment 331736 [details, diff]
patch against gasgano-2.4.3-r1.ebuild

This patch seems to work for me.
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2012-12-07 17:14:44 UTC
+*gasgano-2.4.3-r2 (07 Dec 2012)
+
+  07 Dec 2012; Sébastien Fabbro <bicatali@gentoo.org> +gasgano-2.4.3-r2.ebuild,
+  -gasgano-2.4.3-r1.ebuild:
+  Really fixing bug #446263, thanks Peter Weilbacher
+