2019-10-02 15:28:11 +02:00
|
|
|
--- ./lib/rpmrc.c.orig 2019-06-26 14:17:31.416985688 +0000
|
|
|
|
+++ ./lib/rpmrc.c 2019-10-02 09:52:05.076903733 +0000
|
|
|
|
@@ -79,11 +79,13 @@ struct rpmOption {
|
2013-02-20 18:32:28 +01:00
|
|
|
int localize;
|
|
|
|
};
|
|
|
|
|
2014-09-17 14:05:17 +02:00
|
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
2013-02-20 18:32:28 +01:00
|
|
|
static struct rpmat_s {
|
|
|
|
const char *platform;
|
|
|
|
uint64_t hwcap;
|
2019-10-02 15:28:11 +02:00
|
|
|
uint64_t hwcap2;
|
2013-02-20 18:32:28 +01:00
|
|
|
} rpmat;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
typedef struct defaultEntry_s {
|
|
|
|
char * name;
|
2019-10-02 15:28:11 +02:00
|
|
|
@@ -950,7 +952,7 @@ static int is_geode(void)
|
2013-02-20 18:32:28 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
-#if defined(__linux__)
|
2014-09-17 14:05:17 +02:00
|
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
2019-10-02 15:28:11 +02:00
|
|
|
#ifndef AT_HWCAP2 /* glibc < 2.18 */
|
|
|
|
#define AT_HWCAP2 26
|
|
|
|
#endif
|
|
|
|
@@ -1013,7 +1015,7 @@ static void defaultMachine(rpmrcCtx ctx,
|
2013-02-20 18:32:28 +01:00
|
|
|
canonEntry canon;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
-#if defined(__linux__)
|
2014-09-17 14:05:17 +02:00
|
|
|
+#if defined(__linux__) && (defined(__powerpc__) || defined(__sparc__) || (defined(__arm__) && defined(__ARM_PCS_VFP)))
|
2013-02-20 18:32:28 +01:00
|
|
|
/* Populate rpmat struct with hw info */
|
2014-02-20 14:18:41 +01:00
|
|
|
read_auxv();
|
2013-02-20 18:32:28 +01:00
|
|
|
#endif
|