diff options
author | Phil Blundell <philb@gnu.org> | 2004-07-03 22:21:41 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-07-03 22:21:41 +0000 |
commit | d0ef19ca9ab26886a2818ddd502039cfed0a1c96 (patch) | |
tree | 012e3655b92464ac96d5a6da765a84891bc209ea | |
parent | 581d4eb8af00ee427dcfa084175f09ec487e80b8 (diff) |
wrap generated ldconfig calls in $D checks
BKrev: 40e7317582sPh3mSU2gflgzY91cHpw
-rw-r--r-- | classes/package.oeclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/package.oeclass b/classes/package.oeclass index 0a960f8409..1c9cc53cbb 100644 --- a/classes/package.oeclass +++ b/classes/package.oeclass @@ -224,6 +224,14 @@ python populate_packages () { oe.build.exec_func("read_subpackage_metadata", d) } +ldconfig_postinst_fragment() { +if [ x"$D" != "x" ]; then + exit 1 +else + ldconfig +fi +} + python package_do_shlibs() { import os, re, os.path @@ -301,7 +309,7 @@ python package_do_shlibs() { postinst = oe.data.getVar('pkg_postinst_%s' % pkg, d, 1) or oe.data.getVar('pkg_postinst', d, 1) if not postinst: postinst = '#!/bin/sh\n' - postinst += 'ldconfig\n' + postinst += oe.data.getVar('ldconfig_postinst_fragment', d, 1) oe.data.setVar('pkg_postinst_%s' % pkg, postinst, d) for pkg in packages.split(): |