SHA256
3
0
forked from pool/rpm
rpm/ignore-auxv.diff
Dirk Mueller b688b17ada - add ignore-auxv.diff:
* 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
2013-02-20 17:32:28 +00:00

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