Skip to contentSkip to conversation

Add support for generating ext2.bz2{, .u-boot} images

PATCH In review Matthew McClintock 4 participants 14 messages Sep 29, 2011 – Oct 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 Add support for generating ext2.bz2{, .u-boot} images

Machines can now add ext2.bz2 and ext2.bz2.u-boot images as a generated image type. This also adds an extra parameter to oe_mkimage which is the image compression type for mkimage

---
 meta/classes/image_types.bbclass       |    9 ++++++++-
 meta/classes/image_types_uboot.bbclass |   14 +++++++++-----
 2 files changed, 17 insertions(+), 6 deletions(-)
meta/classes/image_types.bbclass +8 -1
index c24b326..4619ebe 100644
@@ -46,6 +46,13 @@ IMAGE_CMD_ext2.gz () {
 	mv ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz
 	rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}
 }
+IMAGE_CMD_ext2.bz2 () {
+	rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz
+	genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2
+	bzip2 -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2
+	mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2
+	rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz
+}
 
 IMAGE_CMD_ext3 () {
 	genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
@@ -141,4 +148,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native"
 IMAGE_DEPENDS_ubifs = "mtd-utils-native"
 
 # This variable is available to request which values are suitable for IMAGE_FSTYPES
-IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext3 ext3.gz live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
+IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
meta/classes/image_types_uboot.bbclass +9 -5
index 10fa2f7..aee88a6 100644
@@ -1,20 +1,24 @@
 inherit image_types kernel-arch
 
 oe_mkimage () {
-    mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} \
+    mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C $2 -n ${IMAGE_NAME} \
         -d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot
 }
 
 IMAGE_DEPENDS_ext2.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
 IMAGE_CMD_ext2.gz.u-boot      = "${IMAGE_CMD_ext2.gz} \
-                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext2.gz"
+                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext2.gz gzip"
+
+IMAGE_DEPENDS_ext2.bz2.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
+IMAGE_CMD_ext2.bz2.u-boot      = "${IMAGE_CMD_ext2.bz2} \
+                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext2.bz2 bzip2"
 
 IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
 IMAGE_CMD_ext3.gz.u-boot      = "${IMAGE_CMD_ext3.gz} \
-                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz"
+                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz gzip"
 
 IMAGE_DEPENDS_ext4.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
 IMAGE_CMD_ext4.gz.u-boot      = "${IMAGE_CMD_ext4.gz} \
-                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz"
+                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz gzip"
 
-IMAGE_TYPES += "ext2.gz.u-boot ext3.gz.u-boot ext4.gz.u-boot"
+IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext3.gz.u-boot ext4.gz.u-boot"
Signature · 1 line
1.7.6.1
#1 lore raw

PATCH 2/7 Add support for generating ext2.lzma{, .u-boot} images

Machines can now add ext2.lzma and ext2.lzma.u-boot images as a generated image type.

---
 meta/classes/image_types.bbclass       |   11 ++++++++++-
 meta/classes/image_types_uboot.bbclass |    6 +++++-
 2 files changed, 15 insertions(+), 2 deletions(-)
meta/classes/image_types.bbclass +10 -1
index 4619ebe..2260915 100644
@@ -53,6 +53,13 @@ IMAGE_CMD_ext2.bz2 () {
 	mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2
 	rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz
 }
