package/qemu: fix crash with uClibc-ng
authorCarlos Santos <unixmania@gmail.com>
Sat, 19 Oct 2019 02:09:28 +0000 (23:09 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 20 Oct 2019 14:26:24 +0000 (16:26 +0200)
commit5e968678fd83c2247f1a1ddd7434a9ce3a2019aa
tree3ec357e1b1d6ca436bc370b7215d4f2d12b43b90
parent05756279675bac305b7d5b04531c773a837ed177
package/qemu: fix crash with uClibc-ng

On uClibc-ng sysconf(_SC_LEVEL1_{I,D}CACHE_LINESIZE) returns -1, which
is a valid result, meaning that the limit is indeterminate. Add a patch
that handles this situation using fallback values instead of crashing
due to an assertion failure.

Upstream status:
   https://lists.nongnu.org/archive/html/qemu-devel/2019-10/msg04115.html

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qemu/3.1.1/0003-util-cacheinfo-fix-crash-when-compiling-with-uClibc.patch [new file with mode: 0644]