[oe,meta-oe,02/16] postgresql: Depend on external libnsl

Message ID 20180509190011.30006-2-raj.khem@gmail.com
State New
Headers show
Series
  • [oe,meta-oe,01/16] poppler-data: Upgrade to 0.4.9
Related show

Commit Message

Khem Raj May 9, 2018, 6:59 p.m.
glibc has dropped libnsl support

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-dbs/postgresql/postgresql.inc       | 2 +-
 meta-oe/recipes-dbs/postgresql/postgresql_9.4.17.bb | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

-- 
2.17.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index 812c2aed48..5462332c56 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql.inc
+++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc
@@ -19,7 +19,7 @@  DESCRIPTION = "\
 "
 HOMEPAGE = "http://www.postgresql.com"
 LICENSE = "BSD"
-DEPENDS = "zlib readline tzcode-native"
+DEPENDS = "libnsl2 zlib readline tzcode-native"
 
 ARM_INSTRUCTION_SET = "arm"
 
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_9.4.17.bb b/meta-oe/recipes-dbs/postgresql/postgresql_9.4.17.bb
index 061184a6fa..8a01d8604b 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql_9.4.17.bb
+++ b/meta-oe/recipes-dbs/postgresql/postgresql_9.4.17.bb
@@ -5,10 +5,5 @@  LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6dc95e63aa4d72502ff8193dfe2ddd38"
 SRC_URI += "\
     file://not-check-libperl.patch \
 "
-
-do_compile_prepend_libc-musl() {
-    sed -i -e 's/\-lnsl//g' ${B}/src/Makefile.global
-}
-
 SRC_URI[md5sum] = "0a08f4078f5e4a54e764f63ad38a6de3"
 SRC_URI[sha256sum] = "7a320cd335052b840d209dc9688f09965763351c590e3cc7bf577591179fd7c6"