All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] util-linux-ng: Do not provide libblkid.
@ 2009-07-16 21:31 Khem Raj
  2009-07-16 23:28 ` Denys Dmytriyenko
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Khem Raj @ 2009-07-16 21:31 UTC (permalink / raw)
  To: openembedded-devel

	Currently we let utils-linux-ng provide
	libblkid package which then ends up being
	provided twice once from e2fsprogs-libs and
	once from util-linux-ng. Future versions might
	move libblkid and libuuid to utils-linux-ng
	till then we will use e2fsprogs-libs provided one
	on the system

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 recipes/util-linux-ng/util-linux-ng.inc       |   15 ++-------------
 recipes/util-linux-ng/util-linux-ng_2.13.1.bb |    1 +
 recipes/util-linux-ng/util-linux-ng_2.14.bb   |    1 +
 recipes/util-linux-ng/util-linux-ng_2.15.bb   |    1 +
 4 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
index 59d2f08..44cd94c 100644
--- a/recipes/util-linux-ng/util-linux-ng.inc
+++ b/recipes/util-linux-ng/util-linux-ng.inc
@@ -1,14 +1,14 @@
 DESCRIPTION = "Util-linux-ng is a suite of essential utilities for any Linux system."
 SECTION = "base"
 LICENSE = "GPL"
-DEPENDS = "udev zlib ncurses virtual/libintl e2fsprogs-libs"
+DEPENDS = "udev zlib ncurses virtual/libintl"
 
 inherit autotools_stage
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
 DEFAULT_PREFERENCE = "-1"
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 # allows for a release candidate
 RC ?= ""
@@ -16,7 +16,6 @@ RC ?= ""
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v${PV}/util-linux-ng-${PV}${RC}.tar.bz2"
 
 PACKAGES =+ "util-linux-ng-fdisk util-linux-ng-cfdisk util-linux-ng-sfdisk util-linux-ng-swaponoff util-linux-ng-losetup util-linux-ng-umount util-linux-ng-mount util-linux-ng-readprofile "
-PACKAGES_DYNAMIC = "libblkid*"
 
 FILES_${PN}-doc += "/usr/share/misc/getopt/getopt-*.*"
 FILES_${PN} = "${bindir} ${sbindir} ${base_bindir} ${base_sbindir}"
@@ -139,16 +138,6 @@ do_install () {
 	ln -sf ${sbindir}/shutdown ${D}${sbindir}/fasthalt
 }
 
-python populate_packages_prepend () {
-	ulinxng_libdir = bb.data.expand('${libdir}', d)
-	ulinxng_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
-	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev', allow_links=True)
-	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
-	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
-	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so\.*', 'lib%s', 'util-linux-ng %s library', extra_depends='', allow_links=True)
-}
-
-
 pkg_postinst_${PN} () {
 	update-alternatives --install ${base_bindir}/dmesg dmesg dmesg.${PN} 100
 	update-alternatives --install ${base_bindir}/kill kill kill.${PN} 100
diff --git a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
index c239b15..73e6023 100644
--- a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
+++ b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
@@ -1,4 +1,5 @@
 require util-linux-ng.inc
+DEPENDS += "e2fsprogs-libs"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v2.13/util-linux-ng-${PV}${RC}.tar.bz2"
 #SRC_URI += "file://util-linux_2.12r-12.diff.gz;patch=1"
diff --git a/recipes/util-linux-ng/util-linux-ng_2.14.bb b/recipes/util-linux-ng/util-linux-ng_2.14.bb
index d7eafd3..b5972a9 100644
--- a/recipes/util-linux-ng/util-linux-ng_2.14.bb
+++ b/recipes/util-linux-ng/util-linux-ng_2.14.bb
@@ -1,4 +1,5 @@
 require util-linux-ng.inc
+DEPENDS += "e2fsprogs-libs"
 
 PR = "${INC_PR}"
 
diff --git a/recipes/util-linux-ng/util-linux-ng_2.15.bb b/recipes/util-linux-ng/util-linux-ng_2.15.bb
index 0c2416f..396b41d 100644
--- a/recipes/util-linux-ng/util-linux-ng_2.15.bb
+++ b/recipes/util-linux-ng/util-linux-ng_2.15.bb
@@ -1,4 +1,5 @@
 require util-linux-ng.inc
+DEPENDS += "e2fsprogs-libs"
 
 PR = "${INC_PR}"
 
-- 
1.5.4.3




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

* Re: [PATCH] util-linux-ng: Do not provide libblkid.
  2009-07-16 21:31 [PATCH] util-linux-ng: Do not provide libblkid Khem Raj
@ 2009-07-16 23:28 ` Denys Dmytriyenko
  2009-07-17  7:26 ` Koen Kooi
  2009-07-19 16:50 ` Khem Raj
  2 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2009-07-16 23:28 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jul 16, 2009 at 02:31:20PM -0700, Khem Raj wrote:
