Skip to contentSkip to conversation

Patchset for pushing into master

PATCH In review Otavio Salvador 5 participants 22 messages Apr 7, 2011 – Apr 11, 2011

lore
Share & tools
lore
#0 lore raw

cover Patchset for pushing into master

Hello,

Here goes our current patchset that is ready for pushing into master. Please review and apply those that fit your quality requirements ;-)

Att,

#1 lore raw

PATCH 1/6 udev (165): move ConsoleKit support to udev-consolekit package

---
 recipes/udev/udev_165.bb |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
recipes/udev/udev_165.bb +4 -3
index d426aff..822891f 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPLv2+"
 
-PR = "r3"
+PR = "r4"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"
@@ -71,7 +71,7 @@ EXTRA_OECONF += " --with-udev-prefix= \
 INITSCRIPT_NAME = "udev"
 INITSCRIPT_PARAMS = "start 03 S ."
 
-PACKAGES =+ "libudev libgudev udev-utils"
+PACKAGES =+ "libudev libgudev udev-utils udev-consolekit"
 
 FILES_libudev = "${base_libdir}/libudev.so.*"
 FILES_libgudev = "${base_libdir}/libgudev*.so.*"
@@ -84,7 +84,8 @@ FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
 
 # udev installs binaries under $(udev_prefix)/lib/udev, even if ${libdir}
 # is ${prefix}/lib64
-FILES_${PN} += "/lib/udev* ${libdir}/ConsoleKit"
+FILES_${PN} += "/lib/udev*"
+FILES_${PN}-consokekit += "${libdir}/ConsoleKit"
 FILES_${PN}-dbg += "/lib/udev/.debug"
 
 RPROVIDES_udev_append = " udev-compat-wrapper"
Signature · 1 line
1.7.2.3
#2 lore raw

PATCH 2/6 conf/bitbake: improve compression image handling

* add GZIP_COMPRESSION_LEVEL
* add BZIP2_COMPRESSION_LEVEL
* use xz-native to generate lzma images

---
 conf/bitbake.conf |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)
conf/bitbake.conf +12 -10
index 6946be5..783d781 100644
@@ -150,6 +150,8 @@ QEMU_OPTIONS_armv7a   = "-cpu cortex-a8"
 # default compression levels
 XZ_COMPRESSION_LEVEL ?= "-e -9"
 LZMA_COMPRESSION_LEVEL ?= "-e -9"
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"
 
 # default integrity check
 XZ_INTEGRITY_CHECK ?= "crc32"
@@ -384,14 +386,14 @@ IMAGE_CMD_jffs2 = "mkfs.jffs2 -x lzo --root=${IMAGE_ROOTFS} --faketime --output=
 IMAGE_CMD_yaffs2 = "mkyaffs2image ${EXTRA_IMAGECMD} ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.yaffs2"
 IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
 IMAGE_CMD_ext2 = "genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}"
-IMAGE_CMD_ext2.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}; gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz"
-IMAGE_CMD_ext2.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}; bzip2 -f -9 ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2"
+IMAGE_CMD_ext2.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}; gzip -f ${GZIP_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz"
+IMAGE_CMD_ext2.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}; bzip2 -f ${BZIP2_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2"
 IMAGE_CMD_ext3 = "genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD}; tune2fs -j ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
-IMAGE_CMD_ext3.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD}; tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3; gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz"
-IMAGE_CMD_ext3.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD}; tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3; bzip2 -f -9 ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.bz2"
+IMAGE_CMD_ext3.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD}; tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3; gzip -f ${GZIP_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz"
+IMAGE_CMD_ext3.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD}; tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3; bzip2 -f ${BZIP2_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext3.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.bz2"
 IMAGE_CMD_ext4 = "genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4; set +e; e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac;"
-IMAGE_CMD_ext4.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4; set +e;e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac; gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4.gz"
-IMAGE_CMD_ext4.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4; set +e; e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac; bzip2 -f -9 ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4.bz2"
+IMAGE_CMD_ext4.gz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.gz ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4; set +e;e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac; gzip -f ${GZIP_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext4.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4.gz"
+IMAGE_CMD_ext4.bz2 = "install -d ${DEPLOY_DIR_IMAGE}/tmp.bz2 ; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4; set +e; e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac; bzip2 -f ${BZIP2_COMPRESSION_LEVEL} ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4; mv ${DEPLOY_DIR_IMAGE}/tmp.bz2/${IMAGE_NAME}.rootfs.ext4.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4.bz2"
 IMAGE_CMD_ext4.xz = "install -d ${DEPLOY_DIR_IMAGE}/tmp.xz; genext2fs -i 4096 -b ${ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.xz/${IMAGE_NAME}.rootfs.ext4 ${EXTRA_IMAGECMD}; tune2fs -O extents,uninit_bg,dir_index,has_journal ${DEPLOY_DIR_IMAGE}/tmp.xz/${IMAGE_NAME}.rootfs.ext4; set +e; e2fsck -yfDC0 ${DEPLOY_DIR_IMAGE}/tmp.xz/${IMAGE_NAME}.rootfs.ext4;chk=$?; set -e; case $chk in 0|1|2);;*)exit $chk;;esac; xz -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} ${DEPLOY_DIR_IMAGE}/tmp.xz/${IMAGE_NAME}.rootfs.ext4 > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext4.xz ; rm -f ${DEPLOY_DIR_IMAGE}/tmp.xz/${IMAGE_NAME}.rootfs.ext4 ; rmdir ${DEPLOY_DIR_IMAGE}/tmp.xz"
 
 IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend"
@@ -401,10 +403,10 @@ IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_
 IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
 IMAGE_CMD_tar.xz = "cd ${IMAGE_ROOTFS} && tar --xz -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.xz ."
 IMAGE_CMD_cpio = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio) ${EXTRA_IMAGECMD}"
-IMAGE_CMD_cpio.gz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}"
+IMAGE_CMD_cpio.gz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c ${GZIP_COMPRESSION_LEVEL} >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}"
 IMAGE_CMD_cpio.xz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.xz) ${EXTRA_IMAGECMD}"
-IMAGE_CMD_cpio.gz.u-boot = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}; mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} -d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot"
-IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | lzma -c ${LZMA_COMPRESSION_LEVEL} >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma) ${EXTRA_IMAGECMD}"
+IMAGE_CMD_cpio.gz.u-boot = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c ${GZIP_COMPRESSION_LEVEL} >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz) ${EXTRA_IMAGECMD}; mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} -d ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot"
+IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz --format=lzma -c ${LZMA_COMPRESSION_LEVEL} >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma) ${EXTRA_IMAGECMD}"
 IMAGE_CMD_ubi = "echo \[ubifs\] > ubinize.cfg ; echo mode=ubi >> ubinize.cfg ; echo image=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img >> ubinize.cfg ; echo vol_id=0 >> ubinize.cfg ; echo vol_type=dynamic >> ubinize.cfg ; echo vol_name=${UBI_VOLNAME} >> ubinize.cfg ; echo vol_flags=autoresize >> ubinize.cfg;mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS} && ubinize -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${UBINIZE_ARGS} ubinize.cfg"
 IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS}"
 
@@ -435,7 +437,7 @@ IMAGE_DEPENDS_ext4.gz = "genext2fs-native e2fsprogs-native"
 IMAGE_DEPENDS_ext4.bz2 = "genext2fs-native e2fsprogs-native"
 IMAGE_DEPENDS_ext4.xz = "genext2fs-native e2fsprogs-native xz-native"
 IMAGE_DEPENDS_cpio.gz.u-boot = "u-boot-mkimage-native"
-IMAGE_DEPENDS_cpio.lzma = "lzma-native"
+IMAGE_DEPENDS_cpio.lzma = "xz-native"
 IMAGE_DEPENDS_cpio.xz = "xz-native"
 IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
 IMAGE_DEPENDS_squashfs-lzma = "squashfs-tools-native"
Signature · 1 line
1.7.2.3
#3 lore raw

PATCH 3/6 xorg-xserver-common.inc: drop .la files from packages

---
 recipes/xorg-xserver/xorg-xserver-common.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/xorg-xserver/xorg-xserver-common.inc +2 -1
index 29e3b10..8f59b0b 100644
@@ -2,7 +2,7 @@ HOMEPAGE = "http://www.x.org"
 SECTION = "x11/base"
 LICENSE = "MIT-X"
 
-INC_PR = "r18"
+INC_PR = "r19"
 
 PROVIDES = "virtual/xserver"
 
@@ -108,4 +108,5 @@ FILES_${PN}-multimedia-modules = "${libdir}/xorg/modules/multimedia/*drv*"
 
 do_install_append () {
 	ln -sf ${datadir}/fonts/X11 ${D}/${libdir}/X11/fonts
+	find ${D}/${libdir} -name '*.la' -exec rm '{}' ';'
 }
Signature · 1 line
1.7.2.3
#4 lore raw

