All of lore.kernel.org
 help / color / mirror / Atom feed
* license_create_manifest fails on jethro
@ 2016-03-11  3:12 Stefan Agner
  2016-03-11 16:56 ` Aníbal Limón
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Agner @ 2016-03-11  3:12 UTC (permalink / raw)
  To: anibal.limon; +Cc: openembedded-devel, Marcel Ziswiler, angstrom-distro-devel

Hi Anibal,

I think the patch a7976cbae3 ("license_class: Reimplemented manifest
creation in python") broke Ångstroms way of deploying license files.
With jethro I get the following error when building the _second_
machine:

ERROR: Error executing a python function in
/build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb:

The stack trace of python calls that resulted in this exception/failure
was:
File: 'license_create_manifest', lineno: 110, function: <module>
     0106:
     0107:                        os.link(pkg_license,
pkg_rootfs_license)
     0108:
     0109:
 *** 0110:license_create_manifest(d)
     0111:
File: 'license_create_manifest', lineno: 86, function:
license_create_manifest
     0082:                pkg_rootfs_license_dir =
os.path.join(rootfs_license_dir, pkg)
     0083:                os.makedirs(pkg_rootfs_license_dir)
     0084:                pkg_license_dir =
os.path.join(d.getVar('LICENSE_DIRECTORY', True),
     0085:                                           
pkg_dic[pkg]["PN"])
 *** 0086:                licenses = os.listdir(pkg_license_dir)
     0087:                for lic in licenses:
     0088:                    rootfs_license =
os.path.join(rootfs_license_dir, lic)
     0089:                    pkg_license =
os.path.join(pkg_license_dir, lic)
     0090:                    pkg_rootfs_license =
os.path.join(pkg_rootfs_license_dir, lic)
Exception: OSError: [Errno 2] No such file or directory:
'/build/ags/oe-core_V2.6/build/out-glibc/deploy/licenses/colibri_imx7/alsa-utils'

ERROR: Function failed: license_create_manifest
ERROR: Logfile of failure stored in:
/build/ags/oe-core_V2.6/build/out-glibc/work/colibri_imx7-angstrom-linux-gnueabi/console-trdx-image/V2.6-r0/temp/log.do_rootfs.29351
ERROR: Task 7
(/build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb,
do_rootfs) failed with exit code '1'

It might relate to how Ångström configures the LICENSE_DIRECTORY
variable (by including MACHINE_ARCH, see
https://github.com/Angstrom-distribution/meta-angstrom/blob/angstrom-v2015.12-yocto2.0/conf/distro/include/angstrom-core-tweaks.inc):
LICENSE_DIRECTORY = "${DEPLOY_DIR}/licenses/${MACHINE_ARCH}"

I am not sure what exactly causes the issue, but after reverting your
patch two consecutive builds of different machines succeeded...

However, I still get a lot of warnings such as:
WARNING: The license listed LGPLv2.1 was not in the licenses collected
for systemd

Any ideas?

--
Stefan


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

* Re: license_create_manifest fails on jethro
  2016-03-11  3:12 license_create_manifest fails on jethro Stefan Agner
@ 2016-03-11 16:56 ` Aníbal Limón
  2016-03-11 17:00   ` Aníbal Limón
  0 siblings, 1 reply; 4+ messages in thread
From: Aníbal Limón @ 2016-03-11 16:56 UTC (permalink / raw)
  To: Stefan Agner; +Cc: openembedded-devel, Marcel Ziswiler, angstrom-distro-devel

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

Hi Stefan,

Seems that LICENSE_DIRECTORY set is causing this trouble i don't
understand why? because i expanded LICENSE_DIRECTORY for copy licenses
but if you revert the commit and works the new code needs to be
compatible. Could you give me the instructions for reproduce your case?

For the license warnings is related to the same LICENSE_DIRECTORY thing
because it wasn't able to collect (copy) the licenses.

	alimon

- Resending... due to a list unsubscription.

On 03/10/2016 09:12 PM, Stefan Agner wrote:
> Hi Anibal,
> 
> I think the patch a7976cbae3 ("license_class: Reimplemented manifest
> creation in python") broke Ångstroms way of deploying license files.
> With jethro I get the following error when building the _second_
> machine:
> 
> ERROR: Error executing a python function in
> /build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb:
> 
> The stack trace of python calls that resulted in this exception/failure
> was:
> File: 'license_create_manifest', lineno: 110, function: <module>
>      0106:
>      0107:                        os.link(pkg_license,
> pkg_rootfs_license)
>      0108:
>      0109:
>  *** 0110:license_create_manifest(d)
>      0111:
> File: 'license_create_manifest', lineno: 86, function:
> license_create_manifest
>      0082:                pkg_rootfs_license_dir =
> os.path.join(rootfs_license_dir, pkg)
>      0083:                os.makedirs(pkg_rootfs_license_dir)
>      0084:                pkg_license_dir =
> os.path.join(d.getVar('LICENSE_DIRECTORY', True),
>      0085:                                           
> pkg_dic[pkg]["PN"])
>  *** 0086:                licenses = os.listdir(pkg_license_dir)
>      0087:                for lic in licenses:
>      0088:                    rootfs_license =
> os.path.join(rootfs_license_dir, lic)
>      0089:                    pkg_license =
> os.path.join(pkg_license_dir, lic)
>      0090:                    pkg_rootfs_license =
> os.path.join(pkg_rootfs_license_dir, lic)
> Exception: OSError: [Errno 2] No such file or directory:
> '/build/ags/oe-core_V2.6/build/out-glibc/deploy/licenses/colibri_imx7/alsa-utils'
> 
> ERROR: Function failed: license_create_manifest
> ERROR: Logfile of failure stored in:
> /build/ags/oe-core_V2.6/build/out-glibc/work/colibri_imx7-angstrom-linux-gnueabi/console-trdx-image/V2.6-r0/temp/log.do_rootfs.29351
> ERROR: Task 7
> (/build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb,
> do_rootfs) failed with exit code '1'
> 
> It might relate to how Ångström configures the LICENSE_DIRECTORY
> variable (by including MACHINE_ARCH, see
> https://github.com/Angstrom-distribution/meta-angstrom/blob/angstrom-v2015.12-yocto2.0/conf/distro/include/angstrom-core-tweaks.inc):
> LICENSE_DIRECTORY = "${DEPLOY_DIR}/licenses/${MACHINE_ARCH}"
> 
> I am not sure what exactly causes the issue, but after reverting your
> patch two consecutive builds of different machines succeeded...
> 
> However, I still get a lot of warnings such as:
> WARNING: The license listed LGPLv2.1 was not in the licenses collected
> for systemd
> 
> Any ideas?
> 
> --
> Stefan
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: license_create_manifest fails on jethro
  2016-03-11 16:56 ` Aníbal Limón