+IMAGE_CMD_ext2.lzma () {
+	rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz
+	genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2
+	lzma -f -7 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2
+	mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.lzma ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.lzma
+	rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz
+}
 
 IMAGE_CMD_ext3 () {
 	genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
@@ -134,6 +141,8 @@ IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
 IMAGE_DEPENDS_cramfs = "cramfs-native"
 IMAGE_DEPENDS_ext2 = "genext2fs-native"
 IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
+IMAGE_DEPENDS_ext2.bz2 = "genext2fs-native"
+IMAGE_DEPENDS_ext2.lzma = "genext2fs-native"
 IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native"
 IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native"
 IMAGE_DEPENDS_ext4 = "genext2fs-native e2fsprogs-native"
@@ -148,4 +157,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native"
 IMAGE_DEPENDS_ubifs = "mtd-utils-native"
 
 # This variable is available to request which values are suitable for IMAGE_FSTYPES
-IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
+IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
meta/classes/image_types_uboot.bbclass +5 -1
index aee88a6..65dc91b 100644
@@ -13,6 +13,10 @@ IMAGE_DEPENDS_ext2.bz2.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimag
 IMAGE_CMD_ext2.bz2.u-boot      = "${IMAGE_CMD_ext2.bz2} \
                                  oe_mkimage ${IMAGE_NAME}.rootfs.ext2.bz2 bzip2"
 
+IMAGE_DEPENDS_ext2.lzma.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
+IMAGE_CMD_ext2.lzma.u-boot      = "${IMAGE_CMD_ext2.lzma} \
+                                 oe_mkimage ${IMAGE_NAME}.rootfs.ext2.lzma lzma"
+
 IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native"
 IMAGE_CMD_ext3.gz.u-boot      = "${IMAGE_CMD_ext3.gz} \
                                  oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz gzip"
@@ -21,4 +25,4 @@ IMAGE_DEPENDS_ext4.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage
 IMAGE_CMD_ext4.gz.u-boot      = "${IMAGE_CMD_ext4.gz} \
                                  oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz gzip"
 
-IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext3.gz.u-boot ext4.gz.u-boot"
+IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot ext3.gz.u-boot ext4.gz.u-boot"
Signature · 1 line
1.7.6.1
#8 lore raw

PATCH 7/7 Add proper deps for nfs-utils, util-linux, and strace

In reply to Matthew McClintock

These packages need these deps for the RPM generation stage:

error: Failed dependencies:

| 	/usr/bin/python is needed by nfs-utils-1.2.3-r2.ppce5500
| 	/usr/bin/perl is needed by util-linux-2.19.1-r4.ppce5500
| 	/usr/bin/perl is needed by strace-4.5.20-r2.ppce5500
---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    2 +-
 meta/recipes-core/util-linux/util-linux.inc        |    2 +-
 meta/recipes-devtools/strace/strace_4.5.20.bb      |    2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +1 -1
index 08468fe..e8b0490 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
 # util-linux for libblkid
 DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
-RDEPENDS_${PN} = "portmap"
+RDEPENDS_${PN} = "portmap python"
 RRECOMMENDS_${PN} = "kernel-module-nfsd"
 
 PR = "r2"
meta/recipes-core/util-linux/util-linux.inc +1 -1
index 1f242b7..afce673 100644
@@ -55,7 +55,7 @@ FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${libdir}/libuuid.a ${libdi
 FILES_util-linux-lscpu = "${bindir}/lscpu"
 
 RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-mount util-linux-readprofile "
-RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup"
+RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup perl"
 
 RRECOMMENDS_${PN}_virtclass-native = ""
 RDEPENDS_${PN}_virtclass-native = ""
meta/recipes-devtools/strace/strace_4.5.20.bb +2 -0
index 391669f..b3d2aa5 100644
@@ -5,6 +5,8 @@ LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4535377ede62550fdeaf39f595fd550a"
 PR = "r2"
 
+RDEPENDS = "perl"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
            file://sigmask.patch \
           "
Signature · 1 line
1.7.6.1
#5 lore raw

PATCH 5/7 scripts/oe-buildenv-internal: Add SOCKS5_{USER, PASSWD} to BB_ENV_EXTRAWHITE

In reply to Matthew McClintock

From: Kumar Gala <[email protected]>

If a SOCKS5 gateway is needed for a proxy access like git it might also require authentication to the proxy via a password and username. Adding SOCKS5_USER & SOCKS5_PASSWD to BB_ENV_EXTRAWHITE allow for automation of the authentication request to occur when something like a git fetch is going through the proxy.

Also, add several require git variables to be exported to the fetcher

---
 bitbake/lib/bb/fetch2/__init__.py |    3 ++-
 scripts/oe-buildenv-internal      |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +2 -1
index f6fa46c..fb6138b 100644
@@ -385,7 +385,8 @@ def runfetchcmd(cmd, d, quiet = False, cleanup = []):
     exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST',
                   'GIT_PROXY_PORT', 'GIT_CONFIG', 'http_proxy', 'ftp_proxy',
                   'https_proxy', 'no_proxy', 'ALL_PROXY', 'all_proxy',
-                  'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME']
+                  'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME',
+                  'GIT_PROXY_IGNORE', 'SOCKS5_USER', 'SOCKS5_PASSWD']
 
     for var in exportvars:
         val = bb.data.getVar(var, d, True)
