commit:     46ec58022ff2e8134a72e33b3f0644c20dc19ceb
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sat Dec 14 12:13:40 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Dec 27 18:09:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ec5802

app-editors/emacs: must be built with gcc[jit] if USE=jit

Clang does not provide an analogue of libgccjit, see discussions at
https://forums.gentoo.org/viewtopic-p-8738735.html

Closes: https://bugs.gentoo.org/874657
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-editors/emacs/emacs-28.2-r15.ebuild     | 6 ++++++
 app-editors/emacs/emacs-29.4-r1.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.91.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.92.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.93.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.9999-r1.ebuild | 6 ++++++
 app-editors/emacs/emacs-31.0.9999.ebuild    | 6 ++++++
 7 files changed, 42 insertions(+)

diff --git a/app-editors/emacs/emacs-28.2-r15.ebuild 
b/app-editors/emacs/emacs-28.2-r15.ebuild
index a9fefb16ffa8..bbc032cf7b63 100644
--- a/app-editors/emacs/emacs-28.2-r15.ebuild
+++ b/app-editors/emacs/emacs-28.2-r15.ebuild
@@ -142,6 +142,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-29.4-r1.ebuild 
b/app-editors/emacs/emacs-29.4-r1.ebuild
index 986bb85573bf..67e94a869c12 100644
--- a/app-editors/emacs/emacs-29.4-r1.ebuild
+++ b/app-editors/emacs/emacs-29.4-r1.ebuild
@@ -170,6 +170,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-30.0.91.ebuild 
b/app-editors/emacs/emacs-30.0.91.ebuild
index 115d3351a136..1806d63929bf 100644
--- a/app-editors/emacs/emacs-30.0.91.ebuild
+++ b/app-editors/emacs/emacs-30.0.91.ebuild
@@ -167,6 +167,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-30.0.92.ebuild 
b/app-editors/emacs/emacs-30.0.92.ebuild
index 115d3351a136..1806d63929bf 100644
--- a/app-editors/emacs/emacs-30.0.92.ebuild
+++ b/app-editors/emacs/emacs-30.0.92.ebuild
@@ -167,6 +167,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-30.0.93.ebuild 
b/app-editors/emacs/emacs-30.0.93.ebuild
index 115d3351a136..1806d63929bf 100644
--- a/app-editors/emacs/emacs-30.0.93.ebuild
+++ b/app-editors/emacs/emacs-30.0.93.ebuild
@@ -167,6 +167,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-30.0.9999-r1.ebuild 
b/app-editors/emacs/emacs-30.0.9999-r1.ebuild
index 115d3351a136..1806d63929bf 100644
--- a/app-editors/emacs/emacs-30.0.9999-r1.ebuild
+++ b/app-editors/emacs/emacs-30.0.9999-r1.ebuild
@@ -167,6 +167,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

diff --git a/app-editors/emacs/emacs-31.0.9999.ebuild 
b/app-editors/emacs/emacs-31.0.9999.ebuild
index 207974933838..ebaeb7a948e3 100644
--- a/app-editors/emacs/emacs-31.0.9999.ebuild
+++ b/app-editors/emacs/emacs-31.0.9999.ebuild
@@ -167,6 +167,12 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        statvfs64 re_set_syntax re_compile_pattern re_search re_match
 )
 
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != "binary" ]] && use jit && ! tc-is-gcc; then
+               die "Emacs must be built with gcc[jit] if USE=jit is enabled."
+       fi
+}
+
 src_prepare() {
        if [[ ${PV##*.} = 9999 ]]; then
                FULL_VERSION=$(sed -n 
's/^AC_INIT([^,]*,[^0-9.]*\([0-9.]*\).*/\1/p' \

Reply via email to