@ 2016-03-11 17:00   ` Aníbal Limón
  2016-03-11 18:43     ` Stefan Agner
  0 siblings, 1 reply; 4+ messages in thread
From: Aníbal Limón @ 2016-03-11 17:00 UTC (permalink / raw)
  To: Stefan Agner; +Cc: openembedded-devel, angstrom-distro-devel, Marcel Ziswiler

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

Hi Stefan,

I tried to build angstrom v2015.12-yocto2.0 using qemux86-64 and
systemd-image following [1] then the next errors appears:

ERROR: Nothing PROVIDES 'virtual/nativesdk-nativesdk-libx11' (but
virtual:nativesdk:/home/alimon/repos/angstrom/sources/openembedded-core/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
DEPENDS on or otherwise requires it). Close matches:
  virtual/nativesdk-libx11
  virtual/nativesdk-libc
  virtual/nativesdk-db

ERROR: Required build target 'systemd-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-image',
'nativesdk-packagegroup-sdk-host', 'nativesdk-qemu', 'nativesdk-libsdl',
'virtual/nativesdk-nativesdk-libx11']


Kind regards,
	alimon

[1] https://github.com/Angstrom-distribution/angstrom-manifest

On 03/11/2016 10:56 AM, Aníbal Limón wrote:
> Hi Stefan,
> 
> Seems that LICENSE_DIRECTORY set is causing this trouble i don't
> understand why? because i expanded LICENSE_DIRECTORY for copy licenses
> but if you revert the commit and works the new code needs to be
> compatible. Could you give me the instructions for reproduce your case?
> 
> For the license warnings is related to the same LICENSE_DIRECTORY thing
> because it wasn't able to collect (copy) the licenses.
> 
> 	alimon
> 
> - Resending... due to a list unsubscription.
> 
> On 03/10/2016 09:12 PM, Stefan Agner wrote:
>> Hi Anibal,
>>
>> I think the patch a7976cbae3 ("license_class: Reimplemented manifest
>> creation in python") broke Ångstroms way of deploying license files.
>> With jethro I get the following error when building the _second_
>> machine:
>>
>> ERROR: Error executing a python function in
>> /build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb:
>>
>> The stack trace of python calls that resulted in this exception/failure
>> was:
>> File: 'license_create_manifest', lineno: 110, function: <module>
>>      0106:
>>      0107:                        os.link(pkg_license,
>> pkg_rootfs_license)
>>      0108:
>>      0109:
>>  *** 0110:license_create_manifest(d)
>>      0111:
>> File: 'license_create_manifest', lineno: 86, function:
>> license_create_manifest
>>      0082:                pkg_rootfs_license_dir =
>> os.path.join(rootfs_license_dir, pkg)
>>      0083:                os.makedirs(pkg_rootfs_license_dir)
>>      0084:                pkg_license_dir =
>> os.path.join(d.getVar('LICENSE_DIRECTORY', True),
>>      0085:                                           
>> pkg_dic[pkg]["PN"])
>>  *** 0086:                licenses = os.listdir(pkg_license_dir)
>>      0087:                for lic in licenses:
>>      0088:                    rootfs_license =
>> os.path.join(rootfs_license_dir, lic)
>>      0089:                    pkg_license =
>> os.path.join(pkg_license_dir, lic)
>>      0090:                    pkg_rootfs_license =
>> os.path.join(pkg_rootfs_license_dir, lic)
>> Exception: OSError: [Errno 2] No such file or directory:
>> '/build/ags/oe-core_V2.6/build/out-glibc/deploy/licenses/colibri_imx7/alsa-utils'
>>
>> ERROR: Function failed: license_create_manifest
>> ERROR: Logfile of failure stored in:
>> /build/ags/oe-core_V2.6/build/out-glibc/work/colibri_imx7-angstrom-linux-gnueabi/console-trdx-image/V2.6-r0/temp/log.do_rootfs.29351
>> ERROR: Task 7
>> (/build/ags/oe-core_V2.6/build/../stuff/meta-toradex/recipes/images/console-trdx-image.bb,
>> do_rootfs) failed with exit code '1'
>>
>> It might relate to how Ångström configures the LICENSE_DIRECTORY
>> variable (by including MACHINE_ARCH, see
>> https://github.com/Angstrom-distribution/meta-angstrom/blob/angstrom-v2015.12-yocto2.0/conf/distro/include/angstrom-core-tweaks.inc):
>> LICENSE_DIRECTORY = "${DEPLOY_DIR}/licenses/${MACHINE_ARCH}"
>>
>> I am not sure what exactly causes the issue, but after reverting your
>> patch two consecutive builds of different machines succeeded...
>>
>> However, I still get a lot of warnings such as:
>> WARNING: The license listed LGPLv2.1 was not in the licenses collected
>> for systemd
>>
>> Any ideas?
>>
>> --
>> Stefan
>>
> 
> 
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: license_create_manifest fails on jethro
  2016-03-11 17:00   ` Aníbal Limón
@ 2016-03-11 18:43     ` Stefan Agner
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Agner @ 2016-03-11 18:43 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Marcel Ziswiler, angstrom-distro-devel

Hi Alimon,

On 2016-03-11 09:00, Aníbal Limón wrote:
> Hi Stefan,
> 
> I tried to build angstrom v2015.12-yocto2.0 using qemux86-64 and
> systemd-image following [1] then the next errors appears:
> 
> ERROR: Nothing PROVIDES 'virtual/nativesdk-nativesdk-libx11' (but
> virtual:nativesdk:/home/alimon/repos/angstrom/sources/openembedded-core/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
> DEPENDS on or otherwise requires it). Close matches:
>   virtual/nativesdk-libx11
>   virtual/nativesdk-libc
>   virtual/nativesdk-db
> 
> ERROR: Required build target 'systemd-image' has no buildable providers.
> Missing or unbuildable dependency chain was: ['systemd-image',
> 'nativesdk-packagegroup-sdk-host', 'nativesdk-qemu', 'nativesdk-libsdl',
> 'virtual/nativesdk-nativesdk-libx11']

Not sure what is going on, also had this error here with Poky. This
helped for core-image-minimal:
DISTRO_FEATURES_remove = "x11"

To quickly reproduce this, I now setup just the Freescale BSP with Poky:
http://freescale.github.io/#download

Along with this config in conf/local.conf (which basically emulates the
Ångström config):
LICENSE_DIRECTORY = "${DEPLOY_DIR}/licenses/${MACHINE_ARCH}"

And enable copying licenses to the target directory:
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"

Then I built this two images:

MACHINE=colibri-vf bitbake core-image-minimal
MACHINE=colibri-imx6 bitbake core-image-minimal

Note that for instance
tmp/deploy/licenses/colibri_vf/base-files/
exits after the first bitbake build, but the second bitbake build tries
to copy the license from
tmp/deploy/licenses/colibri_imx6/base-files/

--
Stefan


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

end of thread, other threads:[~2016-03-11 18:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11  3:12 license_create_manifest fails on jethro Stefan Agner
2016-03-11 16:56 ` Aníbal Limón
2016-03-11 17:00   ` Aníbal Limón
2016-03-11 18:43     ` Stefan Agner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.