From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id EE80E7489C for ; Tue, 22 May 2018 02:31:06 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w4M2U1rE017771 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 21 May 2018 19:30:57 -0700 Received: from pek-hostel-deb02.wrs.com (128.224.153.152) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Mon, 21 May 2018 19:30:06 -0700 From: To: Date: Tue, 22 May 2018 09:59:22 +0800 Message-ID: <20180522015922.21057-1-kai.kang@windriver.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Subject: [meta-networking][PATCH] postgresql: remove *_config from SSTATE_SCAN_FILES X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 02:31:07 -0000 Content-Type: text/plain From: Kai Kang 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. Signed-off-by: Kai Kang --- meta-oe/recipes-dbs/postgresql/postgresql.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 5462332c5..1301060ee 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc @@ -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 \ -- 2.14.1