Patchwork [0/5] patches to fix deb packaging: bug 1070

login
register
mail settings
Submitter Dexuan Cui
Date Sept. 6, 2011, 1:08 p.m.
Message ID <cover.1315313790.git.dexuan.cui@intel.com>
Download mbox
Permalink /patch/11047/
State New, archived
Headers show

Pull-request

git://git.pokylinux.org/poky-contrib dcui/distro

Comments

Dexuan Cui - Sept. 6, 2011, 1:08 p.m.
The DEB packaging for core-image-sato-sdk(previously called poky-image-sdk) and
meta-toolchain-gmae(previously called meta-toolchain-sdk) has been broken for
quite a long period of time -- at least it was broken in Oct 2010 (I didn't try
to test older commits).

The patches try to improve the situation.

With the patches, core-image-sato-sdk for qemu{x86, x86-64, ppc, mips} can
build fine, but qemuarm still has a do_rootfs issue:
| The following packages have unmet dependencies:
|   task-base-extended: Depends: task-base but it is not going to be installed

And, meta-toolchain-gmae is still broken. The error is:
| + apt-get install task-sdk-host-nativesdk --force-yes --allow-unauthenticated
| Reading package lists...
| Building dependency tree...
| Reading state information...
| E: Couldn't find package task-sdk-host-nativesdk

I'm working on the left issues.

Does anybody know if OE has the similar issue or not?
Any comment/suggestions for the patch and left isseus are appreciated.

Thanks!

-- Dexuan

