[OE-core] [PATCH 2/2] package_deb: Use apt-ftparchive
Richard Purdie
richard.purdie at linuxfoundation.org
Sun Mar 16 23:01:12 UTC 2014
On Thu, 2014-03-13 at 14:27 +0100, Ricardo Ribalda Delgado wrote:
> Use apt-ftparchive to create a Release file compatible with SecureApt.
>
> apt-ftparchive is not compatible with libpseudo. The calls to ftw()
> returns the path in absolute format instead of relative. This produces
> wrong Packages and Release files.
>
> ie:
> MD5Sum:
> d20227a958f6870137ce0e41b7b84307 1453
> /home/ricardo/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/all/Release
>
> This is why it is called with PSEUDO_UNLOAD.
>
> apt-ftparchive is also a more efficient replacement of dpkg-scanpackages:
>
> root at neopili:~/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/bobcat
> _64# time PSEUDO_UNLOAD=1 apt-ftparchive packages . >/tmp/kkk
> real 0m26.873s
> user 0m20.968s
> sys 0m1.212s
>
> root at neopili:~/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/bobcat
> _64# time PSEUDO_UNLOAD=1 dpkg-scanpackages . >/tmp/kkk
> dpkg-scanpackages: info: Wrote 6022 entries to output Packages file.
> real 0m59.721s
> user 0m16.668s
> sys 0m11.164s
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
> ---
> meta/classes/package_deb.bbclass | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
This doesn't apply against master? What was this tested against?
Cheers,
Richard
More information about the Openembedded-core
mailing list