libdnf/libdnf-0.31.0-arm-detect-arch-using-uname.patch

27 lines
1.1 KiB
Diff
Raw Permalink Normal View History

--- libdnf-0.31.0/libdnf/hy-util.cpp.orig 2019-07-13 13:40:25.132045332 +0200
+++ libdnf-0.31.0/libdnf/hy-util.cpp 2019-07-13 13:41:53.216392596 +0200
@@ -108,23 +108,6 @@
if (uname(&un) < 0)
return DNF_ERROR_FAILED;
- if (!strncmp(un.machine, "armv", 4)) {
- /* un.machine is armvXE, where X is version number and E is
- * endianness (b or l); we need to add modifiers such as
- * h (hardfloat), n (neon), c (crypto extensions) */
- char endian = un.machine[strlen(un.machine)-1];
- char *modifier = un.machine + 5;
- while(isdigit(*modifier)) /* keep armv7, armv8, armv9, armv10, armv100, ... */
- modifier++;
- if (getauxval(AT_HWCAP) & HWCAP_ARM_VFP)
- *modifier++ = 'h';
- if (getauxval(AT_HWCAP2) & HWCAP2_AES)
- *modifier++ = 'c';
- if (getauxval(AT_HWCAP) & HWCAP_ARM_NEON)
- *modifier++ = 'n';
- *modifier++ = endian;
- *modifier = 0;
- }
#ifdef __MIPSEL__
if (!strcmp(un.machine, "mips"))
strcpy(un.machine, "mipsel");