PATCH 4/6 xserver-xorg (1.9.4): enable xephyr

---
 recipes/xorg-xserver/xserver-xorg_1.9.4.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/xorg-xserver/xserver-xorg_1.9.4.bb +2 -2
index 89e7a03..cc2dc43 100644
@@ -6,7 +6,7 @@ require xorg-xserver-common.inc
 DESCRIPTION = "the X.Org X server"
 DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native"
 PE = "2"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI += " \
             file://dolt-fix.patch \
@@ -25,7 +25,7 @@ do_install_prepend() {
 PACKAGE_ARCH_ion = "${MACHINE_ARCH}"
 XINERAMA = "${@['--disable-xinerama','--enable-xinerama'][bb.data.getVar('MACHINE',d) in ['ion']]}"
 
-EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-kdrive --disable-xephyr --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"
+EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"
 EXTRA_OECONF += " --enable-dri2 --disable-unit-tests --disable-docs --disable-devel-docs"
 
 export LDFLAGS += " -ldl "
Signature · 1 line
1.7.2.3
#5 lore raw

PATCH 5/6 xserver-xorg (git): enable xephyr

---
 recipes/xorg-xserver/xserver-xorg_git.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/xorg-xserver/xserver-xorg_git.bb +2 -2
index 98831ef..d37c61e 100644
@@ -6,7 +6,7 @@ require xorg-xserver-common.inc
 DESCRIPTION = "the X.Org X server"
 DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native"
 PV = "1.9.99.1"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 PR_append = "+gitr${SRCPV}"
 PE = "2"
 
