forked from easybuilders/easybuild-easyconfigs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from scimerman/master
Patching easyconfigs to work on CentOS 8.5 (spider)
- Loading branch information
Showing
13 changed files
with
318 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
easybuild/easyconfigs/b/Bison/Bison-3.0.4_glibc_2.28.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
patch to avoid problems on systems using glibc 2.28 (or newer) | ||
author: Esteban Vohringer-Martinezi (Universidad de Concepción) | ||
diff -ru bison-3.0.4_orig/lib/fseterr.c bison-3.0.4/lib/fseterr.c | ||
--- bison-3.0.4_orig/lib/fseterr.c 2019-06-19 15:56:23.552533933 -0400 | ||
+++ bison-3.0.4/lib/fseterr.c 2019-06-19 15:58:32.757469045 -0400 | ||
@@ -29,7 +29,7 @@ | ||
/* Most systems provide FILE as a struct and the necessary bitmask in | ||
<stdio.h>, because they need it for implementing getc() and putc() as | ||
fast macros. */ | ||
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
fp->_flags |= _IO_ERR_SEEN; | ||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */ | ||
fp_->_flags |= __SERR; | ||
diff -ru bison-3.0.4_orig/lib/stdio-impl.h bison-3.0.4/lib/stdio-impl.h | ||
--- bison-3.0.4_orig/lib/stdio-impl.h 2019-06-19 15:56:23.556533962 -0400 | ||
+++ bison-3.0.4/lib/stdio-impl.h 2019-06-19 15:57:44.497120445 -0400 | ||
@@ -19,6 +19,13 @@ | ||
have different naming conventions, or their access requires some casts. */ | ||
|
||
|
||
+/* Glibc 2.28 made _IO_IN_BACKUP private. For now, work around this | ||
+ problem by defining it ourselves. FIXME: Do not rely on glibc | ||
+ internals. */ | ||
+#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN | ||
+# define _IO_IN_BACKUP 0x100 | ||
+#endif | ||
+ | ||
/* BSD stdio derived implementations. */ | ||
|
||
#if defined __NetBSD__ /* NetBSD */ |
69 changes: 69 additions & 0 deletions
69
easybuild/easyconfigs/g/GCCcore/GCCcore-7.3.0-remove-glibc-ustat.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# ustat.h was removed in glibc 2.28 | ||
# Patch lifted from https://raw.githubusercontent.com/vmware/photon/master/SPECS/gcc/libsanitizer-avoidustat.h-glibc-2.28.patch | ||
# Lars Viklund, Sun 18 Aug 2019 12:41:26 AM CEST | ||
From 61f38c64c01a15560026115a157b7021ec67bd3b Mon Sep 17 00:00:00 2001 | ||
From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
Date: Thu, 24 May 2018 20:21:54 +0000 | ||
Subject: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux | ||
|
||
Cherry-pick compiler-rt revision 333213: | ||
|
||
<sys/ustat.h> has been removed from glibc 2.28 by: | ||
|
||
commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7 | ||
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> | ||
Date: Sun Mar 18 11:28:59 2018 +0800 | ||
|
||
Deprecate ustat syscall interface | ||
|
||
This patch uses pre-computed size of struct ustat for Linux. | ||
|
||
PR sanitizer/85835 | ||
* sanitizer_common/sanitizer_platform_limits_posix.cc: Don't | ||
include <sys/ustat.h> for Linux. | ||
(SIZEOF_STRUCT_USTAT): New. | ||
(struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux. | ||
|
||
|
||
|
||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@260688 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
--- | ||
libsanitizer/ChangeLog | 8 ++++++++ | ||
.../sanitizer_platform_limits_posix.cc | 15 +++++++++++++-- | ||
2 files changed, 21 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc | ||
index 31a5e697eae..8017afd21c5 100644 | ||
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc | ||
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc | ||
@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_t; | ||
# include <sys/procfs.h> | ||
#endif | ||
#include <sys/user.h> | ||
-#include <sys/ustat.h> | ||
#include <linux/cyclades.h> | ||
#include <linux/if_eql.h> | ||
#include <linux/if_plip.h> | ||
@@ -247,7 +246,19 @@ namespace __sanitizer { | ||
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD | ||
|
||
#if SANITIZER_LINUX && !SANITIZER_ANDROID | ||
- unsigned struct_ustat_sz = sizeof(struct ustat); | ||
+ // Use pre-computed size of struct ustat to avoid <sys/ustat.h> which | ||
+ // has been removed from glibc 2.28. | ||
+#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \ | ||
+ || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \ | ||
+ || defined(__x86_64__) | ||
+#define SIZEOF_STRUCT_USTAT 32 | ||
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \ | ||
+ || defined(__powerpc__) || defined(__s390__) | ||
+#define SIZEOF_STRUCT_USTAT 20 | ||
+#else | ||
+#error Unknown size of struct ustat | ||
+#endif | ||
+ unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT; | ||
unsigned struct_rlimit64_sz = sizeof(struct rlimit64); | ||
unsigned struct_statvfs64_sz = sizeof(struct statvfs64); | ||
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID | ||
-- | ||
2.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
easyblock = 'ConfigureMake' | ||
|
||
name = 'gettext' | ||
version = '0.21' | ||
|
||
homepage = 'https://www.gnu.org/software/gettext/' | ||
description = """GNU 'gettext' is an important step for the GNU Translation Project, as it is an asset on which we may | ||
build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools | ||
and documentation""" | ||
|
||
# This is a basic stripped down version of gettext without any | ||
# dependencies on other packages used as initial builddep for XZ | ||
# It is the first step in the cyclic dependency chain of | ||
# XZ -> libxml2 -> gettext -> XZ | ||
|
||
toolchain = SYSTEM | ||
|
||
source_urls = [GNU_SOURCE] | ||
sources = [SOURCE_TAR_GZ] | ||
checksums = ['c77d0da3102aec9c07f43671e60611ebff89a996ef159497ce8e59d075786b12'] | ||
|
||
dependencies = [ | ||
# ('ncurses', '6.2', '', ('GCCcore', '7.3.0')), | ||
('ncurses', '6.2'), | ||
] | ||
|
||
configopts = '--without-emacs --with-included-libxml --without-xz --without-bzip2' | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/gettext', 'lib/libasprintf.a', 'lib/libasprintf.%s' % SHLIB_EXT, | ||
'lib/libgettextpo.a', 'lib/libgettextpo.%s' % SHLIB_EXT], | ||
'dirs': ['include'], | ||
} | ||
|
||
moduleclass = 'tools' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
easyblock = 'ConfigureMake' | ||
|
||
name = 'htop' | ||
version = '3.1.2' | ||
|
||
description = """An interactive, ncursus-based process viewer by Hisham Muhammad.""" | ||
homepage = 'https://github.com/hishamhm/htop' | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '7.3.0'} | ||
|
||
source_urls = ['https://github.com/htop-dev/%(name)s/archive/'] | ||
sources = ['%(version)s.tar.gz'] | ||
|
||
checksums = [ | ||
'fe9559637c8f21f5fd531a4c072048a404173806acbdad1359c6b82fd87aa001', # htop-3.1.2.tar.gz | ||
] | ||
|
||
builddependencies = [ | ||
('Autotools', '20180311') | ||
] | ||
|
||
dependencies = [ | ||
('ncurses', '6.1'), | ||
] | ||
|
||
# | ||
# The source distro does not contain a configure script out of the box: | ||
# Execute autogen.sh, which calls various tools from the Autotools module to create the configure script. | ||
# | ||
preconfigopts = './autogen.sh && chmod a+x configure && ' | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/htop', 'share/man/man1/htop.1'], | ||
'dirs': [''], | ||
} | ||
|
||
moduleclass = 'tools' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
fix problems occuring from changes in glibc 2.28 | ||
https://github.com/coreutils/gnulib/commit/4af4a4a71827c0bc5e0ec67af23edef4f15cee8e | ||
|
||
diff -ru m4-1.4.17.orig/lib/freadahead.c m4-1.4.17/lib/freadahead.c | ||
--- m4-1.4.17.orig/lib/freadahead.c 2019-06-19 15:21:26.897812071 -0400 | ||
+++ m4-1.4.17/lib/freadahead.c 2019-06-19 15:25:40.075547063 -0400 | ||
@@ -25,7 +25,7 @@ | ||
size_t | ||
freadahead (FILE *fp) | ||
{ | ||
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
if (fp->_IO_write_ptr > fp->_IO_write_base) | ||
return 0; | ||
return (fp->_IO_read_end - fp->_IO_read_ptr) | ||
diff -ru m4-1.4.17.orig/lib/fseeko.c m4-1.4.17/lib/fseeko.c | ||
--- m4-1.4.17.orig/lib/fseeko.c 2019-06-19 15:21:26.897812071 -0400 | ||
+++ m4-1.4.17/lib/fseeko.c 2019-06-19 15:27:19.368232257 -0400 | ||
@@ -47,7 +47,7 @@ | ||
#endif | ||
|
||
/* These tests are based on fpurge.c. */ | ||
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
if (fp->_IO_read_end == fp->_IO_read_ptr | ||
&& fp->_IO_write_ptr == fp->_IO_write_base | ||
&& fp->_IO_save_base == NULL) | ||
@@ -121,7 +121,7 @@ | ||
return -1; | ||
} | ||
|
||
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
fp->_flags &= ~_IO_EOF_SEEN; | ||
fp->_offset = pos; | ||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */ | ||
diff -ru m4-1.4.17.orig/lib/stdio-impl.h m4-1.4.17/lib/stdio-impl.h | ||
--- m4-1.4.17.orig/lib/stdio-impl.h 2019-06-19 15:21:26.909812152 -0400 | ||
+++ m4-1.4.17/lib/stdio-impl.h 2019-06-19 15:29:10.789003521 -0400 | ||
@@ -21,6 +21,14 @@ | ||
|
||
/* BSD stdio derived implementations. */ | ||
|
||
+/* Glibc 2.28 made _IO_IN_BACKUP private. For now, work around this | ||
+ problem by defining it ourselves. FIXME: Do not rely on glibc | ||
+ internals. */ | ||
+ | ||
+#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN | ||
+# define _IO_IN_BACKUP 0x100 | ||
+#endif | ||
+ | ||
#if defined __NetBSD__ /* NetBSD */ | ||
/* Get __NetBSD_Version__. */ | ||
# include <sys/param.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.