* [PATCH] Angstrom: weak-assign DEPLOY_DIR
@ 2009-03-22 16:00 Matthieu Poullet
2009-03-22 16:27 ` Andrea Adami
0 siblings, 1 reply; 12+ messages in thread
From: Matthieu Poullet @ 2009-03-22 16:00 UTC (permalink / raw)
To: openembedded-devel; +Cc: Matthieu Poullet
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(-)
diff --git a/conf/distro/include/angstrom.inc b/conf/distro/include/angstrom.inc
index 60f2e55..7493055 100644
--- a/conf/distro/include/angstrom.inc
+++ b/conf/distro/include/angstrom.inc
@@ -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
--
1.5.6.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 16:00 [PATCH] Angstrom: weak-assign DEPLOY_DIR Matthieu Poullet
@ 2009-03-22 16:27 ` Andrea Adami
2009-03-22 16:40 ` Andrea Adami
2009-03-22 17:24 ` Denys Dmytriyenko
0 siblings, 2 replies; 12+ messages in thread
From: Andrea Adami @ 2009-03-22 16:27 UTC (permalink / raw)
To: openembedded-devel
+1 from me
Cannot cause any trouble!
Andrea
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 16:27 ` Andrea Adami
@ 2009-03-22 16:40 ` Andrea Adami
2009-03-22 17:24 ` Denys Dmytriyenko
1 sibling, 0 replies; 12+ messages in thread
From: Andrea Adami @ 2009-03-22 16:40 UTC (permalink / raw)
To: openembedded-devel
Acked-by: Andrea Adami (andrea.adami@gmail.com)
thx
Andrea
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 16:27 ` Andrea Adami
2009-03-22 16:40 ` Andrea Adami
@ 2009-03-22 17:24 ` Denys Dmytriyenko
2009-03-22 18:04 ` Andrea Adami
1 sibling, 1 reply; 12+ messages in thread
From: Denys Dmytriyenko @ 2009-03-22 17:24 UTC (permalink / raw)
To: openembedded-devel
On Sun, Mar 22, 2009 at 05:27:23PM +0100, Andrea Adami wrote:
> +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...
--
Denys
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 17:24 ` Denys Dmytriyenko
@ 2009-03-22 18:04 ` Andrea Adami
2009-03-22 23:30 ` Andrea Adami
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Adami @ 2009-03-22 18:04 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 18:04 ` Andrea Adami
@ 2009-03-22 23:30 ` Andrea Adami
2009-03-23 0:05 ` Tom Rini
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Adami @ 2009-03-22 23:30 UTC (permalink / raw)
To: openembedded-devel
Wait a moment:
if we weak-assign DEPLOY_DIR in angstrom.inc
DEPLOY_DIR ?= "${TMPDIR}/deploy/${ANGSTROMLIBC}"
then it takes the value from bitbake.conf?
DEPLOY_DIR ?= "${TMPDIR}/deploy"
Now doubtful...
Andrea
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-22 23:30 ` Andrea Adami
@ 2009-03-23 0:05 ` Tom Rini
2009-03-26 8:47 ` Andrea Adami
0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2009-03-23 0:05 UTC (permalink / raw)
To: openembedded-devel
On Mon, Mar 23, 2009 at 12:30:10AM +0100, Andrea Adami wrote:
> Wait a moment:
>
> if we weak-assign DEPLOY_DIR in angstrom.inc
> DEPLOY_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.
--
Tom Rini
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-23 0:05 ` Tom Rini
@ 2009-03-26 8:47 ` Andrea Adami
2009-03-26 9:31 ` Koen Kooi
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Adami @ 2009-03-26 8:47 UTC (permalink / raw)
To: openembedded-devel
was: DEPLOY_DIR out of TMPDIR
>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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-26 8:47 ` Andrea Adami
@ 2009-03-26 9:31 ` Koen Kooi
2009-03-26 10:23 ` Andrea Adami
0 siblings, 1 reply; 12+ messages in thread
From: Koen Kooi @ 2009-03-26 9:31 UTC (permalink / raw)
To: openembedded-devel
On 26-03-09 09:47, Andrea Adami wrote:
> 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
That breaks packaged-staging, so no, it isn't a fix.
regards,
Koen
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-26 9:31 ` Koen Kooi
@ 2009-03-26 10:23 ` Andrea Adami
2009-03-26 10:47 ` Koen Kooi
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Adami @ 2009-03-26 10:23 UTC (permalink / raw)
To: openembedded-devel
>that breaks packaged-staging, so no, it isn't a fix.
FWIW packaged-staging *is* already broken wrt these few recipes.
Andrea
Refs:
http://bugs.openembedded.net/show_bug.cgi?id=4580
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-26 10:23 ` Andrea Adami
@ 2009-03-26 10:47 ` Koen Kooi
2009-03-26 11:06 ` Andrea Adami
0 siblings, 1 reply; 12+ messages in thread
From: Koen Kooi @ 2009-03-26 10:47 UTC (permalink / raw)
To: openembedded-devel
On 26-03-09 11:23, Andrea Adami wrote:
>> 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] Angstrom: weak-assign DEPLOY_DIR
2009-03-26 10:47 ` Koen Kooi
@ 2009-03-26 11:06 ` Andrea Adami
0 siblings, 0 replies; 12+ messages in thread
From: Andrea Adami @ 2009-03-26 11:06 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-03-26 11:08 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-22 16:00 [PATCH] Angstrom: weak-assign DEPLOY_DIR Matthieu Poullet
2009-03-22 16:27 ` Andrea Adami
2009-03-22 16:40 ` Andrea Adami
2009-03-22 17:24 ` Denys Dmytriyenko
2009-03-22 18:04 ` Andrea Adami
2009-03-22 23:30 ` Andrea Adami
2009-03-23 0:05 ` Tom Rini
2009-03-26 8:47 ` Andrea Adami
2009-03-26 9:31 ` Koen Kooi
2009-03-26 10:23 ` Andrea Adami
2009-03-26 10:47 ` Koen Kooi
2009-03-26 11:06 ` Andrea Adami
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.