@@ -32,7 +32,7 @@ do_install_prepend() {
 PACKAGE_ARCH_ion = "${MACHINE_ARCH}"
 XINERAMA = "${@['--disable-xinerama','--enable-xinerama'][bb.data.getVar('MACHINE',d) in ['ion']]}"
 
-EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-kdrive --disable-xephyr --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"
+EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"
 EXTRA_OECONF += " --enable-dri2 --disable-unit-tests "
 
 export LDFLAGS += " -ldl "
Signature · 1 line
1.7.2.3
#6 lore raw

PATCH 6/6 freerdp: update version to 2009-03-29 snapshot

* drop singleton-mode.patch, merged upstream;

---
 recipes/freerdp/freerdp/singleton-mode.patch |  208 --------------------------
 recipes/freerdp/freerdp_git.bb               |    7 +-
 2 files changed, 3 insertions(+), 212 deletions(-)
 delete mode 100644 recipes/freerdp/freerdp/singleton-mode.patch
recipes/freerdp/freerdp/singleton-mode.patch deleted +0 -208
deleted file mode 100644
index 980ec96..0000000
@@ -1,208 +0,0 @@
-From dd81b7b7902015d35e48117db7fb664aa75fdf62 Mon Sep 17 00:00:00 2001
-From: Eduardo Beloni <[email protected]>
-Date: Thu, 3 Mar 2011 14:41:32 -0300
-Subject: [PATCH] xfreerdp: singleton mode
-
-Allows return code according to the Set Error Info PDU
----
- X11/xf_types.h |   21 +++++++++++++++++++++
- X11/xfreerdp.c |   45 ++++++++++++++++++++++++++++++++++++---------
- doc/xfreerdp.1 |    4 ++++
- 3 files changed, 61 insertions(+), 9 deletions(-)
-
-diff --git a/X11/xf_types.h b/X11/xf_types.h
-index 0d355e2..75c7d88 100644
---- a/X11/xf_types.h
-+++ b/X11/xf_types.h
-@@ -88,6 +88,27 @@ struct xf_info
- };
- typedef struct xf_info xfInfo;
- 
-+
-+enum STANDARD_EXIT_CODE
-+{
-+	EX_OK = 0,
-+	EX_USAGE = 64,
-+	EX_DATAERR = 65,
-+	EX_NOINPUT = 66,
-+	EX_NOUSER = 67,
-+	EX_NOHOST = 68,
-+	EX_UNAVAILABLE = 69,
-+	EX_SOFTWARE = 70,
-+	EX_OSERR = 71,
-+	EX_OSFILE = 72,
-+	EX_CANTCREAT = 73,
-+	EX_IOERR = 74,
-+	EX_TEMPFAIL = 75,
-+	EX_PROTOCOL = 76,
-+	EX_NOPERM = 77,
-+	EX_CONFIG = 78,
-+};
-+
- #ifdef WITH_DEBUG
- #define DEBUG(fmt, ...)	printf("DBG %s (%d): " fmt, __FUNCTION__, __LINE__, ## __VA_ARGS__)
- #else
-diff --git a/X11/xfreerdp.c b/X11/xfreerdp.c
-index 994e8ee..f9236e7 100644
---- a/X11/xfreerdp.c
-+++ b/X11/xfreerdp.c
-@@ -155,7 +155,7 @@ out_args(void)
- 
- /* Returns "true" on errors or other reasons to not continue normal operation */
- static int
--process_params(xfInfo * xfi, int argc, char ** argv, int * pindex)
-+process_params(xfInfo * xfi, int argc, char ** argv, int * pindex, _Bool * singleton)
- {
- 	rdpSet * settings;
- 	rdpKeyboardLayout * layouts;
-@@ -165,6 +165,9 @@ process_params(xfInfo * xfi, int argc, char ** argv, int * pindex)
- 	int i, j;
- 	struct passwd * pw;
- 	int num_extensions;
-+	int first_index;
-+
-+	first_index = *pindex;
- 
- 	set_default_params(xfi);
- 	settings = xfi->settings;
-@@ -512,6 +515,16 @@ process_params(xfInfo * xfi, int argc, char ** argv, int * pindex)
- 			}
- 			num_extensions++;
- 		}
-+		else if (strcmp("--singleton", argv[*pindex]) == 0)
-+		{
-+			if (first_index != 1) /* this is not the first parse */
-+			{
-+				printf("Parsing error: you can't run more than one thread in singleton mode\n");
-+				exit(EX_USAGE);
-+			}
-+
-+			*singleton = 1;
-+		}
- 		else if ((strcmp("-h", argv[*pindex]) == 0) || strcmp("--help", argv[*pindex]) == 0)
- 		{
- 			out_args();
-@@ -577,6 +590,7 @@ run_xfreerdp(xfInfo * xfi)
- 	int max_sck;
- 	fd_set rfds;
- 	fd_set wfds;
-+	uint32 disc_reason;
- 
- 	/* create an instance of the library */
- 	inst = freerdp_new(xfi->settings);
-@@ -611,7 +625,7 @@ run_xfreerdp(xfInfo * xfi)
- 	if (inst->rdp_connect(inst) != 0)
- 	{
- 		printf("run_xfreerdp: inst->rdp_connect failed\n");
--		return 1;
-+		return EX_PROTOCOL;
- 	}
- 	if (freerdp_chanman_post_connect(xfi->chan_man, inst) != 0)
- 	{
-@@ -687,7 +701,7 @@ run_xfreerdp(xfInfo * xfi)
- 		/* check the libfreerdp fds */
- 		if (inst->rdp_check_fds(inst) != 0)
- 		{
--			printf("run_xfreerdp: inst->rdp_check_fds failed\n");
-+			printf("run_xfreerdp: inst->rdp_check_fds failed reason %u\n", inst->disc_reason);
- 			break;
- 		}
- 		/* check x fds */
-@@ -703,21 +717,24 @@ run_xfreerdp(xfInfo * xfi)
- 			break;
- 		}
- 	}
-+
-+	disc_reason = inst->disc_reason;
- 	/* cleanup */
- 	freerdp_chanman_close(xfi->chan_man, inst);
- 	inst->rdp_disconnect(inst);
- 	freerdp_free(inst);
- 	xf_uninit(xfi);
--	return 0;
-+	return disc_reason;
- }
- 
- static void *
- thread_func(void * arg)
- {
- 	xfInfo * xfi;
-+	uint32 disc_reason;
- 
- 	xfi = (xfInfo *) arg;
--	run_xfreerdp(xfi);
-+	disc_reason = run_xfreerdp(xfi);
- 	free(xfi->settings);
- 	freerdp_chanman_free(xfi->chan_man);
- 	free(xfi);
-@@ -728,7 +745,7 @@ thread_func(void * arg)
- 	{
- 		freerdp_sem_signal(&g_sem);
- 	}
--	return NULL;
-+	return (void *)disc_reason;
- }
- 
- int
-@@ -738,6 +755,8 @@ main(int argc, char ** argv)
- 	xfInfo * xfi;
- 	pthread_t thread;
- 	int index = 1;
-+	_Bool singleton = 0;
-+	int disc_reason = 0;
- 
- 	setlocale(LC_CTYPE, "");
- 	if (argc == 1)
-@@ -760,7 +779,7 @@ main(int argc, char ** argv)
- 		memset(xfi, 0, sizeof(xfInfo));
- 		xfi->settings = (rdpSet *) malloc(sizeof(rdpSet));
- 		xfi->chan_man = freerdp_chanman_new();
--		rv = process_params(xfi, argc, argv, &index);
-+		rv = process_params(xfi, argc, argv, &index, &singleton);
- 		if (rv)
- 		{
- 			free(xfi->settings);
-@@ -776,9 +795,17 @@ main(int argc, char ** argv)
- 		{
- 			g_thread_count++;
- 		}
-+
-+		if (singleton)
-+			break;
- 	}
- 
--	if (g_thread_count > 0)
-+	if (singleton)
-+	{
-+		pthread_join(thread, (void **)&disc_reason);
-+		printf("thread joint disconnect reason %d\n", disc_reason);
-+	}
-+	else if (g_thread_count > 0)
- 	{
- 		printf("main thread, waiting for all threads to exit\n");
- 		freerdp_sem_wait(&g_sem);
-@@ -787,5 +814,5 @@ main(int argc, char ** argv)
- 
- 	freerdp_chanman_uninit();
- 	freerdp_global_finish();
--	return 0;
-+	return disc_reason;
- }
-diff --git a/doc/xfreerdp.1 b/doc/xfreerdp.1
-index 9fa07ca..1ad0d70 100644
---- a/doc/xfreerdp.1
-+++ b/doc/xfreerdp.1
-@@ -92,6 +92,10 @@ Disable TLS encryption.
- .BR "--no-osb"
- Disable off screen bitmaps.
- .TP
-+.BR "--singleton"
-+Singleton mode. This mode allows only one thread of execution and also returns
-+the Set Error Info PDU as the program exit code.
-+.TP
- .BR "-h"
- Print help message.
- .TP
--- 
-1.6.6.1
-
recipes/freerdp/freerdp_git.bb +3 -4
index beed2b8..ff37509 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2010, O.S. Systems Software Ltda. All Rights Reserved
+# Copyright (C) 2010, 2011, O.S. Systems Software Ltda. All Rights Reserved
 # Released under the MIT license
 
 include freerdp.inc
