Cody P Schafer | 25 Oct 18:10 2014

[PATCH] Avoid crashing if getgrnam() cannont find a group by the given name

Without this, we get (on systems without a 'mail' group):

	ERROR: Error executing a python function in /home/x/g/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.16.bb:

	The stack trace of python calls that resulted in this exception/failure was:
	File: 'fixup_perms', lineno: 231, function: <module>
	     0227:                    each_file = os.path.join(root, f)
	     0228:                    fix_perms(each_file, fs_perms_table[dir].fmode, fs_perms_table[dir].fuid,
fs_perms_table[dir].fgid, dir)
	     0229:
	     0230:
	 *** 0231:fixup_perms(d)
	     0232:
	File: 'fixup_perms', lineno: 173, function: fixup_perms
	     0169:                if len(lsplit) != 8 and not (len(lsplit) == 3 and lsplit[1].lower() == "link"):
	     0170:                    msg = "Fixup perms: %s invalid line: %s" % (conf, line)
	     0171:                    package_qa_handle_error("perm-line", msg, d)
	     0172:                    continue
	 *** 0173:                entry = fs_perms_entry(d.expand(line))
	     0174:                if entry and entry.path:
	     0175:                    fs_perms_table[entry.path] = entry
	     0176:            f.close()
	     0177:
	File: 'fixup_perms', lineno: 32, function: __init__
	  File "fixup_perms", line 32, in __init__

	File: 'fixup_perms', lineno: 44, function: _setdir
	  File "fixup_perms", line 44, in _setdir

	File: 'fixup_perms', lineno: 75, function: _procgid
(Continue reading)

Khem Raj | 24 Oct 18:24 2014
Picon

[PATCH 1/2] glibc: Delete ldconfig when USE_LDCONFIG is not set

This avoids below QA error/warning
/sbin/ldconfig [installed-vs-shipped]

