diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-02-06 10:49:39 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-08 10:59:06 +0000 |
| commit | bd7a3fd0f7a5b13bc1b3eef10bbc9d84f4889b6d (patch) | |
| tree | aba4d135931a6563847cff089483d7276fdfa559 /meta/lib/oeqa/runtime/cases | |
| parent | f31fe0b5b5c502ab56941cf8d77fb10427269ec3 (diff) | |
| download | poky-bd7a3fd0f7a5b13bc1b3eef10bbc9d84f4889b6d.tar.gz | |
buildcpio.py: Switch to using cpio-2.15
This helps in getting it building with newer architectures like riscv32
since it has upgraded gnulib over 2.14 which has the needed fixes.
Drop the -fno-common workaround as it is already applied to cpio
drop --disable-maintainer-mode
Fixes
configure: WARNING: unrecognized options: --disable-maintainer-mode
(From OE-Core rev: 18d303497089d3a7a893ee0eec5b0f0c78cca06d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/buildcpio.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/lib/oeqa/runtime/cases/buildcpio.py b/meta/lib/oeqa/runtime/cases/buildcpio.py index ce122ebcf9..7be734cb4f 100644 --- a/meta/lib/oeqa/runtime/cases/buildcpio.py +++ b/meta/lib/oeqa/runtime/cases/buildcpio.py | |||
| @@ -14,7 +14,7 @@ class BuildCpioTest(OERuntimeTestCase): | |||
| 14 | 14 | ||
| 15 | @classmethod | 15 | @classmethod |
| 16 | def setUpClass(cls): | 16 | def setUpClass(cls): |
| 17 | uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.14.tar.gz' | 17 | uri = 'https://downloads.yoctoproject.org/mirror/sources/cpio-2.15.tar.gz' |
| 18 | cls.project = TargetBuildProject(cls.tc.target, | 18 | cls.project = TargetBuildProject(cls.tc.target, |
| 19 | uri, | 19 | uri, |
| 20 | dl_dir = cls.tc.td['DL_DIR']) | 20 | dl_dir = cls.tc.td['DL_DIR']) |
| @@ -29,10 +29,6 @@ class BuildCpioTest(OERuntimeTestCase): | |||
| 29 | @OEHasPackage(['autoconf']) | 29 | @OEHasPackage(['autoconf']) |
| 30 | def test_cpio(self): | 30 | def test_cpio(self): |
| 31 | self.project.download_archive() | 31 | self.project.download_archive() |
| 32 | self.project.run_configure('--disable-maintainer-mode') | 32 | self.project.run_configure() |
| 33 | # This sed is needed until | ||
| 34 | # https://git.savannah.gnu.org/cgit/cpio.git/commit/src/global.c?id=641d3f489cf6238bb916368d4ba0d9325a235afb | ||
| 35 | # is in a release. | ||
| 36 | self.project._run(r'sed -i -e "/char \*program_name/d" %s/src/global.c' % self.project.targetdir) | ||
| 37 | self.project.run_make() | 33 | self.project.run_make() |
| 38 | self.project.run_install() | 34 | self.project.run_install() |
