mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 20:59:42 +01:00
buildcpio.py: Apply patch to fix build with -fno-common
This sed expression implements the needed patch to fix compilation with -fno-common, hopefully this patch will get included in 2.14 release and we can remove this operation (From OE-Core rev: 77b2e00c37c661a502bb47fcbbeb2e71aca5b9ce) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -27,6 +27,7 @@ class BuildCpioTest(OERuntimeTestCase):
|
||||
@OEHasPackage(['autoconf'])
|
||||
def test_cpio(self):
|
||||
self.project.download_archive()
|
||||
self.project.run_configure('--disable-maintainer-mode','')
|
||||
self.project.run_configure('--disable-maintainer-mode',
|
||||
'sed -i -e "/char \*program_name/d" src/global.c;')
|
||||
self.project.run_make()
|
||||
self.project.run_install()
|
||||
|
||||
@@ -28,6 +28,7 @@ class BuildCpioTest(OESDKTestCase):
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
self._run("sed -i -e '/char.*program_name/d' {source}/src/global.c".format(**dirs))
|
||||
self._run("cd {build} && {source}/configure --disable-maintainer-mode $CONFIGURE_FLAGS".format(**dirs))
|
||||
self._run("cd {build} && make -j".format(**dirs))
|
||||
self._run("cd {build} && make install DESTDIR={install}".format(**dirs))
|
||||
|
||||
Reference in New Issue
Block a user