diff options
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/postgresql.inc')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index e609ac33e5..257d27b112 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
@@ -19,11 +19,11 @@ DESCRIPTION = "\ | |||
19 | " | 19 | " |
20 | HOMEPAGE = "http://www.postgresql.com" | 20 | HOMEPAGE = "http://www.postgresql.com" |
21 | LICENSE = "BSD-0-Clause" | 21 | LICENSE = "BSD-0-Clause" |
22 | DEPENDS = "libnsl2 zlib readline tzcode-native" | 22 | DEPENDS = "libnsl2 readline tzcode-native" |
23 | 23 | ||
24 | ARM_INSTRUCTION_SET = "arm" | 24 | ARM_INSTRUCTION_SET = "arm" |
25 | 25 | ||
26 | SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ | 26 | SRC_URI = "https://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ |
27 | file://postgresql.init \ | 27 | file://postgresql.init \ |
28 | file://postgresql-profile \ | 28 | file://postgresql-profile \ |
29 | file://postgresql.pam \ | 29 | file://postgresql.pam \ |
@@ -43,7 +43,6 @@ CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6" | |||
43 | SYSTEMD_SERVICE:${PN} = "postgresql.service" | 43 | SYSTEMD_SERVICE:${PN} = "postgresql.service" |
44 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" | 44 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" |
45 | 45 | ||
46 | DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-systemctl-native', '', d)}" | ||
47 | pkg_postinst:${PN} () { | 46 | pkg_postinst:${PN} () { |
48 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then | 47 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd sysvinit', 'true', 'false', d)}; then |
49 | if [ -n "$D" ]; then | 48 | if [ -n "$D" ]; then |
@@ -53,23 +52,29 @@ pkg_postinst:${PN} () { | |||
53 | fi | 52 | fi |
54 | } | 53 | } |
55 | 54 | ||
56 | enable_pam = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | 55 | PACKAGECONFIG ??= " \ |
57 | PACKAGECONFIG ??= "${enable_pam} openssl python uuid libxml tcl nls libxml perl" | 56 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)} \ |
58 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | 57 | openssl python uuid libxml tcl perl zlib \ |
59 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl ac_cv_file__dev_urandom=yes,openssl," | 58 | " |
60 | PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3" | ||
61 | PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux," | ||
62 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," | 59 | PACKAGECONFIG[tcl] = "--with-tcl --with-tclconfig=${STAGING_BINDIR_CROSS},--without-tcl,tcl tcl-native," |
63 | PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,," | ||
64 | PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2" | ||
65 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" | 60 | PACKAGECONFIG[perl] = "--with-perl,--without-perl,perl,perl" |
61 | PACKAGECONFIG[python] = "--with-python,--without-python,python3,python3" | ||
62 | PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5" | ||
63 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" | ||
64 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
65 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd systemd-systemctl-native" | ||
66 | PACKAGECONFIG[uuid] = "--with-uuid=e2fs,--without-uuid,util-linux" | ||
67 | PACKAGECONFIG[libxml] = "--with-libxml,--without-libxml,libxml2,libxml2" | ||
68 | PACKAGECONFIG[libxslt] = "--with-libxslt,--without-libxslt,libxslt" | ||
69 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" | ||
70 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4" | ||
71 | PACKAGECONFIG[openssl] = "--with-ssl=openssl,ac_cv_file__dev_urandom=yes,openssl" | ||
66 | 72 | ||
67 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ | 73 | EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ |
68 | --datadir=${datadir}/${BPN} \ | 74 | --datadir=${datadir}/${BPN} \ |
69 | --sysconfdir=${sysconfdir}/${BPN} \ | 75 | --sysconfdir=${sysconfdir}/${BPN} \ |
70 | " | 76 | " |
71 | EXTRA_OECONF:sh4 += "--disable-spinlocks" | 77 | EXTRA_OECONF:sh4 += "--disable-spinlocks" |
72 | EXTRA_OECONF:aarch64 += "--disable-spinlocks" | ||
73 | 78 | ||
74 | DEBUG_OPTIMIZATION:remove:mips = " -Og" | 79 | DEBUG_OPTIMIZATION:remove:mips = " -Og" |
75 | DEBUG_OPTIMIZATION:append:mips = " -O" | 80 | DEBUG_OPTIMIZATION:append:mips = " -O" |