scripts/oe-buildenv-internal +1 -2
index 61ac18c..21b92b0 100755
@@ -70,5 +70,4 @@ unset BITBAKEDIR
 # Used by the runqemu script
 export BUILDDIR
 export PATH
-
-export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND"
+export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER"
Signature · 1 line
1.7.6.1
#2 lore raw

PATCH 3/7 Make git fetch run with -f so rebased branches don't fail

In reply to Matthew McClintock

git fetches can fail (or at least return failed) when trying to fetch and prune rebased branches. This patch simply adds a -f to the git fetch command so these failure are ignore

Generally, if some SHA was rebased away it's not coming back so there is no point in not doing this force

---
 bitbake/lib/bb/fetch2/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
bitbake/lib/bb/fetch2/git.py +1 -1
index fb6125c..87a35d9 100644
@@ -190,7 +190,7 @@ class Git(FetchMethod):
                 logger.debug(1, "No Origin")
 
             runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d)
-            fetch_cmd = "%s fetch --prune %s refs/*:refs/*" % (ud.basecmd, repourl)
+            fetch_cmd = "%s fetch -f --prune %s refs/*:refs/*" % (ud.basecmd, repourl)
             bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
             runfetchcmd(fetch_cmd, d)
             runfetchcmd("%s prune-packed" % ud.basecmd, d)
Signature · 1 line
1.7.6.1
#7 lore raw

PATCH 6/7 Fix sysprof for powerpc64

In reply to Matthew McClintock

sysprof will not build properly without this defined

---
 meta/recipes-kernel/sysprof/sysprof_git.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-kernel/sysprof/sysprof_git.bb +3 -1
index 1af5822..16a35b9 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 DEPENDS = "gtk+ libglade"
 
 SRCREV = "38a6af1f0a45e528fd2842983da71e0f23c70d6a"
-PR = r1
+PR = "r2"
 PV = "1.1.6+git${SRCPV}"
 
 SRC_URI = "git://git.gnome.org/sysprof;protocol=git \
@@ -16,6 +16,8 @@ SRC_URI_append_arm  = " file://rmb-arm.patch"
 SRC_URI_append_mips = " file://rmb-mips.patch"
 SRC_URI_append_powerpc = " file://ppc-macro-fix.patch"
 
+export CFLAGS_append_powerpc64 = " -D__ppc64__"
+
 SRC_URI[md5sum]    = "80902a7b3d6f7cb83eb6b47e87538747"
 SRC_URI[sha256sum] = "1c6403278fa4f3b37a1fb9f0784e496dce1703fe84ac03b2650bf469133a0cb3"
 
Signature · 1 line
1.7.6.1
#4 lore raw

PATCH 4/7 Add new IMAGE_CLASSES variable for classes for image generation

In reply to Matthew McClintock

Allows us to import classes only for images and not to the global namespace

---
 meta-yocto/conf/local.conf.sample |    6 ++++++
 meta/classes/image.bbclass        |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)
meta-yocto/conf/local.conf.sample +6 -0
index f6951b0..b4eec0b 100644
@@ -163,6 +163,12 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks"
 # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
 USER_CLASSES ?= "image-mklibs image-prelink"
 
+# Additional image generation features
+#
+# The following is a list of classes to import to use in the generation of images
+# currently an example class is image_types_uboot
+# IMAGE_CLASSES ?= "image_types_uboot"
+
 #
 # Runtime testing of images
 #
meta/classes/image.bbclass +2 -1
index f17e989..f03df5b 100644
@@ -111,7 +111,8 @@ def get_devtable_list(d):
         str += " %s" % bb.which(bb.data.getVar('BBPATH', d, 1), devtable)
     return str
 
-inherit image_types
+IMAGE_CLASESS ??= ""
+inherit image_types ${IMAGE_CLASSES}
 
 IMAGE_POSTPROCESS_COMMAND ?= ""
 MACHINE_POSTPROCESS_COMMAND ?= ""
Signature · 1 line
1.7.6.1
#6 lore raw

Re: [PATCH 5/7] scripts/oe-buildenv-internal: Add SOCKS5_{USER, PASSWD} to BB_ENV_EXTRAWHITE

In reply to Matthew McClintock
Quoted 9 lines · Matthew McClintock

From: Kumar Gala <[email protected]>

If a SOCKS5 gateway is needed for a proxy access like git it might also require authentication to the proxy via a password and username.  Adding SOCKS5_USER & SOCKS5_PASSWD to BB_ENV_EXTRAWHITE allow for automation of the authentication request to occur when something like a git fetch is going through the proxy.

Also, add several require git variables to be exported to the fetcher

I did not realize this when I just sent, but should this be two separate patches with one going to bitbake-devel?

-M

#3 lore raw

Re: [PATCH 3/7] Make git fetch run with -f so rebased branches don't fail

In reply to Matthew McClintock
Quoted 6 lines · Matthew McClintock

git fetches can fail (or at least return failed) when trying to fetch and prune rebased branches. This patch simply adds a -f to the git fetch command so these failure are ignore

Generally, if some SHA was rebased away it's not coming back so there is no point in not doing this force

I already sent this to the bitbake-devel list as well.

-M

#9 lore raw

Re: [yocto] [PATCH 7/7] Add proper deps for nfs-utils, util-linux, and strace

In reply to Matthew McClintock
Quoted 1 line · Matthew McClintock

These packages need these deps for the RPM generation stage:

This was already applied, but I'll reply here and please send next patch adressing those comments.

Today I've noticed that perl and libperl are pulled to my images only because of util-linux and strace I belive I don't need them, see inline comments

Quoted 20 lines

 error: Failed dependencies:

|       /usr/bin/python is needed by nfs-utils-1.2.3-r2.ppce5500
|       /usr/bin/perl is needed by util-linux-2.19.1-r4.ppce5500
|       /usr/bin/perl is needed by strace-4.5.20-r2.ppce5500

---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    2 +- meta/recipes-core/util-linux/util-linux.inc        |    2 +- meta/recipes-devtools/strace/strace_4.5.20.bb      |    2 ++

 3 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +0 -0
index 08468fe..e8b0490 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
  # util-linux for libblkid

 DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"

meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" · line 12

Quoted 2 lines
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +1 -1
-RDEPENDS_${PN} = "portmap"
+RDEPENDS_${PN} = "portmap python"

python is needed only for ./usr/sbin/mountstats:#!/usr/bin/env python ./usr/sbin/nfsiostat:#!/usr/bin/python
could you please move them to separate packages and keep python runtime dependency only there?

