Files
poky/meta/recipes-devtools
Changqing Li e5bd1a6b14 apt: fix nativesdk-apt build failure during the second time build
Run following commands:
bitbake nativesdk-apt
bitbake nativesdk-apt -c install -f

The second command's do_install will fail with following error:
| /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot-native/usr/bin/x86_64-wrlinuxsdk-linux/x86_64-wrlinuxsdk-linux-g++ -D_WITH_GETLINE=1 -Dapt_pkg_EXPORTS -I/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/include -I/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/include/apt-pkg --sysroot=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot  -O2 -pipe -fmacro-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0=/usr/src/debug/nativesdk-apt/2.4.5-r0                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0=/usr/src/debug/nativesdk-apt/2.4.5-r0                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot=                      -fdebug-prefix-map=/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot-native=  -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef -Wdouble-promotion -Wsuggest-override -Werror=suggest-override -Werror=return-type -std=gnu++17 -MD -MT apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -MF apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o.d -o apt-pkg/CMakeFiles/apt-pkg.dir/tagfile-keys.cc.o -c /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc
| /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc:1:10: fatal error: /include/apt-pkg/tagfile-keys.h: No such file or directory
|     1 | #include "/include/apt-pkg/tagfile-keys.h"
0/build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/build/apt-pkg/tagfile-keys.cc

During the first command, do_install task changed tagfile-keys.cc, this
will make tagfile-keys.cc is newer than the built tagfile-keys.cc.o. So the second
do_install will rebuild tagfile-keys.cc.o. But the header path is
replaced wrongly, so fix the header path

(From OE-Core rev: 3e18bd4dbddacfd878317ebcf0a039b46d6d6342)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-12 19:22:04 +01:00
..
2022-06-07 21:21:54 +01:00
2021-11-25 21:55:10 +00:00
2022-07-01 11:31:42 +01:00
2022-06-04 11:28:23 +01:00
2022-07-12 23:56:10 +01:00
2022-03-16 13:39:12 +00:00
2022-04-20 13:13:59 +01:00
2022-06-17 17:57:44 +01:00
2022-05-13 17:56:29 +01:00
2022-07-23 13:55:26 +01:00
2021-11-03 10:12:42 +00:00
2022-08-10 08:25:28 +01:00
2022-04-19 14:14:12 +01:00
2022-05-05 21:17:38 +01:00
2022-05-20 09:25:47 +01:00
2022-03-23 12:13:49 +00:00
2022-07-23 13:55:25 +01:00
2022-07-18 11:47:37 +01:00
2022-03-11 06:56:01 +00:00
2022-07-23 13:55:26 +01:00
2022-08-08 15:44:21 +01:00
2022-06-07 21:21:55 +01:00
2021-08-02 15:44:10 +01:00
2022-05-27 23:50:47 +01:00
2022-06-06 13:36:05 +01:00
2021-08-02 15:44:10 +01:00
2021-11-10 19:27:29 +00:00
2022-08-08 15:44:21 +01:00
2022-08-02 11:30:00 +01:00
2022-08-10 08:25:28 +01:00
2022-05-05 21:17:38 +01:00
2022-07-14 23:22:09 +01:00
2022-04-26 18:25:08 +01:00
2021-12-08 20:22:10 +00:00
2022-07-23 13:55:26 +01:00