@@ -9,8 +9,7 @@ PV = "gitr${SRCPV}"
 PKGV = "${GITPKGVTAG}"
 PR = "${INC_PR}.1"
 
-SRCREV = "6f7eb2abb077d60a09eeb66a10ad97d102336d3c"
-SRC_URI = "git://freerdp.git.sourceforge.net/gitroot/freerdp/freerdp.git;protocol=git \
-           file://singleton-mode.patch"
+SRCREV = "7bbde4fb3bc3a781364d0a626c49bc165cc507fd"
+SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;protocol=git"
 
 S = "${WORKDIR}/git"
Signature · 1 line
1.7.2.3
#7 lore raw

Re: [PATCH 6/6] freerdp: update version to 2009-03-29 snapshot

recipes/freerdp/freerdp_git.bb line 2

Quoted 3 lines · Otavio Salvador
recipes/freerdp/freerdp_git.bb +1 -1
-# Copyright (C) 2010, O.S. Systems Software Ltda. All Rights Reserved
+# Copyright (C) 2010, 2011, O.S. Systems Software Ltda. All Rights Reserved
 # Released under the MIT license

Not a comment on this patch as such, but a meta-comment on the recipe:
does it really make sense to state "all rights reserved" in this context?

p.

#8 lore raw

Re: [PATCH 6/6] freerdp: update version to 2009-03-29 snapshot

Quoted 8 lines · Phil Blundell
Quoted 3 lines · Otavio Salvador
recipes/freerdp/freerdp_git.bb +1 -1
-# Copyright (C) 2010, O.S. Systems Software Ltda. All Rights Reserved
+# Copyright (C) 2010, 2011, O.S. Systems Software Ltda. All Rights Reserved

 # Released under the MIT license

Not a comment on this patch as such, but a meta-comment on the recipe:
does it really make sense to state "all rights reserved" in this context?

Not a big deal to us; dropped it.

Will resend it after end of review.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#9 lore raw

Re: [PATCH 4/6] xserver-xorg (1.9.4): enable xephyr

In reply to Otavio Salvador
Quoted 25 lines · Otavio Salvador

---
 recipes/xorg-xserver/xserver-xorg_1.9.4.bb |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/xorg-xserver/xserver-xorg_1.9.4.bb +0 -0
index 89e7a03..cc2dc43 100644
@@ -6,7 +6,7 @@ require xorg-xserver-common.inc

 DESCRIPTION = "the X.Org X server"
 DEPENDS += "pixman libpciaccess openssl dri2proto glproto xorg-minimal-fonts font-util-native" PE = "2"

