summaryrefslogtreecommitdiff
path: root/packages/apt/apt-package.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-10-03 17:46:36 +0000
committerKoen Kooi <koen@openembedded.org>2006-10-03 17:46:36 +0000
commit4b7d466fa0ed0f88f14dd381d4e00276fa3ae83e (patch)
treebd4abece3ae69cf710b48b18f22f766518441ce9 /packages/apt/apt-package.inc
parentdac73415c1d8a09ab1c085b62c566496dc2b1711 (diff)
apt: sync with poky
Diffstat (limited to 'packages/apt/apt-package.inc')
-rw-r--r--packages/apt/apt-package.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/apt/apt-package.inc b/packages/apt/apt-package.inc
index 8c54741547..43f54cadab 100644
--- a/packages/apt/apt-package.inc
+++ b/packages/apt/apt-package.inc
@@ -36,7 +36,7 @@ apt-utils-manpages="doc/apt-extracttemplates.1 \
def get_files_apt_doc(d, bb, manpages):
import re
manpages = re.sub(r'\bdoc/(\S+)/(\S+)\.\1\.(.)\b', r'${mandir}/\1/man\3/\2.\3', manpages)
- manpages = re.sub(r'\bdoc/(\S+)\.(.)\b', r'${mandir}/man\3/\1.\3', manpages)
+ manpages = re.sub(r'\bdoc/(\S+)\.(.)\b', r'${mandir}/man\2/\1.\2', manpages)
return manpages
def get_commands_apt_doc(d, bb, manpages):
@@ -65,6 +65,7 @@ FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, bb.data.getVar('apt-utils-m
FILES_${PN}-dev = "${libdir}/libapt*.so"
do_install () {
+ set -x
${@get_commands_apt_doc(d, bb, bb.data.getVar('apt-manpages', d, 1))}
${@get_commands_apt_doc(d, bb, bb.data.getVar('apt-utils-manpages', d, 1))}
install -d ${D}${bindir}
@@ -76,10 +77,11 @@ do_install () {
install -m 0755 bin/apt-sortpkgs ${D}${bindir}/
install -m 0755 bin/apt-extracttemplates ${D}${bindir}/
- oe_libinstall -so -C bin libapt-pkg--6 ${D}${libdir}/
- ln -sf libapt-pkg--6.so ${D}${libdir}/libapt-pkg.so
- oe_libinstall -so -C bin libapt-inst--6 ${D}${libdir}/
- ln -sf libapt-inst--6.so ${D}${libdir}/libapt-inst.so
+ eval `cat environment.mak | grep ^GLIBC_VER | sed -e's, = ,=,'`
+ oe_libinstall -so -C bin libapt-pkg$GLIBC_VER-6 ${D}${libdir}/
+ ln -sf libapt-pkg$GLIBC_VER-6.so ${D}${libdir}/libapt-pkg.so
+ oe_libinstall -so -C bin libapt-inst$GLIBC_VER-6 ${D}${libdir}/
+ ln -sf libapt-inst$GLIBC_VER-6.so ${D}${libdir}/libapt-inst.so
install -d ${D}${libdir}/apt/methods
install -m 0755 bin/methods/* ${D}${libdir}/apt/methods/