commit: 77b45431c0630096031a3350e5040b7d11ddb559 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sat Jul 15 21:51:05 2023 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sat Jul 15 22:17:01 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77b45431
sci-mathematics/coq: add pkg_preinst upgrade from 8.12 Closes: https://bugs.gentoo.org/910236 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> sci-mathematics/coq/coq-8.15.2.ebuild | 9 +++++++++ sci-mathematics/coq/coq-8.16.1.ebuild | 9 +++++++++ sci-mathematics/coq/coq-8.17.0.ebuild | 9 +++++++++ sci-mathematics/coq/coq-8.17.1.ebuild | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/sci-mathematics/coq/coq-8.15.2.ebuild b/sci-mathematics/coq/coq-8.15.2.ebuild index c94ce21f129a..5348f67f9136 100644 --- a/sci-mathematics/coq/coq-8.15.2.ebuild +++ b/sci-mathematics/coq/coq-8.15.2.ebuild @@ -109,3 +109,12 @@ src_install() { dosym $(ocamlc -where)/${sym} /usr/$(get_libdir)/${sym} done } + +pkg_preinst() { + # bug https://bugs.gentoo.org/910236 + if has_version "sci-mathematics/coq:0/8.12.0" && [[ ! -L /usr/lib64/coq ]] + then + einfo "Removing colliding directory from version 8.12: /usr/lib64/coq" + rm -rf /usr/lib64/coq + fi +} diff --git a/sci-mathematics/coq/coq-8.16.1.ebuild b/sci-mathematics/coq/coq-8.16.1.ebuild index a8dc37656492..374b1e3334e1 100644 --- a/sci-mathematics/coq/coq-8.16.1.ebuild +++ b/sci-mathematics/coq/coq-8.16.1.ebuild @@ -109,3 +109,12 @@ src_install() { dosym $(ocamlc -where)/${sym} /usr/$(get_libdir)/${sym} done } + +pkg_preinst() { + # bug https://bugs.gentoo.org/910236 + if has_version "sci-mathematics/coq:0/8.12.0" && [[ ! -L /usr/lib64/coq ]] + then + einfo "Removing colliding directory from version 8.12: /usr/lib64/coq" + rm -rf /usr/lib64/coq + fi +} diff --git a/sci-mathematics/coq/coq-8.17.0.ebuild b/sci-mathematics/coq/coq-8.17.0.ebuild index 495f48055a82..45b99385ac67 100644 --- a/sci-mathematics/coq/coq-8.17.0.ebuild +++ b/sci-mathematics/coq/coq-8.17.0.ebuild @@ -110,3 +110,12 @@ src_install() { einstalldocs } + +pkg_preinst() { + # bug https://bugs.gentoo.org/910236 + if has_version "sci-mathematics/coq:0/8.12.0" && [[ ! -L /usr/lib64/coq ]] + then + einfo "Removing colliding directory from version 8.12: /usr/lib64/coq" + rm -rf /usr/lib64/coq + fi +} diff --git a/sci-mathematics/coq/coq-8.17.1.ebuild b/sci-mathematics/coq/coq-8.17.1.ebuild index f634026e1cda..fb5c53f57eed 100644 --- a/sci-mathematics/coq/coq-8.17.1.ebuild +++ b/sci-mathematics/coq/coq-8.17.1.ebuild @@ -110,3 +110,12 @@ src_install() { einstalldocs } + +pkg_preinst() { + # bug https://bugs.gentoo.org/910236 + if has_version "sci-mathematics/coq:0/8.12.0" && [[ ! -L /usr/lib64/coq ]] + then + einfo "Removing colliding directory from version 8.12: /usr/lib64/coq" + rm -rf /usr/lib64/coq + fi +}