> 	Currently we let utils-linux-ng provide
> 	libblkid package which then ends up being
> 	provided twice once from e2fsprogs-libs and
> 	once from util-linux-ng. Future versions might
> 	move libblkid and libuuid to utils-linux-ng
> 	till then we will use e2fsprogs-libs provided one
> 	on the system
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>

May I co-sign it with you? :) If not, then change it to ack...

Signed-off-by: Denys Dmytriyenko <denis@denix.org>

> ---
>  recipes/util-linux-ng/util-linux-ng.inc       |   15 ++-------------
>  recipes/util-linux-ng/util-linux-ng_2.13.1.bb |    1 +
>  recipes/util-linux-ng/util-linux-ng_2.14.bb   |    1 +
>  recipes/util-linux-ng/util-linux-ng_2.15.bb   |    1 +
>  4 files changed, 5 insertions(+), 13 deletions(-)
> 
> diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
> index 59d2f08..44cd94c 100644
> --- a/recipes/util-linux-ng/util-linux-ng.inc
> +++ b/recipes/util-linux-ng/util-linux-ng.inc
> @@ -1,14 +1,14 @@
>  DESCRIPTION = "Util-linux-ng is a suite of essential utilities for any Linux system."
>  SECTION = "base"
>  LICENSE = "GPL"
> -DEPENDS = "udev zlib ncurses virtual/libintl e2fsprogs-libs"
> +DEPENDS = "udev zlib ncurses virtual/libintl"
>  
>  inherit autotools_stage
>  AUTOTOOLS_STAGE_PKGCONFIG = "1"
>  
>  DEFAULT_PREFERENCE = "-1"
>  
> -INC_PR = "r6"
> +INC_PR = "r7"
>  
>  # allows for a release candidate
>  RC ?= ""
> @@ -16,7 +16,6 @@ RC ?= ""
>  SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v${PV}/util-linux-ng-${PV}${RC}.tar.bz2"
>  
>  PACKAGES =+ "util-linux-ng-fdisk util-linux-ng-cfdisk util-linux-ng-sfdisk util-linux-ng-swaponoff util-linux-ng-losetup util-linux-ng-umount util-linux-ng-mount util-linux-ng-readprofile "
> -PACKAGES_DYNAMIC = "libblkid*"
>  
>  FILES_${PN}-doc += "/usr/share/misc/getopt/getopt-*.*"
>  FILES_${PN} = "${bindir} ${sbindir} ${base_bindir} ${base_sbindir}"
> @@ -139,16 +138,6 @@ do_install () {
>  	ln -sf ${sbindir}/shutdown ${D}${sbindir}/fasthalt
>  }
>  
> -python populate_packages_prepend () {
> -	ulinxng_libdir = bb.data.expand('${libdir}', d)
> -	ulinxng_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev', allow_links=True)
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so\.*', 'lib%s', 'util-linux-ng %s library', extra_depends='', allow_links=True)
> -}
> -
> -
>  pkg_postinst_${PN} () {
>  	update-alternatives --install ${base_bindir}/dmesg dmesg dmesg.${PN} 100
>  	update-alternatives --install ${base_bindir}/kill kill kill.${PN} 100
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> index c239b15..73e6023 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> @@ -1,4 +1,5 @@
>  require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>  
>  SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v2.13/util-linux-ng-${PV}${RC}.tar.bz2"
>  #SRC_URI += "file://util-linux_2.12r-12.diff.gz;patch=1"
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.14.bb b/recipes/util-linux-ng/util-linux-ng_2.14.bb
> index d7eafd3..b5972a9 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.14.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.14.bb
> @@ -1,4 +1,5 @@
>  require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>  
>  PR = "${INC_PR}"
>  
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.15.bb b/recipes/util-linux-ng/util-linux-ng_2.15.bb
> index 0c2416f..396b41d 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.15.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.15.bb
> @@ -1,4 +1,5 @@
>  require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>  
>  PR = "${INC_PR}"
>  
> -- 
> 1.5.4.3
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



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

* Re: [PATCH] util-linux-ng: Do not provide libblkid.
  2009-07-16 21:31 [PATCH] util-linux-ng: Do not provide libblkid Khem Raj
  2009-07-16 23:28 ` Denys Dmytriyenko
@ 2009-07-17  7:26 ` Koen Kooi
  2009-07-17  8:26   ` Khem Raj
  2009-07-19 16:50 ` Khem Raj
  2 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2009-07-17  7:26 UTC (permalink / raw)
  To: openembedded-devel

On 16-07-09 23:31, Khem Raj wrote:
> 	Currently we let utils-linux-ng provide
> 	libblkid package which then ends up being
> 	provided twice once from e2fsprogs-libs and
> 	once from util-linux-ng. Future versions might
> 	move libblkid and libuuid to utils-linux-ng
> 	till then we will use e2fsprogs-libs provided one
> 	on the system
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>

NAK!!!! We need the new blkid for udev and friends, so you'll break 
angstrom with this changes. The right way is to kill the e2fsprogs one.



> ---
>   recipes/util-linux-ng/util-linux-ng.inc       |   15 ++-------------
>   recipes/util-linux-ng/util-linux-ng_2.13.1.bb |    1 +
>   recipes/util-linux-ng/util-linux-ng_2.14.bb   |    1 +
>   recipes/util-linux-ng/util-linux-ng_2.15.bb   |    1 +
>   4 files changed, 5 insertions(+), 13 deletions(-)
>
> diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
> index 59d2f08..44cd94c 100644
> --- a/recipes/util-linux-ng/util-linux-ng.inc
> +++ b/recipes/util-linux-ng/util-linux-ng.inc
> @@ -1,14 +1,14 @@
>   DESCRIPTION = "Util-linux-ng is a suite of essential utilities for any Linux system."
>   SECTION = "base"
>   LICENSE = "GPL"
> -DEPENDS = "udev zlib ncurses virtual/libintl e2fsprogs-libs"
> +DEPENDS = "udev zlib ncurses virtual/libintl"
>
>   inherit autotools_stage
>   AUTOTOOLS_STAGE_PKGCONFIG = "1"
>
>   DEFAULT_PREFERENCE = "-1"
>
> -INC_PR = "r6"
> +INC_PR = "r7"
>
>   # allows for a release candidate
>   RC ?= ""
> @@ -16,7 +16,6 @@ RC ?= ""
>   SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v${PV}/util-linux-ng-${PV}${RC}.tar.bz2"
>
>   PACKAGES =+ "util-linux-ng-fdisk util-linux-ng-cfdisk util-linux-ng-sfdisk util-linux-ng-swaponoff util-linux-ng-losetup util-linux-ng-umount util-linux-ng-mount util-linux-ng-readprofile "
> -PACKAGES_DYNAMIC = "libblkid*"
>
>   FILES_${PN}-doc += "/usr/share/misc/getopt/getopt-*.*"
>   FILES_${PN} = "${bindir} ${sbindir} ${base_bindir} ${base_sbindir}"
> @@ -139,16 +138,6 @@ do_install () {
>   	ln -sf ${sbindir}/shutdown ${D}${sbindir}/fasthalt
>   }
>
> -python populate_packages_prepend () {
> -	ulinxng_libdir = bb.data.expand('${libdir}', d)
> -	ulinxng_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev', allow_links=True)
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'util-linux-ng %s development package', extra_depends='${PN}-dev')
> -	do_split_packages(d, ulinxng_libdir, '^lib(.*)\.so\.*', 'lib%s', 'util-linux-ng %s library', extra_depends='', allow_links=True)
> -}
> -
> -
>   pkg_postinst_${PN} () {
>   	update-alternatives --install ${base_bindir}/dmesg dmesg dmesg.${PN} 100
>   	update-alternatives --install ${base_bindir}/kill kill kill.${PN} 100
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> index c239b15..73e6023 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.13.1.bb
> @@ -1,4 +1,5 @@
>   require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>
>   SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v2.13/util-linux-ng-${PV}${RC}.tar.bz2"
>   #SRC_URI += "file://util-linux_2.12r-12.diff.gz;patch=1"
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.14.bb b/recipes/util-linux-ng/util-linux-ng_2.14.bb
> index d7eafd3..b5972a9 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.14.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.14.bb
> @@ -1,4 +1,5 @@
>   require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>
>   PR = "${INC_PR}"
>
> diff --git a/recipes/util-linux-ng/util-linux-ng_2.15.bb b/recipes/util-linux-ng/util-linux-ng_2.15.bb
> index 0c2416f..396b41d 100644
> --- a/recipes/util-linux-ng/util-linux-ng_2.15.bb
> +++ b/recipes/util-linux-ng/util-linux-ng_2.15.bb
> @@ -1,4 +1,5 @@
>   require util-linux-ng.inc
> +DEPENDS += "e2fsprogs-libs"
>
>   PR = "${INC_PR}"
>





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

* Re: [PATCH] util-linux-ng: Do not provide libblkid.
  2009-07-17  7:26 ` Koen Kooi
@ 2009-07-17  8:26   ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2009-07-17  8:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel

On (17/07/09 09:26), Koen Kooi wrote:
> On 16-07-09 23:31, Khem Raj wrote:
>> 	Currently we let utils-linux-ng provide
>> 	libblkid package which then ends up being
>> 	provided twice once from e2fsprogs-libs and
>> 	once from util-linux-ng. Future versions might
>> 	move libblkid and libuuid to utils-linux-ng
>> 	till then we will use e2fsprogs-libs provided one
>> 	on the system
>>
>> Signed-off-by: Khem Raj<raj.khem@gmail.com>
>
> NAK!!!! We need the new blkid for udev and friends, so you'll break  
> angstrom with this changes. The right way is to kill the e2fsprogs one.
>

I thought of doing this switch once util-linux-ng 2.16 is released(15th july it was) then
this library would come from util-linux-ng for older ones let it 
come from e2fsprogs-libs. It seems udev angstrom is using is quite latest. Anyway current
util-linux-ng recipes are broken too because they ask for this
library to be provided for all versions but it only appeared in
2.15 for first time.

so I think we wont be able to use any combination of util-linux-ng
and e2fsprogs-libs.

if a distro is using util-linux-ng older than 2.15 (nothing found in conf/ ) then it has to
get this library from e2fsprogs-libs. It there a way to say that in recipes or bitbake magic ?

If this looks viable that all distros use latest util-linux-ng 
then we can stop providing it from e2fsprogs-libs,
if someone wanted to use utils-linux-ng < 2.15 then he gets no libblkid

opinions ?

Thx

-Khem



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

* Re: [PATCH] util-linux-ng: Do not provide libblkid.
  2009-07-16 21:31 [PATCH] util-linux-ng: Do not provide libblkid Khem Raj
  2009-07-16 23:28 ` Denys Dmytriyenko
  2009-07-17  7:26 ` Koen Kooi
@ 2009-07-19 16:50 ` Khem Raj
  2 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2009-07-19 16:50 UTC (permalink / raw)
  To: openembedded-devel

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

On (16/07/09 14:31), Khem Raj wrote:
> 	Currently we let utils-linux-ng provide
> 	libblkid package which then ends up being
> 	provided twice once from e2fsprogs-libs and
> 	once from util-linux-ng. Future versions might
> 	move libblkid and libuuid to utils-linux-ng
> 	till then we will use e2fsprogs-libs provided one
> 	on the system
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  recipes/util-linux-ng/util-linux-ng.inc       |   15 ++-------------
>  recipes/util-linux-ng/util-linux-ng_2.13.1.bb |    1 +
>  recipes/util-linux-ng/util-linux-ng_2.14.bb   |    1 +
>  recipes/util-linux-ng/util-linux-ng_2.15.bb   |    1 +
>  4 files changed, 5 insertions(+), 13 deletions(-)


Here is alternative patch which makes this libs come from utils-linux-ng
as going forward this seems ok on the same hand it breaks the old e2fsprogs-libs
and utils-linux-ng co operations.

I have also added the latest releases of both packages which libblkid and libuuid
have been moved to util-linux-ng and provisions to disable it in e2fsprogs has
been added.

Built and booted console-image on arm works fine. 

OK to install on .dev?

Thanks

-Khem


[-- Attachment #2: 0001-e2fsprogs-libs-Add-version-1.41.8-and-dont-provide.patch --]
[-- Type: text/x-diff, Size: 10412 bytes --]

From 69ef2d4fd54b49281c5187be7a98da78c84346f3 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 19 Jul 2009 09:31:34 -0700
Subject: [PATCH] e2fsprogs-libs: Add version 1.41.8 and dont provide libblkid and libuuid.
 util-linux-ng: Add version 2.16 and provide libblkid and libuuid.

Change the provider for libuuid and libblkid from e2fsprogs-libs
to util-linux-ng.
---
 conf/checksums.ini                                 |    8 ++++++++
 recipes/e2fsprogs-libs/e2fsprogs-libs.inc          |   14 +++++---------
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.33.bb      |    1 +
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.34.bb      |    2 +-
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.35.bb      |    4 +++-
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.39.bb      |    2 +-
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.2.bb    |    4 ++--
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb    |    6 +++---
 recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.8.bb    |   16 ++++++++++++++++
 .../util-linux-ng-2.16/uclibc-compile.patch        |   13 +++++++++++++
 recipes/util-linux-ng/util-linux-ng.inc            |    4 ++--
 recipes/util-linux-ng/util-linux-ng_2.16.bb        |   11 +++++++++++
 12 files changed, 66 insertions(+), 19 deletions(-)
 create mode 100644 recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.8.bb
 create mode 100644 recipes/util-linux-ng/util-linux-ng-2.16/uclibc-compile.patch
 create mode 100644 recipes/util-linux-ng/util-linux-ng_2.16.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index e19a0ff..ec2f2a4 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -5262,6 +5262,10 @@ sha256=2de57ec75aca127ec70c2797c1a416fca43d78e6cb5c8ee4938864cb8eaafb56
 md5=c75f112d24bdc39c76dbec61d59a4a91
 sha256=dc1eb1b7bbad2edc030e50e7506c79562d98098f99a5d6cb5db5aa5ca92ffe48
 
+[http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-libs-1.41.8.tar.gz]
+md5=bd28f2ccce2c14f06091e04fd1a0c67e
+sha256=90428106333a38b93b6f4a306fff17749243862883a06598ff6e6ea11f8d24d2
+
 [http://www.pobox.com/~sheff/sw/e2tools/e2tools-0.0.16.tar.gz]
 md5=1829b2b261e0e0d07566066769b5b28b
 sha256=4e3c8e17786ccc03fc9fb4145724edf332bb50e1b3c91b6f33e0e3a54861949b
@@ -24250,6 +24254,10 @@ sha256=7736d8d7d3b39654e350416585b3e00af9f55670cce8b3dddd2c2494cbaae81c
 md5=71919b69eeecbba05612224d8f2c450f
 sha256=db4dcbf99d989a8f539d7521e9e64047367fa2ccdcbb91517cdec19693a41ffd
 
+[http://kernel.org/pub/linux/utils/util-linux-ng/v2.16/util-linux-ng-2.16.tar.bz2]
+md5=9623380641b0c2e0449f5b1ecc567663
+sha256=a6365fcb2b34439faa52164e1a018086c2b6818f8a189c487c79e09dc3c62722
+
 [http://xorg.freedesktop.org/releases/individual/util/util-macros-1.1.5.tar.bz2]
 md5=51952682d8b42aeda3af5cee0133ce2c
 sha256=75939790e16b8bcc122e83f3f060d6f000ed1a98e97b4972fac0903142f5651b
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs.inc b/recipes/e2fsprogs-libs/e2fsprogs-libs.inc
index 5b82c11..517771c 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs.inc
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs.inc
@@ -2,8 +2,9 @@ DESCRIPTION = "EXT2 Filesystem Utilities"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "optional"
+DEPENDS = "util-linux-ng"
 
-inherit autotools pkgconfig
+inherit autotools_stage pkgconfig
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
            file://configure.patch;patch=1 \
@@ -13,6 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
 S = "${WORKDIR}/e2fsprogs-libs-${PV}"
 FILES_e2fsprogs-libs-dev_append = " ${datadir}/et ${datadir}/ss"
 FILES_${PN} = "${bindir}"
+EXTRA_OECONF = "--disable-libblkid --disable-libuuid"
 
 python populate_packages_prepend () {
 	e2fs_libdir = bb.data.expand('${libdir}', d)
@@ -24,18 +26,12 @@ python populate_packages_prepend () {
 }
 
 do_stage () {
-        for i in libcom_err libss libuuid libblkid; do
+        for i in libcom_err libss; do
                 oe_libinstall -a -C lib $i ${STAGING_LIBDIR}
         done
         install -d ${STAGING_INCDIR}/et \
-                   ${STAGING_INCDIR}/ss \
-                   ${STAGING_INCDIR}/uuid \
-                   ${STAGING_INCDIR}/blkid
+                   ${STAGING_INCDIR}/ss
         install -m 0644 lib/et/com_err.h ${STAGING_INCDIR}/et/
         install -m 0644 lib/ss/ss.h ${STAGING_INCDIR}/ss/
         install -m 0644 lib/ss/ss_err.h ${STAGING_INCDIR}/ss/
-        install -m 0644 lib/uuid/uuid.h ${STAGING_INCDIR}/uuid/
-        install -m 0644 lib/uuid/uuid_types.h ${STAGING_INCDIR}/uuid/
-        install -m 0644 lib/blkid/blkid.h ${STAGING_INCDIR}/blkid/
-        install -m 0644 lib/blkid/blkid_types.h ${STAGING_INCDIR}/blkid/
 }
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.33.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.33.bb
index 3844966..0ac8ac3 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.33.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.33.bb
@@ -1 +1,2 @@
+PR = "r1"
 require e2fsprogs-libs.inc
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.34.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.34.bb
index 738d1ee..6be9289 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.34.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.34.bb
@@ -1,5 +1,5 @@
 require e2fsprogs-libs.inc
-
+PR = "r1"
 SRC_URI += "file://ldflags.patch;patch=1"
 
 do_compile_prepend () {
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.35.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.35.bb
index 0d7d25e..fc3e85f 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.35.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.35.bb
@@ -1,8 +1,10 @@
 require e2fsprogs-libs.inc
 
+PR = "r1"
+
 SRC_URI += "file://ldflags.patch;patch=1"
 
-EXTRA_OECONF=" --enable-elf-shlibs "
+EXTRA_OECONF += " --enable-elf-shlibs "
 
 do_compile_prepend () {
 	find ./ -print|xargs chmod u=rwX
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.39.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.39.bb
index dfd83e3..ccd5a3c 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.39.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.39.bb
@@ -5,7 +5,7 @@ PR = "r1"
 SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
            file://configure.patch;patch=1"
 
-EXTRA_OECONF=" --enable-elf-shlibs "
+EXTRA_OECONF += " --enable-elf-shlibs "
 
 do_compile_prepend () {
 	find ./ -print|xargs chmod u=rwX
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.2.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.2.bb
index d9447ab..53afbaa 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.2.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.2.bb
@@ -1,6 +1,6 @@
 require e2fsprogs-libs.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
 	   file://mkinstalldirs.patch;patch=1 \
@@ -8,7 +8,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
 
 DEPENDS = "gettext-native"
 
-EXTRA_OECONF=" --enable-elf-shlibs "
+EXTRA_OECONF += " --enable-elf-shlibs "
 
 do_compile_prepend () {
 	find ./ -print|xargs chmod u=rwX
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
index 25a6490..47e543c 100644
--- a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.5.bb
@@ -1,12 +1,12 @@
 require e2fsprogs-libs.inc
-
+PR = "r1"
 SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
 	   file://mkinstalldirs.patch;patch=1 \
 	  "
 
-DEPENDS = "gettext-native"
+DEPENDS += "gettext-native"
 
-EXTRA_OECONF=" --enable-elf-shlibs "
+EXTRA_OECONF += " --enable-elf-shlibs "
 
 do_compile_prepend () {
 	find ./ -print|xargs chmod u=rwX
diff --git a/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.8.bb b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.8.bb
new file mode 100644
index 0000000..f9a67af
--- /dev/null
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs_1.41.8.bb
@@ -0,0 +1,16 @@
+require e2fsprogs-libs.inc
+SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
+	  "
+
+DEPENDS += "gettext-native"
+
+EXTRA_OECONF += " --enable-elf-shlibs "
+
+do_configure() {
+        oe_runconf
+}
+
+do_compile_prepend () {
+	find ./ -print|xargs chmod u=rwX
+	( cd util; ${BUILD_CC} subst.c -o subst )
+}
diff --git a/recipes/util-linux-ng/util-linux-ng-2.16/uclibc-compile.patch b/recipes/util-linux-ng/util-linux-ng-2.16/uclibc-compile.patch
new file mode 100644
index 0000000..b2e8a8b
--- /dev/null
+++ b/recipes/util-linux-ng/util-linux-ng-2.16/uclibc-compile.patch
@@ -0,0 +1,13 @@
+Index: util-linux-ng-2.16/misc-utils/cal.c
+===================================================================
+--- util-linux-ng-2.16.orig/misc-utils/cal.c	2009-07-03 16:20:01.000000000 -0700
++++ util-linux-ng-2.16/misc-utils/cal.c	2009-07-18 23:21:37.000000000 -0700
+@@ -407,7 +407,7 @@
+   strcpy(day_headings,"");
+   strcpy(j_day_headings,"");
+ 
+-#ifdef HAVE_LANGINFO_H
++#ifdef HAVE_LANGINFO_H && !defined(__UCLIBC__)
+ # define weekday(wd)	nl_langinfo(ABDAY_1+wd)
+ #else
+ # define weekday(wd)	_time_info->abbrev_wkday[wd]
diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
index 59d2f08..837ff70 100644
--- a/recipes/util-linux-ng/util-linux-ng.inc
+++ b/recipes/util-linux-ng/util-linux-ng.inc
@@ -1,14 +1,14 @@
 DESCRIPTION = "Util-linux-ng is a suite of essential utilities for any Linux system."
 SECTION = "base"
 LICENSE = "GPL"
-DEPENDS = "udev zlib ncurses virtual/libintl e2fsprogs-libs"
+DEPENDS = "udev zlib ncurses virtual/libintl"
 
 inherit autotools_stage
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
 DEFAULT_PREFERENCE = "-1"
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 # allows for a release candidate
 RC ?= ""
diff --git a/recipes/util-linux-ng/util-linux-ng_2.16.bb b/recipes/util-linux-ng/util-linux-ng_2.16.bb
new file mode 100644
index 0000000..1cfdc34
--- /dev/null
+++ b/recipes/util-linux-ng/util-linux-ng_2.16.bb
@@ -0,0 +1,11 @@
+require util-linux-ng.inc
+
+PR = "${INC_PR}"
+
+SRC_URI += "file://uclibc-compile.patch;patch=1 \
+"
+
+EXTRA_OECONF += " --enable-libuuid --enable-libblkid \
+		--disable-fsck"
+LDFLAGS_append_libc-uclibc = " -lintl"
+PACKAGES_DYNAMIC += "libuuid*"
-- 
1.6.0.4


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

end of thread, other threads:[~2009-07-19 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-16 21:31 [PATCH] util-linux-ng: Do not provide libblkid Khem Raj
2009-07-16 23:28 ` Denys Dmytriyenko
2009-07-17  7:26 ` Koen Kooi
2009-07-17  8:26   ` Khem Raj
2009-07-19 16:50 ` Khem Raj

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.