toaster: full path in variable history
PATCH 1/1 toaster: full path in variable history
When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.
[YOCTO #5562]
--- bitbake/lib/bb/parse/parse_py/ConfHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/parse/parse_py/ConfHandler.py +1 -1
@@ -144,7 +144,7 @@ def handle(fn, data, include): # skip comments if s[0] == '#': continue - feeder(lineno, s, fn, statements) + feeder(lineno, s, abs_fn, statements) # DONE WITH PARSING... time to evaluate data.setVar('FILE', abs_fn)
Signature · 1 line
1.7.9.5
This patch is not in a toaster-only file, I think it affects other parts of Bitbake code.
Can you please elaborate on the test plan you used to validate this change ?
Thank you,
Alex
Quoted 36 lines · Marius Avram
When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.
[YOCTO #5562]
Signed-off-by Marius Avram <[email protected]>--- bitbake/lib/bb/parse/parse_py/ConfHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/bb/parse/parse_py/ConfHandler.py +1
-2@@ -144,7 +144,7 @@ def handle(fn, data, include): # skip comments if s[0] == '#': continue - feeder(lineno, s, fn, statements) + feeder(lineno, s, abs_fn, statements) # DONE WITH PARSING... time to evaluate data.setVar('FILE', abs_fn) --1.7.9.5
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC
I only tested if the file_name fields from VariableHistory model is filled correctly by accessing:
http://localhost:8000/api/1.0/variablehistory which returns a JSON of the table.
I thought that replacing a relative path with an absolute path will not have any impact on the build system, especially that this part is used for variable history and logging.
Would you want to make this change specific only to toaster ?
From: Damian, Alexandru [mailto:[email protected]]
Sent: Tuesday, March 18, 2014 4:45 PM
To: Avram, Marius
Cc: [email protected]
Subject: Re: [Toaster] [PATCH] toaster: full path in variable history
This patch is not in a toaster-only file, I think it affects other parts of Bitbake code.
Can you please elaborate on the test plan you used to validate this change ?
Thank you,
Alex
On Tue, Mar 18, 2014 at 12:32 PM, Marius Avram <[email protected]<mailto:[email protected]>> wrote:
When an evaluation was made for a configuration file the path to the
file was saved as a relative one. The change in this commit will save the
location as an absolute path. This way the user will have full information
regarding the location of the file where a variable was changed and the
line withing the file.
[YOCTO #5562]
--- bitbake/lib/bb/parse/parse_py/ConfHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/parse/parse_py/ConfHandler.py +1 -1
@@ -144,7 +144,7 @@ def handle(fn, data, include): # skip comments if s[0] == '#': continue - feeder(lineno, s, fn, statements) + feeder(lineno, s, abs_fn, statements) # DONE WITH PARSING... time to evaluate data.setVar('FILE', abs_fn)
--
1.7.9.5
--
_______________________________________________
toaster mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/toaster
--
Alex Damian
Yocto Project
SSG / OTC
Please validate that the reading of the config files is not affected by deleting the recipe cache and trying to build from scratch. This change cascades into the ast parser, not just logging and variable history.
Alex
Quoted 72 lines · Marius
I only tested if the
file_namefields from VariableHistory model is filled correctly by accessing:
http://localhost:8000/api/1.0/variablehistory which returns a JSON of the table.I thought that replacing a relative path with an absolute path will not have any impact on the build system, especially that this part is used for variable history and logging.
Would you want to make this change specific only to toaster ?
From: Damian, Alexandru [mailto:[email protected]]
Sent: Tuesday, March 18, 2014 4:45 PM
To: Avram, Marius
Cc: [email protected]
Subject: Re: [Toaster] [PATCH] toaster: full path in variable historyThis patch is not in a toaster-only file, I think it affects other parts of Bitbake code.
Can you please elaborate on the test plan you used to validate this change ?
Thank you,
AlexOn Tue, Mar 18, 2014 at 12:32 PM, Marius Avram <[email protected] <mailto:[email protected]>> wrote:
When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.[YOCTO #5562]
Signed-off-by Marius Avram <[email protected]<mailto:--- bitbake/lib/bb/parse/parse_py/ConfHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/bb/parse/parse_py/ConfHandler.py +1
-2@@ -144,7 +144,7 @@ def handle(fn, data, include): # skip comments if s[0] == '#': continue - feeder(lineno, s, fn, statements) + feeder(lineno, s, abs_fn, statements) # DONE WITH PARSING... time to evaluate data.setVar('FILE', abs_fn) --1.7.9.5
--
_______________________________________________
toaster mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/toaster--
Alex Damian
Yocto Project
SSG / OTC
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC
I've made a build for core-image-minimal on top of commit master:3c70ad664685716d8d805aebf211daff4a062d1a with my patch applied inside a new build directory and I can confirm that the building process finished successfully.
Quoted 96 lines · Alexandru
Please validate that the reading of the config files is not affected by deleting the recipe cache and trying to build from scratch. This change cascades into the ast parser, not just logging and variable history.
Alex
On Tue, Mar 18, 2014 at 3:15 PM, Avram, Marius <[email protected] <mailto:[email protected]>> wrote:
I only tested if the
file_namefields from VariableHistory model is filled correctly by accessing:
http://localhost:8000/api/1.0/variablehistory which returns a JSON of the table.I thought that replacing a relative path with an absolute path will not have any impact on the build system, especially that this part is used for variable history and logging.
Would you want to make this change specific only to toaster ?
From: Damian, Alexandru [mailto:[email protected] <mailto:[email protected]>]
Sent: Tuesday, March 18, 2014 4:45 PM
To: Avram, Marius
Cc: [email protected] <mailto:[email protected]>
Subject: Re: [Toaster] [PATCH] toaster: full path in variable historyThis patch is not in a toaster-only file, I think it affects other parts of Bitbake code.
Can you please elaborate on the test plan you used to validate this change ?
Thank you,
AlexOn Tue, Mar 18, 2014 at 12:32 PM, Marius Avram <[email protected] <mailto:[email protected]><mailto:[email protected] <mailto:[email protected]>>> wrote:
When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the
location as an absolute path. This way the user will have full information
regarding the location of the file where a variable was changed and the
line withing the file.[YOCTO #5562]
Signed-off-by Marius Avram <[email protected]<mailto:[email protected]><mailto:[email protected] <mailto:[email protected]>>>
---
bitbake/lib/bb/parse/parse_py/ConfHandler.py| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)diff --git
a/bitbake/lib/bb/parse/parse_py/ConfHandler.pyb/bitbake/lib/bb/parse/parse_py/ConfHandler.pyindex f4fb2aa..978ebe4 100644
---a/bitbake/lib/bb/parse/parse_py/ConfHandler.py+++b/bitbake/lib/bb/parse/parse_py/ConfHandler.py@@ -144,7 +144,7 @@ defhandle(fn, data, include):
# skip comments
if s[0] == '#':
continue
-feeder(lineno, s, fn, statements)
+feeder(lineno, s, abs_fn, statements)# DONE WITH PARSING... time to evaluate
data.setVar('FILE', abs_fn)
--
1.7.9.5--
_______________________________________________
toaster mailing list
[email protected] <mailto:[email protected]><mailto:[email protected] <mailto:[email protected]>>
https://lists.yoctoproject.org/listinfo/toaster--
Alex Damian
Yocto Project
SSG / OTCSignature · 3 lines
Alex Damian Yocto Project SSG / OTC
Taken in.
Alex
Quoted 100 lines · Marius Avram
I've made a build for core-image-minimal on top of commit
master:3c70ad664685716d8d805aebf211daff4a062d1a with my patch applied inside a new build directory and I can confirm that the building process finished successfully.On 03/18/2014 05:40 PM, Damian, Alexandru wrote:
Please validate that the reading of the config files is not affected by
deleting the recipe cache and trying to build from scratch.
This change cascades into the ast parser, not just logging and variable
history.Alex
Quoted 67 lines · Marius
I only tested if the
file_namefields from VariableHistory model is filled correctly by accessing:
http://localhost:8000/api/1.0/variablehistory which returns a JSON of the table.I thought that replacing a relative path with an absolute path will not have any impact on the build system, especially that this part is used for variable history and logging.
Would you want to make this change specific only to toaster ?
From: Damian, Alexandru [mailto:[email protected]]
Sent: Tuesday, March 18, 2014 4:45 PM
To: Avram, Marius
Cc: [email protected]
Subject: Re: [Toaster] [PATCH] toaster: full path in variable historyThis patch is not in a toaster-only file, I think it affects other parts of Bitbake code.
Can you please elaborate on the test plan you used to validate this change ?
Thank you,
AlexOn Tue, Mar 18, 2014 at 12:32 PM, Marius Avram <[email protected]
<mailto:[email protected]>> wrote:
When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.[YOCTO #5562]
Signed-off-by Marius Avram <[email protected]<mailto:--- bitbake/lib/bb/parse/parse_py/ConfHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/bb/parse/parse_py/ConfHandler.py +1
-2@@ -144,7 +144,7 @@ def handle(fn, data, include): # skip comments if s[0] == '#': continue - feeder(lineno, s, fn, statements) + feeder(lineno, s, abs_fn, statements) # DONE WITH PARSING... time to evaluate data.setVar('FILE', abs_fn) --1.7.9.5
--
_______________________________________________
toaster mailing list
[email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/toasterQuoted 5 lines
--
Alex Damian
Yocto Project
SSG / OTC--
Alex Damian
Yocto Project
SSG / OTC
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC