aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKousik Kumar <kousikk@google.com>2020-01-09 16:15:30 -0800
committerKousik Kumar <kousikk@google.com>2020-01-16 11:13:43 -0500
commitec10b513c283706f984edeec47301b0661f7d283 (patch)
tree61b4d0eb37a41ba6cc50c7361468728f2ea4e49d
parent570728a24fa1d6fe1155086cf87972b84b8cae30 (diff)
downloade2fsprogs-ec10b513c283706f984edeec47301b0661f7d283.tar.gz
Change #define to _BLKID_TYPES_H
blkid_types.h and ext_types.h having the exact same content results in mismatches in remote RBE builds. Given blkid_types.h is actually supposed to be different, changing this to remove the mismatch. Test: Ran a build, and all e2fsprogs mismatches went away between local/remote. Change-Id: I63ab1719ee1d0ccd28907f0bc99531260251fa99
-rw-r--r--lib/blkid/blkid_types.h4
-rw-r--r--lib/ext2fs/ext2_types.h2
-rw-r--r--lib/uuid/uuid_types.h4
-rw-r--r--util/android_types.h4
-rwxr-xr-xutil/gen-android-files7
5 files changed, 14 insertions, 7 deletions
diff --git a/lib/blkid/blkid_types.h b/lib/blkid/blkid_types.h
index a8d7cff1..297a69da 100644
--- a/lib/blkid/blkid_types.h
+++ b/lib/blkid/blkid_types.h
@@ -4,8 +4,8 @@
* also defined the types that we need.
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
- !defined(_EXT2_TYPES_H))
-#define _EXT2_TYPES_H
+ !defined(_EXT2_TYPES_H) && !defined(_UUID_TYPES_H))
+#define _BLKID_TYPES_H
typedef unsigned char __u8;
typedef __signed__ char __s8;
diff --git a/lib/ext2fs/ext2_types.h b/lib/ext2fs/ext2_types.h
index a8d7cff1..0e5ebe67 100644
--- a/lib/ext2fs/ext2_types.h
+++ b/lib/ext2fs/ext2_types.h
@@ -4,7 +4,7 @@
* also defined the types that we need.
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
- !defined(_EXT2_TYPES_H))
+ !defined(_EXT2_TYPES_H) && !defined(_UUID_TYPES_H))
#define _EXT2_TYPES_H
typedef unsigned char __u8;
diff --git a/lib/uuid/uuid_types.h b/lib/uuid/uuid_types.h
index a8d7cff1..35e51518 100644
--- a/lib/uuid/uuid_types.h
+++ b/lib/uuid/uuid_types.h
@@ -4,8 +4,8 @@
* also defined the types that we need.
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
- !defined(_EXT2_TYPES_H))
-#define _EXT2_TYPES_H
+ !defined(_EXT2_TYPES_H) && !defined(_UUID_TYPES_H))
+#define _UUID_TYPES_H
typedef unsigned char __u8;
typedef __signed__ char __s8;
diff --git a/util/android_types.h b/util/android_types.h
index a8d7cff1..5f05903d 100644
--- a/util/android_types.h
+++ b/util/android_types.h
@@ -4,8 +4,8 @@
* also defined the types that we need.
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
- !defined(_EXT2_TYPES_H))
-#define _EXT2_TYPES_H
+ !defined(_EXT2_TYPES_H) && !defined(_UUID_TYPES_H))
+#define _LINUX_TYPES_H
typedef unsigned char __u8;
typedef __signed__ char __s8;
diff --git a/util/gen-android-files b/util/gen-android-files
index 937496bc..cab4e8d4 100755
--- a/util/gen-android-files
+++ b/util/gen-android-files
@@ -37,9 +37,16 @@ rm -f $MK_CMDS
cp lib/blkid/blkid.h.in lib/blkid/blkid.h
cp lib/uuid/uuid.h.in lib/uuid/uuid.h
+
cp util/android_types.h lib/ext2fs/ext2_types.h
cp util/android_types.h lib/blkid/blkid_types.h
cp util/android_types.h lib/uuid/uuid_types.h
+# Copied header files having exactly same content results in debug output
+# differences on RBE. Hence modify the #define's appropriately.
+sed -i 's/#define _LINUX_TYPES_H/#define _BLKID_TYPES_H/g' lib/blkid/blkid_types.h
+sed -i 's/#define _LINUX_TYPES_H/#define _EXT2_TYPES_H/g' lib/ext2fs/ext2_types.h
+sed -i 's/#define _LINUX_TYPES_H/#define _UUID_TYPES_H/g' lib/uuid/uuid_types.h
+
cp util/android_config.h lib/config.h
cp misc/e2freefrag.c debugfs/
cp e2fsck/recovery.c e2fsck/revoke.c debugfs/