Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/7] Realize archiving functions
@ 2012-03-16  6:23 Xiaofeng Yan
  2012-03-16  6:23 ` [PATCH 1/7] package_rpm: Add srpm function to this bbclass Xiaofeng Yan
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Xiaofeng Yan @ 2012-03-16  6:23 UTC (permalink / raw)
  To: openembedded-core

From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

Hi Saul & Mark,

I made some modification according to your suggestion. This is V3 for bug 1977
I removed the identification case which identify whether series and non-applying patches should be included in tarball or not. The default set include series and non-applying files
Also, I removed the other one case to select packages filtered by copyleft_compliance.bbclass because the copyrights have been created as directory in archiver.bbclass.
So I think user can select the packages they want according to the directory name. I will export functions 'get_licenses' in archiver.bbclass instead of moving this to licenses.bbclass because if this function is moved to licenses.bbclass,  then this function don't have any connection with other functions in license.bbclass. If this function is in archiver.bbclass,  then it will be called by function in archiver.bbclass.
all archiving packages will be deployed in ${DEPLOY_DIR}/sources

# the method to archive
inherit one of them(archive-original-source, archive-patched-source,archive-configured-source) in a base bbclass. for example, you can inherit archive-original-source in package_rpm.bbclass
$bitbake core-image-sato
<build successfully >
$ tree tmp/deploy/sources

  tmp/deploy/sources/
├── allarch-poky-linux
│   ├── CC-BY-SA-3.0
│   │   └── sato-icon-theme-0.4.1-r2
│   │       ├── sato-icon-theme-0.4.1-r2.diff.gz
│   │       ├── sato-icon-theme-0.4.1-r2-patches.tar.gz
│   │       ├── sato-icon-theme-0.4.1-r2-prepatch.tar.gz
│   │       ├── sato-icon-theme-0.4.1-r2-script-logs.tar.gz
│   │       └── sato-icon-theme-0.4.1-r2.showdata.dump
│   ├── GPLv2
│   │   ├── hicolor-icon-theme-0.12-r0
│   │   │   ├── hicolor-icon-theme-0.12-r0.diff.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-patches.tar.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-prepatch.tar.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-script-logs.tar.gz
│   │   │   └── hicolor-icon-theme-0.12-r0.showdata.dump
 .......
└── i586-poky-linux
    ├── AFL-2GPLv2+
    │   ├── dbus-1.4.16-r2.0
    │   │   ├── dbus-1.4.16-r2.0.diff.gz
    │   │   ├── dbus-1.4.16-r2.0-patches.tar.gz
    │   │   ├── dbus-1.4.16-r2.0-prepatch.tar.gz
    │   │   ├── dbus-1.4.16-r2.0-script-logs.tar.gz
    │   │   └── dbus-1.4.16-r2.0.showdata.dump
    │   └── dbus-glib-0.92-r2
    │       ├── dbus-glib-0.92-r2.diff.gz
    │       ├── dbus-glib-0.92-r2-patches.tar.gz
    │       ├── dbus-glib-0.92-r2-prepatch.tar.gz
    │       ├── dbus-glib-0.92-r2-script-logs.tar.gz
    │       └── dbus-glib-0.92-r2.showdata.dump
    ├── Artistic-1.0GPL-1.0
    │   └── perl-5.14.2-r4
    │       ├── perl-5.14.2-r4.diff.gz
    │       ├── perl-5.14.2-r4-patches.tar.gz
    │       ├── perl-5.14.2-r4-prepatch.tar.gz
    │       ├── perl-5.14.2-r4-script-logs.tar.gz
    │       └── perl-5.14.2-r4.showdata.dump



Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: xiaofeng/1977
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/1977

Thanks,
    Xiaofeng Yan <xiaofeng.yan@windriver.com>
---


Xiaofeng Yan (7):
  package_rpm: Add srpm function to this bbclass
  archiver.bbclass: New bbclass for archiving sources, patches,logs and
    scripts
  archive-patched-source.bbclass: Archive patched source
  archive-configured-source.bbclass: Archive configured source
  archive-original-source.bbclass: Archive original source
  local.conf.sample: Add set for archiving packages
  sourcepkg, src_distribute, src_distribute_local: remove three bbclass

 meta-yocto/conf/local.conf.sample              |   16 +
 meta/classes/archive-configured-source.bbclass |   14 +
 meta/classes/archive-original-source.bbclass   |   14 +
 meta/classes/archive-patched-source.bbclass    |   14 +
 meta/classes/archiver.bbclass                  |  419 ++++++++++++++++++++++++
 meta/classes/package_rpm.bbclass               |   47 +++
 meta/classes/sourcepkg.bbclass                 |  107 ------
 meta/classes/src_distribute.bbclass            |   49 ---
 meta/classes/src_distribute_local.bbclass      |   33 --
 9 files changed, 524 insertions(+), 189 deletions(-)
 create mode 100644 meta/classes/archive-configured-source.bbclass
 create mode 100644 meta/classes/archive-original-source.bbclass
 create mode 100644 meta/classes/archive-patched-source.bbclass
 create mode 100644 meta/classes/archiver.bbclass
 delete mode 100644 meta/classes/sourcepkg.bbclass
 delete mode 100644 meta/classes/src_distribute.bbclass
 delete mode 100644 meta/classes/src_distribute_local.bbclass




^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 0/7] Realize archiving functions
@ 2012-03-13 12:52 Xiaofeng Yan
  2012-03-13 12:52 ` [PATCH 2/7] archiver.bbclass: New bbclass for archiving sources, patches, logs and scripts Xiaofeng Yan
  0 siblings, 1 reply; 19+ messages in thread
