From 14cc2181163076440c4cae97fc674d8910f53b09 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sun, 19 Oct 2008 11:16:57 +0100 Subject: package.bbclass: don't output postinst for ldconfig if USE_LDCONFIG=0 --- classes/package.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/package.bbclass b/classes/package.bbclass index a12bfb0a21..0601885046 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -594,6 +594,11 @@ python package_do_shlibs() { else: snap_symlinks = False + if (bb.data.getVar('USE_LDCONFIG', d, True) or "1") == "1": + use_ldconfig = True + else: + use_ldconfig = False + needed = {} private_libs = bb.data.getVar('PRIVATE_LIBS', d, 1) for pkg in packages.split(): @@ -647,7 +652,7 @@ python package_do_shlibs() { fd.write(ver + '\n') fd.close() package_stagefile(shver_file, d) - if needs_ldconfig: + if needs_ldconfig and use_ldconfig: bb.debug(1, 'adding ldconfig call to postinst for %s' % pkg) postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1) if not postinst: -- cgit v1.2.3 From 9f36d760101aa3497538fe433d01e793e91c7776 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sun, 19 Oct 2008 20:35:37 +0100 Subject: autotools: also stage python files in ${prefix}/lib --- classes/autotools.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes') diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index b4e78f8118..82b5311ef5 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -190,6 +190,10 @@ autotools_stage_all() { autotools_stage_dir ${STAGE_TEMP}/${base_bindir} ${STAGING_DIR_HOST}${layout_base_bindir} autotools_stage_dir ${STAGE_TEMP}/${base_sbindir} ${STAGING_DIR_HOST}${layout_base_sbindir} autotools_stage_dir ${STAGE_TEMP}/${libexecdir} ${STAGING_DIR_HOST}${layout_libexecdir} + if [ "${prefix}/lib" != "${libdir}" ]; then + # python puts its files in here, make sure they are staged as well + autotools_stage_dir ${STAGE_TEMP}/${prefix}/lib ${STAGING_DIR_HOST}${layout_prefix}/lib + fi fi if [ -d ${STAGE_TEMP}/${libdir} ] then -- cgit v1.2.3