[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh-octave and autopkgtest



Hi,

Le jeudi 13 mars 2025 à 10:04 +0100, PICCA Frederic-Emmanuel a écrit :
> Hello, I am working on the astra-toolbox
> 
> which provide an octave package like this
> 
> octave-astra-toolbox_2.3.0-1_amd64.deb
> --------------------------------------
> 
>  new Debian package, version 2.0.
>  size 1075888 bytes: control archive=2980 bytes.
>      947 bytes,    23 lines      control
>     6663 bytes,    73 lines      md5sums
>       43 bytes,     1 lines      shlibs
>       68 bytes,     2 lines      triggers
>  Package: octave-astra-toolbox
>  Source: astra-toolbox
>  Version: 2.3.0-1
>  Architecture: amd64
>  Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
>  Installed-Size: 9905
>  Depends: libc6 (>= 2.32), libcudart12, libcufft11, libgcc-s1 (>= 3.0), libstdc++6 (>= 13.1), octave-abi-59, octave (>= 9.4.0)
>  Section: contrib/python
>  Priority: optional
>  Homepage: https://github.com/astra-toolbox/astra-toolbox
>  Description: toolbox of high-performance GPU primitives for 2D and 3D tomography (octave)
>   It supports 2D parallel and fan beam geometries, and 3D parallel and
>   cone beam. All of them have highly flexible source/detector
>   positioning.
>   .
>   A large number of 2D and 3D algorithms are available, including FBP,
>   SIRT, SART, CGLS.
>   .
>   The basic forward and backward projection operations are
>   GPU-accelerated, and directly callable from Octave and Python to
>   enable building new algorithms.
>   .
>   This is the Octave library.
> 
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/lib/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/lib/astra/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/lib/astra/mex/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/lib/astra/mex/octave/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/
> -rwxr-xr-x root/root    100536 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_algorithm_c.mex
> -rwxr-xr-x root/root     75960 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_c.mex
> -rwxr-xr-x root/root     92344 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_data2d_c.mex
> -rwxr-xr-x root/root     84152 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_data3d_c.mex
> -rwxr-xr-x root/root     75960 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_direct_c.mex
> -rwxr-xr-x root/root     75960 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_log_c.mex
> -rwxr-xr-x root/root     80056 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_matrix_c.mex
> -rwxr-xr-x root/root     75960 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_projector3d_c.mex
> -rwxr-xr-x root/root     88248 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/astra_mex_projector_c.mex
> -rw-r--r-- root/root   9215048 2025-03-12 11:54 ./usr/lib/astra/mex/octave/mex/libastra.so.0
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/doc/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/doc/octave-astra-toolbox/
> -rw-r--r-- root/root      1384 2025-03-12 11:54 ./usr/share/doc/octave-astra-toolbox/changelog.Debian.gz
> -rw-r--r-- root/root      5786 2025-03-12 11:54 ./usr/share/doc/octave-astra-toolbox/copyright
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/lintian/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/lintian/overrides/
> -rw-r--r-- root/root        93 2025-03-12 11:54 ./usr/share/lintian/overrides/octave-astra-toolbox
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/octave/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/octave/packages/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/octave/packages/astra/
> drwxr-xr-x root/root         0 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/
> -rw-r--r-- root/root       381 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/ROIselectfull.m
> -rw-r--r-- root/root      1661 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_add_noise_to_sino.m
> -rw-r--r-- root/root       842 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_clear.m
> -rw-r--r-- root/root      1852 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_backprojection.m
> -rw-r--r-- root/root      1689 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_backprojection3d_cuda.m
> -rw-r--r-- root/root      1705 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_backprojection_cuda.m
> -rw-r--r-- root/root       807 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_fbp_reconstruction.m
> -rw-r--r-- root/root      9690 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_proj_geom.m
> -rw-r--r-- root/root      1964 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_projector.m
> -rw-r--r-- root/root      3043 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_reconstruction.m
> -rw-r--r-- root/root      2792 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_reconstruction_cuda.m
> -rw-r--r-- root/root      1837 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_sino.m
> -rw-r--r-- root/root      1797 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_sino3d_cuda.m
> -rw-r--r-- root/root      1787 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_sino_cuda.m
> -rw-r--r-- root/root      1785 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_sino_gpu.m
> -rw-r--r-- root/root      1846 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_sino_sampling.m
> -rw-r--r-- root/root      4161 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_create_vol_geom.m
> -rw-r--r-- root/root     15477 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_data_gui.m
> -rw-r--r-- root/root       304 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_data_op.m
> -rw-r--r-- root/root       341 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_data_op_mask.m
> -rw-r--r-- root/root      1516 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_downsample_sinogram.m
> -rw-r--r-- root/root      4532 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_geom_2vec.m
> -rw-r--r-- root/root      1944 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_geom_postalignment.m
> -rw-r--r-- root/root      1542 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_geom_size.m
> -rw-r--r-- root/root       716 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_geom_superresolution.m
> -rw-r--r-- root/root      7233 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_geom_visualize.m
> -rw-r--r-- root/root       725 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_get_gpu_info.m
> -rw-r--r-- root/root       155 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_imshow.m
> -rw-r--r-- root/root       887 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex.m
> -rw-r--r-- root/root       937 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_algorithm.m
> -rw-r--r-- root/root       922 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_data2d.m
> -rw-r--r-- root/root       922 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_data3d.m
> -rw-r--r-- root/root       922 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_direct.m
> -rw-r--r-- root/root      1286 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_log.m
> -rw-r--r-- root/root       922 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_matrix.m
> -rw-r--r-- root/root       922 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_plugin.m
> -rw-r--r-- root/root       937 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_projector.m
> -rw-r--r-- root/root       947 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_mex_projector3d.m
> -rw-r--r-- root/root      4456 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_plot_geom.m
> -rw-r--r-- root/root       866 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_projector_handle.m
> -rw-r--r-- root/root       836 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_set_directory.m
> -rw-r--r-- root/root       669 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_set_gpu_index.m
> -rw-r--r-- root/root      1156 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_struct.m
> -rw-r--r-- root/root       743 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_test.m
> -rw-r--r-- root/root      1498 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_test_CUDA.m
> -rw-r--r-- root/root      1036 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/astra_test_noCUDA.m
> -rw-r--r-- root/root       656 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/compute_rnmp.m
> -rw-r--r-- root/root      1972 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/createOrderART.m
> -rw-r--r-- root/root       269 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/downsample_sinogram.m
> -rw-r--r-- root/root       844 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/imreadgs.m
> -rw-r--r-- root/root       899 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/imresize3D.m
> -rw-r--r-- root/root       817 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/imscale.m
> -rw-r--r-- root/root       754 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/imwritesc.m
> -rw-r--r-- root/root       970 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/kaiserBessel.m
> -rw-r--r-- root/root       803 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/linspace2.m
> -rw-r--r-- root/root      9397 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/opTomo.m
> -rw-r--r-- root/root       897 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/opTomo_helper_handle.m
> -rw-r--r-- root/root      1022 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/overlayImage.m
> -rw-r--r-- root/root      3337 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/rebin_fan2par.m
> -rw-r--r-- root/root      1100 2025-03-12 11:54 ./usr/share/octave/packages/astra/tools/sliceExtractor.m
> 
> 
> I am using autopkgtest-pkg-octave, but I end up with this error message.
> 
> 
> autopkgtest [09:52:02]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package
> autopkgtest [09:52:02]: test command1: [-----------------------
> grep: DESCRIPTION: No such file or directory
> Checking package...
> find: ‘inst/’: No such file or directory
> Run the unit tests...
> Checking m files ...
> error: package  is not installed
> error: called from
>     load_packages at line 47 column 7
>     pkg at line 639 column 7
>     /tmp/tmp.ZxsbT9NkN7 at line 12 column 1
> 
> 
> Is it possible to help me fix this issue.

Fundamentally, the issue is that dh_octave_autopkgtest has been
designed to work with Octave add-ons that follow a specific
standardized layout. It seems that astra-toolbox does not follow that
layout, hence the crash.

Maybe is it possible to make dh_octave_autopkgtest work with astra-
toolbox with some hack, but my impression is that you will be better-
off designing your own custom autopkgtest rather than relying on the
standard Octave tooling.

I’m CCing the Debian Octave Group list in case someone there has a
better hint.

Best,

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org


Reply to: