[Buildroot] [PATCH v6 09/28] package/quazip: Convert to qmake infra
Andreas Naumann
dev at andin.de
Sat Mar 14 21:52:25 UTC 2020
Hi Thomas,
On 11.03.20 22:42, Thomas Petazzoni wrote:
> On Tue, 18 Feb 2020 11:00:07 +0100
> Andreas Naumann <dev at andin.de> wrote:
>
>>> A prefix of $(STAGING_DIR)/usr looks wrong, as prefix is normally where
>>> the things will be once installed in the target. Do we really need to
>>> do this change?
>>
>> I agree it's probably not how PREFIX is intended to be used. But after
>> all the project doesnt seem to support cross-compile/install properly as
>> you can see by the need to explicitly set INSTALL_ROOT to a different
>> path for staging/target.
>
> Well, in fact the current install procedure for quazip is perfect, as
> you don't have to do the horrible rsync dance that we have to do for
> other Qt packages. The fact that INSTALL_ROOT is different for staging
> and target is *perfect*, it is exactly how INSTALL_ROOT should be have
> in the first place: like DESTDIR.
I couldn't agree more, if INSTALL_ROOT would not touch the destination
for host-files the whole thing would be much easier. But, it isnt that
quazip works better than other packages. It's just simpler because it
doesnt have any files for host.
>
> So I'd really like to see more research done on this package, to
> understand why we need to bogus PREFIX= variable, and make sure it
> behaves like other packages.
Again, the quazip.pro uses PREFIX directly as install destination, so
it's not aware of the sysroot/staging pathes for cross-compiles. This
could probably be changed by patching it to use QT_INSTALL_PREFIX (which
is prefixed with the staging path, if set). I dont know if that would
break other things or require more changes in the project file.
>
> It would in fact be ideal if all other Qt packages could properly
> support INSTALL_ROOT like quazip does.
See above. It's not the packages fault but how qmake uses INSTALL_ROOT.
best regards,
Andreas
>
> Best regards,
>
> Thomas
>
More information about the buildroot
mailing list