summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt
Commit message (Collapse)AuthorAgeFilesLines
* The poky repository master branch is no longer being updated.Richard Purdie2025-11-078-1096/+0
| | | | | | | | | | | | | | | | | | | | | You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: fix reproducibility issueHongxu Jia2025-09-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In oe-selftest of reproducibility, recipe apt has reproducibility issue: ... 2025-09-20 17:09:18,986 - oe-selftest - INFO - ====================================================================== 2025-09-20 17:09:18,986 - oe-selftest - INFO - FAIL: test_reproducible_builds (reproducible.ReproducibleTests) 2025-09-20 17:09:18,986 - oe-selftest - INFO - ---------------------------------------------------------------------- 2025-09-20 17:09:18,986 - oe-selftest - INFO - Traceback (most recent call last): File "/buildarea5/hjia/contrib/openembedded-core-contrib/meta/lib/oeqa/selftest/cases/reproducible.py", line 406, in test_reproducible_builds self.fail('\n'.join(fails)) AssertionError: The following deb packages are different and not in exclusion list: build-st/reproducibleB-extended/tmp/deploy/deb/./x86-64-v3/apt-dbg_3.0.3-r0_amd64.deb build-st/reproducibleB-extended/tmp/deploy/deb/./x86-64-v3/apt_3.0.3-r0_amd64.deb The following ipk packages are different and not in exclusion list: build-st/reproducibleB-extended/tmp/deploy/ipk/./x86-64-v3/apt-dbg_3.0.3-r0_x86-64-v3.ipk build-st/reproducibleB-extended/tmp/deploy/ipk/./x86-64-v3/apt_3.0.3-r0_x86-64-v3.ipk The following rpm packages are different and not in exclusion list: build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/apt-3.0.3-r0.x86_64_v3.rpm build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/apt-dbg-3.0.3-r0.x86_64_v3.rpm ... Due to upstream apt commit [1], it calls `id -gn root' in cmake to set ROOT_GROUP if not define. The output of `id -gn root' may differ in the compared builds which caused reproducibility issue ... |build-st/reproducibleB-extended/tmp/work/x86-64-v3-oe-linux/apt/ 3.0.3/temp/log.do_configure:124:-- Found root group: wheel ... |build-st/reproducibleA/tmp/work/x86-64-v3-oe-linux/apt/3.0.3/ temp/log.do_configure:124:-- Found root group: root ... Explicitly set ROOT_GROUP = "root" for cmake other than call `id -gn root' to support reproducibility [1] https://salsa.debian.org/apt-team/apt/-/commit/6f1f3c9afdb6ade6a7be110b90c8fc9e603254cf (From OE-Core rev: 5b3d5ae626b0d28535973be2a8a1cf48d314ba12) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Always use libstdc++ when using clang compilerKhem Raj2025-09-181-0/+4
| | | | | | | | | | | | apt is not portable across non libstdc++ systems yet there is work to get it there but its still in progress Default to use libstdc++ with clang (From OE-Core rev: ad14432a516db4d4752b9905d1a7127942b142ea) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.6.1 -> 3.0.3Gyorgy Sarvari2025-09-0813-263/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: https://metadata.ftp-master.debian.org/changelogs/main/a/apt/apt_3.0.3_changelog Dropped patches which are included in this release, or became obsolete: 0001-Fix-compilation-error-with-clang-libc-18.patch - included in this release 0001-Fix-musl-build.patch - included in this release 0001-Raise-cmake_minimum_required-to-3.13-to-avoid-warnin.patch - included in this release 0001-Remove-using-std-binary_function.patch - became obsolete, fixed upstream 0001-aptwebserver.cc-Include-array.patch - became obsolete, fixed upstream 0001-strutl-Add-missing-include-cstdint-gcc-15.patch - included in this release Added a new patch to avoid compilation error with musl: error: 'basename' was not declared in this scope; did you mean 'rename'? Adapted DEPENDS list - gnutls and gcrypt dependencies were dropped in favor of openssl in version 2.9.19. Added a new PACKAGECONFIG, 'usrmerge', which displays a gentle warning if the system isn't a usrmerge system during package installation. Added new COMMON_ARCH CMake argument - if it is not defined, CMake is trying to determine the value of this variable by running dpkg, which is usually a futile endeavour. It is used in config creation, and to print some system info. Also adapt a self test: the apt-key command has been deprecated since a while, and in this release it was completely removed. Instead sources.list file contains the signature data, on a per-repository basis. (From OE-Core rev: 1413a6144679a8347a3487f1950612ee20ff382c) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix build with clang and libc++Khem Raj2025-07-282-0/+30
| | | | | | | | | | | Backport a fix to address random access iterator's expectation of being const-qualified inside libc++ std::__insertion_sort_unguarded implementation (From OE-Core rev: cfd74da11a5290b2e555e2f9f06779f816324ee1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Backport patch to support builds with CMake 4+Moritz Haase2025-07-072-0/+48
| | | | | | | | | | | There have been a number of upstream releases that ship this patch already, but given that the most recent ones are considered experimental, I opted to backport instead. (From OE-Core rev: 84c1e99b74322b2f0fd2ecf256586ea618153547) Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: remove 0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patchAlexander Kanavin2025-04-102-49/+0
| | | | | | | | | | | | The recipe unconditionally disables seccomp, so the code isn't even compiled. If this needs to come back in the future please submit upstream first. (From OE-Core rev: 9d058504213f79979a7f1f59527172b71df95a71) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix build with GCC 15Khem Raj2025-03-272-0/+27
| | | | | | | (From OE-Core rev: ac53f79999bb8301380d7c58025f6fed75e40c9a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt-native: don't let dpkg overwrite files by defaultChangqing Li2024-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | With --force-overwrite (implied by --force-all), dpkg will not abort when a package overwrites files from different packages. As this can also lead to "The following package disappeared from your system as all files have been overwritten by other packages: <package>" and subsequently broken dependencies, this makes the simple case of conflicting files hard to debug. Instead of finding all possibly required force options, only disable overwrite for now. (From OE-Core rev: 30cc69f094729e3d11dc6021daf77f5038c4de61) (From OE-Core rev: cb95ba079960411775c57ab864d266e15a6292d1) Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Take back from https://git.openembedded.org/openembedded-core/commit/?id=4292387ef6c4e80428bad6a07c844a288b27d9a1 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Start WORKDIR -> UNPACKDIR transitionRichard Purdie2024-05-211-1/+1
| | | | | | | | | Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR. (From OE-Core rev: 1f18b9a512800860d5153d89eb82b56388efad6f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Upgrade to v2.6.1Sudip Mukherjee2023-06-011-1/+1
| | | | | | | | | | | Changes: Update sha256sum for new version (From OE-Core rev: 5eb6c747f8b25cd16125307a51470463c02dffd3) Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Upgrade to v2.6.0Sudip Mukherjee2023-05-057-143/+13
| | | | | | | | | | | | | | Changes: Rebase patches for upstream changes Remove upstream applied patches Update homepage Update sha256sum for new version (From OE-Core rev: 2e42fb105e474b5ab25f2d2ded55124838b39e8d) Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: re-enable version checkAlexander Kanavin2023-03-111-2/+0
| | | | | | | | | | 2.6.0 is out and so we can check for latest version again. (From OE-Core rev: 9851579eeebbdced9e770c4828f521b359e0306f) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: fix do_package_qa failureChangqing Li2023-02-021-0/+1
| | | | | | | | | | | | | | bitbake nativesdk-apt failed with error: ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected to be empty [empty-dirs] an empty dir apt is installed under /var/log/, fix the failure by removing the empty dir apt as what we have done for target. apt will create it when it does not exist. (From OE-Core rev: 5b035a59d7915da784f1e6678ee130f30d7ceb8a) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: add missing <cstdint> for uint16_tKhem Raj2023-01-242-0/+36
| | | | | | | | (From OE-Core rev: 8c46ded67df2d830c8bbf5f7b82d75db81d797e2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix type mismatches and ptest buildsKhem Raj2022-09-203-0/+93
| | | | | | | | | These issues are found with clang15 (From OE-Core rev: 43ac1ce1df152753d9c92360942d99add81bd4ca) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Do not use std::binary_functionKhem Raj2022-08-174-4/+92
| | | | | | | | | This feature is removed from c++17 (From OE-Core rev: 7fcf108c4e115077cf01754c37bb8ce216c24dc8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: fix nativesdk-apt build failure during the second time buildChangqing Li2022-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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>
* apt: fix upstream version checkAlexander Kanavin2022-05-271-2/+8
| | | | | | | | (From OE-Core rev: da784aae3014d82039a5404d9b871b44ecd4aa52) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.4.4 -> 2.4.5wangmy2022-04-221-1/+1
| | | | | | | | (From OE-Core rev: 6a6462fd0ab140b554f4bda260e26b938cd44dc2) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.4.3 -> 2.4.4wangmy2022-04-191-1/+1
| | | | | | | | (From OE-Core rev: c63741294c6322e6657f485034e434aab9fe2d8d) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.4.0 -> 2.4.3wangmy2022-03-292-8/+6
| | | | | | | | | | | 0001-aptwebserver.cc-Include-array.patch refreshed for new version. (From OE-Core rev: e147934d8dcb31a33ec3396d31a09aa9cdae2a90) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.2.4 -> 2.4.0Alexander Kanavin2022-03-094-51/+6
| | | | | | | (From OE-Core rev: dabd96bd0b663300b7d6d2e820bafe5b5c70a314) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-201-1/+1
| | | | | | | | | | | | | license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: drop unneeded chunk from a musl patch, submit the rest upstreamAlexander Kanavin2021-11-251-26/+9
| | | | | | | | | Upstream has inserted guards around the use of offending constant. (From OE-Core rev: 67cf70f17e9b7afe7ee6416f80545be57714fcd9) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Do not install /var/log/apt for targetPeter Kjellerstedt2021-11-031-14/+16
| | | | | | | | | | | | | /var/log is normally a link to /var/volatile/log and /var/volatile is a tmpfs mount. So anything created in /var/log will not be available when the tmpfs is mounted. Also some whitespace clean up. (From OE-Core rev: 876d09bd42e24db3a498148e3305fb27f70ceda0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-021-11/+11
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: update 2.2.3 -> 2.2.4Alexander Kanavin2021-06-173-3/+3
| | | | | | | (From OE-Core rev: 56f17fb466a35af7ed80df08bf05970a9fe25c9b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Add missing <array> headerKhem Raj2021-05-282-0/+33
| | | | | | | | | This issue is seen with clang/libc++ (From OE-Core rev: 65e9606bae6bcd849e3e30f3ce093ee64838b774) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: upgrade 2.2.2 -> 2.2.3Alexander Kanavin2021-05-253-3/+3
| | | | | | | (From OE-Core rev: 78fb660b67488bdd7e29ca606c22d0a06c5a309f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix build on musl when seccomp is enabledKhem Raj2021-04-262-0/+49
| | | | | | | | (From OE-Core rev: 3ffce694d75977895557ff61f27b627c1a11be12) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Disable libseccompRichard Purdie2021-04-261-0/+1
| | | | | | | | | | | | This isn't in DEPENDS and isn't configured. It can detect the library when pulled in via other dependencies meaning the build isn't deterministic. Ultimately this could become a PACKAGECONFIG. It doesn't build on musl so disable it for now until someone fixes and sorts this out properly. (From OE-Core rev: 1425fe0f28a31b1d4004736b9edb036680e12c92) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix do_compile error when enable ccacheChen Qi2021-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: f8aa80a8fc777464f20e864b53af0582487d0387) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Do not disable NLSKhem Raj2021-03-232-1/+39
| | | | | | | | | | Add a patch to disable cmake po targets (From OE-Core rev: 28ba2ddcf73400263ae8409f64190d5f109c44b8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Support old resolver as fallbackKhem Raj2021-03-232-1/+46
| | | | | | | | | | | | Not all C libraries implement the new resolver APIs e.g. musl, therefore keep the old interfaces around and choose using __RES version macro which is meant for this kind of work. (From OE-Core rev: 7450cae1d886abe0d6c7b738a9001579c2b530e0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: update 1.8.2.2 -> 2.2.2Alexander Kanavin2021-03-236-105/+14
| | | | | | | | | | | | | | | Drop 0001-test-libapt-do-not-use-gtest-from-the-host.patch (replaced by WITH_TESTS option). Drop 0001-Do-not-configure-packages-on-installation.patch (no longer necessary). Adjust build dependencies. (From OE-Core rev: f0ede019c828249688e2b287b7845f4ebd2d6203) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/recipes-devtools: Add HOMEPAGE / DESCRIPTIONDorinda2021-02-261-0/+2
| | | | | | | | | | | Added HOMEPAGE and DESCRIPTION for recipes with missing decriptions or homepage [YOCTO #13471] (From OE-Core rev: bb05814335e7101bfd8df0a11dc18a044e867bed) Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Upgrade 1.8.2.1 -> 1.8.2.2Richard Purdie2021-02-231-1/+1
| | | | | | (From OE-Core rev: 9c04f9dca26eabdf71a432492d4b718805fda8f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix do_compile error when enable ccacheRobert Yang2021-01-201-1/+5
| | | | | | | | | | | | | | 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. (From OE-Core rev: 0aa7d612b8b7e5f14b4ed38f2a32b3f7eefca31c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: add nativesdk supporthongxu2021-01-161-3/+22
| | | | | | | | | | | | | | | | | | | | 1. Add nativesdk support - Apply the same patches of native - Generate the same apt.conf.sample of native 2. Create user '_apt' to fix apt runtime warning [snip] $ apt update ... W: No sandbox user '_apt' on the system, can not drop privileges [snip] RP: Add comment about need to user RP: Add user to selftest static-passwd (From OE-Core rev: be36b825ada573b2a7df9884eaab78664928594a) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: remove host contamination with gtestAlexander Kanavin2020-10-305-3/+44
| | | | | | | (From OE-Core rev: 41aa60cdb1e26617e1eeac95a6ffcdd6561c539f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: update to 1.8.2.1Alexander Kanavin2020-06-0429-847/+1007
| | | | | | | | | I took the opportunity to rewrite the recipe from scratch; there was just too much baggage in it. (From OE-Core rev: f058272de9cba188d96940c8c921cf31727fe4d1) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: The C.UTF-8 locale is not portableAdrian Bunk2020-05-152-0/+28
| | | | | | | (From OE-Core rev: 1df7f2874de6af8846ca218d0467369768a56aa0) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Remove workarounds for host gcc < 5Adrian Bunk2020-05-154-162/+1
| | | | | | | (From OE-Core rev: f905eabaeb6b32ac9f3d6d8695fe9f8628c1bec5) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt-native: don't let dpkg overwrite files by defaultJan Luebbe2020-04-061-1/+1
| | | | | | | | | | | | | | | | | With --force-overwrite (implied by --force-all), dpkg will not abort when a package overwrites files from different packages. As this can also lead to "The following package disappeared from your system as all files have been overwritten by other packages: <package>" and subsequently broken dependencies, this makes the simple case of conflicting files hard to debug. Instead of finding all possibly required force options, only disable overwrite for now. (From OE-Core rev: 4292387ef6c4e80428bad6a07c844a288b27d9a1) Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Inherit upstream-version-is-evenAdrian Bunk2020-02-251-1/+1
| | | | | | | | | Even versions are shipped in Ubuntu LTS and Debian releases. (From OE-Core rev: e190bf44ed2aef03ce8922dfbb0bb90a762bb41d) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: simplify over descriptive descriptions in devtoolsMaxime Roussin-Bélanger2019-10-151-1/+1
| | | | | | | | | | | | fix commandline -> command-line typo. according to: https://en.wikipedia.org/wiki/Command-line_interface https://wiki.debian.org/Apt (From OE-Core rev: ca7570d8c32c7cb5e3c620eee732fe070f4c6cb1) Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: add missing some description in devtoolsMaxime Roussin-Bélanger2019-10-081-0/+3
| | | | | | | (From OE-Core rev: 57075f3dede7ad25163deaf6686221dbe1b5ad02) Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: add a missing perl runtime dependencyAlexander Kanavin2019-08-081-0/+1
| | | | | | | | | /usr/lib/dpkg/methods/apt/setup is a perl script. (From OE-Core rev: a96de885e122bd31e3382d6ecf6f665680e9db71) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: update to 1.2.31Oleksandr Kravchuk2019-06-303-2/+2
| | | | | | | (From OE-Core rev: b414b95a0e0fc5b5e1403272eaaf59e0bec6da06) Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>