Dirk Mueller
b688b17ada
* avoid auxv parsing for any platform other than powerpc - add config-guess-sub-update.diff * update config.guess/sub for aarch64 support OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=249
34 lines
653 B
Diff
34 lines
653 B
Diff
--- lib/rpmrc.c
|
|
+++ lib/rpmrc.c
|
|
@@ -79,10 +79,12 @@
|
|
int localize;
|
|
};
|
|
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
static struct rpmat_s {
|
|
const char *platform;
|
|
uint64_t hwcap;
|
|
} rpmat;
|
|
+#endif
|
|
|
|
typedef struct defaultEntry_s {
|
|
char * name;
|
|
@@ -907,7 +909,7 @@
|
|
#endif
|
|
|
|
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
/**
|
|
* Populate rpmat structure with parsed info from /proc/self/auxv
|
|
*/
|
|
@@ -957,7 +959,7 @@
|
|
canonEntry canon;
|
|
int rc;
|
|
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) && defined(__powerpc__)
|
|
/* Populate rpmat struct with hw info */
|
|
parse_auxv();
|
|
#endif
|