Skip to contentSkip to conversation

yocto-uninative: bump to uninative tarball version 1.2

PATCH In review Ross Burton 2 participants 6 messages Aug 5, 2016 – Oct 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 yocto-uninative: bump to uninative tarball version 1.2

This new uninative version includes fixes to use the host locales.

[ YOCTO #9994 ]

---
 meta/conf/distro/include/yocto-uninative.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/yocto-uninative.inc +3 -3
index 8b4e947..48ad283 100644
@@ -6,6 +6,6 @@
 # to the distro running on the build machine.
 #
 
-UNINATIVE_URL = "http://downloads.yoctoproject.org/releases/uninative/1.1/"
-UNINATIVE_CHECKSUM[i686] ?= "1973aa8d07ba4fdae197ea3ffba1274c57ff7923679c364ec8e2b66c73483234"
-UNINATIVE_CHECKSUM[x86_64] ?= "84e89ed675156d13a27fe56e8433f5fa9662802349bb0bbe9e6eba577fc140d3"
+UNINATIVE_URL = "http://downloads.yoctoproject.org/releases/uninative/1.2/"
+UNINATIVE_CHECKSUM[i686] ?= "8b2f16d16cb037dd9905431875f5c355367dded84b18c3b98ca0e639b96fb8d1"
+UNINATIVE_CHECKSUM[x86_64] ?= "2919dd81e4cafcc0fe73736363c6232dc8bfc016a8c765481d98ae4de8193d24"
Signature · 1 line
2.8.1
#1 lore raw

PATCH 2/5 intltool: bump serial for aclocal --install

We modify this macro and need it to be used over local copies in tarballs. It appears that aclocal doesn't quite want to do the right thing just yet but increase the version just in case it does in the future.

Upstream typically increments by one, and autoconf handles point versions fine, so bump it by 0.1.

---
 meta/recipes-devtools/intltool/intltool/remove-perl-check.patch | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/intltool/intltool/remove-perl-check.patch +3 -0
index bea0895..5f57ea3 100644
@@ -12,6 +12,9 @@ Signed-off-by: Ross Burton <[email protected]>
 
 --- a/intltool.m4.orig	2013-07-02 11:22:23.000000000 -0700
 +++ b/intltool.m4	2013-07-02 11:22:32.000000000 -0700
+@@ -26,1 +26,1 @@ dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
+-# serial 42 IT_PROG_INTLTOOL
++# serial 42.1 IT_PROG_INTLTOOL
 @@ -131,27 +131,6 @@ if test -z "$xgversion" -o -z "$mmversio
      AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  fi
Signature · 1 line
2.8.1
#2 lore raw

PATCH 3/5 autotools: move aclocal-copy to WORKDIR

In reply to Ross Burton

To save time move the temporary copy of the autoconf macros, aclocal-copy, from ${B} to ${WORKDIR}. This ensures that it can't conflict with anything in ${S} and means the pruning code doesn't need to know about it.

---
 meta/classes/autotools.bbclass | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
meta/classes/autotools.bbclass +3 -5
index 1c884b4..22359d3 100644
@@ -134,7 +134,7 @@ EXTRACONFFUNCS ??= ""
 do_configure[prefuncs] += "autotools_preconfigure autotools_copy_aclocals ${EXTRACONFFUNCS}"
 do_configure[postfuncs] += "autotools_postconfigure"
 
-ACLOCALDIR = "${B}/aclocal-copy"
+ACLOCALDIR = "${WORKDIR}/aclocal-copy"
 
 python autotools_copy_aclocals () {
     s = d.getVar("AUTOTOOLS_SCRIPT_PATH", True)
@@ -248,7 +248,7 @@ autotools_do_configure() {
 		if [ x"${acpaths}" = xdefault ]; then
 			acpaths=
 			for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
-				grep -v 'acinclude.m4' | grep -v 'aclocal-copy' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
+				grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
 				acpaths="$acpaths -I $i"
 			done
 		else
@@ -288,9 +288,7 @@ autotools_do_configure() {
 				fi
 			fi
 			for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do
-				for j in `find ${S} -ignore_readdir_race -name $i | grep -v aclocal-copy`; do
-					rm $j
-				done
+				find ${S} -ignore_readdir_race -name $i -delete
 			done
 		fi
 		mkdir -p m4
Signature · 1 line
2.8.1
#4 lore raw

PATCH 4/5 autotools.bbclass: remove intltool.m4 from ${S}

In reply to Ross Burton

We need to ensure that builds use our intltool.m4 as there is a bug in upstream's macros when the host doesn't have XML::Parser installed.

So generalise the m4 pruning logic that we already have from gettext and add intltool.m4.

---
 meta/classes/autotools.bbclass | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
meta/classes/autotools.bbclass +10 -3
index 22359d3..076899c 100644
@@ -238,6 +238,9 @@ autotools_do_configure() {
 	# for a package whose autotools are old, on an x86_64 machine, which the old
 	# config.sub does not support.  Work around this by installing them manually
 	# regardless.
+
+	PRUNE_M4=""
+
 	for ac in `find ${S} -ignore_readdir_race -name configure.in -o -name configure.ac`; do
 		rm -f `dirname $ac`/configure
 	done
@@ -287,18 +290,22 @@ autotools_do_configure() {
 					cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/
 				fi
 			fi
-			for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do
-				find ${S} -ignore_readdir_race -name $i -delete
-			done
+			PRUNE_M4="$PRUNE_M4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4"
 		fi
 		mkdir -p m4
 		if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
 			if ! echo "${DEPENDS}" | grep -q intltool-native; then
 				bbwarn "Missing DEPENDS on intltool-native"
 			fi
+			PRUNE_M4="$PRUNE_M4 intltool.m4"
 			bbnote Executing intltoolize --copy --force --automake
 			intltoolize --copy --force --automake
 		fi
+
+		for i in $PRUNE_M4; do
+			find ${S} -ignore_readdir_race -name $i -delete
+		done
+
 		bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
 		ACLOCAL="$ACLOCAL" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed."
 		cd $olddir
Signature · 1 line
2.8.1
#5 lore raw

PATCH 5/5 hdparm: set LICENSE correctly

In reply to Ross Burton

LICENSE is recipe-wide so should be BSD & GPLv2, and then override LICENSE_${PN} to just BSD as LICENSE_wiper is GPLv2.

---
 meta/recipes-extended/hdparm/hdparm_9.48.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-extended/hdparm/hdparm_9.48.bb +4 -1
index ec3d26f..93a37ff 100644
@@ -2,8 +2,11 @@ SUMMARY = "Utility for viewing/manipulating IDE disk drive/driver parameters"
 DESCRIPTION = "hdparm is a Linux shell utility for viewing \
 and manipulating various IDE drive and driver parameters."
 SECTION = "console/utils"
-LICENSE = "BSD"
+
+LICENSE = "BSD & GPLv2"
+LICENSE_${PN} = "BSD"
 LICENSE_wiper = "GPLv2"
+
 LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=910a8a42c962d238619c75fdb78bdb24 \
                     file://debian/copyright;md5=a82d7ba3ade9e8ec902749db98c592f3 \
                     file://wiper/GPLv2.txt;md5=fcb02dc552a041dee27e4b85c7396067 \
Signature · 1 line
2.8.1
#3 lore raw

Re: [PATCH 3/5] autotools: move aclocal-copy to WORKDIR

In reply to Ross Burton
Quoted 3 lines · Ross Burton

To save time move the temporary copy of the autoconf macros, aclocal-copy, from ${B} to ${WORKDIR}. This ensures that it can't conflict with anything in ${S} and means the pruning code doesn't need to know about it.

Apparently this breaks recipes which copy all sources into ${WORKDIR} and then set ${S} to ${WORKDIR}.

Obviously that's the recipe's problem, but wondering if we should add a check in the autotools class to catch and flag that particular case?

Sorry to bring this up so late but I just recently came across a user who's recipe broke when they updated from daisy to morty and their proposed "fix" was to hack autotools.bbclass to re-instate the "grep -v aclocal-copy" removed below...

Quoted 46 lines
---
 meta/classes/autotools.bbclass | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
meta/classes/autotools.bbclass +3 -6
index 1c884b4..22359d3 100644
@@ -134,7 +134,7 @@ EXTRACONFFUNCS ??= ""
 do_configure[prefuncs] += "autotools_preconfigure autotools_copy_aclocals ${EXTRACONFFUNCS}"
 do_configure[postfuncs] += "autotools_postconfigure"
 
-ACLOCALDIR = "${B}/aclocal-copy"
+ACLOCALDIR = "${WORKDIR}/aclocal-copy"
 
 python autotools_copy_aclocals () {
     s = d.getVar("AUTOTOOLS_SCRIPT_PATH", True)
@@ -248,7 +248,7 @@ autotools_do_configure() {
                if [ x"${acpaths}" = xdefault ]; then
                        acpaths=
                        for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
-                               grep -v 'acinclude.m4' | grep -v 'aclocal-copy' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
+                               grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
                                acpaths="$acpaths -I $i"
                        done
                else
@@ -288,9 +288,7 @@ autotools_do_configure() {
                                fi
                        fi
                        for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do
-                               for j in `find ${S} -ignore_readdir_race -name $i | grep -v aclocal-copy`; do
-                                       rm $j
-                               done
+                               find ${S} -ignore_readdir_race -name $i -delete
                        done
                fi
                mkdir -p m4
--

2.8.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core