* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile/files/
@ 2016-12-20 10:41 Amy Winston
0 siblings, 0 replies; 3+ messages in thread
From: Amy Winston @ 2016-12-20 10:41 UTC (permalink / raw
To: gentoo-commits
commit: a4e5b7cfbfa70f4c0408ed7ac22ec5bd7ebcaf99
Author: Amy Winston <amynka <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 20 10:38:59 2016 +0000
Commit: Amy Winston <amynka <AT> gentoo <DOT> org>
CommitDate: Tue Dec 20 10:40:36 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4e5b7cf
dev-scheme/guile: clean unused patches
Package-Manager: portage-2.3.0
.../guile/files/guile-2.0.12-build_includes2.patch | 48 ----------------
...uile-2.0.12-workaround-ice-ssa-corruption.patch | 64 ----------------------
2 files changed, 112 deletions(-)
diff --git a/dev-scheme/guile/files/guile-2.0.12-build_includes2.patch b/dev-scheme/guile/files/guile-2.0.12-build_includes2.patch
deleted file mode 100644
index 320abb3..00000000
--- a/dev-scheme/guile/files/guile-2.0.12-build_includes2.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 9eb8c3652d6a424a9c60da03584b8056497d1fdf Mon Sep 17 00:00:00 2001
-From: Mark H Weaver <mhw@netris.org>
-Date: Thu, 11 Aug 2016 03:59:40 -0400
-Subject: build: .x and .doc files depend on generated includes.
-
-Fixes <https://bugs.gentoo.org/show_bug.cgi?id=590528>.
-
-* libguile/Makefile.am (BUILT_INCLUDES): New variable.
-(BUILT_SOURCES): Put .i and other generated .h to BUILT_INCLUDES.
-(DOT_X_FILES, EXTRA_DOT_X_FILES, DOT_DOC_FILES, EXTRA_DOT_DOC_FILES):
-Depend on $(BUILT_INCLUDES), in place of scmconfig.h which is included
-in $(BUILT_INCLUDES).
----
- libguile/Makefile.am | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/libguile/Makefile.am b/libguile/Makefile.am
-index cd85604..1383c13 100644
---- a/libguile/Makefile.am
-+++ b/libguile/Makefile.am
-@@ -430,9 +430,9 @@ DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i
- .c.i:
- $(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@
-
--BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h \
-- scmconfig.h \
-- $(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES)
-+BUILT_INCLUDES = $(DOT_I_FILES) scmconfig.h
-+BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h $(BUILT_INCLUDES) \
-+ $(DOT_X_FILES) $(EXTRA_DOT_X_FILES)
-
- # Force the generation of `guile-procedures.texi' because the top-level
- # Makefile expects it to be built.
-@@ -735,9 +735,9 @@ SUFFIXES = .x .doc
- .c.doc:
- $(AM_V_SNARF)./guile-snarf-docs -o $@ $< -- $(snarfcppopts)
-
--$(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in version.h
-+$(DOT_X_FILES) $(EXTRA_DOT_X_FILES): $(BUILT_INCLUDES) snarf.h guile-snarf.in version.h
-
--$(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): scmconfig.h snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT)
-+$(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): $(BUILT_INCLUDES) snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT)
-
- error.x: cpp-E.c
- posix.x: cpp-SIG.c
---
-cgit v1.0
-
diff --git a/dev-scheme/guile/files/guile-2.0.12-workaround-ice-ssa-corruption.patch b/dev-scheme/guile/files/guile-2.0.12-workaround-ice-ssa-corruption.patch
deleted file mode 100644
index 54f3158..00000000
--- a/dev-scheme/guile/files/guile-2.0.12-workaround-ice-ssa-corruption.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-libguile/vm-i-system.c: workaround ice ssa corruption while compiling with option -g -O
-
-While compiling with option -g -O, there was a ssa corruption:
-..
-Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE.
-sp_48(ab) and sp_3476(ab)
-guile-2.0.11/libguile/vm-engine.c: In function 'vm_debug_engine':
-guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption
- #define VM_NAME vm_debug_engine
- ^
-guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro 'VM_NAME'
- VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
- ^
-Please submit a full bug report,
-with preprocessed source if appropriate.
-See <http://gcc.gnu.org/bugs.html> for instructions.
-...
-
-Tweak libguile/vm-i-system.c to add boundary value check to workaround it.
-
-Upstream-Status: Pending
-
-Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-
-Fixes Buildroot autobuilder failures on AArch64.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- libguile/vm-i-system.c | 20 ++++++++++++++++----
- 1 file changed, 16 insertions(+), 4 deletions(-)
-
-diff --git a/libguile/vm-i-system.c b/libguile/vm-i-system.c
---- a/libguile/vm-i-system.c
-+++ b/libguile/vm-i-system.c
-@@ -625,10 +625,22 @@ VM_DEFINE_INSTRUCTION (47, bind_optionals_shuffle, "bind-optionals/shuffle", 6,
- /* now shuffle up, from walk to ntotal */
- {
- scm_t_ptrdiff nshuf = sp - walk + 1, i;
-- sp = (fp - 1) + ntotal + nshuf;
-- CHECK_OVERFLOW ();
-- for (i = 0; i < nshuf; i++)
-- sp[-i] = walk[nshuf-i-1];
-+ /* check the value of nshuf to workaround ice ssa corruption */
-+ /* while compiling with -O -g */
-+ if (nshuf > 0)
-+ {
-+ sp = (fp - 1) + ntotal + nshuf;
-+ CHECK_OVERFLOW ();
-+ for (i = 0; i < nshuf; i++)
-+ sp[-i] = walk[nshuf-i-1];
-+ }
-+ else
-+ {
-+ sp = (fp - 1) + ntotal + nshuf;
-+ CHECK_OVERFLOW ();
-+ for (i = 0; i < nshuf; i++)
-+ sp[-i] = walk[nshuf-i-1];
-+ }
- }
- /* and fill optionals & keyword args with SCM_UNDEFINED */
- while (walk <= (fp - 1) + ntotal)
---
-1.9.1
-
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile/files/
@ 2023-02-08 17:17 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-02-08 17:17 UTC (permalink / raw
To: gentoo-commits
commit: 25f1073cbee8ada3e0893789f7c8bac6f260e488
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Feb 8 16:51:16 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 8 17:14:49 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25f1073c
dev-scheme/guile: remove unused patches
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/29487
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-scheme/guile/files/guile-2-snarf.patch | 47 --------------
.../files/guile-2.0.14-configure-clang16.patch | 71 ----------------------
dev-scheme/guile/files/guile-2.0.14-darwin.patch | 38 ------------
...0.14-ia64-fix-crash-thread-context-switch.patch | 63 -------------------
4 files changed, 219 deletions(-)
diff --git a/dev-scheme/guile/files/guile-2-snarf.patch b/dev-scheme/guile/files/guile-2-snarf.patch
deleted file mode 100644
index c6ab5cd48cd6..000000000000
--- a/dev-scheme/guile/files/guile-2-snarf.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From f775ab3654357fcaad294b95efb0b1c16de1eda8 Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich <slyfox@gentoo.org>
-Date: Sun, 19 Feb 2017 22:58:40 +0000
-Subject: guile-snarf: skip -g* arguments to avoid build failure
-
-* libguile/guile-snarf.in: skip -g* arguments to avoid failure on
- -ggdb3.
-
-Bug: https://bugs.gentoo.org/608190
-Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25803
-Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
----
- libguile/guile-snarf.in | 16 ++++++++++++++--
- 1 file changed, 14 insertions(+), 2 deletions(-)
-
-diff --git a/libguile/guile-snarf.in b/libguile/guile-snarf.in
-index 47bbc04..22dc1d3 100644
---- a/libguile/guile-snarf.in
-+++ b/libguile/guile-snarf.in
-@@ -95,10 +95,22 @@ if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
-
- trap "rm -rf $tempdir" 0 1 2 15
-
-+# filter out -g* flags from commandline
-+# as some flags like -ggdb3 cause CPP
-+
-+cpp_args=""
-+for arg in "$@"
-+do
-+ case "$arg" in
-+ -g*) ;; # skip debug flag
-+ *) cpp_args="$cpp_args $arg" ;;
-+ esac
-+done
-+
- if [ ! "$outfile" = "-" ] ; then
-- modern_snarf "$@" > $outfile
-+ modern_snarf $cpp_args > $outfile
- else
-- modern_snarf "$@"
-+ modern_snarf $cpp_args
- fi
-
- # zonk outfile if errors occurred
---
-cgit v1.0-41-gc330
-
diff --git a/dev-scheme/guile/files/guile-2.0.14-configure-clang16.patch b/dev-scheme/guile/files/guile-2.0.14-configure-clang16.patch
deleted file mode 100644
index 361cc01b97c0..000000000000
--- a/dev-scheme/guile/files/guile-2.0.14-configure-clang16.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-https://src.fedoraproject.org/rpms/guile/c/7fcab121be7d2bc8e3e48d0da476127b86cec90c?branch=rawhide
-
-These issues have already been fixed upstream via gnulib imports:
-
-commit 7e641595cd9b45ce7339e21c20a8ab81af9278f6
-Author: Andy Wingo <wingo@pobox.com>
-Date: Wed Feb 15 21:41:24 2017 +0100
-
- Update Gnulib to v0.1-1157-gb03f418.
-
-commit a91b95cca2d397c84f8b9bbd602d40209a7092ce
-Author: Andy Wingo <wingo@pobox.com>
-Date: Wed Jan 20 21:52:54 2021 +0100
-
- Update Gnulib to v0.1-4379-g2ef5a9b4b
-
- Also bump required autoconf version to 2.64, as required by Gnulib.
-
---- a/m4/link.m4
-+++ b/m4/link.m4
-@@ -22,6 +22,7 @@ AC_DEFUN([gl_FUNC_LINK],
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM(
- [[#include <unistd.h>
-+ #include <stdio.h>
- ]],
- [[int result = 0;
- if (!link ("conftest.a", "conftest.b/"))
---- a/m4/round.m4
-+++ b/m4/round.m4
-@@ -57,7 +57,7 @@ int main()
- * (double) (1U << ((DBL_MANT_DIG + 3) / 5))
- * (double) (1U << ((DBL_MANT_DIG + 4) / 5));
- volatile double x = 0.5 - 0.5 / TWO_MANT_DIG;
-- exit (x < 0.5 && round (x) != 0.0);
-+ return x < 0.5 && round (x) != 0.0;
- }]])], [gl_cv_func_round_works=yes], [gl_cv_func_round_works=no],
- [case "$host_os" in
- netbsd* | aix*) gl_cv_func_round_works="guessing no";;
-
-
-Avoid implicit ints in the guile_cv_localtime_cache check. It cause
-the check to always fail with strict(er) C99 compilers that do not
-support implicit int.
-
-Submitted upstream:
-
- <https://lists.gnu.org/archive/html/bug-guile/2022-12/msg00017.html>
- <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60022>
-
---- a/configure.ac
-+++ b/configure.ac
-@@ -1086,7 +1086,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
- # include <stdlib.h>
- #endif
- extern char **environ;
--unset_TZ ()
-+int unset_TZ ()
- {
- char **from, **to;
- for (to = from = environ; (*to = *from); from++)
-@@ -1095,7 +1095,7 @@ unset_TZ ()
- }
- char TZ_GMT0[] = "TZ=GMT0";
- char TZ_PST8[] = "TZ=PST8";
--main()
-+int main()
- {
- time_t now = time ((time_t *) 0);
- int hour_GMT0, hour_unset;
-
diff --git a/dev-scheme/guile/files/guile-2.0.14-darwin.patch b/dev-scheme/guile/files/guile-2.0.14-darwin.patch
deleted file mode 100644
index 17741ae352c2..000000000000
--- a/dev-scheme/guile/files/guile-2.0.14-darwin.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-fix compilation on Darwin
-
-https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24862#23
-https://bugs.gentoo.org/show_bug.cgi?id=612338
-
---- guile-2.0.14/libguile/filesys.c
-+++ guile-2.0.14/libguile/filesys.c
-@@ -1486,6 +1486,9 @@
- mode_bits = scm_i_mode_bits (mode);
- }
-
-+#ifdef __APPLE__
-+ open_flags &= O_APPEND|O_SHLOCK|O_EXLOCK|O_CLOEXEC;
-+#endif
- SCM_SYSCALL (rv = mkostemp (c_tmpl, open_flags));
- if (rv == -1)
- SCM_SYSERROR;
---- guile-2.0.14/libguile/stime.c
-+++ guile-2.0.14/libguile/stime.c
-@@ -830,6 +830,10 @@
-
- #ifdef HAVE_POSIX_CPUTIME
- {
-+#ifdef __APPLE__
-+ if (clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0)
-+ get_internal_run_time = get_internal_run_time_posix_timer;
-+#else
- clockid_t dummy;
-
- /* Only use the _POSIX_CPUTIME clock if it's going to work across
-@@ -839,6 +843,7 @@
- get_internal_run_time = get_internal_run_time_posix_timer;
- else
- errno = 0;
-+#endif
- }
- #endif /* HAVE_POSIX_CPUTIME */
- #endif /* HAVE_CLOCKTIME */
diff --git a/dev-scheme/guile/files/guile-2.0.14-ia64-fix-crash-thread-context-switch.patch b/dev-scheme/guile/files/guile-2.0.14-ia64-fix-crash-thread-context-switch.patch
deleted file mode 100644
index c2f136ddd104..000000000000
--- a/dev-scheme/guile/files/guile-2.0.14-ia64-fix-crash-thread-context-switch.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From f92888853439a8ded221f3423865c78de2a96a14 Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich <slyfox@gentoo.org>
-Date: Sun, 5 Nov 2017 09:30:45 +0000
-Subject: ia64: Fix crash in thread context switch.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Fixes <https://bugs.gnu.org/29151> and <https://bugs.gentoo.org/613986>.
-
-Backtrace looks like that:
-
- Program terminated with signal SIGSEGV, Segmentation fault.
- #0 0x200000000014a5c0 in scm_ia64_longjmp (JB=0x6000000000817020, VAL=1) at continuations.c:372
- 372 t->pending_rbs_continuation->backing_store,
- [Current thread is 1 (Thread 0x2000000000049340 (LWP 8190))]
- (gdb) bt
- #0 0x200000000014a5c0 in scm_ia64_longjmp (JB=0x6000000000817020, VAL=1) at continuations.c:372
- #1 0x2000000000148e00 in scm_c_abort (vm=0x60000000000edea0, tag=0x6000000000795ba0, n=0, argv=0x60000fffff7f0ce0, cookie=-1) at control.c:239
- #2 0x2000000000149070 in scm_at_abort (tag=0x6000000000795ba0, args=0x304) at control.c:258
- (gdb) print t
- $2 = (scm_i_thread *) 0x6000000000068000
- (gdb) print t->pending_rbs_continuation
- $3 = (scm_t_contregs *) 0xffeb
-
-The problem here is the value of 't->pending_rbs_continuation' pointer.
-It's supposed to poin to a register stack pointer or be NULL if not yet
-backed up.
-
-The problem is it is never initialized to NULL at creation time and
-contained garbage on stack. Sometimes people are lucky and have zeros
-on stack and guile works. But sometimes there is something and guile
-crashes.
-
-The fix is trivial: initialize 'pending_rbs_continuation = NULL'
-at thread registration time (the same way other threads are registered).
-
-Reported-by: Matt Turner
-
-* libguile/threads.c (guilify_self_1): Initialize pending_rbs_continuation
-to avoid crash on ia64.
-
-Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-Signed-off-by: Ludovic Courtès <ludo@gnu.org>
----
- libguile/threads.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libguile/threads.c b/libguile/threads.c
-index 9ceb5b8..770f62c 100644
---- a/libguile/threads.c
-+++ b/libguile/threads.c
-@@ -395,6 +395,7 @@ guilify_self_1 (struct GC_stack_base *base, int needs_unregister)
- t.base = base->mem_base;
- #ifdef __ia64__
- t.register_backing_store_base = base->reg_base;
-+ t.pending_rbs_continuation = 0;
- #endif
- t.continuation_root = SCM_EOL;
- t.continuation_base = t.base;
---
-cgit v1.0-41-gc330
-
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile/files/
@ 2024-11-13 3:13 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-11-13 3:13 UTC (permalink / raw
To: gentoo-commits
commit: 7dfc6696249c7d992801d1352ed36c6c0c48ae9a
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 03:10:36 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 03:10:36 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dfc6696
dev-scheme/guile: fix 32-bit patch
As Stefan reports on the forums [0], regular Make conditions don't
work as expected in Automake. We'd end up having GUILE_OPTIMIZATIONS
set but Automake not realising it, so it'd use the default -O2 below,
which made stage0 far slower than it needed to be.
Fix that so that -O1 is always used when it should be, and the special
-O1 ... options are needed for 32-bit BE, as originally intended. -O2
is now never used for stage0.
This fixes slow guile build times on platforms with prebuilt/.
(I will note, however, that ultimately, we may end up with slow build
times again if we either delete the prebuilt/ stuff entirely or make it
optional - which is indeed how I didn't notice it myself at least.)
[0] https://forums.gentoo.org/viewtopic-p-8845997.html#8845997
Bug: https://bugs.gentoo.org/940650
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../guile/files/guile-3.0-fix-32bit-BE.patch | 27 ++++++++++++++--------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/dev-scheme/guile/files/guile-3.0-fix-32bit-BE.patch b/dev-scheme/guile/files/guile-3.0-fix-32bit-BE.patch
index 6417f639b5df..a4e575691293 100644
--- a/dev-scheme/guile/files/guile-3.0-fix-32bit-BE.patch
+++ b/dev-scheme/guile/files/guile-3.0-fix-32bit-BE.patch
@@ -1,8 +1,17 @@
https://bugs.gentoo.org/940650#c4
-https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=977223;filename=guile-3.0-fix-32bit-BE.patch;msg=66
-
-diff --git a/stage0/Makefile.am b/stage0/Makefile.am
-index 12029fb45..b00611df0 100644
+https://bugs.debian.org/977223
+https://sources.debian.org/patches/guile-3.0/3.0.8-2/0009-Fix-32-bit-big-endian-builds-via-Oresolve-primitives.patch/
+--- a/configure.ac
++++ b/configure.ac
+@@ -374,6 +374,8 @@ esac
+ AC_MSG_RESULT($SCM_PREBUILT_BINARIES)
+ AC_SUBST([SCM_PREBUILT_BINARIES])
+
++AM_CONDITIONAL([GUILE_32_BIT_BIG_ENDIAN], [test "$SCM_PREBUILT_BINARIES" = 32-bit-big-endian])
++
+ AC_HEADER_SYS_WAIT
+ AC_HEADER_DIRENT
+
--- a/stage0/Makefile.am
+++ b/stage0/Makefile.am
@@ -22,7 +22,12 @@
@@ -10,11 +19,11 @@ index 12029fb45..b00611df0 100644
GUILE_WARNINGS = -W0
-GUILE_OPTIMIZATIONS = -O1
-+$(ifeq($SCM_PREBUILT_BINARIES,"32-bit-little-endian") \
-+ GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps \
-+else \
-+ GUILE_OPTIMIZATIONS = -O1 \
-+endif)
++if GUILE_32_BIT_BIG_ENDIAN
++GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps
++else
++GUILE_OPTIMIZATIONS = -O1
++endif
+
GUILE_BOOTSTRAP_STAGE = stage0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-13 3:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 17:17 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile/files/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2024-11-13 3:13 Sam James
2016-12-20 10:41 Amy Winston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox