From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com ([143.182.124.21]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SuTmU-0008Rf-Ra for openembedded-core@lists.openembedded.org; Thu, 26 Jul 2012 21:31:31 +0200 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 26 Jul 2012 12:19:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="173619628" Received: from unknown (HELO [10.255.12.157]) ([10.255.12.157]) by azsmga001.ch.intel.com with ESMTP; 26 Jul 2012 12:19:58 -0700 Message-ID: <5011985E.3020404@linux.intel.com> Date: Thu, 26 Jul 2012 12:19:58 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <1343140080-13210-1-git-send-email-yao.zhao@windriver.com> In-Reply-To: <1343140080-13210-1-git-send-email-yao.zhao@windriver.com> Subject: Re: [PATCH] busybox: fix the problem that mkfs.minix.tests fails on big endian platform X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 19:31:31 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/24/2012 07:28 AM, Yao Zhao wrote: > patch mkfs.minix.tests to have correct md5sum on big endian platform. > > Signed-off-by: Yao Zhao > --- > .../busybox-mkfs-minix-tests_bigendian.patch | 34 ++++++++++++++++++++ > meta/recipes-core/busybox/busybox_1.19.4.bb | 3 +- > 2 files changed, 36 insertions(+), 1 deletion(-) > create mode 100644 meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch > > diff --git a/meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch b/meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch > new file mode 100644 > index 0000000..089c5e0 > --- /dev/null > +++ b/meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch > @@ -0,0 +1,34 @@ > +patch mkfs.minix.tests to have correct md5sum on big endian platform > + > +Upstream-Status: Accepted, expected in next release > + > +Signed-off-by: Yao Zhao > + > +diff --git a/testsuite/mkfs.minix.tests b/testsuite/mkfs.minix.tests > +index 8a33c16..7eecaf2 100755 > +--- a/testsuite/mkfs.minix.tests > ++++ b/testsuite/mkfs.minix.tests > +@@ -8,6 +8,14 @@ > + > + # testing "test name" "options" "expected result" "file input" "stdin" > + > ++# '\n' produces 10 on little endian, but not on big endian > ++cr=`echo | od -i | sed 's/.* //g;2d'` > ++if [ x"$cr" = x"10" ]; then > ++ hash=4f35f7afeba07d56055bed1f29ae20b7 > ++else > ++ hash=5adbc1b3ccd20ca5d0ab5bc1e13ac3fc > ++fi > ++ > + testing "mkfs.minix" \ > + "dd if=/dev/zero of=input bs=1k count=1024 2>/dev/null; mkfs.minix input; md5sum + "352 inodes\n"\ > +@@ -15,7 +23,7 @@ testing "mkfs.minix" \ > + "Firstdatazone=15 (15)\n"\ > + "Zonesize=1024\n"\ > + "Maxsize=268966912\n"\ > +-"4f35f7afeba07d56055bed1f29ae20b7 -\n" \ > ++"$hash -\n" \ > + "" \ > + "" > + > diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb > index de331ad..d0ea459 100644 > --- a/meta/recipes-core/busybox/busybox_1.19.4.bb > +++ b/meta/recipes-core/busybox/busybox_1.19.4.bb > @@ -22,7 +22,8 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ > file://mdev \ > file://mdev.conf \ > file://umount.busybox \ > - file://defconfig" > + file://defconfig \ > + file://busybox-mkfs-minix-tests_bigendian.patch" > > SRC_URI[tarball.md5sum] = "9c0cae5a0379228e7b55e5b29528df8e" > SRC_URI[tarball.sha256sum] = "9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee" > Merged into OE-Core Thanks Sau!