Blame SOURCES/0001-libabigail-isn-t-in-RHEL-yet-so-nerf-the-abi-check.patch

529d1b
From 7b0bd868dc58657799bd14eb471efe7f62d875a2 Mon Sep 17 00:00:00 2001
529d1b
From: Peter Jones <pjones@redhat.com>
529d1b
Date: Fri, 8 Jun 2018 15:08:21 -0400
529d1b
Subject: [PATCH] libabigail isn't in RHEL yet, so nerf the abi check.
529d1b
529d1b
Signed-off-by: Peter Jones <pjones@redhat.com>
529d1b
---
529d1b
 Make.defaults  |  2 --
529d1b
 Make.rules     | 11 -----------
529d1b
 Makefile       | 12 ++++--------
529d1b
 efivar.spec.in |  7 +------
529d1b
 4 files changed, 5 insertions(+), 27 deletions(-)
529d1b
529d1b
diff --git a/Make.defaults b/Make.defaults
529d1b
index 57cee6e82b5..9ee5c80f910 100644
529d1b
--- a/Make.defaults
529d1b
+++ b/Make.defaults
529d1b
@@ -24,8 +24,6 @@ LDFLAGS := $(LDFLAGS)
529d1b
 AR	:= $(CROSS_COMPILE)$(COMPILER)-ar
529d1b
 NM	:= $(CROSS_COMPILE)$(COMPILER)-nm
529d1b
 RANLIB	:= $(CROSS_COMPILE)$(COMPILER)-ranlib
529d1b
-ABIDW	:= abidw
529d1b
-ABIDIFF := abidiff
529d1b
 
529d1b
 PKGS	=
529d1b
 
529d1b
diff --git a/Make.rules b/Make.rules
529d1b
index 042585b533c..585e287f455 100644
529d1b
--- a/Make.rules
529d1b
+++ b/Make.rules
529d1b
@@ -23,17 +23,6 @@ include $(TOPDIR)/Make.version
529d1b
 	  -o $@ $^ $(LDLIBS)
529d1b
 	ln -vfs $@ $@.1
529d1b
 
529d1b
-%.abixml : %.so
529d1b
-	$(ABIDW) --headers-dir $(TOPDIR)/src/include/efivar/ --out-file $@ $^
529d1b
-	@sed -i -s 's,$(TOPDIR)/,,g' $@
529d1b
-
529d1b
-%.abicheck : %.so
529d1b
-	$(ABIDIFF) \
529d1b
-		--suppr abignore \
529d1b
-		--headers-dir2 $(TOPDIR)/src/include/efivar/ \
529d1b
-		$(patsubst %.so,%.abixml,$<) \
529d1b
-		$<
529d1b
-
529d1b
 %.o : %.c
529d1b
 	$(CC) $(cflags) -fPIC $(CPPFLAGS) -c -o $@ $(filter %.c %.o %.S,$^)
529d1b
 
529d1b
diff --git a/Makefile b/Makefile
529d1b
index 8c67b9d2654..e4f76a3a8d4 100644
529d1b
--- a/Makefile
529d1b
+++ b/Makefile
529d1b
@@ -20,13 +20,9 @@ install :
529d1b
 		$(MAKE) -C $$x $@ ; \
529d1b
 	done
529d1b
 
529d1b
-abidw abicheck efivar efivar-static static:
529d1b
+efivar efivar-static static:
529d1b
 	$(MAKE) -C src $@
529d1b
 
529d1b
-abiupdate :
529d1b
-	$(MAKE) clean all
529d1b
-	$(MAKE) -C src abiclean abixml
529d1b
-
529d1b
 $(SUBDIRS) :
529d1b
 	$(MAKE) -C $@
529d1b
 
529d1b
@@ -39,7 +35,7 @@ a :
529d1b
 		exit 1 ; \
529d1b
 	fi
529d1b
 
529d1b
-.PHONY: $(SUBDIRS) a brick abiupdate
529d1b
+.PHONY: $(SUBDIRS) a brick
529d1b
 
529d1b
 GITTAG = $(shell bash -c "echo $$(($(VERSION) + 1))")
529d1b
 
529d1b
@@ -51,7 +47,7 @@ clean :
529d1b
 	done
529d1b
 	@rm -vf efivar.spec
529d1b
 
529d1b
-test-archive: abicheck efivar.spec
529d1b
+test-archive: efivar.spec
529d1b
 	@rm -rf /tmp/efivar-$(GITTAG) /tmp/efivar-$(GITTAG)-tmp
529d1b
 	@mkdir -p /tmp/efivar-$(GITTAG)-tmp
529d1b
 	@git archive --format=tar $(shell git branch | awk '/^*/ { print $$2 }') | ( cd /tmp/efivar-$(GITTAG)-tmp/ ; tar x )
529d1b
@@ -70,7 +66,7 @@ bumpver :
529d1b
 tag:
529d1b
 	git tag -s $(GITTAG) refs/heads/master
529d1b
 
529d1b
-archive: abicheck bumpver abidw tag efivar.spec
529d1b
+archive: bumpver tag efivar.spec
529d1b
 	@rm -rf /tmp/efivar-$(GITTAG) /tmp/efivar-$(GITTAG)-tmp
529d1b
 	@mkdir -p /tmp/efivar-$(GITTAG)-tmp
529d1b
 	@git archive --format=tar $(GITTAG) | ( cd /tmp/efivar-$(GITTAG)-tmp/ ; tar x )
529d1b
diff --git a/efivar.spec.in b/efivar.spec.in
529d1b
index 180e5374ae6..b55329b265d 100644
529d1b
--- a/efivar.spec.in
529d1b
+++ b/efivar.spec.in
529d1b
@@ -7,7 +7,7 @@ URL:            https://github.com/rhinstaller/efivar
529d1b
 Requires:       %{name}-libs = %{version}-%{release}
529d1b
 ExclusiveArch:  %{ix86} x86_64 aarch64
529d1b
 
529d1b
-BuildRequires:  git glibc-static libabigail
529d1b
+BuildRequires:  git glibc-static
529d1b
 Source0:        https://github.com/rhboot/efivar/archive/%{version}.tar.gz
529d1b
 
529d1b
 %description
529d1b
@@ -47,11 +47,6 @@ rm -rf $RPM_BUILD_ROOT
529d1b
 %clean
529d1b
 rm -rf $RPM_BUILD_ROOT
529d1b
 
529d1b
-%check
529d1b
-%ifarch x86_64
529d1b
-make abicheck
529d1b
-%endif
529d1b
-
529d1b
 %post libs -p /sbin/ldconfig
529d1b
 
529d1b
 %postun libs -p /sbin/ldconfig
529d1b
-- 
529d1b
2.17.1
529d1b