autotools.bbclass: Handle /lib as well as /usr/lib in autotools_stage_all
This commit is contained in:
parent
74e5d027b9
commit
4a3a35f81c
|
@ -175,6 +175,26 @@ autotools_stage_dir() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
autotools_stage_libdir() {
|
||||||
|
from="$1"
|
||||||
|
to="$2"
|
||||||
|
|
||||||
|
olddir=`pwd`
|
||||||
|
cd $from
|
||||||
|
las=$(find . -name \*.la -type f)
|
||||||
|
cd $olddir
|
||||||
|
echo "Found la files: $las"
|
||||||
|
for i in $las
|
||||||
|
do
|
||||||
|
sed -e 's/^installed=yes$/installed=no/' \
|
||||||
|
-e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \
|
||||||
|
-e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
|
||||||
|
-i $from/$i
|
||||||
|
done
|
||||||
|
autotools_stage_dir $from $to
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
autotools_stage_all() {
|
autotools_stage_all() {
|
||||||
if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
|
if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
|
||||||
then
|
then
|
||||||
|
@ -193,19 +213,11 @@ autotools_stage_all() {
|
||||||
fi
|
fi
|
||||||
if [ -d ${STAGE_TEMP}/${libdir} ]
|
if [ -d ${STAGE_TEMP}/${libdir} ]
|
||||||
then
|
then
|
||||||
olddir=`pwd`
|
autotools_stage_libdir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}
|
||||||
cd ${STAGE_TEMP}/${libdir}
|
fi
|
||||||
las=$(find . -name \*.la -type f)
|
if [ -d ${STAGE_TEMP}/${base_libdir} ]
|
||||||
cd $olddir
|
then
|
||||||
echo "Found la files: $las"
|
autotools_stage_libdir ${STAGE_TEMP}/${base_libdir} ${STAGING_DIR_HOST}${layout_base_libdir}
|
||||||
for i in $las
|
|
||||||
do
|
|
||||||
sed -e 's/^installed=yes$/installed=no/' \
|
|
||||||
-e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \
|
|
||||||
-e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
|
|
||||||
-i ${STAGE_TEMP}/${libdir}/$i
|
|
||||||
done
|
|
||||||
autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}
|
|
||||||
fi
|
fi
|
||||||
rm -rf ${STAGE_TEMP}/${mandir} || true
|
rm -rf ${STAGE_TEMP}/${mandir} || true
|
||||||
rm -rf ${STAGE_TEMP}/${infodir} || true
|
rm -rf ${STAGE_TEMP}/${infodir} || true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam/"
|
HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam/"
|
||||||
PR = "r5"
|
PR = "r6"
|
||||||
|
|
||||||
SRC_URI = "http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-1.0.2.tar.bz2"
|
SRC_URI = "http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-1.0.2.tar.bz2"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue