Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
@ 2015-06-30 11:19 leonardo.sandoval.gonzalez
  2015-07-01  6:06 ` Andre McCurdy
  2015-07-01 12:54 ` Paul Eggleton
  0 siblings, 2 replies; 5+ messages in thread
From: leonardo.sandoval.gonzalez @ 2015-06-30 11:19 UTC (permalink / raw)
  To: openembedded-core

From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>

This is just a safe check to make sure the output folder is present, before
creating the files-in-$pkg.txt file.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
---
 meta/classes/buildhistory.bbclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 8fc8a3a..cad5116 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -444,7 +444,13 @@ buildhistory_list_pkg_files() {
         # Create individual files-in-package for each recipe's package
         for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
                 pkgname=$(basename ${pkgdir})
-                outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt"
+                outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}"
+                outfile="${outfolder}/${file_prefix}${pkgname}.txt"
+                # Make sure the output folder, exist so we can create the files-in-$pkgname.txt file
+                if [ ! -d ${outfolder} ] ; then
+                        bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created"
+                        continue
+                fi
                 buildhistory_list_files ${pkgdir} ${outfile}
         done
 }
-- 
1.8.4.5



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
  2015-06-30 11:19 [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt leonardo.sandoval.gonzalez
@ 2015-07-01  6:06 ` Andre McCurdy
  2015-07-01 12:54 ` Paul Eggleton
  1 sibling, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2015-07-01  6:06 UTC (permalink / raw)
  To: leonardo.sandoval.gonzalez; +Cc: OE Core mailing list

Hi Leonardo,

On Tue, Jun 30, 2015 at 4:19 AM,
<leonardo.sandoval.gonzalez@linux.intel.com> wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
>
> This is just a safe check to make sure the output folder is present, before
> creating the files-in-$pkg.txt file.
>
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>

This patch fixes the build issues I was seeing previously.

> ---
>  meta/classes/buildhistory.bbclass | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
> index 8fc8a3a..cad5116 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -444,7 +444,13 @@ buildhistory_list_pkg_files() {
>          # Create individual files-in-package for each recipe's package
>          for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
>                  pkgname=$(basename ${pkgdir})
> -                outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt"
> +                outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}"
> +                outfile="${outfolder}/${file_prefix}${pkgname}.txt"
> +                # Make sure the output folder, exist so we can create the files-in-$pkgname.txt file
> +                if [ ! -d ${outfolder} ] ; then
> +                        bbdebug 2 "Folder ${outfolder} does not exist, file ${outfile} not created"
> +                        continue
> +                fi
>                  buildhistory_list_files ${pkgdir} ${outfile}
>          done
>  }
> --
> 1.8.4.5
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
  2015-06-30 11:19 [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt leonardo.sandoval.gonzalez
  2015-07-01  6:06 ` Andre McCurdy
@ 2015-07-01 12:54 ` Paul Eggleton
  2015-07-01 16:55   ` Leonardo Sandoval
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2015-07-01 12:54 UTC (permalink / raw)
  To: leonardo.sandoval.gonzalez; +Cc: openembedded-core

Hi Leonardo,

On Tuesday 30 June 2015 11:19:40 leonardo.sandoval.gonzalez@linux.intel.com 
wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
> 
> This is just a safe check to make sure the output folder is present, before
> creating the files-in-$pkg.txt file.
> 
> Signed-off-by: Leonardo Sandoval
> <leonardo.sandoval.gonzalez@linux.intel.com> ---
>  meta/classes/buildhistory.bbclass | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/classes/buildhistory.bbclass
> b/meta/classes/buildhistory.bbclass index 8fc8a3a..cad5116 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -444,7 +444,13 @@ buildhistory_list_pkg_files() {
>          # Create individual files-in-package for each recipe's package
>          for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
>                  pkgname=$(basename ${pkgdir})
> -               
> outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.tx
> t" +                outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}" +    
>            outfile="${outfolder}/${file_prefix}${pkgname}.txt" +           
>     # Make sure the output folder, exist so we can create the
> files-in-$pkgname.txt file +                if [ ! -d ${outfolder} ] ; then
> +                        bbdebug 2 "Folder ${outfolder} does not exist, file
> ${outfile} not created" +                        continue

This isn't the way we normally handle this sort of situation - we should be 
simply creating the directory unconditionally before writing the file.

In any case, how is it that the directory doesn't exist at this point?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
  2015-07-01 12:54 ` Paul Eggleton
@ 2015-07-01 16:55   ` Leonardo Sandoval
  2015-07-02 22:06     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Leonardo Sandoval @ 2015-07-01 16:55 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core


Hi Paul,

On 07/01/2015 07:54 AM, Paul Eggleton wrote:
> Hi Leonardo,
>
> On Tuesday 30 June 2015 11:19:40 leonardo.sandoval.gonzalez@linux.intel.com
> wrote:
>> From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
>>
>> This is just a safe check to make sure the output folder is present, before
>> creating the files-in-$pkg.txt file.
>>
>> Signed-off-by: Leonardo Sandoval
>> <leonardo.sandoval.gonzalez@linux.intel.com> ---
>>   meta/classes/buildhistory.bbclass | 8 +++++++-
>>   1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/buildhistory.bbclass
>> b/meta/classes/buildhistory.bbclass index 8fc8a3a..cad5116 100644
>> --- a/meta/classes/buildhistory.bbclass
>> +++ b/meta/classes/buildhistory.bbclass
>> @@ -444,7 +444,13 @@ buildhistory_list_pkg_files() {
>>           # Create individual files-in-package for each recipe's package
>>           for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
>>                   pkgname=$(basename ${pkgdir})
>> -
>> outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.tx
>> t" +                outfolder="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}" +
>>             outfile="${outfolder}/${file_prefix}${pkgname}.txt" +
>>      # Make sure the output folder, exist so we can create the
>> files-in-$pkgname.txt file +                if [ ! -d ${outfolder} ] ; then
>> +                        bbdebug 2 "Folder ${outfolder} does not exist, file
>> ${outfile} not created" +                        continue
>
> This isn't the way we normally handle this sort of situation - we should be
> simply creating the directory unconditionally before writing the file.
>
> In any case, how is it that the directory doesn't exist at this point?
>
files-in-$pkg.txt files are created and placed on top of the 
corresponding buildhistory/packages folders. By the time this task is 
done, the latter folders are *already* created, so that is why in the 
first patch version, I did not include the check. BTW, I could not 
reproduce the issue that Andre had (failed on cairo) so I will ask him 
more detail on his setup.
> Cheers,
> Paul
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
  2015-07-01 16:55   ` Leonardo Sandoval
@ 2015-07-02 22:06     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2015-07-02 22:06 UTC (permalink / raw)
  To: Leonardo Sandoval; +Cc: Paul Eggleton, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]


> On Jul 1, 2015, at 9:55 AM, Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> wrote:
> 
> 
> files-in-$pkg.txt files are created and placed on top of the corresponding buildhistory/packages folders. By the time this task is done, the latter folders are *already* created, so that is why in the first patch version, I did not include the check. BTW, I could not reproduce the issue that Andre had (failed on cairo) so I will ask him more detail on his setup.
> 

disable GPL3, add

INCOMPATIBLE_LICENSE = "GPLv3.0 GPLv3 GPL-3.0 GPLv3+ LGPLv3.0 LGPLv3 LGPL-3.0 LGPLv3+”
GCCVERSION = "5.1%”
SDKGCCVERSION  = "5.1%”

to local.conf

then try

bitbake gcc-runtime




[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-02 22:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 11:19 [PATCH] buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt leonardo.sandoval.gonzalez
2015-07-01  6:06 ` Andre McCurdy
2015-07-01 12:54 ` Paul Eggleton
2015-07-01 16:55   ` Leonardo Sandoval
2015-07-02 22:06     ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox