* [gentoo-commits] proj/toolchain:master commit in: sys-libs/glibc/, sys-libs/glibc/files/2.3.5/
@ 2015-10-19 18:37 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2015-10-19 18:37 UTC (permalink / raw
To: gentoo-commits
commit: 2785ce6bc44ccf7db98006a6c9a2b3ca3e906c96
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 19 18:35:11 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Oct 19 18:35:11 2015 +0000
URL: https://gitweb.gentoo.org/proj/toolchain.git/commit/?id=2785ce6b
glibc: drop old USE=erandom flag
No point in carrying this old logic anymore.
.../files/2.3.5/glibc-2.3.5-frandom-detect.patch | 102 ---------------------
sys-libs/glibc/glibc-2.3.6-r5.ebuild | 5 +-
2 files changed, 1 insertion(+), 106 deletions(-)
diff --git a/sys-libs/glibc/files/2.3.5/glibc-2.3.5-frandom-detect.patch b/sys-libs/glibc/files/2.3.5/glibc-2.3.5-frandom-detect.patch
deleted file mode 100644
index 3b1a71a..0000000
--- a/sys-libs/glibc/files/2.3.5/glibc-2.3.5-frandom-detect.patch
+++ /dev/null
@@ -1,102 +0,0 @@
---- config.h.in
-+++ config.h.in
-@@ -215,4 +215,7 @@
- #undef HAVE_LIBIDN
-
-+/* Defined if economical random device is available. */
-+#undef HAVE_DEV_ERANDOM
-+
- /* Define if inlined system calls are available. */
- #undef HAVE_INLINED_SYSCALLS
---- configure.in
-+++ configure.in
-@@ -264,4 +264,11 @@
- AC_SUBST(all_warnings)
-
-+dnl See whether the user wants to disable checking for /dev/erandom
-+AC_ARG_ENABLE([dev-erandom],
-+ AC_HELP_STRING([--disable-dev-erandom],
-+ [disable testing for /dev/erandom]),
-+ [try_dev_erandom=$enableval],
-+ [try_dev_erandom=yes])
-+
- AC_CANONICAL_HOST
-
-@@ -1974,4 +1981,19 @@
- AC_SUBST(sizeof_long_double)
-
-+dnl check whether we have an economical random device
-+if test "$try_dev_erandom" = yes ; then
-+ AC_CACHE_CHECK(for economical random device, ac_cv_have_dev_random,
-+ [if test -r "/dev/erandom" ; then
-+ ac_cv_have_dev_erandom=yes; else ac_cv_have_dev_erandom=no; fi])
-+ if test "$ac_cv_have_dev_erandom" = yes; then
-+ AC_DEFINE(HAVE_DEV_ERANDOM,1,
-+ [defined if the system supports an economical random device])
-+ fi
-+else
-+ AC_MSG_CHECKING(for economical random device)
-+ ac_cv_have_dev_erandom=no
-+ AC_MSG_RESULT(has been disabled)
-+fi
-+
- ### End of automated tests.
- ### Now run sysdeps configure fragments.
---- configure
-+++ configure
-@@ -884,6 +884,7 @@
- --enable-kernel=VERSION compile for compatibility with kernel not older than
- VERSION
- --enable-all-warnings enable all useful warnings gcc can issue
-+ --disable-dev-erandom disable testing for /dev/erandom
-
- Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
-@@ -1697,6 +1698,14 @@
- fi;
-
-
-+# Check whether --enable-dev-erandom or --disable-dev-erandom was given.
-+if test "${enable_dev_erandom+set}" = set; then
-+ enableval="$enable_dev_erandom"
-+ try_dev_erandom=$enableval
-+else
-+ try_dev_erandom=yes
-+fi;
-+
- # Make sure we can run config.sub.
- $ac_config_sub sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
-@@ -7449,6 +7458,32 @@
- sizeof_long_double=$ac_cv_sizeof_long_double
-
-
-+if test "$try_dev_erandom" = yes ; then
-+ echo "$as_me:$LINENO: checking for economical random device" >&5
-+echo $ECHO_N "checking for economical random device... $ECHO_C" >&6
-+if test "${ac_cv_have_dev_random+set}" = set; then
-+ echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+ if test -r "/dev/erandom" ; then
-+ ac_cv_have_dev_erandom=yes; else ac_cv_have_dev_erandom=no; fi
-+fi
-+echo "$as_me:$LINENO: result: $ac_cv_have_dev_random" >&5
-+echo "${ECHO_T}$ac_cv_have_dev_random" >&6
-+ if test "$ac_cv_have_dev_erandom" = yes; then
-+
-+cat >>confdefs.h <<\_ACEOF
-+#define HAVE_DEV_ERANDOM 1
-+_ACEOF
-+
-+ fi
-+else
-+ echo "$as_me:$LINENO: checking for economical random device" >&5
-+echo $ECHO_N "checking for economical random device... $ECHO_C" >&6
-+ ac_cv_have_dev_erandom=no
-+ echo "$as_me:$LINENO: result: has been disabled" >&5
-+echo "${ECHO_T}has been disabled" >&6
-+fi
-+
- ### End of automated tests.
- ### Now run sysdeps configure fragments.
-
diff --git a/sys-libs/glibc/glibc-2.3.6-r5.ebuild b/sys-libs/glibc/glibc-2.3.6-r5.ebuild
index 3a1bfce..ae39702 100644
--- a/sys-libs/glibc/glibc-2.3.6-r5.ebuild
+++ b/sys-libs/glibc/glibc-2.3.6-r5.ebuild
@@ -39,7 +39,7 @@ DESCRIPTION="GNU libc6 (also called glibc2) C library"
HOMEPAGE="http://www.gnu.org/software/libc/libc.html"
LICENSE="LGPL-2"
-IUSE="build nptl nptlonly erandom hardened multilib selinux glibc-compat20 glibc-omitfp profile"
+IUSE="build nptl nptlonly hardened multilib selinux glibc-compat20 glibc-omitfp profile"
export CBUILD=${CBUILD:-${CHOST}}
export CTARGET=${CTARGET:-${CHOST}}
@@ -831,8 +831,6 @@ glibc_do_configure() {
popd > /dev/null
use glibc-compat20 && [[ -d glibc-compat ]] && ADDONS="${ADDONS},glibc-compat"
- use erandom || myconf="${myconf} --disable-dev-erandom"
-
use glibc-omitfp && myconf="${myconf} --enable-omitfp"
[[ ${CTARGET//_/-} == *-softfloat-* ]] && myconf="${myconf} --without-fp"
@@ -1077,7 +1075,6 @@ src_unpack() {
cp "${FILESDIR}"/2.3.5/ssp.c sysdeps/unix/sysv/linux/ || die "could not find ssp.c"
rm -f "${WORKDIR}"/patches/2*
epatch "${FILESDIR}"/2.3.6/glibc-2.3.6-propolice-guard-functions.patch
- epatch "${FILESDIR}"/2.3.5/glibc-2.3.5-frandom-detect.patch
# Glibc is stupid sometimes, and doesn't realize that with a
# static C-Only gcc, -lgcc_eh doesn't exist.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-19 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 18:37 [gentoo-commits] proj/toolchain:master commit in: sys-libs/glibc/, sys-libs/glibc/files/2.3.5/ Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox