diff options
author | Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> | 2022-12-25 13:37:10 -0500 |
---|---|---|
committer | Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> | 2022-12-25 13:47:26 -0500 |
commit | 405b57ede2f5aec3e91b7da8ea88398a9c756440 (patch) | |
tree | eb3929fab6db78b4b54644fe83b6ea44d894766f /net-mail | |
parent | net-mail/dovecot-fts-xapian: Move S= up to match skel.ebuild order (diff) | |
download | guru-405b57ede2f5aec3e91b7da8ea88398a9c756440.tar.gz guru-405b57ede2f5aec3e91b7da8ea88398a9c756440.tar.bz2 guru-405b57ede2f5aec3e91b7da8ea88398a9c756440.zip |
net-mail/dovecot-fts-xapian: Allow -O2 to be overriden
Closes: https://bugs.gentoo.org/887887
Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>
Diffstat (limited to 'net-mail')
3 files changed, 19 insertions, 0 deletions
diff --git a/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-1.5.5.ebuild b/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-1.5.5.ebuild index 7e7f7c998..b07035152 100644 --- a/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-1.5.5.ebuild +++ b/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-1.5.5.ebuild @@ -24,6 +24,10 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + ${FILESDIR}/bug-887887_allow-O2-override.patch +) + src_prepare() { default eautoreconf diff --git a/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-9999.ebuild b/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-9999.ebuild index ac1085894..1267136e3 100644 --- a/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-9999.ebuild +++ b/net-mail/dovecot-fts-xapian/dovecot-fts-xapian-9999.ebuild @@ -36,6 +36,10 @@ if [ "$PV" = 9999 ] ; then " fi +PATCHES=( + ${FILESDIR}/bug-887887_allow-O2-override.patch +) + src_prepare() { default eautoreconf diff --git a/net-mail/dovecot-fts-xapian/files/bug-887887_allow-O2-override.patch b/net-mail/dovecot-fts-xapian/files/bug-887887_allow-O2-override.patch new file mode 100644 index 000000000..5c4b95fb3 --- /dev/null +++ b/net-mail/dovecot-fts-xapian/files/bug-887887_allow-O2-override.patch @@ -0,0 +1,11 @@ +--- a/configure.ac 2022-04-17 07:41:11.000000000 -0400 ++++ b/configure.ac 2022-12-25 13:24:02.551681208 -0500 +@@ -21,7 +21,7 @@ + DC_DOVECOT + DC_DOVECOT_MODULEDIR + LIBDOVECOT_INCLUDE="$LIBDOVECOT_INCLUDE" +-CFLAGS="$CFLAGS $EXTRA_CFLAGS $DOVECOT_FLAGS -O2" ++CFLAGS="-O2 $CFLAGS $EXTRA_CFLAGS $DOVECOT_FLAGS" + LIBS="$DOVECOT_LIBS" + BINARY_LDFLAGS="$PIE_LDFLAGS $RELRO_LDFLAGS" + BINARY_CFLAGS="$PIE_CFLAGS" |