Skip to contentSkip to conversation

util-linux: create an all encompassing package group

PATCH In review Paul Gortmaker 2 participants 4 messages Aug 5, 2014 – Aug 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: create an all encompassing package group

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.

meta/recipes-core/packagegroups/packagegroup-util-linux.bb new file +69 -0
new file mode 100644
index 000000000000..54151502b176
@@ -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 \
+    "
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · Paul Gortmaker

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?

Quoted 85 lines
meta/recipes-core/packagegroups/packagegroup-util-linux.bb new file +69 -0
new file mode 100644
index 000000000000..54151502b176
@@ -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 \
+    "
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 10 lines · Martin Jansa
Quoted 6 lines · Paul Gortmaker

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.
--

Quoted 87 lines
Quoted 86 lines
meta/recipes-core/packagegroups/packagegroup-util-linux.bb new file +69 -0
new file mode 100644
index 000000000000..54151502b176
@@ -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 \
+    "
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
#3 lore raw
Quoted 9 lines · Paul Gortmaker
Quoted 8 lines · Martin Jansa
Quoted 6 lines · Paul Gortmaker

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.

Quoted 6 lines
Quoted 2 lines

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, ..

Quoted 91 lines

Thanks,
Paul.
--

Quoted 87 lines
Quoted 86 lines
meta/recipes-core/packagegroups/packagegroup-util-linux.bb new file +69 -0
new file mode 100644
index 000000000000..54151502b176
@@ -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 \
+    "
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]