DEPLOY_DIR / packaged staging / persistent toolchains
Hi folks,
I just stumbled over something that surprises me. I have set DEPLOY_DIR outside TMP for a while (which works fine). Now when I remove the TMPDIR to start a new build from scratch, I can no longer build anything. Apparantly OE thinks I do no longer need a toolchain, since it does not attempt to built one. I need to remove the whole DEPLOY_DIR to be able to do any builds again.
Wasn't the idea of packaged staging to be able to keep core packages and the toolchain intact when removing TMPDIR? If I understodd this wrong, how can I do something like that these days? Would it be sufficient to set CROSS_DIR outside TMPDIR?
Cheers,
Mickey.
Quoted 8 lines · Michael 'Mickey' Lauer
Hi folks,
I just stumbled over something that surprises me. I have set
DEPLOY_DIRoutside TMP for a while (which works fine). Now when I remove the TMPDIR to start a new build from scratch, I can no longer build anything. Apparantly OE thinks I do no longer need a toolchain, since it does not attempt to built one. I need to remove the wholeDEPLOY_DIRto be able to do any builds again.
Quoted 4 lines
Wasn't the idea of packaged staging to be able to keep core packages and the toolchain intact when removing TMPDIR? If I understodd this wrong, how can I do something like that these days? Would it be sufficient to set
CROSS_DIRoutside TMPDIR?
Mickey,
Are you overwriting DEPLOY_DIR_PSTAGE from its default ${DEPLOY_DIR}/pstage?
Otherwise it should work and should populate CROSS_DIR from pstage. There is one little quirk - if you don't have opkg in your system PATH, you may need to remove opkg packages from pstage to force rebuilding and installing it. Its a chicken and egg problem - opkg-native binary is in .ipk and in order to install and use it you need opkg-native...
Signature · 1 line
Denys
Quoted 4 lines · Denys Dmytriyenko
if you don't have opkg in your system PATH, you may need to remove opkg packages from pstage to force rebuilding and installing it. Its a chicken and egg problem - opkg-native binary is in .ipk and in order to install and use it you need opkg-native...
That's not true:
PSTAGE_PKGMANAGER = "stage-manager-ipkg"
[..]
pkgmanager = bb.which(path, 'opkg-cl')
if pkgmanager == "":
pkgmanager = bb.which(path, 'ipkg-cl')
if pkgmanager != "":
bb.data.setVar("PSTAGE_PKGMANAGER", pkgmanager, d)
stage-manager-ipkg is a shell script (flashback to the original ipkg implementation), which will get used till opkg-cl is found in $PATH.
regards,
Koen
Quoted 20 lines · Koen Kooi
Quoted 5 lines · Denys Dmytriyenko
if you don't have opkg in your system PATH, you may need to remove opkg packages from pstage to force rebuilding and installing it. Its a
chicken and egg problem - opkg-native binary is in .ipk and in order to install and use it you need opkg-native...That's not true:
PSTAGE_PKGMANAGER= "stage-manager-ipkg"[..]
pkgmanager =
bb.which(path, 'opkg-cl')
if pkgmanager == "":
pkgmanager =bb.which(path, 'ipkg-cl')
if pkgmanager != "":
bb.data.setVar("PSTAGE_PKGMANAGER", pkgmanager, d)
Quoted 2 lines
stage-manager-ipkg is a shell script (flashback to the original ipkg implementation), which will get used till opkg-cl is found in $PATH.
Hmm, good to know - thanks! I wonder why it doesn't always work, as reported on irc? The workaround so far was to delete the opkg package from pstage...
Signature · 1 line
Denys
Quoted 21 lines · Denys Dmytriyenko
Quoted 20 lines · Koen Kooi
Quoted 5 lines · Denys Dmytriyenko
if you don't have opkg in your system PATH, you may need to remove opkg packages from pstage to force rebuilding and installing it. Its a
chicken and egg problem - opkg-native binary is in .ipk and in order to install and use it you need opkg-native...That's not true:
PSTAGE_PKGMANAGER= "stage-manager-ipkg"[..]
pkgmanager =
bb.which(path, 'opkg-cl')
if pkgmanager == "":
pkgmanager =bb.which(path, 'ipkg-cl')
if pkgmanager != "":
bb.data.setVar("PSTAGE_PKGMANAGER", pkgmanager, d)
Quoted 5 lines
Quoted 2 lines
stage-manager-ipkg is a shell script (flashback to the original ipkg implementation), which will get used till opkg-cl is found in $PATH.
Hmm, good to know - thanks! I wonder why it doesn't always work, as reported on irc? The workaround so far was to delete the opkg package from pstage...
The script doesn't work too well, but it gets the job done. Maybe try 'bitbake opkg-native' before trying a build from 'scratch'. It would be good to debug this.
regards,
Koen
Hi Denis,
Quoted 2 lines
Are you overwriting
DEPLOY_DIR_PSTAGEfrom its default ${DEPLOY_DIR}/pstage?
No, I didn't touch that.
Quoted 1 line
Otherwise it should work and should populate
CROSS_DIRfrom pstage.
Ok, that simply doesn't happen here.
How can we debug this further.
:M:
Quoted 5 lines · Michael 'Mickey' Lauer
Hi Denis,
Quoted 2 lines
Are you overwriting
DEPLOY_DIR_PSTAGEfrom its default ${DEPLOY_DIR}/pstage?
Quoted 7 lines
No, I didn't touch that.
Quoted 1 line
Otherwise it should work and should populate
CROSS_DIRfrom pstage.Ok, that simply doesn't happen here.
How can we debug this further.
Hmm, Andrea has mentioned on irc, that the behavior may depend on whether the complete deploy directory is preserved or not... Need to experiment some more.
Signature · 1 line
Denys