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

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