mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-06 09:15:45 +01:00
postgresql: Break perl RDEPENDS
Currently, any non-native recipes that inherits cpan-base ends up with an image RDEPENDS on perl (via https://git.yoctoproject.org/poky/tree/meta/classes-recipe/cpan-base.bbclass?h=scarthgap#n14) If you are building an image and desire to have Postgresql installed but NOT perl, this creates a problem. This changeset attempts to fix this shortcoming by not inheriting cpan-base directly. Note this work is a continuation of attempts to change cpan-base: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15563 The Postgresql build system uses perl, so add it as a DEPENDS. This happened previously via the "inherit cpan-base" directive. I've validated this recipe successfully packages with and without the perl PACKAGECONFIG in Scarthgap. Signed-off-by: Barry Grussling <mr.scada@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
8106cfe769
commit
f311f1f01c
|
|
@ -19,7 +19,7 @@ DESCRIPTION = "\
|
|||
"
|
||||
HOMEPAGE = "http://www.postgresql.com"
|
||||
LICENSE = "0BSD"
|
||||
DEPENDS = "libnsl2 readline tzcode-native"
|
||||
DEPENDS = "libnsl2 readline tzcode-native perl"
|
||||
|
||||
ARM_INSTRUCTION_SET = "arm"
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ LEAD_SONAME = "libpq.so"
|
|||
export LDFLAGS_SL = "${LDFLAGS}"
|
||||
export LDFLAGS_EX_BE = "-Wl,--export-dynamic"
|
||||
|
||||
inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base multilib_header
|
||||
inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext perl-version multilib_header
|
||||
|
||||
CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
|
||||
|
||||
|
|
@ -122,6 +122,12 @@ python populate_packages:prepend() {
|
|||
|
||||
}
|
||||
|
||||
# Same as the function in cpan-base.bbclass (but without the perl RDEPENDS)
|
||||
def is_target(d):
|
||||
if not bb.data.inherits_class('native', d):
|
||||
return "yes"
|
||||
return "no"
|
||||
|
||||
# This will make native perl use target settings (for include dirs etc.)
|
||||
export PERLCONFIGTARGET = "${@is_target(d)}"
|
||||
export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user