Skip to contentSkip to conversation

bitbake.conf: store cooker logs in TMPDIR subdirectory

RFC Superseded Martin Jansa 4 participants 7 messages Aug 2, 2012 – Aug 16, 2012

lore
Share & tools
lore
#0 lore raw

RFC 1/1 bitbake.conf: store cooker logs in TMPDIR subdirectory

* we should probably wait until
http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf18570be629d9
is in next required bitbake version, but error message if the directory doesn't exist is quite clear
* people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/bitbake.conf +1 -1
index d5a43e9..ff1cbd6 100644
@@ -754,7 +754,7 @@ DISTRO[unexport] = "1"
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
 # Complete output from bitbake, if you're changing it, make sure to use existing directory
-BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
+BB_CONSOLELOG ?= "${TMPDIR}/cooker/${MACHINE}/${DATETIME}"
 
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "OEBasicHash"
Signature · 1 line
1.7.8.6
#1 lore raw
Quoted 20 lines · On Thursday 02 August 2012 18:24:43 Martin Jansa wrote:

* we should probably wait until

http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf
18570be629d9 is in next required bitbake version, but error message if the directory doesn't exist is quite clear * people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/bitbake.conf +0 -0
index d5a43e9..ff1cbd6 100644
@@ -754,7 +754,7 @@ DISTRO[unexport] = "1"
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_",

"-")}"

Quoted 3 lines

# Complete output from bitbake, if you're changing it, make sure to use
existing directory -BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}" +BB_CONSOLELOG ?= "${TMPDIR}/cooker/${MACHINE}/${DATETIME}"

I was thinking about this the other day - shouldn't we be using LOG_DIR for this?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 21 lines · Paul Eggleton
Quoted 20 lines · On Thursday 02 August 2012 18:24:43 Martin Jansa wrote:

* we should probably wait until

http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf
18570be629d9 is in next required bitbake version, but error message if the directory doesn't exist is quite clear * people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/bitbake.conf +0 -0
index d5a43e9..ff1cbd6 100644
@@ -754,7 +754,7 @@ DISTRO[unexport] = "1"
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_",

"-")}"

Quoted 6 lines
Quoted 3 lines

# Complete output from bitbake, if you're changing it, make sure to use
existing directory -BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}" +BB_CONSOLELOG ?= "${TMPDIR}/cooker/${MACHINE}/${DATETIME}"

I was thinking about this the other day - shouldn't we be using LOG_DIR for this?

Yes, makes sense. And I've also forgot to remove that comment above BB_CONSOLELOG"

Quoted 8 lines

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

RFC v2 1/1 bitbake.conf: store cooker logs in TMPDIR subdirectory

* we should probably wait until
http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf18570be629d9
is in next required bitbake version, but error message if the directory doesn't exist is quite clear
* people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +2 -2
index d5a43e9..8074684 100644
@@ -753,8 +753,8 @@ DISTRO[unexport] = "1"
 # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
-# Complete output from bitbake, if you're changing it, make sure to use existing directory
-BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
+# Complete output from bitbake
+BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
 
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "OEBasicHash"
Signature · 1 line
1.7.8.6
#4 lore raw
Quoted 15 lines · Martin Jansa

* we should probably wait until
http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf18570be629d9
is in next required bitbake version, but error message if the directory doesn't exist is quite clear
* people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +0 -0
index d5a43e9..8074684 100644

meta/conf/bitbake.conf DISTRO[unexport] = "1" · line 757

Quoted 7 lines
meta/conf/bitbake.conf +2 -2
@@ -753,8 +753,8 @@ DISTRO[unexport] = "1"
 # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
-# Complete output from bitbake, if you're changing it, make sure to use existing directory
-BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
+# Complete output from bitbake
+BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"

I'd recommend rewording the commit subject. It's not 100% clear that it refers to 'the tmpdir subdir' or 'a subdir of tmpdir', until you read the patch :)

Signature · 1 line
Christopher Larson
#5 lore raw

RFC v3 1/1 bitbake.conf: store cooker logs in subdirectory of LOG_DIR

* we should probably wait until
http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf18570be629d9
is in next required bitbake version, but error message if the directory doesn't exist is quite clear
* people with new enough bitbake could just change this in their local.conf

---
 meta/conf/bitbake.conf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +2 -2
index d5a43e9..8074684 100644
@@ -753,8 +753,8 @@ DISTRO[unexport] = "1"
 # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
-# Complete output from bitbake, if you're changing it, make sure to use existing directory
-BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
+# Complete output from bitbake
+BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
 
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "OEBasicHash"
Signature · 1 line
1.7.8.6
Applied
#6 lore raw

Re: [RFCv3] bitbake.conf: store cooker logs in subdirectory of LOG_DIR

Quoted 16 lines · Martin Jansa

* we should probably wait until
http://git.openembedded.org/bitbake/commit/?id=1e06d8012868ba5a31503dc99cbf18570be629d9
is in next required bitbake version, but error message if the directory doesn't exist is quite clear
* people with new enough bitbake could just change this in their local.conf

---
  meta/conf/bitbake.conf |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +0 -0
index d5a43e9..8074684 100644

meta/conf/bitbake.conf DISTRO[unexport] = "1" · line 760

Quoted 10 lines
meta/conf/bitbake.conf +2 -2
@@ -753,8 +753,8 @@ DISTRO[unexport] = "1"
  # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
  TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
-# Complete output from bitbake, if you're changing it, make sure to use existing directory
-BB_CONSOLELOG ?= "${TMPDIR}/cooker.log.${DATETIME}"
+# Complete output from bitbake
+BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
 
  # Setup our default hash policy
  BB_SIGNATURE_HANDLER ?= "OEBasicHash"

Merged into OE-Core

Thanks
Sau!