The following changes since commit 41b7c955cfdc7b4d5c667c8a8742237d5edaca4f:

  icu-3.6: fix building with big make -j (2011-09-05 20:38:50 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dcui/distro
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/distro

Dexuan Cui (5):
  populate_sdk_deb.bbclass: add the missing parameter - for tar
  package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx
  dpkg, dpkg-native: fix DEPENDS, RDEPENDS and pkg_postinst_dpkg
  opkg: it should Rdepend on update-alternatives-cworth
  default-providers.inc: define update-alternatives and -native
    properly

 meta/classes/package_deb.bbclass               |    2 +-
 meta/classes/populate_sdk_deb.bbclass          |    2 +-
 meta/conf/distro/include/default-providers.inc |    5 ++---
 meta/recipes-devtools/dpkg/dpkg.inc            |   23 ++++++++++-------------
 meta/recipes-devtools/opkg/opkg_0.1.8.bb       |    4 ++--
 meta/recipes-devtools/opkg/opkg_svn.bb         |    4 ++--
 6 files changed, 18 insertions(+), 22 deletions(-)
Saul Wold - Sept. 7, 2011, 12:23 a.m.
On 09/06/2011 06:08 AM, Dexuan Cui wrote:
> The DEB packaging for core-image-sato-sdk(previously called poky-image-sdk) and
> meta-toolchain-gmae(previously called meta-toolchain-sdk) has been broken for
> quite a long period of time -- at least it was broken in Oct 2010 (I didn't try
> to test older commits).
>
> The patches try to improve the situation.
>
> With the patches, core-image-sato-sdk for qemu{x86, x86-64, ppc, mips} can
> build fine, but qemuarm still has a do_rootfs issue:
> | The following packages have unmet dependencies:
> |   task-base-extended: Depends: task-base but it is not going to be installed
>
> And, meta-toolchain-gmae is still broken. The error is:
> | + apt-get install task-sdk-host-nativesdk --force-yes --allow-unauthenticated
> | Reading package lists...
> | Building dependency tree...
> | Reading state information...
> | E: Couldn't find package task-sdk-host-nativesdk
>
> I'm working on the left issues.
>
> Does anybody know if OE has the similar issue or not?
> Any comment/suggestions for the patch and left isseus are appreciated.
>
> Thanks!
>
> -- Dexuan
>
> The following changes since commit 41b7c955cfdc7b4d5c667c8a8742237d5edaca4f:
>
>    icu-3.6: fix building with big make -j (2011-09-05 20:38:50 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib dcui/distro
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/distro
>
> Dexuan Cui (5):
>    populate_sdk_deb.bbclass: add the missing parameter - for tar
>    package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx
>    dpkg, dpkg-native: fix DEPENDS, RDEPENDS and pkg_postinst_dpkg
>    opkg: it should Rdepend on update-alternatives-cworth
>    default-providers.inc: define update-alternatives and -native
>      properly
>
>   meta/classes/package_deb.bbclass               |    2 +-
>   meta/classes/populate_sdk_deb.bbclass          |    2 +-
>   meta/conf/distro/include/default-providers.inc |    5 ++---

Dexuan,

It's possible that one of your patches is causing this Multiple .bb 
files now.  Did you test with multiple PACKAGE_CLASSES set?

ERROR: Multiple .bb files are due to be built which each provide 
virtual/update-alternatives-native 
(virtual:native:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/meta/recipes-devtools/opkg/opkg_svn.bb 
virtual:native:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-ppc/build/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg_1.16.0.3.bb).
  This usually means one provides something the other doesn't and should.

Thanks
	Sau!


>   meta/recipes-devtools/dpkg/dpkg.inc            |   23 ++++++++++-------------
>   meta/recipes-devtools/opkg/opkg_0.1.8.bb       |    4 ++--
>   meta/recipes-devtools/opkg/opkg_svn.bb         |    4 ++--
>   6 files changed, 18 insertions(+), 22 deletions(-)
>
Dexuan Cui - Sept. 7, 2011, 4:06 a.m.
Saul Wold wrote on 2011-09-07:
> It's possible that one of your patches is causing this Multiple .bb files now.
> Did you test with multiple PACKAGE_CLASSES set?
> 
> ERROR: Multiple .bb files are due to be built which each provide
> virtual/update-alternatives-native
> (virtual:native:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nigh
> tly- ppc/build/meta/recipes-devtools/opkg/opkg_svn.bb
> virtual:native:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/night
> ly-p
> pc/build/meta/recipes-devtools/update-alternatives/update-alternatives
> -dp kg_1.16.0.3.bb).
>   This usually means one provides something the other doesn't and should.
> Thanks
Hmmm, sorry! I missed this test...
Actually at the beginning I did do this test and knew this multiple provider issue, but later I forgot it and only focused on tests with 1 PACKAGE_CLASSES set... 
I'm try to fix this asap.
So, please hold patch 3, 4 and 5.  Patch 1 and 2 are fixing obvious issues and I think we can apply them.

Thanks,
-- Dexuan
Saul Wold - Sept. 8, 2011, 3:47 a.m.
On 09/06/2011 06:08 AM, Dexuan Cui wrote:
> The DEB packaging for core-image-sato-sdk(previously called poky-image-sdk) and
> meta-toolchain-gmae(previously called meta-toolchain-sdk) has been broken for
> quite a long period of time -- at least it was broken in Oct 2010 (I didn't try
> to test older commits).
>
> The patches try to improve the situation.
>
> With the patches, core-image-sato-sdk for qemu{x86, x86-64, ppc, mips} can
> build fine, but qemuarm still has a do_rootfs issue:
> | The following packages have unmet dependencies:
> |   task-base-extended: Depends: task-base but it is not going to be installed
>
> And, meta-toolchain-gmae is still broken. The error is:
> | + apt-get install task-sdk-host-nativesdk --force-yes --allow-unauthenticated
> | Reading package lists...
> | Building dependency tree...
> | Reading state information...
> | E: Couldn't find package task-sdk-host-nativesdk
>
> I'm working on the left issues.
>
> Does anybody know if OE has the similar issue or not?
> Any comment/suggestions for the patch and left isseus are appreciated.
>
> Thanks!
>
> -- Dexuan
>
> The following changes since commit 41b7c955cfdc7b4d5c667c8a8742237d5edaca4f:
>
>    icu-3.6: fix building with big make -j (2011-09-05 20:38:50 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib dcui/distro
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/distro
>
> Dexuan Cui (5):
>    populate_sdk_deb.bbclass: add the missing parameter - for tar
>    package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx
>    dpkg, dpkg-native: fix DEPENDS, RDEPENDS and pkg_postinst_dpkg
>    opkg: it should Rdepend on update-alternatives-cworth
>    default-providers.inc: define update-alternatives and -native
>      properly
>
>   meta/classes/package_deb.bbclass               |    2 +-
>   meta/classes/populate_sdk_deb.bbclass          |    2 +-
>   meta/conf/distro/include/default-providers.inc |    5 ++---
>   meta/recipes-devtools/dpkg/dpkg.inc            |   23 ++++++++++-------------
>   meta/recipes-devtools/opkg/opkg_0.1.8.bb       |    4 ++--
>   meta/recipes-devtools/opkg/opkg_svn.bb         |    4 ++--
>   6 files changed, 18 insertions(+), 22 deletions(-)
>

As requested Populate SDK Deb patch and package_deb patch were merged 
with OE-Core, will look for respins on the others.

Thanks
	Sau!