[Pkg-octave-devel] Bug#400071: octaviz: Examples fail to run
Hi,
[taking this to the list]
Am Donnerstag, den 23.11.2006, 20:37 +0100 schrieb Rafael Laboissiere:
> * Thomas Weber <thomas.weber.mail@gmail.com> [2006-11-23 19:35]:
>
> > Am Donnerstag, den 23.11.2006, 18:52 +0100 schrieb Rafael Laboissiere:
> > > Package: octaviz
> > > Version: 0.4.5-3
> > > Severity: normal
> > > Tags: confirmed
> >
> > Is this confirmed by you, Rafael?
>
> Yes, I took the liberty to add this tag. I confirmed the bug with octaviz
> 0.4.5-3 and libvtk5 5.0.2-4.
Hey, you cheated :). Your error message surely looked different than
Christian's.
> I thought it was a problem recently introduced, but then I later
> noticed that the vtkdata package was lacking in in my system. After
> installing it, the examples work, of course.
I submitted a patch to the vtkGetDataRoot.m function to upstream two
weeks ago; this should take care of missing vtkdata packages in the
future.
> I will leave this bug report open to remind us to add a README.Debian file
> to the package explaining that vtkdata is necessary for running the
> examples. Could you please take care of this, Thomas?
Hmm, we could bump vktdata's "suggests" to "recommends" instead. And/or
apply the attached patch. This might be easier than pointing people to
READMEs.
Thomas
? _darcs
Index: Scripts/CMakeLists.txt
===================================================================
RCS file: /cvsroot/octaviz/octaviz/Scripts/CMakeLists.txt,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 CMakeLists.txt
4a5,8
> # Insert VTK_DATA_ROOT given to cmake into vtkGetDataRoot.m
> CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/vtkGetDataRoot.m
> ${CMAKE_CURRENT_BINARY_DIR}/vtkGetDataRoot.m)
>
Index: Scripts/vtkGetDataRoot.m
===================================================================
RCS file: /cvsroot/octaviz/octaviz/Scripts/vtkGetDataRoot.m,v
retrieving revision 1.2
diff -r1.2 vtkGetDataRoot.m
5c5,37
< f = "/usr/local/share/vtk/VTKData-release-4-4";
---
>
> f = "";
>
> ## The file that marks the vtkdata/ directory
> readme = "VTKData.readme";
>
> ## check for a possible environmental variable
> env_data_root = getenv("VTK_DATA_ROOT");
>
> ## set at Octaviz's compile time
> oct_data_root = "@VTK_DATA_ROOT@";
>
> ## locally set path
> local_data_root = "/usr/local/share/vtkdata";
>
> data_root_path = [ env_data_root; local_data_root; oct_data_root ];
>
> ## check where we have the readme file
> if (! isempty(data_root_path))
> for i=[1:rows(data_root_path)]
> filename = [data_root_path(i, :), '/', readme];
> if (! isempty(stat(filename)))
> f = data_root_path(i,:);
> break;
> endif
> endfor
> else
> error("Empty search path for VTK_DATA_ROOT!");
> endif
>
> if (isempty(f))
> error([readme, " not found! \n\t Did you install the vtkdata package?"]);
> endif
Reply to: