Accepting request 145907 from home:Andreas_Schwab:Factory
- Move glibc-utils subpackage to own specfile and enable programs that require libgd - Filter GLIBC_PRIVATE symbols - Don't stop at first error in testsuite run OBS-URL: https://build.opensuse.org/request/show/145907 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=255
This commit is contained in:
parent
fff5947803
commit
33af53d099
@ -20,4 +20,3 @@ glibc-devel-static
|
|||||||
glibc-profile
|
glibc-profile
|
||||||
arch i586 block!
|
arch i586 block!
|
||||||
glibc-utils
|
glibc-utils
|
||||||
arch i586 block!
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 18 10:28:01 UTC 2012 - schwab@suse.de
|
||||||
|
|
||||||
|
- Move glibc-utils subpackage to own specfile and enable programs that
|
||||||
|
require libgd
|
||||||
|
- Filter GLIBC_PRIVATE symbols
|
||||||
|
- Don't stop at first error in testsuite run
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 17 11:16:49 UTC 2012 - schwab@suse.de
|
Mon Dec 17 11:16:49 UTC 2012 - schwab@suse.de
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
# PLEASE run pre_checkin.sh in this directory before submitting
|
# PLEASE run pre_checkin.sh in this directory before submitting
|
||||||
# this package. Otherwise the .spec and .changes for glibc-testsuite
|
# this package. Otherwise the .spec and .changes for glibc-testsuite
|
||||||
# aren't updated.
|
# and glibc-utils aren't updated.
|
||||||
|
|
||||||
# Run with osc --with=fast_build to have a shorter turnaround
|
# Run with osc --with=fast_build to have a shorter turnaround
|
||||||
# It will avoid building some parts of glibc
|
# It will avoid building some parts of glibc
|
||||||
@ -27,10 +27,14 @@
|
|||||||
%define crypt_bf_version 1.2
|
%define crypt_bf_version 1.2
|
||||||
|
|
||||||
Name: glibc-testsuite
|
Name: glibc-testsuite
|
||||||
|
%define normal_build ("%{name}" == "glibc")
|
||||||
|
%define utils_build ("%{name}" == "glibc-utils")
|
||||||
%define testsuite_build ("%{name}" == "glibc-testsuite")
|
%define testsuite_build ("%{name}" == "glibc-testsuite")
|
||||||
|
# UTILS-SUMMARY-BEGIN
|
||||||
Summary: Standard Shared Libraries (from the GNU C Library)
|
Summary: Standard Shared Libraries (from the GNU C Library)
|
||||||
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
# UTILS-SUMMARY-END
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
@ -40,8 +44,11 @@ BuildRequires: pkgconfig(systemd)
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libstdc++-devel
|
BuildRequires: libstdc++-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if %{utils_build}
|
||||||
|
BuildRequires: gd-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%define _filter_GLIBC_PRIVATE 1
|
%define __filter_GLIBC_PRIVATE 1
|
||||||
%if %_target_cpu == "i686"
|
%if %_target_cpu == "i686"
|
||||||
# For i686 let's only build what's different from i586, so
|
# For i686 let's only build what's different from i586, so
|
||||||
# no need to build documentation
|
# no need to build documentation
|
||||||
@ -49,7 +56,7 @@ BuildRequires: libstdc++-devel
|
|||||||
%define build_locales 1
|
%define build_locales 1
|
||||||
%define build_html 0
|
%define build_html 0
|
||||||
%else
|
%else
|
||||||
%if %{with fast_build}
|
%if %{with fast_build} || %{utils_build}
|
||||||
%define build_profile 0
|
%define build_profile 0
|
||||||
%define build_locales 0
|
%define build_locales 0
|
||||||
%define build_html 0
|
%define build_html 0
|
||||||
@ -68,7 +75,7 @@ BuildRequires: libstdc++-devel
|
|||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
%define powerpc_optimize_base power3
|
%define powerpc_optimize_base power3
|
||||||
%define powerpc_optimize_tune power3
|
%define powerpc_optimize_tune power3
|
||||||
%define powerpc_optimize_cpu_power4 1
|
%define powerpc_optimize_cpu_power4 %{normal_build}
|
||||||
%else
|
%else
|
||||||
%define powerpc_optimize_base power4
|
%define powerpc_optimize_base power4
|
||||||
%define powerpc_optimize_tune power5
|
%define powerpc_optimize_tune power5
|
||||||
@ -94,24 +101,6 @@ BuildRequires: libstdc++-devel
|
|||||||
# 2.6.16 is the SLES 10 kernel, use this as oldest supported kernel
|
# 2.6.16 is the SLES 10 kernel, use this as oldest supported kernel
|
||||||
%define enablekernel 2.6.16
|
%define enablekernel 2.6.16
|
||||||
%endif
|
%endif
|
||||||
# ngpt was used in 8.1 and SLES8
|
|
||||||
Obsoletes: ngpt < 2.2.2
|
|
||||||
Obsoletes: ngpt-devel < 2.2.2
|
|
||||||
Provides: ngpt = 2.2.2
|
|
||||||
Provides: ngpt-devel = 2.2.2
|
|
||||||
Conflicts: kernel < %{enablekernel}
|
|
||||||
# bug437293 - handle update from SLES10 on PowerPC
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: glibc-64bit
|
|
||||||
%endif
|
|
||||||
%ifarch ppc
|
|
||||||
Obsoletes: glibc-32bit
|
|
||||||
%endif
|
|
||||||
%ifarch armv7l armv7hl
|
|
||||||
# The old runtime linker link gets not provided by rpm find.provides, but it exists
|
|
||||||
Provides: ld-linux.so.3
|
|
||||||
Provides: ld-linux.so.3(GLIBC_2.4)
|
|
||||||
%endif
|
|
||||||
Version: 2.16.90
|
Version: 2.16.90
|
||||||
Release: 0
|
Release: 0
|
||||||
%define glibc_major_version 2.16.90
|
%define glibc_major_version 2.16.90
|
||||||
@ -133,9 +122,32 @@ Source21: nscd.service
|
|||||||
Source50: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz
|
Source50: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz
|
||||||
Source51: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz.sign
|
Source51: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz.sign
|
||||||
|
|
||||||
|
%if %{normal_build}
|
||||||
|
# ngpt was used in 8.1 and SLES8
|
||||||
|
Obsoletes: ngpt < 2.2.2
|
||||||
|
Obsoletes: ngpt-devel < 2.2.2
|
||||||
|
Provides: ngpt = 2.2.2
|
||||||
|
Provides: ngpt-devel = 2.2.2
|
||||||
|
Conflicts: kernel < %{enablekernel}
|
||||||
|
# bug437293 - handle update from SLES10 on PowerPC
|
||||||
|
%ifarch ppc64
|
||||||
|
Obsoletes: glibc-64bit
|
||||||
|
%endif
|
||||||
|
%ifarch ppc
|
||||||
|
Obsoletes: glibc-32bit
|
||||||
|
%endif
|
||||||
|
%ifarch armv7l armv7hl
|
||||||
|
# The old runtime linker link gets not provided by rpm find.provides, but it exists
|
||||||
|
Provides: ld-linux.so.3
|
||||||
|
Provides: ld-linux.so.3(GLIBC_2.4)
|
||||||
|
%endif
|
||||||
Requires(pre): filesystem
|
Requires(pre): filesystem
|
||||||
Recommends: glibc-extra
|
Recommends: glibc-extra
|
||||||
Provides: rtld(GNU_HASH)
|
Provides: rtld(GNU_HASH)
|
||||||
|
%endif # %{normal_build}
|
||||||
|
%if %{utils_build}
|
||||||
|
Requires: glibc = %{version}
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if %_target_cpu == "i686"
|
%if %_target_cpu == "i686"
|
||||||
# We need to avoid to have only the src rpm from i686 on the media,
|
# We need to avoid to have only the src rpm from i686 on the media,
|
||||||
@ -358,19 +370,6 @@ The glibc-devel-static package contains the C library static libraries
|
|||||||
for -static linking. You don't need these, unless you link statically,
|
for -static linking. You don't need these, unless you link statically,
|
||||||
which is highly discouraged.
|
which is highly discouraged.
|
||||||
|
|
||||||
%package utils
|
|
||||||
Summary: Development utilities from GNU C library
|
|
||||||
License: LGPL-2.1+
|
|
||||||
Group: Development/Languages/C and C++
|
|
||||||
Requires: glibc = %{version}
|
|
||||||
|
|
||||||
%description utils
|
|
||||||
The glibc-utils package contains mtrace, a memory leak tracer and
|
|
||||||
xtrace, a function call tracer which can be helpful during program
|
|
||||||
debugging.
|
|
||||||
|
|
||||||
If you are unsure if you need this, don't install this package.
|
|
||||||
|
|
||||||
# makedb requires libselinux. We add this program in a separate
|
# makedb requires libselinux. We add this program in a separate
|
||||||
# package so that glibc does not require libselinux.
|
# package so that glibc does not require libselinux.
|
||||||
%package extra
|
%package extra
|
||||||
@ -699,7 +698,7 @@ export TIMEOUTFACTOR=16
|
|||||||
# s390,s390x: tst-timer* fails
|
# s390,s390x: tst-timer* fails
|
||||||
make %{?_smp_mflags} -C cc-base -k check || echo make check failed
|
make %{?_smp_mflags} -C cc-base -k check || echo make check failed
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags} -C cc-base check
|
make %{?_smp_mflags} -C cc-base -k check
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# This has to pass on all platforms!
|
# This has to pass on all platforms!
|
||||||
@ -714,7 +713,7 @@ make %{?_smp_mflags} -C cc-base check-abi
|
|||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{testsuite_build}
|
%if %{normal_build}
|
||||||
# We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
|
# We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
|
||||||
# certainly not from libpthread.so.* because it is used by libthread_db to find
|
# certainly not from libpthread.so.* because it is used by libthread_db to find
|
||||||
# some non-exported symbols in order to detect if threading support
|
# some non-exported symbols in order to detect if threading support
|
||||||
@ -913,7 +912,35 @@ ln -s ld-%{glibc_major_version}.so %{buildroot}/lib/ld-linux.so.3
|
|||||||
# Move getconf to %{_libexecdir}/getconf/ to avoid cross device link
|
# Move getconf to %{_libexecdir}/getconf/ to avoid cross device link
|
||||||
mv %{buildroot}%{_bindir}/getconf %{buildroot}%{_libexecdir}/getconf/getconf
|
mv %{buildroot}%{_bindir}/getconf %{buildroot}%{_libexecdir}/getconf/getconf
|
||||||
ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
||||||
%endif # !%{testsuite_build}
|
|
||||||
|
# Remove unwanted files (packaged in glibc-utils)
|
||||||
|
rm -f %{buildroot}/%{_lib}/libmemusage*
|
||||||
|
rm -f %{buildroot}/%{_lib}/libpcprofile*
|
||||||
|
rm -f %{buildroot}%{_bindir}/memusage*
|
||||||
|
rm -f %{buildroot}%{_bindir}/mtrace
|
||||||
|
rm -f %{buildroot}%{_bindir}/pcprofiledump
|
||||||
|
rm -f %{buildroot}%{_bindir}/sotruss
|
||||||
|
rm -f %{buildroot}%{_bindir}/xtrace
|
||||||
|
rm -f %{buildroot}%{_bindir}/pldd
|
||||||
|
rm -f %{buildroot}%{_mandir}/man1/mtrace.*
|
||||||
|
rm -rf %{buildroot}%{_libdir}/audit
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
|
%if %{utils_build}
|
||||||
|
|
||||||
|
make %{?_smp_mflags} install_root=%{buildroot} install -C cc-base \
|
||||||
|
subdirs='malloc debug elf'
|
||||||
|
cd manpages; make install_root=%{buildroot} install; cd ..
|
||||||
|
# Remove unwanted files
|
||||||
|
rm -f %{buildroot}/%{_lib}/ld*.so* %{buildroot}/%{_lib}/lib[!mp]*
|
||||||
|
rm -f %{buildroot}%{_libdir}/lib*
|
||||||
|
rm -f %{buildroot}%{_bindir}/{catchsegv,ldd*,sprof}
|
||||||
|
rm -f %{buildroot}%{_mandir}/man1/[!m]*
|
||||||
|
rm -rf %{buildroot}%{_mandir}/man[!1]
|
||||||
|
rm -rf %{buildroot}/sbin %{buildroot}%{_includedir}
|
||||||
|
|
||||||
|
%endif # %{utils_build}
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
###
|
###
|
||||||
@ -921,6 +948,7 @@ ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
|||||||
###
|
###
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
%if %{normal_build}
|
||||||
# Note: glibc_post_upgrade does:
|
# Note: glibc_post_upgrade does:
|
||||||
# %%set_permissions %%{_libexecdir}/pt_chown
|
# %%set_permissions %%{_libexecdir}/pt_chown
|
||||||
# since we cannot do it in our own post section
|
# since we cannot do it in our own post section
|
||||||
@ -940,6 +968,8 @@ os.execute("/usr/bin/chkstat -n --warn --system -e %{_libexecdir}/pt_chown")
|
|||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
%post locale
|
%post locale
|
||||||
for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
|
for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
|
||||||
[ -d "$l.d" ] || continue
|
[ -d "$l.d" ] || continue
|
||||||
@ -974,7 +1004,7 @@ exit 0
|
|||||||
%service_del_postun nscd.service
|
%service_del_postun nscd.service
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%if !%{testsuite_build}
|
%if %{normal_build}
|
||||||
%files
|
%files
|
||||||
#######################################################################
|
#######################################################################
|
||||||
###
|
###
|
||||||
@ -1223,27 +1253,28 @@ exit 0
|
|||||||
%{_libdir}/libdl_p.a
|
%{_libdir}/libdl_p.a
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files utils
|
%files extra
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/makedb
|
||||||
|
/var/lib/misc/Makefile
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
|
%if %{utils_build}
|
||||||
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/%{_lib}/libmemusage.so
|
/%{_lib}/libmemusage.so
|
||||||
/%{_lib}/libpcprofile.so
|
/%{_lib}/libpcprofile.so
|
||||||
%dir /%{_libdir}/audit
|
%dir %{_libdir}/audit
|
||||||
/%{_libdir}/audit/sotruss-lib.so
|
%{_libdir}/audit/sotruss-lib.so
|
||||||
# These need gd-devel for building
|
%{_bindir}/memusage
|
||||||
# %%{_bindir}/memusage
|
%{_bindir}/memusagestat
|
||||||
# %%{_bindir}/memusagestat
|
|
||||||
%{_bindir}/mtrace
|
%{_bindir}/mtrace
|
||||||
%{_bindir}/pcprofiledump
|
%{_bindir}/pcprofiledump
|
||||||
%{_bindir}/sotruss
|
%{_bindir}/sotruss
|
||||||
%{_bindir}/xtrace
|
%{_bindir}/xtrace
|
||||||
%{_bindir}/pldd
|
%{_bindir}/pldd
|
||||||
%doc %{_mandir}/man1/mtrace.1.gz
|
%doc %{_mandir}/man1/mtrace.1.gz
|
||||||
|
%endif # %{utils_build}
|
||||||
%files extra
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/makedb
|
|
||||||
/var/lib/misc/Makefile
|
|
||||||
|
|
||||||
%endif # !%{testsuite_build}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
6575
glibc-utils.changes
Normal file
6575
glibc-utils.changes
Normal file
File diff suppressed because it is too large
Load Diff
1280
glibc-utils.spec
Normal file
1280
glibc-utils.spec
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 18 10:28:01 UTC 2012 - schwab@suse.de
|
||||||
|
|
||||||
|
- Move glibc-utils subpackage to own specfile and enable programs that
|
||||||
|
require libgd
|
||||||
|
- Filter GLIBC_PRIVATE symbols
|
||||||
|
- Don't stop at first error in testsuite run
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 17 11:16:49 UTC 2012 - schwab@suse.de
|
Mon Dec 17 11:16:49 UTC 2012 - schwab@suse.de
|
||||||
|
|
||||||
|
135
glibc.spec
135
glibc.spec
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
# PLEASE run pre_checkin.sh in this directory before submitting
|
# PLEASE run pre_checkin.sh in this directory before submitting
|
||||||
# this package. Otherwise the .spec and .changes for glibc-testsuite
|
# this package. Otherwise the .spec and .changes for glibc-testsuite
|
||||||
# aren't updated.
|
# and glibc-utils aren't updated.
|
||||||
|
|
||||||
# Run with osc --with=fast_build to have a shorter turnaround
|
# Run with osc --with=fast_build to have a shorter turnaround
|
||||||
# It will avoid building some parts of glibc
|
# It will avoid building some parts of glibc
|
||||||
@ -27,10 +27,14 @@
|
|||||||
%define crypt_bf_version 1.2
|
%define crypt_bf_version 1.2
|
||||||
|
|
||||||
Name: glibc
|
Name: glibc
|
||||||
|
%define normal_build ("%{name}" == "glibc")
|
||||||
|
%define utils_build ("%{name}" == "glibc-utils")
|
||||||
%define testsuite_build ("%{name}" == "glibc-testsuite")
|
%define testsuite_build ("%{name}" == "glibc-testsuite")
|
||||||
|
# UTILS-SUMMARY-BEGIN
|
||||||
Summary: Standard Shared Libraries (from the GNU C Library)
|
Summary: Standard Shared Libraries (from the GNU C Library)
|
||||||
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
# UTILS-SUMMARY-END
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
@ -40,8 +44,11 @@ BuildRequires: pkgconfig(systemd)
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libstdc++-devel
|
BuildRequires: libstdc++-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if %{utils_build}
|
||||||
|
BuildRequires: gd-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%define _filter_GLIBC_PRIVATE 1
|
%define __filter_GLIBC_PRIVATE 1
|
||||||
%if %_target_cpu == "i686"
|
%if %_target_cpu == "i686"
|
||||||
# For i686 let's only build what's different from i586, so
|
# For i686 let's only build what's different from i586, so
|
||||||
# no need to build documentation
|
# no need to build documentation
|
||||||
@ -49,7 +56,7 @@ BuildRequires: libstdc++-devel
|
|||||||
%define build_locales 1
|
%define build_locales 1
|
||||||
%define build_html 0
|
%define build_html 0
|
||||||
%else
|
%else
|
||||||
%if %{with fast_build}
|
%if %{with fast_build} || %{utils_build}
|
||||||
%define build_profile 0
|
%define build_profile 0
|
||||||
%define build_locales 0
|
%define build_locales 0
|
||||||
%define build_html 0
|
%define build_html 0
|
||||||
@ -68,7 +75,7 @@ BuildRequires: libstdc++-devel
|
|||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
%define powerpc_optimize_base power3
|
%define powerpc_optimize_base power3
|
||||||
%define powerpc_optimize_tune power3
|
%define powerpc_optimize_tune power3
|
||||||
%define powerpc_optimize_cpu_power4 1
|
%define powerpc_optimize_cpu_power4 %{normal_build}
|
||||||
%else
|
%else
|
||||||
%define powerpc_optimize_base power4
|
%define powerpc_optimize_base power4
|
||||||
%define powerpc_optimize_tune power5
|
%define powerpc_optimize_tune power5
|
||||||
@ -94,24 +101,6 @@ BuildRequires: libstdc++-devel
|
|||||||
# 2.6.16 is the SLES 10 kernel, use this as oldest supported kernel
|
# 2.6.16 is the SLES 10 kernel, use this as oldest supported kernel
|
||||||
%define enablekernel 2.6.16
|
%define enablekernel 2.6.16
|
||||||
%endif
|
%endif
|
||||||
# ngpt was used in 8.1 and SLES8
|
|
||||||
Obsoletes: ngpt < 2.2.2
|
|
||||||
Obsoletes: ngpt-devel < 2.2.2
|
|
||||||
Provides: ngpt = 2.2.2
|
|
||||||
Provides: ngpt-devel = 2.2.2
|
|
||||||
Conflicts: kernel < %{enablekernel}
|
|
||||||
# bug437293 - handle update from SLES10 on PowerPC
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: glibc-64bit
|
|
||||||
%endif
|
|
||||||
%ifarch ppc
|
|
||||||
Obsoletes: glibc-32bit
|
|
||||||
%endif
|
|
||||||
%ifarch armv7l armv7hl
|
|
||||||
# The old runtime linker link gets not provided by rpm find.provides, but it exists
|
|
||||||
Provides: ld-linux.so.3
|
|
||||||
Provides: ld-linux.so.3(GLIBC_2.4)
|
|
||||||
%endif
|
|
||||||
Version: 2.16.90
|
Version: 2.16.90
|
||||||
Release: 0
|
Release: 0
|
||||||
%define glibc_major_version 2.16.90
|
%define glibc_major_version 2.16.90
|
||||||
@ -133,9 +122,32 @@ Source21: nscd.service
|
|||||||
Source50: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz
|
Source50: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz
|
||||||
Source51: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz.sign
|
Source51: http://www.openwall.com/crypt/crypt_blowfish-%{crypt_bf_version}.tar.gz.sign
|
||||||
|
|
||||||
|
%if %{normal_build}
|
||||||
|
# ngpt was used in 8.1 and SLES8
|
||||||
|
Obsoletes: ngpt < 2.2.2
|
||||||
|
Obsoletes: ngpt-devel < 2.2.2
|
||||||
|
Provides: ngpt = 2.2.2
|
||||||
|
Provides: ngpt-devel = 2.2.2
|
||||||
|
Conflicts: kernel < %{enablekernel}
|
||||||
|
# bug437293 - handle update from SLES10 on PowerPC
|
||||||
|
%ifarch ppc64
|
||||||
|
Obsoletes: glibc-64bit
|
||||||
|
%endif
|
||||||
|
%ifarch ppc
|
||||||
|
Obsoletes: glibc-32bit
|
||||||
|
%endif
|
||||||
|
%ifarch armv7l armv7hl
|
||||||
|
# The old runtime linker link gets not provided by rpm find.provides, but it exists
|
||||||
|
Provides: ld-linux.so.3
|
||||||
|
Provides: ld-linux.so.3(GLIBC_2.4)
|
||||||
|
%endif
|
||||||
Requires(pre): filesystem
|
Requires(pre): filesystem
|
||||||
Recommends: glibc-extra
|
Recommends: glibc-extra
|
||||||
Provides: rtld(GNU_HASH)
|
Provides: rtld(GNU_HASH)
|
||||||
|
%endif # %{normal_build}
|
||||||
|
%if %{utils_build}
|
||||||
|
Requires: glibc = %{version}
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if %_target_cpu == "i686"
|
%if %_target_cpu == "i686"
|
||||||
# We need to avoid to have only the src rpm from i686 on the media,
|
# We need to avoid to have only the src rpm from i686 on the media,
|
||||||
@ -358,19 +370,6 @@ The glibc-devel-static package contains the C library static libraries
|
|||||||
for -static linking. You don't need these, unless you link statically,
|
for -static linking. You don't need these, unless you link statically,
|
||||||
which is highly discouraged.
|
which is highly discouraged.
|
||||||
|
|
||||||
%package utils
|
|
||||||
Summary: Development utilities from GNU C library
|
|
||||||
License: LGPL-2.1+
|
|
||||||
Group: Development/Languages/C and C++
|
|
||||||
Requires: glibc = %{version}
|
|
||||||
|
|
||||||
%description utils
|
|
||||||
The glibc-utils package contains mtrace, a memory leak tracer and
|
|
||||||
xtrace, a function call tracer which can be helpful during program
|
|
||||||
debugging.
|
|
||||||
|
|
||||||
If you are unsure if you need this, don't install this package.
|
|
||||||
|
|
||||||
# makedb requires libselinux. We add this program in a separate
|
# makedb requires libselinux. We add this program in a separate
|
||||||
# package so that glibc does not require libselinux.
|
# package so that glibc does not require libselinux.
|
||||||
%package extra
|
%package extra
|
||||||
@ -699,7 +698,7 @@ export TIMEOUTFACTOR=16
|
|||||||
# s390,s390x: tst-timer* fails
|
# s390,s390x: tst-timer* fails
|
||||||
make %{?_smp_mflags} -C cc-base -k check || echo make check failed
|
make %{?_smp_mflags} -C cc-base -k check || echo make check failed
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags} -C cc-base check
|
make %{?_smp_mflags} -C cc-base -k check
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# This has to pass on all platforms!
|
# This has to pass on all platforms!
|
||||||
@ -714,7 +713,7 @@ make %{?_smp_mflags} -C cc-base check-abi
|
|||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{testsuite_build}
|
%if %{normal_build}
|
||||||
# We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
|
# We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
|
||||||
# certainly not from libpthread.so.* because it is used by libthread_db to find
|
# certainly not from libpthread.so.* because it is used by libthread_db to find
|
||||||
# some non-exported symbols in order to detect if threading support
|
# some non-exported symbols in order to detect if threading support
|
||||||
@ -913,7 +912,35 @@ ln -s ld-%{glibc_major_version}.so %{buildroot}/lib/ld-linux.so.3
|
|||||||
# Move getconf to %{_libexecdir}/getconf/ to avoid cross device link
|
# Move getconf to %{_libexecdir}/getconf/ to avoid cross device link
|
||||||
mv %{buildroot}%{_bindir}/getconf %{buildroot}%{_libexecdir}/getconf/getconf
|
mv %{buildroot}%{_bindir}/getconf %{buildroot}%{_libexecdir}/getconf/getconf
|
||||||
ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
||||||
%endif # !%{testsuite_build}
|
|
||||||
|
# Remove unwanted files (packaged in glibc-utils)
|
||||||
|
rm -f %{buildroot}/%{_lib}/libmemusage*
|
||||||
|
rm -f %{buildroot}/%{_lib}/libpcprofile*
|
||||||
|
rm -f %{buildroot}%{_bindir}/memusage*
|
||||||
|
rm -f %{buildroot}%{_bindir}/mtrace
|
||||||
|
rm -f %{buildroot}%{_bindir}/pcprofiledump
|
||||||
|
rm -f %{buildroot}%{_bindir}/sotruss
|
||||||
|
rm -f %{buildroot}%{_bindir}/xtrace
|
||||||
|
rm -f %{buildroot}%{_bindir}/pldd
|
||||||
|
rm -f %{buildroot}%{_mandir}/man1/mtrace.*
|
||||||
|
rm -rf %{buildroot}%{_libdir}/audit
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
|
%if %{utils_build}
|
||||||
|
|
||||||
|
make %{?_smp_mflags} install_root=%{buildroot} install -C cc-base \
|
||||||
|
subdirs='malloc debug elf'
|
||||||
|
cd manpages; make install_root=%{buildroot} install; cd ..
|
||||||
|
# Remove unwanted files
|
||||||
|
rm -f %{buildroot}/%{_lib}/ld*.so* %{buildroot}/%{_lib}/lib[!mp]*
|
||||||
|
rm -f %{buildroot}%{_libdir}/lib*
|
||||||
|
rm -f %{buildroot}%{_bindir}/{catchsegv,ldd*,sprof}
|
||||||
|
rm -f %{buildroot}%{_mandir}/man1/[!m]*
|
||||||
|
rm -rf %{buildroot}%{_mandir}/man[!1]
|
||||||
|
rm -rf %{buildroot}/sbin %{buildroot}%{_includedir}
|
||||||
|
|
||||||
|
%endif # %{utils_build}
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
###
|
###
|
||||||
@ -921,6 +948,7 @@ ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
|
|||||||
###
|
###
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
%if %{normal_build}
|
||||||
# Note: glibc_post_upgrade does:
|
# Note: glibc_post_upgrade does:
|
||||||
# %%set_permissions %%{_libexecdir}/pt_chown
|
# %%set_permissions %%{_libexecdir}/pt_chown
|
||||||
# since we cannot do it in our own post section
|
# since we cannot do it in our own post section
|
||||||
@ -940,6 +968,8 @@ os.execute("/usr/bin/chkstat -n --warn --system -e %{_libexecdir}/pt_chown")
|
|||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
%post locale
|
%post locale
|
||||||
for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
|
for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
|
||||||
[ -d "$l.d" ] || continue
|
[ -d "$l.d" ] || continue
|
||||||
@ -974,7 +1004,7 @@ exit 0
|
|||||||
%service_del_postun nscd.service
|
%service_del_postun nscd.service
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%if !%{testsuite_build}
|
%if %{normal_build}
|
||||||
%files
|
%files
|
||||||
#######################################################################
|
#######################################################################
|
||||||
###
|
###
|
||||||
@ -1223,27 +1253,28 @@ exit 0
|
|||||||
%{_libdir}/libdl_p.a
|
%{_libdir}/libdl_p.a
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files utils
|
%files extra
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/makedb
|
||||||
|
/var/lib/misc/Makefile
|
||||||
|
|
||||||
|
%endif # %{normal_build}
|
||||||
|
|
||||||
|
%if %{utils_build}
|
||||||
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/%{_lib}/libmemusage.so
|
/%{_lib}/libmemusage.so
|
||||||
/%{_lib}/libpcprofile.so
|
/%{_lib}/libpcprofile.so
|
||||||
%dir /%{_libdir}/audit
|
%dir %{_libdir}/audit
|
||||||
/%{_libdir}/audit/sotruss-lib.so
|
%{_libdir}/audit/sotruss-lib.so
|
||||||
# These need gd-devel for building
|
%{_bindir}/memusage
|
||||||
# %%{_bindir}/memusage
|
%{_bindir}/memusagestat
|
||||||
# %%{_bindir}/memusagestat
|
|
||||||
%{_bindir}/mtrace
|
%{_bindir}/mtrace
|
||||||
%{_bindir}/pcprofiledump
|
%{_bindir}/pcprofiledump
|
||||||
%{_bindir}/sotruss
|
%{_bindir}/sotruss
|
||||||
%{_bindir}/xtrace
|
%{_bindir}/xtrace
|
||||||
%{_bindir}/pldd
|
%{_bindir}/pldd
|
||||||
%doc %{_mandir}/man1/mtrace.1.gz
|
%doc %{_mandir}/man1/mtrace.1.gz
|
||||||
|
%endif # %{utils_build}
|
||||||
%files extra
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/makedb
|
|
||||||
/var/lib/misc/Makefile
|
|
||||||
|
|
||||||
%endif # !%{testsuite_build}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -2,6 +2,28 @@
|
|||||||
# This script is called automatically during autobuild checkin.
|
# This script is called automatically during autobuild checkin.
|
||||||
sed -e 's/^Name:.*glibc/&-testsuite/' glibc.spec > glibc-testsuite.spec
|
sed -e 's/^Name:.*glibc/&-testsuite/' glibc.spec > glibc-testsuite.spec
|
||||||
cp glibc.changes glibc-testsuite.changes
|
cp glibc.changes glibc-testsuite.changes
|
||||||
|
awk '/^Name:/{ $0 = $0 "-utils" }
|
||||||
|
/UTILS-SUMMARY-BEGIN/ {
|
||||||
|
ignore = 1
|
||||||
|
print "\
|
||||||
|
Summary: Development utilities from GNU C library\n\
|
||||||
|
License: LGPL-2.1+\n\
|
||||||
|
Group: Development/Languages/C and C++"
|
||||||
|
}
|
||||||
|
/UTILS-SUMMARY-END/ { ignore = 0 }
|
||||||
|
/^%description$/ {
|
||||||
|
ignore = 1
|
||||||
|
print "\
|
||||||
|
%description\n\
|
||||||
|
The glibc-utils package contains mtrace, a memory leak tracer and\n\
|
||||||
|
xtrace, a function call tracer which can be helpful during program\n\
|
||||||
|
debugging.\n\
|
||||||
|
\n\
|
||||||
|
If you are unsure if you need this, don'\''t install this package.\n"
|
||||||
|
}
|
||||||
|
/^%package/ { ignore = 0}
|
||||||
|
!ignore { print }' glibc.spec > glibc-utils.spec
|
||||||
|
cp glibc.changes glibc-utils.changes
|
||||||
|
|
||||||
osc service localrun format_spec_file
|
osc service localrun format_spec_file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user