Doubt: update-alternative during debian/rules? (GTK2 vs GTK3)

2018-11-12 Thread JOSE LUIS BLANCO CLARACO
Dear Debian Mentors,

Maintaining a package (mrpt) I stumbled upon a conflict between two of
its dependencies:
- wxwidgets, which provides several "configurations", via an
update-alternative symlink named `wx-config`, and
- opencv (version 3).

The problem is that OpenCV uses gtk3, while the *default* wx-config is
gtk2, so the resulting executables raise an assert about the
incompatibility between gtk2 and gtk3 and are useless.

However, Debian packages *already* contain the `gtk3-unicode-3.0`
version of wx-config, which should be selected via
`update-alternatives` when *manually* building the packages from
sources, fixing the problem.

And my question is: is it "acceptable" to run `update-alternatives`
during debian/rules? Is there any better way to handle with this
(apart of proposing a change all the way down to the
FindWxWidgets.cmake module by CMake?

Any advice will be more than welcome.

Cheers,

-- 

/**
 * Jose Luis Blanco-Claraco
 * Universidad de Almería - Departamento de Ingeniería
 * [Homepage]( https://w3.ual.es/~jlblanco/ )
 * [GH profile]( https://github.com/jlblancoc )
 */



Re: Doubt: update-alternative during debian/rules? (GTK2 vs GTK3)

2018-11-14 Thread JOSE LUIS BLANCO CLARACO
Thanks, Miroslav and Santiago for your feedback!

On Wed, Nov 14, 2018 at 7:43 AM Miroslav Kravec
 wrote:
> Certainly not acceptable. Package build should not touch anything outside of 
> package. Ie. no side effects.
> Anyway, what would be the goal? If specific binary is needed, then setup env 
> vars correctly.

After digging into CMake's FindWxWidgets.cmake module, I found that it
indeed allows using an env var to select the configuration, so that
should be the best option.

Best,

-- 

/**
 * Jose Luis Blanco-Claraco
 * Universidad de Almería - Departamento de Ingeniería
 * [Homepage]( https://w3.ual.es/~jlblanco/ )
 * [GH profile]( https://github.com/jlblancoc )
 */



Help with Lintian error in python3 (pybind11-wrapped) package

2023-07-10 Thread JOSE LUIS BLANCO CLARACO
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi all,

I'm adding a new python3 package as part of a larger C++ package [1], which
builds using a rather standard dh + cmake procedure, then builds a python3
package from a pybind11 wrapper.

The problem I have found is that lintian keeps complaining about:

E: python3-pymrpt: python-package-missing-depends-on-python
Finished running lintian.

despite the package has "python3" explicitly written by hand in d/control
[2]. I attach the output of "dpkg -I" for the final binary package, where
the "Depends: python3" is visible, so I don't know if this is a lintian
false positive or I'm missing something... hopefully you can help me out
with this! :-)

Also, any help looking at the d/control section for the new python3 package
in [2] to spot any possible problem would be appreciated!

Cheers,
JL

[1] https://salsa.debian.org/robotics-team/mrpt
[2]
https://salsa.debian.org/robotics-team/mrpt/-/blob/master/debian/control#L956-964


- --
/**
 * Jose Luis Blanco-Claraco
 * Universidad de Almería - Departamento de Ingeniería
 * [Homepage]( https://w3.ual.es/~jlblanco/ )
 * [GH profile]( https://github.com/jlblancoc )
 */
-BEGIN PGP SIGNATURE-
Version: FlowCrypt Email Encryption 8.4.8
Comment: Seamlessly send and receive encrypted email

wsFzBAEBCgAnBYJkq78aCZDUQzBPvXCmQRYhBHf2neQjGKO3Aa2EZNRDME+9
cKZBAACZsQ/+MQw0KdbHGhDWmAe9BG9ecdAtmYZLfWNlmw+WMjlEPpN+cZ7T
NcspxH/J3qhmQ8z9V/xPnfU4nfoXJj2ua7kmHJTwye51VF0LGlpDJFldRTVv
8QFK/AcvqOu23/vIhf/y6EyhMk5e0ASNsl02cIcJjpWz72RHjUyA68QHz0fs
nlIcyFGoeueIZJduVdzLgQwN4qz8IE+nD8zOMzWujUycFjiQLjq9/fSRD0kw
a2VRjth+1auwz0rMu28YU7GEgK1SMi2PNESJVTmfFUMCDCSNHRW7205IcHpb
kFAP/n56xPj54nqOive7tHPAzKGF7ihhYAspzTXKF92eR02PuU6EXqAmr6tz
P36+PU1b+GCzmrBtb0HN9+rrbA+gL5M8r1xitEq6iIvda+4UonNEbPj3hBQy
e2ssa4i/i1NH2ZEHXteQRFBPBZ079f//1/5RhPbGzuKMSjC83gzcfzUZ303R
LLh0C5GuqCdBT56OfPfDPGET06MOTdgkAqPqfKK/w+6JN8EBEBtot4veLhQy
4TjxScsCTXo44yQcE13WnC6ZBMRUOee337OTAtmztf1CsvTn5fmLJ0Jkylkc
DJZD2YOHS7zVWjSGygoFgEyOPLVtNCRozspQjldElRjOhROweotgWchzFXDT
tK0aBovseoa48bVBcfrOSQ+NyLsqyhubcuY=
=1opa
-END PGP SIGNATURE-
dpkg -I python3-pymrpt_2.10.0+ds-1_amd64.deb 

new Debian package, version 2.0.
size 4967520 bytes: control archive=2604 bytes.
1763 bytes,18 lines  control 
5888 bytes,62 lines  md5sums 
Package: python3-pymrpt
Source: mrpt
Version: 1:2.10.0+ds-1
Architecture: amd64
Maintainer: Jose Luis Blanco Claraco 
Installed-Size: 27772
Depends: phyton3, libc6 (>= 2.34), libgcc-s1 (>= 3.3.1), libmrpt-apps2.10 (>= 
1:2.10.0+ds), libmrpt-bayes2.10 (>= 1:2.10.0+ds), libmrpt-comms2.10 (>= 
1:2.10.0+ds), libmrpt-config2.10 (>= 1:2.10.0+ds), libmrpt-containers2.10 (>= 
1:2.10.0+ds), libmrpt-core2.10 (>= 1:2.10.0+ds), libmrpt-expr2.10 (>= 
1:2.10.0+ds), libmrpt-graphs2.10 (>= 1:2.10.0+ds), libmrpt-gui2.10 (>= 
1:2.10.0+ds), libmrpt-hwdrivers2.10 (>= 1:2.10.0+ds), libmrpt-img2.10 (>= 
1:2.10.0+ds), libmrpt-io2.10 (>= 1:2.10.0+ds), libmrpt-kinematics2.10 (>= 
1:2.10.0+ds), libmrpt-maps2.10 (>= 1:2.10.0+ds), libmrpt-math2.10 (>= 
1:2.10.0+ds), libmrpt-nanogui2.10 (>= 1:2.10.0+ds), libmrpt-nav2.10 (>= 
1:2.10.0+ds), libmrpt-obs2.10 (>= 1:2.10.0+ds), libmrpt-opengl2.10 (>= 
1:2.10.0+ds), libmrpt-poses2.10 (>= 1:2.10.0+ds), libmrpt-random2.10 (>= 
1:2.10.0+ds), libmrpt-rtti2.10 (>= 1:2.10.0+ds), libmrpt-serialization2.10 (>= 
1:2.10.0+ds), libmrpt-slam2.10 (>= 1:2.10.0+ds), libmrpt-system2.10 (>= 
1:2.10.0+ds), libmrpt-tfest2.10 (>= 1:2.10.0+ds), libmrpt-topography2.10 (>= 
1:2.10.0+ds), libmrpt-vision2.10 (>= 1:2.10.0+ds), libstdc++6 (>= 11)
Section: python
Priority: optional
Multi-Arch: same
Homepage: https://www.mrpt.org/
Description: Python wrapper for MRPT
  The Mobile Robot Programming Toolkit (MRPT) is an extensive, cross-platform,
  and open source C++ library aimed to help robotics researchers to design and
  implement algorithms in the fields of Simultaneous Localization and Mapping
  (SLAM), computer vision, and motion planning (obstacle avoidance).
  .
  This package contains a Python 3 wrapper for the C++ MRPT libraries.



0xD443304FBD70A641.asc
Description: application/pgp-keys