package_rpm.bbclass: Don't pass a 4th parameter to rpm target 32/41232/1
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 9 Apr 2015 16:10:07 +0000 (13:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 11 Jun 2015 21:22:46 +0000 (21:22 +0000)
commit0632be6b008857a63dbcebadf4f41b5121c4f3d1
treefceede90534583d50611b0e2bf1c26a3d25cc455
parent00fa83951a8bd9d4d61c327f5054321683b313a8
package_rpm.bbclass: Don't pass a 4th parameter to rpm target

rpm --target expects 3 parameters, split by a dash:
arch-vendor-os

However, glibc may add another parameter, corresponding to
the extension used. This is actually common on ARM archs.
However, rpm 4.1.4 is not prepared to handle it. When 4
parameters are found, it will use the last one as the OS,
causing the image build to fail.

Fix this by always discarding the 4th parameter, if present.

This patch is a co-work with Thiago Santos <thiagoss@osg.samsung.com>,
with actually come with the final solution.

Change-Id: I8ab3473ef4e6ff1501a1f82db0ab2bb8d7d9df50
Signed-off-by: Thiago Santos <thiagoss@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
meta/classes/package_rpm.bbclass