From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA6AF158086 for ; Sat, 6 Nov 2021 03:51:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4428E08A8; Sat, 6 Nov 2021 03:51:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1FA71E089C for ; Sat, 6 Nov 2021 03:51:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38B9A342DA1 for ; Sat, 6 Nov 2021 03:51:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31F3A1A2 for ; Sat, 6 Nov 2021 03:51:41 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1636158107.93db41e8d06902f3a6b75003df5e81f83846e500.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: / X-VCS-Repository: proj/sandbox X-VCS-Files: configure.ac localdecls.h X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 93db41e8d06902f3a6b75003df5e81f83846e500 X-VCS-Branch: master Date: Sat, 6 Nov 2021 03:51:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8048b70c-c584-4a4e-81a0-cd4ccfa3a044 X-Archives-Hash: b3ccae77a7c9ed5045d5df77efb90b3d commit: 93db41e8d06902f3a6b75003df5e81f83846e500 Author: Mike Frysinger gentoo org> AuthorDate: Sat Nov 6 00:21:47 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Nov 6 00:21:47 2021 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=93db41e8 build: drop support for ancient C library versions We don't need to support glibc versions that predate Linux-2.6. Signed-off-by: Mike Frysinger gentoo.org> configure.ac | 12 ------------ localdecls.h | 13 ++----------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/configure.ac b/configure.ac index c1aa576..a353e0a 100644 --- a/configure.ac +++ b/configure.ac @@ -307,18 +307,6 @@ dnl uClibc doesn't currently provide dlvsym() so lets dnl verify the toolchain supports it AC_CHECK_FUNCS([dlvsym]) -dnl when using libc5, (f)trucate's offset argument type is size_t with -dnl libc5, but it's off_t with libc6 (glibc2). -AC_MSG_CHECKING([truncate argument type]) -AC_EGREP_HEADER([truncate.*size_t], [unistd.h], - [dnl - AC_MSG_RESULT([size_t]) - AC_DEFINE([TRUNCATE_T], [size_t], [truncate arg type]) - ],[dnl - AC_MSG_RESULT([off_t]) - AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type]) -]) - dnl Check if libc provides RTLD_NEXT AC_MSG_CHECKING([for RTLD_NEXT]) AC_TRY_COMPILE([ diff --git a/localdecls.h b/localdecls.h index ecc5856..6b727ff 100644 --- a/localdecls.h +++ b/localdecls.h @@ -11,9 +11,8 @@ /* take care of broken ld loading */ #if defined(__GLIBC__) && !defined(__UCLIBC__) -# if __GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2 -# define BROKEN_RTLD_NEXT -# define LIBC 5 +# if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 2) +# error "glibc-2.3+ required" # endif # if !defined(BROKEN_RTLD_NEXT) @@ -22,14 +21,6 @@ # endif # endif -#else - -#if 0 -# if defined(__FreeBSD__) -# define BROKEN_RTLD_NEXT -# endif -#endif - #endif #ifdef PATH_MAX