Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325735 - ~sci-mathematics/qtocatve-0.9.1 compiled with wrong default path
Summary: ~sci-mathematics/qtocatve-0.9.1 compiled with wrong default path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 17:41 UTC by Alexander Goomenyuk
Modified: 2010-06-28 16:50 UTC (History)
0 users

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


Attachments
fixed qtoctave ebuild (qtoctave-0.9.1.ebuild,1005 bytes, text/plain)
2010-06-26 22:26 UTC, Dane Smith (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Goomenyuk 2010-06-26 17:41:08 UTC
qtoctave is compiled by ebuild with /opt/qtoctave-0.8.2/ path because qtoctave-0.9.1/work/qtoctave-0.9.1/qtoctave/src/configure.h is generated with this path.

The qtoctave-0.9.1/work/qtoctave-0.9.1_build/qtoctave/src/configure.h is correct  but apparently is not used for building.

If qtocatve compiled manually (stopping the emerge process before configuration) in source directory rather than in build, then the path is correct.

I suppose the sources of qtoctave should be fixed. But I was not able to figure how to fix it.

Reproducible: Always

Steps to Reproduce:
1. Compile and start

Actual Results:  
qtoctave complains about non-existing path when started. No icons are visible.

The initialization of failed with:
>>>warning: mark_as_command is obsolete and will be removed from a future versi
on of Octave
warning: addpath: /opt/qtoctave-0.8.2/share/qtoctave/scripts_octave/: No such f
ile or directory
>>>error: `_ide_reload_variables_list' undefined near line 4 column 1




Here is the console log:
$ qtoctave
/opt/qtoctave-0.8.2/share/qtoctave/config.rc no encontrado
[main()] Error loading the QT Translation file for locale 'C'.
[main()] Error loading the translation file for locale 'C'. Not found in /opt/qtoctave-0.8.2/share/qtoctave/lang 
[Main::Main] Building commands list.
warning: mark_as_command is obsolete and will be removed from a future version of Octave

[Main::Main] Commands list builded.
[OctaveConnection::startOctave] Octave path: octave
[OctaveConnection::startOctave] Octave version: 3.2.4 (3.2.4)
[OctaveConnection::startOctave] Starting octave: "octave"  --eval "PS1('octave:\#>');PS2('octave:\#+>');addpath('/opt/qtoctave-0.8.2/share/qtoctave/scripts_octave/')"  --persist --no-history -i 
[OctaveConnection::startOctave] Octave running
[Navigator::createLayout] Building listview
/opt/qtoctave-0.8.2/share/qtoctave/config.rc no encontrado
[GenerateMenu::load_menu] Error: /opt/qtoctave-0.8.2/share/qtoctave/menus not found
[GenerateMenu::load_menu] Error: /home/ag/.qtoctave/menus not found
[PkgBind::loadCommandList] '/opt/qtoctave-0.8.2/share/qtoctave/pkg-commands.list' can not be loaded
Comment 1 Dane Smith (RETIRED) gentoo-dev 2010-06-26 22:26:20 UTC
Created attachment 236675 [details]
fixed qtoctave ebuild

All you need to do is uncomment CMAKE_IN_SOURCE_BUILD=1 and it should work fine.
I attached an ebuild in case that will help. Tested it on x86.

Hope this helps.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-06-28 16:50:50 UTC
+*qtoctave-0.9.1-r1 (28 Jun 2010)
+
+  28 Jun 2010; Justin Lecher <jlec@gentoo.org> -qtoctave-0.9.1.ebuild,
+  +qtoctave-0.9.1-r1.ebuild:
+  Wrong default path during compilation, thanks Alexander Goomenyuk for
+  reporting
+

I trust you, please report if it does't work.