Skip to contentSkip to conversation

archive-*-source.bbclass: Handle package class 'package_ipk'

RFC PATCH In review Shakeel, Muhammad 3 participants 6 messages Jan 2, 2013 – Jan 7, 2013

lore
Share & tools
lore
#0 lore raw

RFC PATCH 3/3 archive-*-source.bbclass: Handle package class 'package_ipk'

From: Muhammad Shakeel <[email protected]>

* Add archiver tasks correctly if 'PACKAGE_CLASSES' is set to 'package_ipk'

[YOCTO #3449]

---
 meta/classes/archive-configured-source.bbclass |    2 ++
 meta/classes/archive-original-source.bbclass   |    2 ++
 meta/classes/archive-patched-source.bbclass    |    2 ++
 3 files changed, 6 insertions(+)
meta/classes/archive-configured-source.bbclass +2 -0
index 83ee42e..83a77f3 100644
@@ -12,9 +12,11 @@ addtask do_archive_configured_sources after do_configure
 
 # Get archiving package with temp(logs) and scripts(.bb and inc files)
 addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk
 
 # Get dump date and create diff file 
 addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build
+addtask do_dumpdata_create_diff_gz after do_package_write_ipk before do_build
 
 python () {
     if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm':
meta/classes/archive-original-source.bbclass +2 -0
index 53a3539..10003be 100644
@@ -12,9 +12,11 @@ addtask do_archive_original_sources_patches after do_unpack
 
 # Get archiving package with temp(logs) and scripts(.bb and inc files)
 addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk
 
 # Get dump date and create diff file 
 addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build
+addtask do_dumpdata_create_diff_gz after do_package_write_ipk before do_build
 
 python () {
     if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm':
meta/classes/archive-patched-source.bbclass +2 -0
index a23f4bf..7c94d25 100644
@@ -12,9 +12,11 @@ addtask do_archive_patched_sources after do_patch
 
 # Get archiving package with logs(temp) and scripts(.bb and .inc files)
 addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk
 
 # Get dump date and create diff file 
 addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build
+addtask do_dumpdata_create_diff_gz after do_package_write_ipk before do_build
 
 python () {
     if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm':
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 3 lines · Muhammad

addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk

This will cause problems for anyone trying to do builds without package_ipk at all. I'd suggest using anonymous python to add the appropriate package dependencies based on what tasks actually exist.

-CHris

#2 lore raw
Quoted 10 lines · Christopher Larson
Quoted 3 lines · Muhammad

addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk

This will cause problems for anyone trying to do builds without package_ipk at all. I'd suggest using anonymous python to add the appropriate package dependencies based on what tasks actually exist.

Uh? the only exception for it would be deb, right?

Regards,

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#3 lore raw
Quoted 9 lines · Otavio Salvador
Quoted 7 lines · Christopher Larson
Quoted 3 lines · Muhammad

addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk

Quoted 6 lines
Quoted 1 line

This will cause problems for anyone trying to do builds without

package_ipk

Quoted 2 lines

at all. I'd suggest using anonymous python to add the appropriate package dependencies based on what tasks actually exist.

Uh? the only exception for it would be deb, right?

Yes, and?

-Chris

#4 lore raw
Quoted 20 lines · Christopher Larson
Quoted 16 lines · Otavio Salvador
Quoted 12 lines · Christopher Larson
Quoted 3 lines · Muhammad

addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk

This will cause problems for anyone trying to do builds without package_ipk
at all. I'd suggest using anonymous python to add the appropriate package
dependencies based on what tasks actually exist.

Quoted 4 lines
Quoted 1 line

Uh? the only exception for it would be deb, right?

Yes, and?

So the first patch changing from pre/post commands should be reworked and solve it in the right way. I agree about the use of annonymous python method for it.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#5 lore raw

Okay, I will fix it by using python function before sending the final patch. Thanks for your feedback.

--Shakeel

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Friday, January 04, 2013 2:14 AM
To: Larson, Chris
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] [RFC] archive-*-source.bbclass: Handle package class 'package_ipk'

Quoted 20 lines · Christopher Larson
Quoted 15 lines · Otavio Salvador
Quoted 11 lines · Christopher Larson
Quoted 3 lines · Muhammad

addtask do_archive_scripts_logs after do_package_write_rpm
+addtask do_archive_scripts_logs after do_package_write_ipk

This will cause problems for anyone trying to do builds without package_ipk at all. I'd suggest using anonymous python to add the appropriate package dependencies based on what tasks actually exist.

Quoted 4 lines
Quoted 1 line

Uh? the only exception for it would be deb, right?

Yes, and?

So the first patch changing from pre/post commands should be reworked and solve it in the right way. I agree about the use of annonymous python method for it.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core