diff --git a/app-crypt/sbsigntools/files/sbsigntools-0.9.4-no-werror.patch b/app-crypt/sbsigntools/files/sbsigntools-0.9.4-no-werror.patch new file mode 100644 index 0000000000000..42650929b87cf --- /dev/null +++ b/app-crypt/sbsigntools/files/sbsigntools-0.9.4-no-werror.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/832212 +https://bugs.gentoo.org/845372 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -7,7 +7,7 @@ AM_CFLAGS = -Wall -Wextra --std=gnu99 + common_SOURCES = idc.c idc.h image.c image.h fileio.c fileio.h \ + efivars.h $(coff_headers) + common_LDADD = ../lib/ccan/libccan.a $(libcrypto_LIBS) +-common_CFLAGS = -I$(top_srcdir)/lib/ccan/ -Werror ++common_CFLAGS = -I$(top_srcdir)/lib/ccan/ + + sbsign_SOURCES = sbsign.c $(common_SOURCES) + sbsign_LDADD = $(common_LDADD) diff --git a/app-crypt/sbsigntools/sbsigntools-0.9.4.ebuild b/app-crypt/sbsigntools/sbsigntools-0.9.4.ebuild index b8865b50a89d1..ba90949d3bc34 100644 --- a/app-crypt/sbsigntools/sbsigntools-0.9.4.ebuild +++ b/app-crypt/sbsigntools/sbsigntools-0.9.4.ebuild @@ -26,6 +26,10 @@ DEPEND="${RDEPEND} sys-libs/binutils-libs virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${PN}-0.9.4-no-werror.patch +) + src_prepare() { mv "${WORKDIR}"/lib/ccan "${S}"/lib || die "mv failed" rmdir "${WORKDIR}"/lib || die "rmdir failed"