Angstrom: weak-assign DEPLOY_DIR
PATCH 1/1 Angstrom: weak-assign DEPLOY_DIR
Allow DEPLOY_DIR to be outside of TMPDIR,
so that it can be set in local.conf
--- conf/distro/include/angstrom.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
conf/distro/include/angstrom.inc +1 -1
@@ -21,7 +21,7 @@ ANGSTROMLIBC ?= "glibc" PSTAGE_EXTRAPATH = "${ANGSTROMLIBC}" CACHE = "${TMPDIR}/cache/${ANGSTROMLIBC}/${MACHINE}" -DEPLOY_DIR = "${TMPDIR}/deploy/${ANGSTROMLIBC}" +DEPLOY_DIR ?= "${TMPDIR}/deploy/${ANGSTROMLIBC}" require conf/distro/include/angstrom-${ANGSTROMLIBC}.inc # ARM920T and up can use thumb mode to decrease binary size at the expense of speed
Signature · 1 line
1.5.6.3
+1 from me
Cannot cause any trouble!
Andrea
Andrea Adami
Acked-byQuoted 5 lines · Andrea Adami
+1 from me
Cannot cause any trouble!
Andrea
Actually, only yesterday you mentioned about problems packaging a kernel when DEPLOY_DIR is outside of TMPDIR...
Signature · 1 line
Denys
Well, I reproduced the issue after long time. Still present.
http://www.hentges.net/irclogs/%23oe/2008/July/20080725_oe.log
[20080725 09:57:35] <ant|work> I already have /build/pstage
The 'fix' can be discuted but seems to work
Regards
Andrea
Wait a moment:
if we weak-assign DEPLOY_DIR in angstrom.incDEPLOY_DIR ?= "${TMPDIR}/deploy/${ANGSTROMLIBC}"
then it takes the value from bitbake.conf?DEPLOY_DIR ?= "${TMPDIR}/deploy"
Now doubtful...
Andrea
Quoted 7 lines · Andrea Adami
Wait a moment:
if we weak-assign
DEPLOY_DIRin angstrom.incDEPLOY_DIR?= "${TMPDIR}/deploy/${ANGSTROMLIBC}"then it takes the value from bitbake.conf?
DEPLOY_DIR?= "${TMPDIR}/deploy"
Sounds like Angstrom needs:USER_DEPLOY_DIR ?= "${TMPDIR}/deploy/${ANGSTROMLIBC}" DEPLOY_DIR = "${USER_DEPLOY_DIR}" if users are going to further override what the distro thinks is best.
Signature · 1 line
Tom Rini
was: DEPLOY_DIR out of TMPDIR
Quoted 4 lines
Sounds like Angstrom needs:
USER_DEPLOY_DIR?= "${TMPDIR}/deploy/${ANGSTROMLIBC}"DEPLOY_DIR= "${USER_DEPLOY_DIR}" if users are going to further override what the distro thinks is best.
As pointed out by Denix and me, we need changes to base.bbclass too:
package_stagefile_shell()
...
-destfile=echo $srcfile | sed s#${TMPDIR}#${PSTAGE_TMPDIR_STAGE}# +destfile=echo $srcfile | sed s#${DEPLOY_DIR}#${PSTAGE_TMPDIR_STAGE}#
...
I tested both patches building from scratch and using packaged staging.
Issues: the 5-6 recipes using package_stagefile_shell() are possibly broken...DEPLOY_DIR get sed out and the files are not found. I don't have a list here offhand, just grep...two of them are zaurus-updater and git.
I fixed locally zaurus-updater just avoiding to call the a.m. function
- package_stagefile_shell ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE}
+ cp -dp updater.sh ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE}
- package_stagefile_shell ${DEPLOY_DIR_IMAGE}/gnu-tar
+ cp -dp gnu-tar ${DEPLOY_DIR_IMAGE}/gnu-tar
Can I proceed and send the set of patches to the mailing list? Better ideas?
Regards
Andrea
Review
Quoted 7 lines · Andrea Adami
I fixed locally zaurus-updater just avoiding to call the a.m. function
(quoted diff) +2
-2- package_stagefile_shell ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE} + cp -dp updater.sh ${DEPLOY_DIR_IMAGE}/updater.sh.${MACHINE} - package_stagefile_shell ${DEPLOY_DIR_IMAGE}/gnu-tar + cp -dp gnu-tar ${DEPLOY_DIR_IMAGE}/gnu-tar
That breaks packaged-staging, so no, it isn't a fix.
regards,
Koen
Quoted 1 line
that breaks packaged-staging, so no, it isn't a fix.
FWIW packaged-staging *is* already broken wrt these few recipes.
Andrea
Quoted 3 lines · Andrea Adami
Quoted 1 line
that breaks packaged-staging, so no, it isn't a fix.
FWIW packaged-staging *is* already broken wrt these few recipes.
Only if you put deploy outside TMPDIR, which isn't the default and known to cause other issues. Your patch makes to go for "working, but broken for corner-cases" to "completely broken".
regards,
Koen
The fact is even the standard case (deploy_dir inside tmpdir) is broken...see
http://bugs.openembedded.net/show_bug.cgi?id=4234#c2
Sorry if I'm mixing apples with pears ;-)
Andrea