postgresql: remove *_config from SSTATE_SCAN_FILES
PATCH 1/1 postgresql: remove *_config from SSTATE_SCAN_FILES
From: Kai Kang <[email protected]>
It fails to run command pg_config with segment fault. The root cause is function sstate_hardcode_path takes elf file pg_config as a configure file and edits it with 'sed'.
And then file pg_config is corrupt:
$ readelf -a package/usr/bin/pg_config >/dev/null readelf: Error: Unable to read in 0x700 bytes of section headers readelf: Error: Section headers are not available!
There is not other '*_config' file installed by postgresql except pg_config, so remove '*_config' from SSTATE_SCAN_FILES for postgresql.
--- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-dbs/postgresql/postgresql.inc +1 -0
@@ -202,6 +202,7 @@ do_install_append() { } SSTATE_SCAN_FILES += "Makefile.global" +SSTATE_SCAN_FILES_remove = "*_config" PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ libecpg-compat-dbg libecpg-compat libecpg-compat-dev \
Signature · 1 line
2.14.1
Please ignore this one with wrong title prefix layer meta-networking.
--Kai
Quoted 31 lines · On 2018年05月22日 09:59, [email protected] wrote:
From: Kai Kang <[email protected]>
It fails to run command
pg_configwith segment fault. The root cause is functionsstate_hardcode_pathtakes elf filepg_configas a configure file and edits it with 'sed'.And then file
pg_configis corrupt:$ readelf -a package/usr/bin/pg_config >/dev/null readelf: Error: Unable to read in 0x700 bytes of section headers readelf: Error: Section headers are not available!There is not other '
*_config' file installed by postgresql exceptpg_config, so remove '*_config' fromSSTATE_SCAN_FILESfor postgresql.Signed-off-by Kai Kang <[email protected]>--- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-dbs/postgresql/postgresql.inc +1
-0@@ -202,6 +202,7 @@ do_install_append() { } SSTATE_SCAN_FILES += "Makefile.global" +SSTATE_SCAN_FILES_remove = "*_config" PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ libecpg-compat-dbg libecpg-compat libecpg-compat-dev \
Signature · 2 lines
Regards, Neil | Kai Kang