package/libnss: fix build failure on PowerPC, PowerPC64
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Wed, 1 Jan 2020 16:58:11 +0000 (17:58 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 1 Jan 2020 18:24:48 +0000 (19:24 +0100)
commit5a3435190adff2fed5f1bb9f840ad385ce9788ca
tree406cfab86ddc5103d5d97217073bcac6d539b690
parent239dee9b3b610a74fafca49cb97ae4e9527f3834
package/libnss: fix build failure on PowerPC, PowerPC64

libnss expects OS_TEST to be set to ppc, ppc64, or ppc64le instead of
the usual values defined by Buildroot, respectively powerpc, powerpc64,
or powerpc64le.

This fixes the inconsistencies where functions would be prototyped and
called, but no implementation would be provided, causing link issues.

Define all the variants (of which the existing aarch64be) in Kconfig.
The latest default uses the usual architecture names as defined by
Buildroot, BR2_ARCH.

Additionally, libnss makes use of Altivec intrinsics which are only
available starting with gcc 8, not gcc 5, so we patch it to fix that
condition.

Fixes:
    http://autobuild.buildroot.org/results/579/57928e6cf69d584b430a1d9a99156c57f29b692f/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[yann.morin.1998@free.fr:
  - move the arch setting to kconfig (like recently done in e3159cad71)
  - add the build failure
  - add pointer to upstream bug report and patch sybmission
  - reformat and reword commit log
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libnss/0005-Bug-1606119-Fix-PPC-HW-Crypto-build-failure.patch [new file with mode: 0644]
package/libnss/Config.in
package/libnss/libnss.mk