From: Xiaofeng Yan @ 2012-03-13 12:52 UTC (permalink / raw)
  To: openembedded-core

From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

archiver.bbclass is for archiving sources , patches and logs including .bb and .inc files by configuring conf/local.conf  which control what a archiving package should include.
For archiving a source rpm package, I add some functions to package_rpm.bbclass.
I also merge source_pkg.bbclass src_distribute.bbclass src_distribute_local.bbclass to archiver.bbclass due to their similar functions.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: xiaofeng/1977
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/1977

Thanks,
    Xiaofeng Yan <xiaofeng.yan@windriver.com>
---


Xiaofeng Yan (7):
  package_rpm: Add srpm function to this bbclass
  archiver.bbclass: New bbclass for archiving sources, patches,logs and
    scripts
  archive-patched-source.bbclass: Archive patched source
  archive-configured-source.bbclass: Archive configured source
  archive-original-source.bbclass: Archive original source
  local.conf.sample: Add set for archiving packages
  sourcepkg, src_distribute, src_distribute_local: remove three bbclass

 meta-yocto/conf/local.conf.sample              |   25 ++
 meta/classes/archive-configured-source.bbclass |   14 +
 meta/classes/archive-original-source.bbclass   |   14 +
 meta/classes/archive-patched-source.bbclass    |   14 +
 meta/classes/archiver.bbclass                  |  421 ++++++++++++++++++++++++
 meta/classes/package_rpm.bbclass               |   63 ++++
 meta/classes/sourcepkg.bbclass                 |  107 ------
 meta/classes/src_distribute.bbclass            |   49 ---
 meta/classes/src_distribute_local.bbclass      |   33 --
 9 files changed, 551 insertions(+), 189 deletions(-)
 create mode 100644 meta/classes/archive-configured-source.bbclass
 create mode 100644 meta/classes/archive-original-source.bbclass
 create mode 100644 meta/classes/archive-patched-source.bbclass
 create mode 100644 meta/classes/archiver.bbclass
 delete mode 100644 meta/classes/sourcepkg.bbclass
 delete mode 100644 meta/classes/src_distribute.bbclass
 delete mode 100644 meta/classes/src_distribute_local.bbclass




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

end of thread, other threads:[~2012-03-21  6:48 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16  6:23 [PATCH 0/7] Realize archiving functions Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 1/7] package_rpm: Add srpm function to this bbclass Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 2/7] archiver.bbclass: New bbclass for archiving sources, patches, logs and scripts Xiaofeng Yan
2012-03-19 21:04   ` Saul Wold
2012-03-20  5:50     ` Xiaofeng Yan
2012-03-20  8:07       ` Koen Kooi
2012-03-20  9:40         ` Xiaofeng Yan
2012-03-20  9:49           ` Xiaofeng Yan
2012-03-20 10:00             ` Anders Darander
2012-03-20 14:41               ` Saul Wold
2012-03-21  6:39                 ` Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 3/7] archive-patched-source.bbclass: Archive patched source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 4/7] archive-configured-source.bbclass: Archive configured source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 5/7] archive-original-source.bbclass: Archive original source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 6/7] local.conf.sample: Add set for archiving packages Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 7/7] sourcepkg, src_distribute, src_distribute_local: remove three bbclass Xiaofeng Yan
  -- strict thread matches above, loose matches on Subject: below --
2012-03-13 12:52 [PATCH 0/7] Realize archiving functions Xiaofeng Yan
2012-03-13 12:52 ` [PATCH 2/7] archiver.bbclass: New bbclass for archiving sources, patches, logs and scripts Xiaofeng Yan
2012-03-14  2:57   ` Saul Wold
2012-03-14 12:30     ` Xiaofeng Yan

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