util-linux: create an all encompassing package group

Submitted by Paul Gortmaker on Aug. 5, 2014, 5:26 p.m.

Details

Message ID 1407259572-35454-1-git-send-email-paul.gortmaker@windriver.com
State New
Headers show

Commit Message

Paul Gortmaker Aug. 5, 2014, 5:26 p.m.
Currently util-linux is fragmented into lots of small chunks,
and if one is looking to avoid using busybox wholesale, there
is currently no easy way to say "I want all of it".  Here we
create a packagegroup for all of the util-linux chunks, so
that it need not be duplicated by everyone wanting the same
overall goal of removing busybox.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/packagegroups/packagegroup-util-linux.bb b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
new file mode 100644
index 000000000000..54151502b176
--- /dev/null
+++ b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
@@ -0,0 +1,69 @@ 
+#
+# Copyright (C) 2014 Wind River
+#
+
+SUMMARY = "util-linux Packages"
+DESCRIPTION = "Packages created from util-linux"
+PR = "r0"
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-util-linux \
+    packagegroup-util-linux-block \
+    packagegroup-util-linux-console \
+    packagegroup-util-linux-uid \
+    packagegroup-util-linux-misc \
+    packagegroup-util-linux-partition \
+    "
+
+RDEPENDS_packagegroup-util-linux = "\
+    packagegroup-util-linux-block \
+    packagegroup-util-linux-console \
+    packagegroup-util-linux-uid \
+    packagegroup-util-linux-misc \
+    packagegroup-util-linux-partition \
+    "
+
+RDEPENDS_packagegroup-util-linux-partition = "\
+    util-linux-fdisk \
+    util-linux-cfdisk \
+    util-linux-sfdisk \
+    util-linux-partx \
+    "
+
+RDEPENDS_packagegroup-util-linux-console = "\
+    util-linux-agetty \
+    util-linux-reset \
+    "
+
+RDEPENDS_packagegroup-util-linux-block = " \
+    util-linux-mkfs \
+    util-linux-mkfs.cramfs \
+    util-linux-fsck.cramfs \
+    util-linux-fstrim \
+    util-linux-fsck \
+    util-linux-blkid \
+    util-linux-libblkid \
+    util-linux-umount \
+    util-linux-mount \
+    util-linux-libmount \
+    util-linux-swaponoff \
+    "
+
+RDEPENDS_packagegroup-util-linux-uid = "\
+    util-linux-libuuid \
+    util-linux-uuidd \
+    util-linux-uuidgen \
+    util-linux-findfs \
+    "
+
+RDEPENDS_packagegroup-util-linux-misc = "\
+    util-linux-losetup \
+    util-linux-readprofile \
+    util-linux-lscpu \
+    util-linux-mcookie \
+    util-linux-bash-completion \
+    util-linux-hwclock \
+    "

Comments

Martin Jansa Aug. 6, 2014, 8:21 a.m.
On Tue, Aug 05, 2014 at 01:26:12PM -0400, Paul Gortmaker wrote:
> Currently util-linux is fragmented into lots of small chunks,
> and if one is looking to avoid using busybox wholesale, there
> is currently no easy way to say "I want all of it".  Here we
> create a packagegroup for all of the util-linux chunks, so
> that it need not be duplicated by everyone wanting the same
> overall goal of removing busybox.

Why don't you define these as empty packages with just RDEPENDS
in util-linux?

> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> diff --git a/meta/recipes-core/packagegroups/packagegroup-util-linux.bb b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
> new file mode 100644
> index 000000000000..54151502b176
> --- /dev/null
> +++ b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
> @@ -0,0 +1,69 @@
> +#
> +# Copyright (C) 2014 Wind River
> +#
> +
> +SUMMARY = "util-linux Packages"
> +DESCRIPTION = "Packages created from util-linux"
> +PR = "r0"
> +LICENSE = "MIT"
> +
> +inherit packagegroup
> +
> +PACKAGES = "\
> +    packagegroup-util-linux \
> +    packagegroup-util-linux-block \
> +    packagegroup-util-linux-console \
> +    packagegroup-util-linux-uid \
> +    packagegroup-util-linux-misc \
> +    packagegroup-util-linux-partition \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux = "\
> +    packagegroup-util-linux-block \
> +    packagegroup-util-linux-console \
> +    packagegroup-util-linux-uid \
> +    packagegroup-util-linux-misc \
> +    packagegroup-util-linux-partition \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux-partition = "\
> +    util-linux-fdisk \
> +    util-linux-cfdisk \
> +    util-linux-sfdisk \
> +    util-linux-partx \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux-console = "\
> +    util-linux-agetty \
> +    util-linux-reset \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux-block = " \
> +    util-linux-mkfs \
> +    util-linux-mkfs.cramfs \
> +    util-linux-fsck.cramfs \
> +    util-linux-fstrim \
> +    util-linux-fsck \
> +    util-linux-blkid \
> +    util-linux-libblkid \
> +    util-linux-umount \
> +    util-linux-mount \
> +    util-linux-libmount \
> +    util-linux-swaponoff \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux-uid = "\
> +    util-linux-libuuid \
> +    util-linux-uuidd \
> +    util-linux-uuidgen \
> +    util-linux-findfs \
> +    "
> +
> +RDEPENDS_packagegroup-util-linux-misc = "\
> +    util-linux-losetup \
> +    util-linux-readprofile \
> +    util-linux-lscpu \
> +    util-linux-mcookie \
> +    util-linux-bash-completion \
> +    util-linux-hwclock \
> +    "
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
Paul Gortmaker Aug. 6, 2014, 2:20 p.m.
On 14-08-06 04:21 AM, Martin Jansa wrote:
> On Tue, Aug 05, 2014 at 01:26:12PM -0400, Paul Gortmaker wrote:
>> Currently util-linux is fragmented into lots of small chunks,
>> and if one is looking to avoid using busybox wholesale, there
>> is currently no easy way to say "I want all of it".  Here we
>> create a packagegroup for all of the util-linux chunks, so
>> that it need not be duplicated by everyone wanting the same
>> overall goal of removing busybox.
> 
> Why don't you define these as empty packages with just RDEPENDS
> in util-linux?

Sorry, but I'm not quite sure I follow what you mean.  Can you
provide more detail, or perhaps point at a bb as an example
implementation of what you have in mind?

Thanks,
Paul.
--

> 
>> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>>
>> diff --git a/meta/recipes-core/packagegroups/packagegroup-util-linux.bb b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
>> new file mode 100644
>> index 000000000000..54151502b176
>> --- /dev/null
>> +++ b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
>> @@ -0,0 +1,69 @@
>> +#
>> +# Copyright (C) 2014 Wind River
>> +#
>> +
>> +SUMMARY = "util-linux Packages"
>> +DESCRIPTION = "Packages created from util-linux"
>> +PR = "r0"
>> +LICENSE = "MIT"
>> +
>> +inherit packagegroup
>> +
>> +PACKAGES = "\
>> +    packagegroup-util-linux \
>> +    packagegroup-util-linux-block \
>> +    packagegroup-util-linux-console \
>> +    packagegroup-util-linux-uid \
>> +    packagegroup-util-linux-misc \
>> +    packagegroup-util-linux-partition \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux = "\
>> +    packagegroup-util-linux-block \
>> +    packagegroup-util-linux-console \
>> +    packagegroup-util-linux-uid \
>> +    packagegroup-util-linux-misc \
>> +    packagegroup-util-linux-partition \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux-partition = "\
>> +    util-linux-fdisk \
>> +    util-linux-cfdisk \
>> +    util-linux-sfdisk \
>> +    util-linux-partx \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux-console = "\
>> +    util-linux-agetty \
>> +    util-linux-reset \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux-block = " \
>> +    util-linux-mkfs \
>> +    util-linux-mkfs.cramfs \
>> +    util-linux-fsck.cramfs \
>> +    util-linux-fstrim \
>> +    util-linux-fsck \
>> +    util-linux-blkid \
>> +    util-linux-libblkid \
>> +    util-linux-umount \
>> +    util-linux-mount \
>> +    util-linux-libmount \
>> +    util-linux-swaponoff \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux-uid = "\
>> +    util-linux-libuuid \
>> +    util-linux-uuidd \
>> +    util-linux-uuidgen \
>> +    util-linux-findfs \
>> +    "
>> +
>> +RDEPENDS_packagegroup-util-linux-misc = "\
>> +    util-linux-losetup \
>> +    util-linux-readprofile \
>> +    util-linux-lscpu \
>> +    util-linux-mcookie \
>> +    util-linux-bash-completion \
>> +    util-linux-hwclock \
>> +    "
>> -- 
>> 1.9.1
>>
>> -- 
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
Martin Jansa Aug. 6, 2014, 2:42 p.m.
On Wed, Aug 06, 2014 at 10:20:09AM -0400, Paul Gortmaker wrote:
> On 14-08-06 04:21 AM, Martin Jansa wrote:
> > On Tue, Aug 05, 2014 at 01:26:12PM -0400, Paul Gortmaker wrote:
> >> Currently util-linux is fragmented into lots of small chunks,
> >> and if one is looking to avoid using busybox wholesale, there
> >> is currently no easy way to say "I want all of it".  Here we
> >> create a packagegroup for all of the util-linux chunks, so
> >> that it need not be duplicated by everyone wanting the same
> >> overall goal of removing busybox.
> > 
> > Why don't you define these as empty packages with just RDEPENDS
> > in util-linux?
> 
> Sorry, but I'm not quite sure I follow what you mean.  Can you
> provide more detail, or perhaps point at a bb as an example
> implementation of what you have in mind?

