]> code.ossystems Code Review - openembedded-core.git/commit
apt: Fix do_compile error when enable ccache
authorChen Qi <Qi.Chen@windriver.com>
Wed, 31 Mar 2021 10:46:08 +0000 (18:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Apr 2021 14:28:25 +0000 (15:28 +0100)
commitf8aa80a8fc777464f20e864b53af0582487d0387
treee7bc8902d04c71bde3a459c7ff22b6cb18472c7d
parentfd2b8986aef11609123da917aaf6bcbe41f63112
apt: Fix do_compile error when enable ccache

When apt was upgraded, the '-DCMAKE_DISABLE_FIND_PACKAGE_Zstd=True'
was dropped. However, it was there to fix do_compile error when ccache is
enabled. See details in the following commit.

"""
commit 0aa7d612b8b7e5f14b4ed38f2a32b3f7eefca31c
Author: Robert Yang <liezhi.yang@windriver.com>
Date:   Tue Jan 19 01:23:45 2021 -0800

    apt: Fix do_compile error when enable ccache

    Fixed:
        apt-pkg/libapt-pkg.so.5.0.2: undefined reference to `ZSTD_endStream'
    collect2: error: ld returned 1 exit status

    This is because ccache-native depends on zstd-native which makes apt wronly
        find it. Disable zstd for apt to fix the problem.
"""

Now we are meeting do_compile failure again when enabling ccache, so add it
back to solve the problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/apt/apt_2.2.2.bb