Skip to contentSkip to conversation

Extract GPL sources

DISCUSSION Fabien Lahoudere 2 participants 5 messages Aug 7, 2018

lore
Share & tools
lore
#0 lore raw

Hello

I need to extract all *GPL* sources patched related to an image in order to publish them. I want to do it automatically, ie 'bitbake myimage -c extract-gpl-sources' Is there a mechanism to do that?
If not do you have any idea how I can implement it?

Thanks

Signature · 1 line
Fabien
#1 lore raw

Have a look at the archiver class.

Ross

Quoted 16 lines · Fabien Lahoudere

Hello

I need to extract all *GPL* sources patched related to an image in order to publish them. I want to do it automatically, ie 'bitbake myimage -c extract-gpl-sources' Is there a mechanism to do that?
If not do you have any idea how I can implement it?

Thanks

--
Fabien
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

Thanks Ross,

I have an issue when using the archiver:

local.conf:

INHERIT += "archiver"
ARCHIVER_MODE[src] = "patched"
COPYLEFT_LICENSE_INCLUDE = 'GPL* LGPL*'

ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Command Error: 'quilt --quiltrc /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp-native/6.1.2-r0/archiver-work//recipe- sysroot-native/etc/quiltrc push' exited with 0  Output:
/bin/sh: quilt: command not found
ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp- native/6.1.2-r0/temp/log.do_unpack_and_patch.8027
ERROR: Task (virtual:native:/home/aragua/src/poky/meta/recipes- support/gmp/gmp_6.1.2.bb:do_unpack_and_patch) failed with exit code '1'

I tried to drop native from COPYLEFT_RECIPE_TYPES without effect.

Where can I add quilt-native dependency?

For information I use pyro release. Is there any known bug for that release?

Thanks

Quoted 22 lines · Ross

Have a look at the archiver class.

Ross

Quoted 16 lines · Fabien Lahoudere

Hello

I need to extract all *GPL* sources patched related to an image in order to publish them. I want to do it automatically, ie 'bitbake myimage -c extract-gpl-sources' Is there a mechanism to do that?
If not do you have any idea how I can implement it?

Thanks

--
Fabien
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Signature · 1 line
Fabien
#3 lore raw

I believe this is fixed in Pyro 2.3.4.

Ross

Quoted 53 lines · Fabien Lahoudere

Thanks Ross,

I have an issue when using the archiver:

local.conf:

INHERIT += "archiver"
ARCHIVER_MODE[src] = "patched"
COPYLEFT_LICENSE_INCLUDE = 'GPL* LGPL*'

ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Command Error: 'quilt --quiltrc /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp-native/6.1.2-r0/archiver-work//recipe- sysroot-native/etc/quiltrc push' exited with 0 Output:
/bin/sh: quilt: command not found
ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp- native/6.1.2-r0/temp/log.do_unpack_and_patch.8027
ERROR: Task (virtual:native:/home/aragua/src/poky/meta/recipes- support/gmp/gmp_6.1.2.bb:do_unpack_and_patch) failed with exit code '1'

I tried to drop native from COPYLEFT_RECIPE_TYPES without effect.

Where can I add quilt-native dependency?

For information I use pyro release. Is there any known bug for that release?

Thanks

Quoted 22 lines · Ross

Have a look at the archiver class.

Ross

Quoted 16 lines · Fabien Lahoudere

Hello

I need to extract all *GPL* sources patched related to an image in order to publish them. I want to do it automatically, ie 'bitbake myimage -c extract-gpl-sources' Is there a mechanism to do that?
If not do you have any idea how I can implement it?

Thanks

--
Fabien
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
Fabien

#4 lore raw

Thanks Ross it works fine now.

Quoted 61 lines · Ross

I believe this is fixed in Pyro 2.3.4.

Ross

Quoted 54 lines · Fabien Lahoudere

Thanks Ross,

I have an issue when using the archiver:

local.conf:

INHERIT += "archiver"
ARCHIVER_MODE[src] = "patched"
COPYLEFT_LICENSE_INCLUDE = 'GPL* LGPL*'

ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Command Error: 'quilt --quiltrc /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp-native/6.1.2-r0/archiver-work//recipe- sysroot-native/etc/quiltrc push' exited with 0  Output:
/bin/sh: quilt: command not found
ERROR: gmp-native-6.1.2-r0 do_unpack_and_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/aragua/src/poky/build2/tmp/work/x86_64-linux/gmp- native/6.1.2-r0/temp/log.do_unpack_and_patch.8027
ERROR: Task (virtual:native:/home/aragua/src/poky/meta/recipes- support/gmp/gmp_6.1.2.bb:do_unpack_and_patch) failed with exit code '1'

I tried to drop native from COPYLEFT_RECIPE_TYPES without effect.

Where can I add quilt-native dependency?

For information I use pyro release. Is there any known bug for that release?

Thanks

Quoted 22 lines · Ross

Have a look at the archiver class.

Ross

Quoted 16 lines · Fabien Lahoudere

Hello

I need to extract all *GPL* sources patched related to an image in order to publish them. I want to do it automatically, ie 'bitbake myimage -c extract-gpl-sources' Is there a mechanism to do that?
If not do you have any idea how I can implement it?

Thanks

--
Fabien
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
Fabien

Signature · 1 line
Fabien