SHA256
1
0
forked from pool/glibc

Accepting request 1239262 from Base:System

- Disable nscd support (bsc#1235247) (forwarded request 1239261 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/1239262
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=296
This commit is contained in:
Dominique Leuenberger 2025-01-24 12:39:38 +00:00 committed by Git OBS Bridge
commit 65696cf8bf
2 changed files with 91 additions and 11 deletions

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Jan 20 13:33:58 UTC 2025 - Andreas Schwab <schwab@suse.de>
- Disable nscd support (bsc#1235247)
-------------------------------------------------------------------
Tue Jan 7 10:28:36 UTC 2025 - Andreas Schwab <schwab@suse.de>
- Correctly determine livepatching support
-------------------------------------------------------------------
Sun Jan 5 11:43:47 UTC 2025 - Andreas Schwab <schwab@suse.de>
- Define _enable_debug_packages for rpm 4.20
-------------------------------------------------------------------
Mon Dec 2 14:02:08 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Add support for loongarch64
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 30 20:56:18 UTC 2024 - Stanislav Brabec <sbrabec@suse.com> Mon Sep 30 20:56:18 UTC 2024 - Stanislav Brabec <sbrabec@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package glibc # spec file for package glibc
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -57,15 +57,14 @@
%bcond_with usrmerged %bcond_with usrmerged
%endif %endif
%if 0%{?gcc_version} < 13 %if 0%{?suse_version} >= 1600
%define with_gcc 13 %bcond_with nscd
%else
%bcond_without nscd
%endif %endif
# Enable support for livepatching. %if 0%{?gcc_version} < 13
%ifarch x86_64 %define with_gcc 13
%bcond_without livepatching
%else
%bcond_with livepatching
%endif %endif
%bcond_with build_all %bcond_with build_all
@ -95,6 +94,7 @@ ExclusiveArch: do_not_build
%define build_testsuite 0 %define build_testsuite 0
%define build_cross 1 %define build_cross 1
%undefine _build_create_debug %undefine _build_create_debug
%define _enable_debug_packages 0
ExcludeArch: %{cross_arch} ExcludeArch: %{cross_arch}
%if 0%{?suse_version} < 1600 %if 0%{?suse_version} < 1600
ExclusiveArch: do_not_build ExclusiveArch: do_not_build
@ -102,6 +102,24 @@ ExclusiveArch: do_not_build
%endif %endif
%define host_arch %{?cross_cpu}%{!?cross_cpu:%{_target_cpu}} %define host_arch %{?cross_cpu}%{!?cross_cpu:%{_target_cpu}}
# Enable support for livepatching.
%define have_livepatching_support 0
%if %{build_cross}
%if "%{cross_arch}" == "x86_64"
%define have_livepatching_support 1
%endif
%else
%ifarch x86_64
%define have_livepatching_support 1
%endif
%endif
%if %{have_livepatching_support}
%bcond_without livepatching
%else
%bcond_with livepatching
%endif
%if %{build_main} %if %{build_main}
%define name_suffix %{nil} %define name_suffix %{nil}
%else %else
@ -147,6 +165,16 @@ ExclusiveArch: do_not_build
%ifarch riscv64 %ifarch riscv64
%define enablekernel 4.15 %define enablekernel 4.15
%endif %endif
%ifarch loongarch64
%define enablekernel 5.19
%endif
# Before 2.29
%define libnsl_archs %ix86 %alpha hppa m68k %mips32 %mips64 %sparc ppc ppc64 ppc64le x86_64 s390 s390x %arm aarch64 riscv64
# Before 2.34
%define libutil_archs %libnsl_archs
# Before 2.35
%define libanl_archs %libutil_archs
Name: glibc%{name_suffix} Name: glibc%{name_suffix}
Summary: Standard Shared Libraries (from the GNU C Library) Summary: Standard Shared Libraries (from the GNU C Library)
@ -184,6 +212,9 @@ Obsoletes: ngpt < 2.2.2
Obsoletes: ngpt-devel < 2.2.2 Obsoletes: ngpt-devel < 2.2.2
Provides: ngpt = 2.2.2 Provides: ngpt = 2.2.2
Provides: ngpt-devel = 2.2.2 Provides: ngpt-devel = 2.2.2
%if %{without nscd}
Obsoletes: nscd <= %{version}
%endif
Conflicts: kernel < %{enablekernel} Conflicts: kernel < %{enablekernel}
%if %{with usrmerged} %if %{with usrmerged}
# make sure we have post-usrmerge filesystem package # make sure we have post-usrmerge filesystem package
@ -703,8 +734,12 @@ profile="--disable-profile"
%if %{with livepatching} %if %{with livepatching}
--enable-userspace-livepatch \ --enable-userspace-livepatch \
%endif %endif
--disable-crypt || \ --disable-crypt \
{ %if %{without nscd}
--disable-build-nscd \
--disable-nscd \
%endif
|| {
rc=$?; rc=$?;
echo "------- BEGIN config.log ------"; echo "------- BEGIN config.log ------";
%{__cat} config.log; %{__cat} config.log;
@ -729,8 +764,10 @@ cd ..
make %{?_smp_mflags} %{?make_output_sync} -C cc-base html make %{?_smp_mflags} %{?make_output_sync} -C cc-base html
%endif %endif
%if %{with nscd}
# sysusers.d # sysusers.d
%sysusers_generate_pre %{SOURCE22} nscd nscd.conf %sysusers_generate_pre %{SOURCE22} nscd nscd.conf
%endif
%check %check
%if %{build_testsuite} %if %{build_testsuite}
@ -812,6 +849,9 @@ make %{?_smp_mflags} %{?make_output_sync} -C cc-base test t=elf/check-localplt
%define rtldlib lib %define rtldlib lib
%define rtld_name ld-linux-riscv64-lp64d.so.1 %define rtld_name ld-linux-riscv64-lp64d.so.1
%endif %endif
%ifarch loongarch64
%define rtld_name ld-linux-loongarch-lp64d.so.1
%endif
%if %{with usrmerged} %if %{with usrmerged}
%define rootsbindir %{_sbindir} %define rootsbindir %{_sbindir}
@ -929,6 +969,7 @@ cp -p cc-base/manual/libc/*.html %{buildroot}%{_datadir}/doc/glibc
cd manpages; make install_root=%{buildroot} install; cd .. cd manpages; make install_root=%{buildroot} install; cd ..
%if %{with nscd}
# nscd tools: # nscd tools:
%ifnarch i686 %ifnarch i686
@ -938,6 +979,7 @@ ln -sf %{rootsbindir}/service %{buildroot}%{_sbindir}/rcnscd
mkdir -p %{buildroot}/run/nscd mkdir -p %{buildroot}/run/nscd
mkdir -p %{buildroot}/var/lib/nscd mkdir -p %{buildroot}/var/lib/nscd
%endif %endif
%endif
# #
# Create ld.so.conf # Create ld.so.conf
@ -966,6 +1008,7 @@ chmod 644 %{buildroot}%{_bindir}/ldd
rm -f %{buildroot}%{rootsbindir}/sln rm -f %{buildroot}%{rootsbindir}/sln
%if %{with nscd}
%ifnarch i686 %ifnarch i686
mkdir -p %{buildroot}/usr/lib/tmpfiles.d/ mkdir -p %{buildroot}/usr/lib/tmpfiles.d/
install -m 644 %{SOURCE20} %{buildroot}/usr/lib/tmpfiles.d/ install -m 644 %{SOURCE20} %{buildroot}/usr/lib/tmpfiles.d/
@ -974,6 +1017,7 @@ install -m 644 %{SOURCE21} %{buildroot}/usr/lib/systemd/system
mkdir -p %{buildroot}/usr/lib/sysusers.d/ mkdir -p %{buildroot}/usr/lib/sysusers.d/
install -m 644 %{SOURCE22} %{buildroot}/usr/lib/sysusers.d/nscd.conf install -m 644 %{SOURCE22} %{buildroot}/usr/lib/sysusers.d/nscd.conf
%endif %endif
%endif
%if 0%{?rtld_oldname:1} %if 0%{?rtld_oldname:1}
# Provide compatibility link # Provide compatibility link
@ -1000,8 +1044,10 @@ rm -rf %{buildroot}%{_libdir}/audit
# Remove files from glibc-{extra,info,i18ndata}, nscd # Remove files from glibc-{extra,info,i18ndata}, nscd
rm -rf %{buildroot}%{_infodir} %{buildroot}%{_prefix}/share/i18n rm -rf %{buildroot}%{_infodir} %{buildroot}%{_prefix}/share/i18n
rm -f %{buildroot}%{_bindir}/makedb %{buildroot}/var/lib/misc/Makefile rm -f %{buildroot}%{_bindir}/makedb %{buildroot}/var/lib/misc/Makefile
%if %{with nscd}
rm -f %{buildroot}%{_sbindir}/nscd rm -f %{buildroot}%{_sbindir}/nscd
%endif %endif
%endif
%ifnarch i686 %ifnarch i686
# /var/lib/misc is incompatible with transactional updates (bsc#1138726) # /var/lib/misc is incompatible with transactional updates (bsc#1138726)
@ -1219,7 +1265,9 @@ exit 0
%endif %endif
%{slibdir}/libBrokenLocale.so.1 %{slibdir}/libBrokenLocale.so.1
%ifarch %libanl_archs
%{slibdir}/libanl.so.1 %{slibdir}/libanl.so.1
%endif
%{slibdir}/libc.so.6* %{slibdir}/libc.so.6*
%{slibdir}/libc_malloc_debug.so.0 %{slibdir}/libc_malloc_debug.so.0
%{slibdir}/libdl.so.2* %{slibdir}/libdl.so.2*
@ -1236,7 +1284,9 @@ exit 0
%{slibdir}/libresolv.so.2 %{slibdir}/libresolv.so.2
%{slibdir}/librt.so.1 %{slibdir}/librt.so.1
%{slibdir}/libthread_db.so.1 %{slibdir}/libthread_db.so.1
%ifarch %libutil_archs
%{slibdir}/libutil.so.1 %{slibdir}/libutil.so.1
%endif
%dir %attr(0700,root,root) /var/cache/ldconfig %dir %attr(0700,root,root) /var/cache/ldconfig
%{rootsbindir}/ldconfig %{rootsbindir}/ldconfig
%{_bindir}/gencat %{_bindir}/gencat
@ -1316,7 +1366,9 @@ exit 0
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.o %{_libdir}/*.o
%{_libdir}/libBrokenLocale.so %{_libdir}/libBrokenLocale.so
%ifarch %libanl_archs
%{_libdir}/libanl.so %{_libdir}/libanl.so
%endif
%{_libdir}/libc.so %{_libdir}/libc.so
%{_libdir}/libc_malloc_debug.so %{_libdir}/libc_malloc_debug.so
%{_libdir}/libm.so %{_libdir}/libm.so
@ -1344,7 +1396,9 @@ exit 0
%files devel-static %files devel-static
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libBrokenLocale.a %{_libdir}/libBrokenLocale.a
%ifarch %libanl_archs
%{_libdir}/libanl.a %{_libdir}/libanl.a
%endif
%{_libdir}/libc.a %{_libdir}/libc.a
%{_libdir}/libm.a %{_libdir}/libm.a
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
@ -1370,6 +1424,7 @@ exit 0
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/share/i18n %{_prefix}/share/i18n
%if %{with nscd}
%files -n nscd %files -n nscd
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) /etc/nscd.conf %config(noreplace) /etc/nscd.conf
@ -1390,13 +1445,16 @@ exit 0
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/nscd/services %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/nscd/services
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/nscd/netgroup %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/nscd/netgroup
%endif %endif
%endif
%if %{build_profile} %if %{build_profile}
%files profile %files profile
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libc_p.a %{_libdir}/libc_p.a
%{_libdir}/libBrokenLocale_p.a %{_libdir}/libBrokenLocale_p.a
%ifarch %libanl_archs
%{_libdir}/libanl_p.a %{_libdir}/libanl_p.a
%endif
%{_libdir}/libm_p.a %{_libdir}/libm_p.a
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%{_libdir}/libmvec_p.a %{_libdir}/libmvec_p.a
@ -1404,7 +1462,9 @@ exit 0
%{_libdir}/libpthread_p.a %{_libdir}/libpthread_p.a
%{_libdir}/libresolv_p.a %{_libdir}/libresolv_p.a
%{_libdir}/librt_p.a %{_libdir}/librt_p.a
%ifarch %libutil_archs
%{_libdir}/libutil_p.a %{_libdir}/libutil_p.a
%endif
%{_libdir}/libdl_p.a %{_libdir}/libdl_p.a
%endif %endif
@ -1418,7 +1478,7 @@ exit 0
%files lang -f libc.lang %files lang -f libc.lang
%endif %endif
%ifarch %ix86 %alpha hppa m68k %mips32 %mips64 %sparc ppc ppc64 ppc64le x86_64 s390 s390x %arm aarch64 riscv64 %ifarch %libnsl_archs
%files -n libnsl1 %files -n libnsl1
%{slibdir}/libnsl.so.1 %{slibdir}/libnsl.so.1
%endif %endif