[oe-issues] [Bug 3156] New: autotools_stage_all() tried to copy nonexistant files
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Mon Oct 15 04:28:22 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=3156
Summary: autotools_stage_all() tried to copy nonexistant files
Product: Openembedded
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: nelson at crynwr.com
I've run MokoMakeFile to pull down the prerequisites for building OpenMoko.
The resultant .../openembedded/classes/autotools.bbclass file has a bug in it.
autotools_stage_all() looks at ${STAGE_TEMP}/${includedir} and if it exists,
then it tries to copy files out of it. What if the package created an empty
directory? The patch below changes the code to only copy if files actually
exist.
--- /home/nelson/moko/openembedded/classes/autotools.bbclass.orig
2007-10-12 22:52:58.000000000 -0400
+++ /home/nelson/moko/openembedded/classes/autotools.bbclass 2007-10-12
22:47:07.000000000 -0400
@@ -169,7 +169,7 @@
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake DESTDIR="${STAGE_TEMP}" install
- if [ -d ${STAGE_TEMP}/${includedir} ]; then
+ if ls ${STAGE_TEMP}/${includedir}/* 2>/dev/null; then
cp -fpPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
fi
if [ -d ${STAGE_TEMP}/${libdir} ]
nelson at nelson-desktop:~/moko/build$ less
/home/nelson/moko/openembedded/classes/autotools.bbclass.orig
/home/nelson/moko/openembedded/classes/autotools.bbclass
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list