meta/recipes-core/util-linux/util-linux.inc FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${libdir}/libuuid.a ${libdi · line 58

Quoted 13 lines

 RRECOMMENDS_${PN} = "kernel-module-nfsd"

 PR = "r2"

meta/recipes-core/util-linux/util-linux.inc +0 -0
index 1f242b7..afce673 100644
@@ -55,7 +55,7 @@ FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${libdir}/libuuid.a ${libdi

 FILES_util-linux-lscpu = "${bindir}/lscpu"

 RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-mount util-linux-readprofile "

meta/recipes-core/util-linux/util-linux.inc +1 -1
-RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup"
+RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup perl"

perl is needed only for
/usr/bin/chkdupexe
could you please move chkdupexe to separate package and add perl only to RDEPENDS_${PN}-chkdupexe?

Quoted 11 lines

 RRECOMMENDS_${PN}_virtclass-native = ""
 RDEPENDS_${PN}_virtclass-native = ""

meta/recipes-devtools/strace/strace_4.5.20.bb +0 -0
index 391669f..b3d2aa5 100644
@@ -5,6 +5,8 @@ LICENSE = "BSD"

 LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4535377ede62550fdeaf39f595fd550a" PR = "r2"

+RDEPENDS = "perl"

This should be RDEPENDS_${PN}
and much better would be to split strace-graph to separate package and add perl only to RDEPENDS_${PN}-graph

Quoted 6 lines

+
 SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
           file://sigmask.patch \
          "
--
1.7.6.1

And also you need to bump PR when you're changing RDEPENDs (otherwise issues are shown much later when it's rebuild because of some other changes).

Regards,

#10 lore raw

PATCH 1/1 nfs-utils: separate nfs-utils-client and nfs-utils-stats

* move python runtime dependency only to nfs-utils-stats

---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +7 -2
index e8b0490..d047940 100644
@@ -9,10 +9,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
 # util-linux for libblkid
 DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
-RDEPENDS_${PN} = "portmap python"
+RDEPENDS_${PN} = "portmap"
 RRECOMMENDS_${PN} = "kernel-module-nfsd"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
            file://nfs-utils-1.0.6-uclibc.patch \
@@ -45,6 +45,11 @@ EXTRA_OECONF = "--with-statduser=nobody \
 
 INHIBIT_AUTO_STAGE = "1"
 
+PACKAGES =+ "${PN}-client ${PN}-stats"
+FILES_${PN}-client = "${base_sbindir}/*mount.nfs*"
+FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
+RDEPENDS_${PN}-stats = "python"
+
 do_install_append () {
 	install -d ${D}${sysconfdir}/init.d
 	install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
Signature · 1 line
1.7.7
#11 lore raw

Re: [PATCH] nfs-utils: separate nfs-utils-client and nfs-utils-stats

Quoted 6 lines · Martin Jansa

* move python runtime dependency only to nfs-utils-stats

---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard

#12 lore raw

Re: [PATCH 7/7] Add proper deps for nfs-utils, util-linux, and strace

In reply to Martin Jansa
Quoted 9 lines · Martin Jansa
Quoted 1 line · Matthew McClintock

These packages need these deps for the RPM generation stage:

This was already applied, but I'll reply here and please send next patch adressing those comments.

Today I've noticed that perl and libperl are pulled to my images only because of util-linux and strace I belive I don't need them, see inline comments

PING

I've fixed nfs_utils, could you please fix util-linux and strace as suggested?

Regards,

Quoted 78 lines
Quoted 20 lines

 error: Failed dependencies:

|       /usr/bin/python is needed by nfs-utils-1.2.3-r2.ppce5500
|       /usr/bin/perl is needed by util-linux-2.19.1-r4.ppce5500
|       /usr/bin/perl is needed by strace-4.5.20-r2.ppce5500

---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    2 +- meta/recipes-core/util-linux/util-linux.inc        |    2 +- meta/recipes-devtools/strace/strace_4.5.20.bb      |    2 ++

 3 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +0 -0
index 08468fe..e8b0490 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
  # util-linux for libblkid

 DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"

meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" · line 12

Quoted 2 lines
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +1 -1
-RDEPENDS_${PN} = "portmap"
+RDEPENDS_${PN} = "portmap python"

python is needed only for ./usr/sbin/mountstats:#!/usr/bin/env python ./usr/sbin/nfsiostat:#!/usr/bin/python
could you please move them to separate packages and keep python runtime dependency only there?

meta/recipes-core/util-linux/util-linux.inc FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${libdir}/libuuid.a ${libdi · line 58

Quoted 13 lines

 RRECOMMENDS_${PN} = "kernel-module-nfsd"

 PR = "r2"

meta/recipes-core/util-linux/util-linux.inc +0 -0
index 1f242b7..afce673 100644
@@ -55,7 +55,7 @@ FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${libdir}/libuuid.a ${libdi

 FILES_util-linux-lscpu = "${bindir}/lscpu"

 RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-mount util-linux-readprofile "

meta/recipes-core/util-linux/util-linux.inc +1 -1
-RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup"
+RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup perl"

perl is needed only for
/usr/bin/chkdupexe
could you please move chkdupexe to separate package and add perl only to RDEPENDS_${PN}-chkdupexe?

Quoted 11 lines

 RRECOMMENDS_${PN}_virtclass-native = ""
 RDEPENDS_${PN}_virtclass-native = ""

meta/recipes-devtools/strace/strace_4.5.20.bb +0 -0
index 391669f..b3d2aa5 100644
@@ -5,6 +5,8 @@ LICENSE = "BSD"

 LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4535377ede62550fdeaf39f595fd550a" PR = "r2"

+RDEPENDS = "perl"

This should be RDEPENDS_${PN}
and much better would be to split strace-graph to separate package and add perl only to RDEPENDS_${PN}-graph

Quoted 6 lines

+
 SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.bz2 \
           file://sigmask.patch \
          "
--
1.7.6.1

And also you need to bump PR when you're changing RDEPENDs (otherwise issues are shown much later when it's rebuild because of some other changes).

Regards,

#13 lore raw

Re: [PATCH 7/7] Add proper deps for nfs-utils, util-linux, and strace

Quoted 3 lines · Martin Jansa

PING

I've fixed nfs_utils, could you please fix util-linux and strace as suggested?

This is still on my list but I'm not sure when I will be able to get to it.

-M