r1138 - trunk/oe/classes
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Mon Feb 26 23:20:35 CET 2007
Author: laforge
Date: 2007-02-26 23:20:34 +0100 (Mon, 26 Feb 2007)
New Revision: 1138
Modified:
trunk/oe/classes/sourcepkg.bbclass
Log:
some packages (the only known so far is base-files) end up with src_dir=/ and
thus want to include the contents of the whole buildhost filesystem in their
source package.
This is not a fix, but a workaround. If the path is '/', we don't create
the source backage but rather print an error message into
$HOME/openembedded-source-missing.log
This needs a real fix. I know mickeyl reads the changelog :)
Modified: trunk/oe/classes/sourcepkg.bbclass
===================================================================
--- trunk/oe/classes/sourcepkg.bbclass 2007-02-26 16:32:34 UTC (rev 1137)
+++ trunk/oe/classes/sourcepkg.bbclass 2007-02-26 22:20:34 UTC (rev 1138)
@@ -40,8 +40,12 @@
cd ${WORKDIR}
src_tree=${@get_src_tree(d)}
echo $src_tree
- oenote "Creating ${DEPLOY_DIR_SRC}/${P}-${PR}-${DISTRO}-${DISTRO_VERSION}.tar.gz"
- tar cvzf ${DEPLOY_DIR_SRC}/${P}-${PR}-${DISTRO}-${DISTRO_VERSION}.tar.gz --ignore-failed-read $src_tree
+ if [ "${src_tree}" != "/" ]; then
+ oenote "Creating ${DEPLOY_DIR_SRC}/${P}-${PR}-${DISTRO}-${DISTRO_VERSION}.tar.gz"
+ tar cvzf ${DEPLOY_DIR_SRC}/${P}-${PR}-${DISTRO}-${DISTRO_VERSION}.tar.gz --ignore-failed-read $src_tree
+ else
+ echo "Not creating ${DEPLOY_DIR_SRC}/${P}-${PR}-${DISTRO}-${DISTRO_VERSION}.tar.gz because src_tree=/" >> ${HOME}/openembedded-source-missing.log
+ fi
}
EXPORT_FUNCTIONS do_archive_patched_sourcetree
More information about the commitlog
mailing list