| Submitter | Andreas Oberritter |
|---|---|
| Date | March 26, 2012, 2:38 p.m. |
| Message ID | <4F707F4E.1060908@opendreambox.org> |
| Download | mbox | patch |
| Permalink | /patch/24565/ |
| State | New |
| Headers | show |
Comments
On Monday 26 March 2012 16:38:06 Andreas Oberritter wrote: > OK, I managed to find a way that's ok for me. I added a wrapper script that > wraps the bitbake wrapper script and sets BUILDDIR automatically. I'm actually working on a couple of fixes that should work for your setup right now. If you can wait a little the patches will get posted soon. No additional wrapper scripts necessary. > This way I can als get rid of oe-core/scripts from PATH. I don't think this is a good idea. If it doesn't cause breakage now I'd be surprised if it didn't in the future. > Can you please ack this patch below, though? This keeps your change intact > and surely causes no trouble for you. This won't be necessary with the fixes I have. The directory where the "pseudodone" file is located is supposed to be your build directory, there's no need to configure it. Paul
On 26.03.2012 16:48, Paul Eggleton wrote: > On Monday 26 March 2012 16:38:06 Andreas Oberritter wrote: >> OK, I managed to find a way that's ok for me. I added a wrapper script that >> wraps the bitbake wrapper script and sets BUILDDIR automatically. > > I'm actually working on a couple of fixes that should work for your setup right > now. If you can wait a little the patches will get posted soon. No additional > wrapper scripts necessary. > >> This way I can als get rid of oe-core/scripts from PATH. > > I don't think this is a good idea. If it doesn't cause breakage now I'd be > surprised if it didn't in the future. > >> Can you please ack this patch below, though? This keeps your change intact >> and surely causes no trouble for you. > > This won't be necessary with the fixes I have. The directory where the > "pseudodone" file is located is supposed to be your build directory, there's no > need to configure it. I'm not convinced. If I delete tmp, pseudo gets deleted, but pseudodone stays. In my opinion, pseudodone's intuitive location is tmp, if the location of tmp is known - which it is in my case. Can you please at least put $BUILDDIR/pseudodone into a variable, so I can keep my patch small and maintainable? Regards, Andreas
On Monday 26 March 2012 16:57:33 Andreas Oberritter wrote: > I'm not convinced. If I delete tmp, pseudo gets deleted, but pseudodone > stays. In my opinion, pseudodone's intuitive location is tmp, if the > location of tmp is known - which it is in my case. pseudodone exists so that the script does not have to ask bitbake every time it is run where to find the pseudo executable (i.e., STAGING_BINDIR_NATIVE). Now, at the moment the script is lazy and assumes if the file doesn't exist then it needs to build pseudo even if that isn't needed. I have a fix for this already, so this problem is taken care of. > Can you please at least put $BUILDDIR/pseudodone into a variable, so I > can keep my patch small and maintainable? If the above is fixed and you can move freely between build directories without re-running a setup script, then unless I'm mistaken your immediate problems have now been addressed...? Cheers, Paul
Patch
diff --git a/scripts/bitbake b/scripts/bitbake index 45c8697..ea24de7 100755 --- a/scripts/bitbake +++ b/scripts/bitbake @@ -52,9 +52,13 @@ if [ "`pwd`" != "$BUILDDIR" ] ; then exit 1 fi +if [ -z "$PSEUDODONE" ]; then + PSEUDODONE="$BUILDDIR/pseudodone" +fi + buildpseudo="1" -if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then - PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` +if [ $needpseudo = "1" ] && [ -e "$PSEUDODONE" ]; then + PSEUDOBINDIR=`cat $PSEUDODONE` if [ -e "$PSEUDOBINDIR/pseudo" -a -e "$PSEUDOBINDIR/tar" -a "$needtar" = "1" ]; then buildpseudo="0" fi @@ -96,7 +100,7 @@ if [ $buildpseudo = "1" ]; then if [ "$ret" != "0" ]; then exit 1 fi - echo $PSEUDOBINDIR > $BUILDDIR/pseudodone + echo $PSEUDOBINDIR > $PSEUDODONE # This needs to exist in case pseudo has to log somewhere mkdir -p $PSEUDOBINDIR/../../var/pseudo fi @@ -104,7 +108,7 @@ BITBAKE=`which bitbake` export PATH=$OLDPATH if [ $needpseudo = "1" ]; then export PSEUDO_BUILD=2 - PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` + PSEUDOBINDIR=`cat $PSEUDODONE` PSEUDO_BINDIR=$PSEUDOBINDIR PSEUDO_LIBDIR=$PSEUDOBINDIR/../lib/pseudo/lib PSEUDO_PREFIX=$PSEUDOBINDIR/../../ PSEUDO_DISABLED=1 $PSEUDOBINDIR/pseudo $BITBAKE $@ else export PSEUDO_BUILD=0