e.g. kernel-modules which doesn't contain any files but has RDEPENDS for
all built kernel-module-*.

Similar are python-modules, perl-modules, gst-meta-*, libdrm-drivers,
pango-modules, ..

> Thanks,
> Paul.
> --
> 
> > 
> >> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> >>
> >> diff --git a/meta/recipes-core/packagegroups/packagegroup-util-linux.bb b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
> >> new file mode 100644
> >> index 000000000000..54151502b176
> >> --- /dev/null
> >> +++ b/meta/recipes-core/packagegroups/packagegroup-util-linux.bb
> >> @@ -0,0 +1,69 @@
> >> +#
> >> +# Copyright (C) 2014 Wind River
> >> +#
> >> +
> >> +SUMMARY = "util-linux Packages"
> >> +DESCRIPTION = "Packages created from util-linux"
> >> +PR = "r0"
> >> +LICENSE = "MIT"
> >> +
> >> +inherit packagegroup
> >> +
> >> +PACKAGES = "\
> >> +    packagegroup-util-linux \
> >> +    packagegroup-util-linux-block \
> >> +    packagegroup-util-linux-console \
> >> +    packagegroup-util-linux-uid \
> >> +    packagegroup-util-linux-misc \
> >> +    packagegroup-util-linux-partition \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux = "\
> >> +    packagegroup-util-linux-block \
> >> +    packagegroup-util-linux-console \
> >> +    packagegroup-util-linux-uid \
> >> +    packagegroup-util-linux-misc \
> >> +    packagegroup-util-linux-partition \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux-partition = "\
> >> +    util-linux-fdisk \
> >> +    util-linux-cfdisk \
> >> +    util-linux-sfdisk \
> >> +    util-linux-partx \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux-console = "\
> >> +    util-linux-agetty \
> >> +    util-linux-reset \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux-block = " \
> >> +    util-linux-mkfs \
> >> +    util-linux-mkfs.cramfs \
> >> +    util-linux-fsck.cramfs \
> >> +    util-linux-fstrim \
> >> +    util-linux-fsck \
> >> +    util-linux-blkid \
> >> +    util-linux-libblkid \
> >> +    util-linux-umount \
> >> +    util-linux-mount \
> >> +    util-linux-libmount \
> >> +    util-linux-swaponoff \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux-uid = "\
> >> +    util-linux-libuuid \
> >> +    util-linux-uuidd \
> >> +    util-linux-uuidgen \
> >> +    util-linux-findfs \
> >> +    "
> >> +
> >> +RDEPENDS_packagegroup-util-linux-misc = "\
> >> +    util-linux-losetup \
> >> +    util-linux-readprofile \
> >> +    util-linux-lscpu \
> >> +    util-linux-mcookie \
> >> +    util-linux-bash-completion \
> >> +    util-linux-hwclock \
> >> +    "
> >> -- 
> >> 1.9.1
> >>
> >> -- 
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >