commit:     2575ec6caaa80ed8d3c9361312c797837c7c2ec3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 16 16:04:22 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 16 16:05:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2575ec6c

sys-apps/ed: workaround unpacker.eclass/Portage dep resolution bug

1. unpacker_src_uri_depends doesn't flatten the deps (bug #891133) and emits
several || ( ... ) blocks (4).

2. Portage doesn't handle several repeated identical || ( ...) blocks correctly
and takes ages to resolve (bug #891137). It should merge them together.

Bug: https://bugs.gentoo.org/891137
Bug: https://bugs.gentoo.org/891133
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/ed/{ed-1.19.ebuild => ed-1.19-r1.ebuild} | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/sys-apps/ed/ed-1.19.ebuild b/sys-apps/ed/ed-1.19-r1.ebuild
similarity index 75%
rename from sys-apps/ed/ed-1.19.ebuild
rename to sys-apps/ed/ed-1.19-r1.ebuild
index 65951958803d..8f805d415665 100644
--- a/sys-apps/ed/ed-1.19.ebuild
+++ b/sys-apps/ed/ed-1.19-r1.ebuild
@@ -26,9 +26,19 @@ if [[ ${PV} != *_rc* ]] ; then
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
 
+# We don't use unpacker_src_uri_depends here right now because:
+# 1. unpacker_src_uri_depends doesn't flatten the deps (bug #891133) and emits
+# several || ( ... ) blocks (4).
+# 2. Portage doesn't handle several repeated identical || ( ...) blocks 
correctly
+# and takes ages to resolve (bug #891137). It should merge them together.
 BDEPEND="
        sys-apps/texinfo
-       $(unpacker_src_uri_depends)
+       || (
+               >=app-arch/xz-utils-5.4.0
+               app-arch/plzip
+               app-arch/pdlzip
+               app-arch/lzip
+       )
        verify-sig? ( sec-keys/openpgp-keys-antoniodiazdiaz )
 "
 

Reply via email to