Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131393 - Uppercase constants don't get evaluated in labplot
Summary: Uppercase constants don't get evaluated in labplot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 16:39 UTC by Renan T. Inácio
Modified: 2006-04-30 15:13 UTC (History)
2 users (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 Renan T. Inácio 2006-04-26 16:39:19 UTC
Overview: The constants in uppercase (like PI or SQRT2) doesn't work, because the application convert all letters to lowercase, so it does not evaluates them.
This happens when trying to create or edit any kind of graphic.

How to reproduce:
1) Open the application
2) Go to the menu Plot > New Plot from Function > 2D Function (any kind of function has this issue)
3) Type a function using any constant, like 1 + PI + SQRT2

Actual results:
It draws a line at y = 1

Expected results:
It should draw a line at about y = 5.55

Emerged with:
 # ACCEPT_KEYWORDS="~amd64" emerge -pv labplot
[ebuild   R   ] sci-visualization/labplot-1.4.0  +arts +audiofile (-cdf) -debug -fftw +imagemagick -netcdf +tiff -xinerama 0 kB

emerge --info:
Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=k8 -march=k8 -O3 -pipe -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=k8 -march=k8 -O3 -pipe -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar "
LINGUAS="pt_BR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X alsa amd64 arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd eds emboss encode esd ethereal exif expat fam ffmpeg foomaticdb fortran gdbm gif glut glx gmp gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms ldap libwww lzw lzw-tiff mad mng motif mp3 mpeg msn ncurses nls nptl nvidia opengl pam pcre pdflib perl png pppd python qt quicktime readline recode reflection ruby samba scanner sdl session spell spl ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb xine xml2 xmms xorg xpm xv zlib linguas_pt_BR userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-29 10:02:39 UTC
This is for sure not a problem with v.1.5.1, but can you test if this is an issue with labplot-1.5.0.5, please!?
Comment 2 Renan T. Inácio 2006-04-29 13:33:54 UTC
(In reply to comment #1)
> This is for sure not a problem with v.1.5.1, but can you test if this is an
> issue with labplot-1.5.0.5, please!?
> 

i have an amd64 system and labplot-1.4.0 is the only one that I can emerge
but i will try to compile labplot-1.5.0.5 if you can give me some directions :-)
Comment 3 Dominik Stadler (RETIRED) gentoo-dev 2006-04-29 13:55:44 UTC
You should be able to try the newer version with running the following command and then emerging labplot again. It will add a line to /etc/portage/package.keywords. Note: you will need to do this as root-user.

echo "sci-visualization/labplot" >> /etc/portage/package.keywords
Comment 4 Renan T. Inácio 2006-04-29 14:49:31 UTC
Didn't work. If I try to emerge only "labplot" it tries to install the 1.4.0 version, and if I specify the version, it say it's masked. I suppose there isn't an ebuild for amd64?

!!! All ebuilds that could satisfy "=labplot-1.5.0.5" have been masked.
!!! One of the following masked packages is required to complete your request:
- sci-visualization/labplot-1.5.0.5 (masked by: missing keyword)
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-30 07:05:50 UTC
Adjusted the dependencies a bit and keyworded ~amd64 again. Please sync in two hours or so and give it another try.
Comment 6 Renan T. Inácio 2006-04-30 11:36:44 UTC
Only happens on 1.4.0
On 1.5.0.5 it's OK and on 1.5.1 the constants are lowercase
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-30 15:13:15 UTC
o.k.