Change-Id: I028b692eefeaa6e0e0e6507ab4108caa29e41e91
Signed-off-by: Khem Raj <raj.khem@...>
---
 meta/recipes-core/glibc/glibc-package.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 13209f5..6212e5b 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
 <at>  <at>  -92,8 +92,9  <at>  <at>  do_install_append () {
 	fi

 	if [ "${USE_LDCONFIG}" != "1" ]; then
-		# We won't ship this file (see FILES above) so let's not install it
+		# We won't ship these files (see FILES above) so let's not install them
 		rm -f ${D}${sysconfdir}/ld.so.conf
+		rm -f ${D}${base_sbindir}/ldconfig
 		# This directory will be empty now so remove it too.
 		# But check whether it exists first, since it won't for glibc-initial.
 		if [ -d ${D}${sysconfdir} ]; then
-- 
1.9.1

--

-- 
Johan Hovold | 24 Oct 17:39 2014

[PATCH] udev: fix uevent-helper disable

Make sure that /proc/sys/kernel/hotplug exists before trying to disable
the uevent-helper mechanism.

Since kernel commit 86d56134f1b6 ("kobject: Make support for
uevent_helper optional.") the kernel can be built without uevent-helper
support. In this case /proc/sys/kernel/hotplug does not exist and the
current sysvinit script fails with

	/etc/rcS.d/S04udev: line 132: can't create /proc/sys/kernel/hotplug: nonexistent directory

when trying to disable the uevent-helper mechanism during boot.

Note that a single NULL-character has always been sufficient to disable.

Signed-off-by: Johan Hovold <johan@...>
---

Patch is against daisy-11.0.1 but should apply fine to master. All
branches affected.

Thanks,
Johan

 meta/recipes-core/udev/udev/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 410a650bd192..63e59d3950c9 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
(Continue reading)

Richard Purdie | 24 Oct 16:56 2014

[PATCH] hicolor-icon-theme: Deal with "make clean" breakage

hicolor-icon-theme can't cope with a "make clean" so disable that
newly enabled functionality.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.13.bb b/meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.13.bb
index 9df81cb..9f372c5 100644
--- a/meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.13.bb
+++ b/meta/recipes-gnome/hicolor-icon-theme/hicolor-icon-theme_0.13.bb
 <at>  <at>  -18,6 +18,10  <at>  <at>  SRC_URI[sha256sum] = "a38b038915480d1ddd4e3c421562560a14d42ace0449a5acc07c50f57f

 FILES_${PN} += "${datadir}/icons"

+autotools_preconfigure () {
+	:
+}
+
 do_install_append () {
 	install -m 0644 ${WORKDIR}/index.theme ${D}/${datadir}/icons/hicolor
 }

--

-- 
Richard Purdie | 24 Oct 16:56 2014

[PATCH] gnu-config: Deal with "make clean" breakage

gnu-config can't cope with a "make clean" so disable that
newly enabled functionality.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
index d67466a..910b612 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
 <at>  <at>  -17,6 +17,10  <at>  <at>  SRC_URI = "http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-${PV
 SRC_URI[md5sum] = "bcfca5a2bb39edad4aae5a65efc84094"
 SRC_URI[sha256sum] = "44f99a8e76f3e8e4fec0bb5ad4762f8e44366168554ce66cb85afbe2ed3efd8b"

+do_configure () {
+	:
+}
+
 do_compile() {
 	:
 }
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_git.bb b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
index 00fa759..ee1621f 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_git.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
 <at>  <at>  -17,6 +17,10  <at>  <at>  SRC_URI = "git://git.sv.gnu.org/config.git \

 S = "${WORKDIR}/git"

+do_configure () {
+	:
(Continue reading)

Richard Purdie | 24 Oct 16:23 2014

[PATCH] gnu-config/hicolor-icon-theme: Deal with "make clean" breakage

These pieces of software can;t cope with a "make clean" so disable that
newly enabled functionality.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
index d67466a..910b612 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
 <at>  <at>  -17,6 +17,10  <at>  <at>  SRC_URI = "http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-${PV
 SRC_URI[md5sum] = "bcfca5a2bb39edad4aae5a65efc84094"
 SRC_URI[sha256sum] = "44f99a8e76f3e8e4fec0bb5ad4762f8e44366168554ce66cb85afbe2ed3efd8b"

+do_configure () {
+	:
+}
+
 do_compile() {
 	:
 }
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_git.bb b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
index 00fa759..ee1621f 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_git.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
 <at>  <at>  -17,6 +17,10  <at>  <at>  SRC_URI = "git://git.sv.gnu.org/config.git \

 S = "${WORKDIR}/git"

+do_configure () {
+	:
(Continue reading)

Richard Purdie | 24 Oct 16:22 2014

[PATCH] wpa_supplicant: Improve rebuild handling

Due to the split level nature of the wpa_suppliant sources, the standard
clean methods don't work. This change ensures it picks up on changes to
configuration.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
index 3a1cce0..1cb547c 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
 <at>  <at>  -38,6 +38,7  <at>  <at>  FILES_${PN} += "${datadir}/dbus-1/system-services/*"
 CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf"

 do_configure () {
+	${MAKE} -C wpa_supplicant clean
 	install -m 0755 ${WORKDIR}/defconfig wpa_supplicant/.config
 	echo "CFLAGS +=\"-I${STAGING_INCDIR}/libnl3\"" >> wpa_supplicant/.config
 	

--

-- 
Richard Purdie | 24 Oct 16:20 2014

[PATCH] cmake: Try and improve cleaning of builds when B==S

Currently if B==S for a cmake recipe, the build will not reconfigure. This patch adds 
code to remove the generated cmake files, meaning cmake will then be forced to regenerate
them. This forces cmake to see configuration changes it may not otherwise see.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 995ddf1..10f8f98 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
 <at>  <at>  -79,6 +79,8  <at>  <at>  cmake_do_configure() {
 		rm -rf ${B}
 		mkdir -p ${B}
 		cd ${B}
+	else
+		find ${B} -name CMakeFiles -or -name Makefile -or -name cmake_install.cmake -or -name
CMakeCache.txt -delete	
 	fi

 	# Just like autotools cmake can use a site file to cache result that need generated binaries to run

--

-- 
Richard Purdie | 24 Oct 16:17 2014

[PATCH] base.bbclass: Enable using 'make clean' for rebuilds

When something rebuilds say due to ${baselib} changing or some
other key variable, software is often not rebuilt due to the
fact that make detects no dependency change.

By running "make clean" when these changes occur, we can at least try
and ensure the correct rebuilds happen. We use the same checksum check as 
autotools to decide if things have changed or not.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d6a2292..52b835e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
 <at>  <at>  -230,11 +230,24  <at>  <at>  gdkpixbuf_complete() {
 	GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_BINDIR_NATIVE}/gdk-pixbuf-query-loaders --update-cache
|| exit 1
 }

+CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate"
+
 addtask configure after do_patch
 do_configure[dirs] = "${S} ${B}"
 do_configure[deptask] = "do_populate_sysroot"
 base_do_configure() {
-	:
+	if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
+		if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then
+			cd ${B}
+			if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
(Continue reading)

Richard Purdie | 24 Oct 16:15 2014

[PATCH] autotools: Use make clean for builds not supporting B != S

If the build doesn't support B != S, we can try running "make clean" instead
to try and clean up previous objects if the hash for the task has changed.

This tries to ensure that when variables like ${baselib} change, the changes are
correctly accounted for.

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 6b99bdd..bed8a83 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
 <at>  <at>  -109,7 +109,11  <at>  <at>  autotools_preconfigure() {
 			else
 				# At least remove the .la files since automake won't automatically
 				# regenerate them even if CFLAGS/LDFLAGS are different
-				cd ${S}; find ${S} -name \*.la -delete
+				cd ${S}
+				if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
+					${MAKE} clean
+				fi
+				find ${S} -name \*.la -delete
 			fi
 		fi
 	fi

--

-- 
Richard Purdie | 24 Oct 16:14 2014

[PATCH] rm_work: Speed up rootfs/populate_sdk removal

Commands like bitbake X -c rootfs or bitbake X -c populate_sdk do not
trigger rm_work to clean up the directories afterwards since it
traditionally hooks onto do_build. This change means those two tasks now
clean up after themselves. We use the cleandirs function attribute to
handle this.

[YOCTO #6413]

Signed-off-by: Richard Purdie <richard.purdie@...>

diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index f0f6d18..7b1ec17 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
 <at>  <at>  -97,3 +97,16  <at>  <at>  do_rm_work_all () {
 }
 do_rm_work_all[recrdeptask] = "do_rm_work"
 addtask rm_work_all after do_rm_work
+
+do_populate_sdk[postfuncs] += "rm_work_populatesdk"
+rm_work_populatesdk () {
+    :
+}
+rm_work_populatesdk[cleandirs] = "${WORKDIR}/sdk"
+
+do_rootfs[postfuncs] += "rm_work_rootfs"
+rm_work_rootfs () {
+    :
+}
+rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
(Continue reading)


Gmane