forked from pool/glibc
Accepting request 876230 from home:Andreas_Schwab:Factory
- Disable x86 ISA level for now (bsc#1182522, BZ #27318) - nss-revert-api.patch: Workaround for nss-compat brokeness (bsc#1182247, BZ #27416) OBS-URL: https://build.opensuse.org/request/show/876230 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=583
This commit is contained in:
parent
e4be57d504
commit
b855cdeb01
@ -1,13 +1,15 @@
|
||||
Index: glibc-2.31/nss/nss_database.c
|
||||
Index: glibc-2.33/nss/nsswitch.c
|
||||
===================================================================
|
||||
--- glibc-2.31.orig/nss/nss_database.c
|
||||
+++ glibc-2.31/nss/nss_database.c
|
||||
@@ -294,6 +294,8 @@ nss_database_reload (struct nss_database_data *staging,
|
||||
struct file_change_detection *initial)
|
||||
{
|
||||
FILE *fp = fopen (_PATH_NSSWITCH_CONF, "rce");
|
||||
+ if (fp == NULL)
|
||||
+ fp = fopen ("/usr" _PATH_NSSWITCH_CONF, "rce");
|
||||
if (fp == NULL)
|
||||
switch (errno)
|
||||
{
|
||||
--- glibc-2.33.orig/nss/nsswitch.c
|
||||
+++ glibc-2.33/nss/nsswitch.c
|
||||
@@ -126,6 +126,10 @@ __nss_database_lookup2 (const char *data
|
||||
/* Read config file. */
|
||||
service_table = nss_parse_file (_PATH_NSSWITCH_CONF);
|
||||
|
||||
+ /* Retry with the OS vendor provided config file. */
|
||||
+ if (service_table == NULL)
|
||||
+ service_table = nss_parse_file ("/usr" _PATH_NSSWITCH_CONF);
|
||||
+
|
||||
/* Test whether configuration data is available. */
|
||||
if (service_table != NULL)
|
||||
{
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 2 11:57:15 UTC 2021 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Disable x86 ISA level for now (bsc#1182522, BZ #27318)
|
||||
- nss-revert-api.patch: Workaround for nss-compat brokeness (bsc#1182247,
|
||||
BZ #27416)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 1 16:43:55 UTC 2021 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
|
17
glibc.spec
17
glibc.spec
@ -200,6 +200,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
###
|
||||
# Patches that upstream will not accept
|
||||
###
|
||||
# PATCH-FIX-OPENSUSE Work around for nss-compat brokeness
|
||||
Patch1: nss-revert-api.patch
|
||||
|
||||
###
|
||||
# openSUSE specific patches - won't go upstream
|
||||
@ -415,19 +417,9 @@ The glibc-devel-static package contains the C library static libraries
|
||||
for -static linking. You don't need these, unless you link statically,
|
||||
which is highly discouraged.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%package extra
|
||||
# makedb requires libselinux. We add this program in a separate
|
||||
# package so that glibc does not require libselinux.
|
||||
|
||||
%package extra
|
||||
Summary: Extra binaries from GNU C Library
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
@ -453,6 +445,7 @@ Internal usrmerge bootstrap helper
|
||||
|
||||
%prep
|
||||
%setup -n glibc-%{version} -q -a 4
|
||||
%patch1 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
@ -585,6 +578,8 @@ profile="--enable-profile"
|
||||
%else
|
||||
profile="--disable-profile"
|
||||
%endif
|
||||
# Disable x86 ISA level support for now (bsc#1182522)
|
||||
export libc_cv_include_x86_isa_level=no
|
||||
../configure \
|
||||
CFLAGS="$conf_cflags" BUILD_CFLAGS="$conf_cflags" \
|
||||
CC="$BuildCC" CXX="$BuildCCplus" \
|
||||
|
4609
nss-revert-api.patch
Normal file
4609
nss-revert-api.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user