Hi Dmitry,

On Thu, Jan 31, 2019 at 10:56:37PM +0300, Dmitry Shachnev wrote:
> One thing bothers me: it is perfectly possible to use lrelease without qmake
> at all. All you need is have qttools5-dev-tools:native installed and call
> /usr/lib/qt5/bin/lrelease during build. You can do it from any non-qmake
> buildsystem, or even directly from debian/rules. I have a package that calls
> lrelease from Python’s setup.py (though this package is pure Python, so it is
> not affected in any case).

I've seen packages that call lrelease directly from debian/rules. I'm
not sure how you use lrelease without qmake though. When qmake is
missing, lrelease prints

    WARNING: Could not find qmake configuration file linux-g++.
    lrelease error: cannot process project file '$PROJECT.pro'.

and exits successfully without having done the work it was tasked to do.
Given that it fails silently (in violation of policy 4.6), I cannot
easily detect them.

So I agree that you can run lrelease outside qmake, but that doesn't
mean that it actually works or does anything useful in the absence of
qmake.

> Do you have a list of packages where adding qt5-qmake:native will actually
> make them cross-buildable?

#889752 #896699 #901212 #920850

Helmut

Reply via email to