recipes/xorg-xserver/xserver-xorg_1.9.4.bb +1 -1
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"

 SRC_URI += " \
            file://dolt-fix.patch \

recipes/xorg-xserver/xserver-xorg_1.9.4.bb +0 -0
@@ -25,7 +25,7 @@ do_install_prepend() {

 PACKAGE_ARCH_ion = "${MACHINE_ARCH}"
 XINERAMA = "${@['--disable-xinerama','--enable-xinerama'][bb.data.getVar('MACHINE',d) in ['ion']]}"

recipes/xorg-xserver/xserver-xorg_1.9.4.bb +1 -1
-EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-kdrive --disable-xephyr --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"
+EXTRA_OECONF += " ${CONFIG_MANAGER_OPTION} ${XINERAMA} --disable-xsdl --disable-xfake --disable-xfbdev --disable-dmx"

 EXTRA_OECONF += " --enable-dri2 --disable-unit-tests --disable-docs --disable-devel-docs"

Quoted 1 line

 export LDFLAGS += " -ldl "

I don't remember exact error I got when I was disabling it few months ago, but today I've tried to enable it with your patch and got ICE

| make[3]: Leaving directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/linux' | Making all in ephyr
| make[3]: Entering directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr' | Making all in man
| make[4]: Entering directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr/man'
| GEN Xephyr.1
| make[4]: Leaving directory /OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr/man' | make[4]: Entering directory /OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr'

|   CC     hostx.lo
|   CC     ephyrvideo.lo
|   CC     ephyrhostvideo.lo
| ephyrhostvideo.c: In function 'ephyrHostXVLogXErrorEvent':
| ephyrhostvideo.c:141:5: warning: format not a string literal,

argument types not checked
| ephyrhostvideo.c:160:9: warning: format not a string literal,
argument types not checked
| ephyrhostvideo.c:192:13: warning: format not a string literal,
argument types not checked
| ephyrhostvideo.c:220:9: warning: format not a string literal,
argument types not checked
| ephyrhostvideo.c:226:5: warning: format not a string literal,
argument types not checked
| ephyrhostvideo.c:230:5: warning: format not a string literal,
argument types not checked
| ephyrvideo.c: In functionERROR: Function 'do_compile' failed (see /OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/temp/log.do_compile.22901 for further information)
| 'ephyrGetStill':
| ephyrvideo.c:1243:1: internal compiler error: in
default_secondary_reload, at targhooks.c:762

| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| make[4]: *** [ephyrvideo.lo] Error 1
| make[4]: *** Waiting for unfinished jobs....
| make[4]: Leaving directory

`/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr' | make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive/ephyr' | make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw/kdrive' | make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/OE/tmpdir-shr/work/armv4t-oe-linux-gnueabi/xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6/git/hw'

| make: *** [all-recursive] Error 1
| + die 'oe_runmake failed'
| + oefatal 'oe_runmake failed'
| + echo FATAL: 'oe_runmake failed'
| FATAL: oe_runmake failed
| + exit 1

NOTE: package xserver-xorg-2_1.10.0.902-r19.0+gitr0+ec6e1e45627de2bb851f135df0507a360d0d99e6:
task do_compile: Failed
ERROR: Task 14 (/OE/dev/recipes/xorg-xserver/xserver-xorg_git.bb,
do_compile) failed with exit code '1'
ERROR: '/OE/dev/recipes/xorg-xserver/xserver-xorg_git.bb' failed

are you using sane-toolchain with gcc-4.5?

Regards,

#10 lore raw

Re: [PATCH 4/6] xserver-xorg (1.9.4): enable xephyr

Quoted 1 line · Martin Jansa

are you using sane-toolchain with gcc-4.5?

Yes; using mininal distro.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#11 lore raw

Re: [PATCH 4/6] xserver-xorg (1.9.4): enable xephyr

In reply to Martin Jansa
Quoted 7 lines · Martin Jansa

| 'ephyrGetStill':
| ephyrvideo.c:1243:1: internal compiler error: in default_secondary_reload, at targhooks.c:762

| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| make[4]: *** [ephyrvideo.lo] Error 1

another gcc ICE :( is it again in thumb mode ? can you send me the preprocessed file for ephyrvideo.c

-Khem

#12 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

In reply to Otavio Salvador

conf/bitbake.conf QEMU_OPTIONS_armv7a = "-cpu cortex-a8" · line 154

Quoted 4 lines · Otavio Salvador

XZ_COMPRESSION_LEVEL ?= "-e -9"
LZMA_COMPRESSION_LEVEL ?= "-e -9"

conf/bitbake.conf +2 -0
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"

It seems a bit sad to have to keep adding new vars to the global configuration set (and hence parse them for every single recipe) every time someone wants to tweak a new compression format. Can we not just have a single IMAGE_COMPRESSION_LEVEL that does for everything?

p.

#13 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

Quoted 10 lines · Phil Blundell

conf/bitbake.conf QEMU_OPTIONS_armv7a = "-cpu cortex-a8" · line 154

Quoted 4 lines · Otavio Salvador

 XZ_COMPRESSION_LEVEL ?= "-e -9"
 LZMA_COMPRESSION_LEVEL ?= "-e -9"

conf/bitbake.conf +2 -0
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"

It seems a bit sad to have to keep adding new vars to the global configuration set (and hence parse them for every single recipe) every time someone wants to tweak a new compression format.  Can we not just have a single IMAGE_COMPRESSION_LEVEL that does for everything?

For me it doesn't matter; I can add it if preferred.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#14 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

Quoted 12 lines · Otavio Salvador
Quoted 10 lines · Phil Blundell

conf/bitbake.conf QEMU_OPTIONS_armv7a = "-cpu cortex-a8" · line 154

Quoted 4 lines · Otavio Salvador

XZ_COMPRESSION_LEVEL ?= "-e -9"
LZMA_COMPRESSION_LEVEL ?= "-e -9"

conf/bitbake.conf +2 -0
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"

It seems a bit sad to have to keep adding new vars to the global configuration set (and hence parse them for every single recipe) every time someone wants to tweak a new compression format. Can we not just have a single IMAGE_COMPRESSION_LEVEL that does for everything?

Quoted 1 line

For me it doesn't matter; I can add it if preferred.

Why are we even tweaking gzip/bzip2? XZ/LZMA can have serious tradeoffs at higher levels but I thought for bzip2/gzip it was either do it or no compression, not "turn it down a little bit".

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#15 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

Quoted 3 lines · Tom Rini

Why are we even tweaking gzip/bzip2?  XZ/LZMA can have serious tradeoffs at higher levels but I thought for bzip2/gzip it was either do it or no compression, not "turn it down a little bit".

It changes a lot for compress and decompress time. I think it is important to be able to change those values but how it is done doesn't matter to me.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#16 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

In reply to Tom Rini
Quoted 13 lines · Tom Rini
Quoted 12 lines · Otavio Salvador
Quoted 10 lines · Phil Blundell

conf/bitbake.conf QEMU_OPTIONS_armv7a = "-cpu cortex-a8" · line 154

Quoted 4 lines · Otavio Salvador

XZ_COMPRESSION_LEVEL ?= "-e -9"
LZMA_COMPRESSION_LEVEL ?= "-e -9"

conf/bitbake.conf +2 -0
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"

It seems a bit sad to have to keep adding new vars to the global configuration set (and hence parse them for every single recipe) every time someone wants to tweak a new compression format. Can we not just have a single IMAGE_COMPRESSION_LEVEL that does for everything?

Quoted 5 lines
Quoted 1 line

For me it doesn't matter; I can add it if preferred.

Why are we even tweaking gzip/bzip2? XZ/LZMA can have serious tradeoffs at higher levels but I thought for bzip2/gzip it was either do it or no compression, not "turn it down a little bit".

There is a bit of a tradeoff for gzip, though I'm not sure you would notice it on modern hardware. For bzip2 it's more significant; if you're bzipping large files (several GB) then the choice between -9 and -1 is quite noticeable even on a relatively powerful cpu. I'm not sure you'd notice much difference with either gzip or bzip on a 32MB jffs2 image.

And for unzipping, my recollection is that the decompressor stages of both gzip and bzip run in more-or-less constant time irrespective of the settings that you used when compressing.

So yeah, I agree, it isn't obvious that there is going to be much real-world benefit from tweaking these knobs for gzip and bzip2. If someone wants that ability then fine, but ideally in a way that doesn't cause further metadata bloat for everyone else. One obvious way to do that would be to put the default variable settings in the image-generating classes, rather than in bitbake.conf, so that they don't get set at all for the majority of recipes if you are happy to accept the defaults.

p.

#17 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

Quoted 6 lines · Phil Blundell

There is a bit of a tradeoff for gzip, though I'm not sure you would notice it on modern hardware.  For bzip2 it's more significant; if you're bzipping large files (several GB) then the choice between -9 and -1 is quite noticeable even on a relatively powerful cpu.  I'm not sure you'd notice much difference with either gzip or bzip on a 32MB jffs2 image.

It is noticible; I am doing images for some quite slow machine and it does matter otherwise I wouldn't have done it.

Quoted 4 lines

And for unzipping, my recollection is that the decompressor stages of both gzip and bzip run in more-or-less constant time irrespective of the settings that you used when compressing.

Quoted 8 lines

So yeah, I agree, it isn't obvious that there is going to be much real-world benefit from tweaking these knobs for gzip and bzip2.  If someone wants that ability then fine, but ideally in a way that doesn't cause further metadata bloat for everyone else.  One obvious way to do that would be to put the default variable settings in the image-generating classes, rather than in bitbake.conf, so that they don't get set at all for the majority of recipes if you are happy to accept the defaults.

I agree its place is on the image class or another; this doesn't matter too much to me if I have a place to change it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#18 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

In reply to Phil Blundell
Quoted 10 lines · Phil Blundell

conf/bitbake.conf QEMU_OPTIONS_armv7a = "-cpu cortex-a8" · line 154

Quoted 4 lines · Otavio Salvador

XZ_COMPRESSION_LEVEL ?= "-e -9"
LZMA_COMPRESSION_LEVEL ?= "-e -9"

conf/bitbake.conf +2 -0
+GZIP_COMPRESSION_LEVEL ?= "-9"
+BZIP2_COMPRESSION_LEVEL ?= "-9"

It seems a bit sad to have to keep adding new vars to the global configuration set (and hence parse them for every single recipe) every time someone wants to tweak a new compression format. Can we not just have a single IMAGE_COMPRESSION_LEVEL that does for everything?

Please check RP's changes in oe-core
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-March/000739.html

IMHO would be great to integrate this before such changes.

Cheers,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#19 lore raw

Re: [PATCH 2/6] conf/bitbake: improve compression image handling

Quoted 4 lines · Martin Jansa

Please check RP's changes in oe-core
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-March/000739.html

IMHO would be great to integrate this before such changes.

I think I agree with you since it would for easier migration to oe-core later. Can someone push those and I rebase mine against it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#20 lore raw

Re: [PATCH 1/6] udev (165): move ConsoleKit support to udev-consolekit package

In reply to Otavio Salvador

recipes/udev/udev_165.bb FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug" · line 88

Quoted 12 lines · Otavio Salvador
recipes/udev/udev_165.bb +3 -2
-PACKAGES =+ "libudev libgudev udev-utils"
+PACKAGES =+ "libudev libgudev udev-utils udev-consolekit"
 
 FILES_libudev = "${base_libdir}/libudev.so.*"
 FILES_libgudev = "${base_libdir}/libgudev*.so.*"
@@ -84,7 +84,8 @@ FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
 
 # udev installs binaries under $(udev_prefix)/lib/udev, even if ${libdir}
 # is ${prefix}/lib64
-FILES_${PN} += "/lib/udev* ${libdir}/ConsoleKit"
+FILES_${PN} += "/lib/udev*"
+FILES_${PN}-consokekit += "${libdir}/ConsoleKit"

Did you test this patch? Surely the line above should read "${PN}-consolekit" otherwise it won't match anything.

p.

#21 lore raw

Re: [PATCH 1/6] udev (165): move ConsoleKit support to udev-consolekit package

Quoted 8 lines · Phil Blundell
Quoted 7 lines · Otavio Salvador
recipes/udev/udev_165.bb +1 -1
-PACKAGES =+ "libudev libgudev udev-utils"
+PACKAGES =+ "libudev libgudev udev-utils udev-consolekit"

 FILES_libudev = "${base_libdir}/libudev.so.*"
 FILES_libgudev = "${base_libdir}/libgudev*.so.*"

(quoted diff) +0 -0
@@ -84,7 +84,8 @@ FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug"
 
Quoted 8 lines

recipes/udev/udev_165.bb FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug" · line 88

Quoted 5 lines
recipes/udev/udev_165.bb +2 -1
  # udev installs binaries under $(udev_prefix)/lib/udev, even if ${libdir}
  # is ${prefix}/lib64
-FILES_${PN} += "/lib/udev* ${libdir}/ConsoleKit"
+FILES_${PN} += "/lib/udev*"
+FILES_${PN}-consokekit += "${libdir}/ConsoleKit"

Did you test this patch?  Surely the line above should read "${PN}-consolekit" otherwise it won't match anything.

I did but probably did a mistake when rebasing it; will fix it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br