2009-02-20 08:46:43 +01:00
|
|
|
#
|
2011-02-04 02:37:38 +01:00
|
|
|
# spec file for package glibc
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
2012-01-03 11:00:11 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-07-21 08:55:20 +02:00
|
|
|
|
2012-04-17 14:34:50 +02:00
|
|
|
# The full testsuite is only run with osc --with=glibc_run_testsuite
|
2012-04-13 11:37:44 +02:00
|
|
|
%bcond_with glibc_run_testsuite
|
2012-04-17 14:34:50 +02:00
|
|
|
# Run with osc --with=fast_build to have a shorter turnaround
|
|
|
|
# It will avoid building some parts of glibc and will not run the
|
|
|
|
# testsuite
|
|
|
|
%bcond_with fast_build
|
2012-04-13 11:37:44 +02:00
|
|
|
|
2011-07-19 14:17:47 +02:00
|
|
|
%define crypt_bf_version 1.2
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
Name: glibc
|
2011-06-20 14:47:04 +02:00
|
|
|
Summary: Standard Shared Libraries (from the GNU C Library)
|
2012-01-18 10:31:00 +01:00
|
|
|
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
2011-06-20 14:47:04 +02:00
|
|
|
Group: System/Libraries
|
2011-06-15 14:55:16 +02:00
|
|
|
BuildRequires: gcc-c++
|
2009-02-20 08:46:43 +01:00
|
|
|
BuildRequires: libselinux-devel
|
2011-06-15 14:55:16 +02:00
|
|
|
BuildRequires: libstdc++-devel
|
2012-04-16 22:11:08 +02:00
|
|
|
|
2009-09-23 16:36:23 +02:00
|
|
|
%define _filter_GLIBC_PRIVATE 1
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %_target_cpu == "i686"
|
|
|
|
# For i686 we ship only glibc and glibc-devel, so
|
|
|
|
# let's not build everything
|
|
|
|
%define build_profile 0
|
|
|
|
%define build_locales 0
|
|
|
|
%define build_html 0
|
|
|
|
%else
|
2012-04-17 14:34:50 +02:00
|
|
|
%if %{with fast_build}
|
|
|
|
%define build_profile 0
|
|
|
|
%define build_locales 0
|
|
|
|
%define build_html 0
|
|
|
|
%else
|
|
|
|
# Default:
|
2012-04-16 22:11:08 +02:00
|
|
|
%define build_profile 1
|
2009-02-20 08:46:43 +01:00
|
|
|
%define build_locales 1
|
2012-04-16 22:11:08 +02:00
|
|
|
%define build_html 1
|
|
|
|
%endif
|
2012-04-17 14:34:50 +02:00
|
|
|
%endif
|
2012-04-13 11:37:44 +02:00
|
|
|
# Enable testsuite runs for local builds
|
2012-04-17 14:34:50 +02:00
|
|
|
%if %{with fast_build}
|
|
|
|
%define run_testsuite 0
|
|
|
|
%else
|
2012-04-13 11:37:44 +02:00
|
|
|
%if %{with glibc_run_testsuite}
|
|
|
|
%define run_testsuite 1
|
|
|
|
%else
|
2009-02-20 08:46:43 +01:00
|
|
|
%define run_testsuite 0
|
2012-04-13 11:37:44 +02:00
|
|
|
%endif
|
2012-04-17 14:34:50 +02:00
|
|
|
%endif
|
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%define disable_assert 0
|
|
|
|
%define enable_stackguard_randomization 1
|
|
|
|
%ifarch ppc ppc64
|
2010-01-03 12:31:34 +01:00
|
|
|
%define optimize_power 1
|
2010-04-26 13:34:14 +02:00
|
|
|
%ifarch ppc
|
2012-04-17 14:34:50 +02:00
|
|
|
%define powerpc_optimize_base power4
|
|
|
|
%define powerpc_optimize_tune power4
|
2010-04-26 13:34:14 +02:00
|
|
|
%else
|
2010-01-03 12:31:34 +01:00
|
|
|
%define powerpc_optimize_base power4
|
|
|
|
%define powerpc_optimize_tune power5
|
2010-04-26 13:34:14 +02:00
|
|
|
%endif
|
2010-01-29 14:56:15 +01:00
|
|
|
# We are not building Power CPU specific optimizations for openSUSE.
|
2012-04-17 14:34:50 +02:00
|
|
|
%define powerpc_optimize_cpu_power4 0
|
2010-01-29 14:56:15 +01:00
|
|
|
%define powerpc_optimize_cpu_power6 0
|
|
|
|
%define powerpc_optimize_cpu_power7 0
|
|
|
|
%define powerpc_optimize_cpu_cell 0
|
2009-02-20 08:46:43 +01:00
|
|
|
%else
|
2010-01-03 12:31:34 +01:00
|
|
|
%define optimize_power 0
|
|
|
|
%define powerpc_optimize_base 0
|
2010-04-26 13:34:14 +02:00
|
|
|
%define powerpc_optimize_cpu_power4 0
|
2010-01-03 12:31:34 +01:00
|
|
|
%define powerpc_optimize_cpu_power6 0
|
|
|
|
%define powerpc_optimize_cpu_power7 0
|
|
|
|
%define powerpc_optimize_cpu_cell 0
|
|
|
|
%endif # ppc, ppc64
|
2012-01-31 11:21:58 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
# 2.6.32 is the SLES 11 SP1 kernel
|
|
|
|
# 2.6.34 is the openSUSE 11.3 kernel
|
|
|
|
%define enablekernel 2.6.32
|
|
|
|
%else
|
2011-06-30 13:28:39 +02:00
|
|
|
# 2.6.16 is the SLES 10 kernel, use this as oldest supported kernel
|
|
|
|
%define enablekernel 2.6.16
|
2012-01-31 11:21:58 +01:00
|
|
|
%endif
|
2011-06-27 14:05:13 +02:00
|
|
|
# ngpt was used in 8.1 and SLES8
|
2011-06-15 14:55:16 +02:00
|
|
|
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}
|
2011-06-27 14:05:13 +02:00
|
|
|
# bug437293 - handle update from SLES10 on PowerPC
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: glibc-64bit
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Obsoletes: glibc-32bit
|
|
|
|
%endif
|
2011-12-27 09:19:44 +01:00
|
|
|
Version: 2.15
|
2012-01-31 10:40:30 +01:00
|
|
|
Release: 0
|
2012-01-03 11:00:11 +01:00
|
|
|
%define git_id 2ba92745c36e
|
2011-12-27 09:19:44 +01:00
|
|
|
%define glibc_ports_ver 2.15
|
|
|
|
%define ports_git_id 8a70b2dcabbf
|
2009-02-20 08:46:43 +01:00
|
|
|
Url: http://www.gnu.org/software/libc/libc.html
|
2011-08-17 21:42:24 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-10-10 23:11:45 +02:00
|
|
|
Source: glibc-%{version}-%{git_id}.tar.bz2
|
2011-11-10 15:05:53 +01:00
|
|
|
%define glibc_ports_dir glibc-ports-%{glibc_ports_ver}
|
2011-12-27 09:19:44 +01:00
|
|
|
Source2: glibc-ports-%{glibc_ports_ver}-%{ports_git_id}.tar.bz2
|
2009-02-20 08:46:43 +01:00
|
|
|
Source3: noversion.tar.bz2
|
|
|
|
Source4: manpages.tar.bz2
|
|
|
|
Source8: nsswitch.conf
|
|
|
|
Source9: nscd.init
|
|
|
|
Source10: bindresvport.blacklist
|
|
|
|
Source12: glibc_post_upgrade.c
|
|
|
|
Source15: glibc.rpmlintrc
|
2010-01-03 12:31:34 +01:00
|
|
|
Source16: baselibs.conf
|
2011-07-07 10:29:39 +02:00
|
|
|
# For systemd
|
|
|
|
Source20: nscd.conf
|
|
|
|
Source21: nscd.service
|
|
|
|
Source22: nscd.socket
|
2011-07-19 14:17:47 +02:00
|
|
|
#
|
|
|
|
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
|
2011-07-07 10:29:39 +02:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
Requires(pre): filesystem
|
2012-01-16 16:06:45 +01:00
|
|
|
Recommends: glibc-extra
|
2011-06-15 14:55:16 +02:00
|
|
|
Provides: rtld(GNU_HASH)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %_target_cpu == "i686"
|
2010-01-03 12:31:34 +01:00
|
|
|
# We need to avoid to have only the src rpm from i686 on the media,
|
2009-02-20 08:46:43 +01:00
|
|
|
# since it does not work on other architectures.
|
|
|
|
NoSource: 0
|
|
|
|
%endif
|
|
|
|
#
|
2012-04-17 14:34:50 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
# Patches are ordered as:
|
|
|
|
# Patches that we will never upstream or which have not been looked at: 0000-0999
|
|
|
|
# Patches taken from upstream: 1000-2000
|
|
|
|
# Patches that are going upstream, waiting approval: 2000-3000
|
|
|
|
###
|
|
|
|
|
|
|
|
###
|
|
|
|
# Patches that upstream will not accept
|
|
|
|
###
|
2011-06-27 14:05:13 +02:00
|
|
|
# PATCH-FIX-OPENSUSE remove lfs test from testsuite aj@suse.de
|
|
|
|
Patch0: glibc-testsuite.patch
|
2011-08-17 21:42:24 +02:00
|
|
|
# PATCH-FIX-OPENSUSE handle glibc binaries
|
2009-02-20 08:46:43 +01:00
|
|
|
Patch1: glibc-2.3.90-noversion.diff
|
2011-07-05 15:32:10 +02:00
|
|
|
# PATCH-FIX-OPENSUSE reload /etc/resolv.conf on change
|
2010-03-18 14:37:59 +01:00
|
|
|
Patch3: glibc-resolv-reload.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2009-02-20 08:46:43 +01:00
|
|
|
Patch4: glibc-2.3.locales.diff.bz2
|
2011-07-19 14:17:47 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE -- add crypt_blowfish support - bnc#700876
|
|
|
|
Patch5: glibc-2.14-crypt.diff
|
2011-08-29 10:21:41 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE -- use separate symbol version for Owl extensions - lnussel@suse.de
|
|
|
|
Patch6: glibc-2.14-crypt-versioning.diff
|
2011-07-04 15:26:19 +02:00
|
|
|
# PATCH-FIX-OPENSUSE add some extra information to version output - kukuk@suse.de
|
2009-05-27 12:39:38 +02:00
|
|
|
Patch7: glibc-version.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2009-05-27 12:39:38 +02:00
|
|
|
Patch8: glibc-2.4.90-revert-only-euro.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2009-05-27 12:39:38 +02:00
|
|
|
Patch12: glibc-2.3.2.no_archive.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch14: glibc-2.3.90-bindresvport.blacklist.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch16: glibc-2.4.90-no_NO.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch20: glibc-2.4-china.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix gb18030 code bnc#54080
|
2012-01-09 14:48:53 +01:00
|
|
|
Patch21: gb18030.patch.bz2
|
2011-12-27 09:19:44 +01:00
|
|
|
# PATCH-FIX-OPENSUSE Handle timestamp, adjust nscd.conf
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch22: glibc-2.4.90-nscd.diff
|
2011-12-27 09:19:44 +01:00
|
|
|
# PATCH-FIX-OPENSUSE Fix path for nscd databases
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch23: glibc-2.3.3-nscd-db-path.diff
|
2011-07-04 15:26:19 +02:00
|
|
|
# PATCH-FIX-OPENSUSE prefer -lang rpm packages
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch25: glibc-2.3.90-langpackdir.diff
|
2011-07-07 16:52:52 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix hangs in UDP RPC calls bso#5379 bnc#257745 aj@suse.de
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch28: glibc-2.2-sunrpc.diff
|
2011-07-07 10:29:39 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Do not generate hardlink for getconf
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch29: glibc-2.8-getconf.diff
|
2011-06-16 15:36:45 +02:00
|
|
|
# PATCH-FIX-OPENSUSE only use ipv6 if real ipv6 address exists bnc#361697, bnc#684534
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch30: getaddrinfo-ipv6-sanity.diff
|
2012-04-17 14:34:50 +02:00
|
|
|
# PATCH-FIX-OPENSUSE add option --enable-runbinaries to disable running of compiled binaries
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch33: glibc-compiled-binaries.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch36: glibc-no-unwind-tables.diff
|
2011-06-27 14:05:13 +02:00
|
|
|
# PATCH-FEATURE-SLE increase cpusetsize to 4096, needs to be kept for compatibility kukuk@suse.de
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch38: glibc-cpusetsize.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch45: glibc-gai-private4.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch46: glibc-resolv-mdnshint.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-02-04 05:30:37 +01:00
|
|
|
Patch47: glibc-nscd-hconf.diff
|
2011-06-15 14:55:16 +02:00
|
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
|
|
Patch49: glibc-fini-unwind.diff
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE bnc#657627, http://sourceware.org/bugzilla/show_bug.cgi?id=12561
|
2011-06-15 14:55:16 +02:00
|
|
|
Patch52: glibc-elf-localscope.diff
|
2012-01-04 08:26:35 +01:00
|
|
|
# FIX-OPENSUSE compile some files with -fno-strict-aliasing
|
|
|
|
Patch58: glibc-strict-aliasing.diff
|
2011-07-25 10:53:48 +02:00
|
|
|
# PATCH-FIX-OPENSUSE disable rewriting ::1 to 127.0.0.1 for /etc/hosts bnc#684534, bnc#706719
|
|
|
|
Patch65: glibc-fix-double-loopback.diff
|
2011-08-17 21:42:24 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE Revert sunrpc removal aj@suse.de
|
|
|
|
Patch66: glibc2.14-revert-sunrpc-removal.patch
|
|
|
|
# PATCH-FIX-OPENSUSE revert seeking on fclose for now bnc#711829 matz@suse.de
|
|
|
|
Patch67: glibc-revert-fseek-on-fclose.diff
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix crash (access-after-free) in dl_lookup_x bnc#703140, bso#13579 matz@suse.de
|
2011-08-18 13:43:18 +02:00
|
|
|
Patch68: glibc-fix-lookup-crash.patch
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix crash (access-after-free) in dl_lookup_x bnc#703140, bso#13579 matz@suse.de
|
|
|
|
Patch69: glibc-fix-noload.patch
|
2011-09-05 14:34:49 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Do not trigger an abort when an i586 Intel CPU is running the i686 library, as valgrind does. bnc#681398 aj@suse.de
|
|
|
|
Patch71: x86-cpuid-level2.patch
|
2011-09-27 13:48:32 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Run ctors (bnc#717671) aj@suse.de
|
|
|
|
Patch74: glibc-2.14-fix-ctors.patch
|
2011-07-19 14:17:47 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE -- add sha support to crypt_blowfish lnussel@suse.de
|
2011-08-29 10:21:41 +02:00
|
|
|
Patch80: crypt_blowfish-1.2-sha.diff
|
|
|
|
# PATCH-FEATURE-OPENSUSE -- use separate symbol version for Owl extensions - lnussel@suse.de
|
|
|
|
Patch81: crypt_blowfish-1.2-versioning.diff
|
2011-09-30 17:15:00 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Avoid build failure on noexecstack marker on ARM dmueller@suse.de
|
|
|
|
Patch82: crypt_blowfish-1.2-hack_around_arm.diff
|
2011-11-10 15:05:53 +01:00
|
|
|
# PATCH-FIX-OPENSUSE avoid false positive warning that triggers brp postcheck fail
|
|
|
|
Patch84: nscd-avoid-gcc-warning.diff
|
2011-12-22 13:50:35 +01:00
|
|
|
# PATCH-FIX-OPENSUSE fixed build-compare by omitting one more date - meissner@suse.de
|
|
|
|
Patch87: glibc-nodate.patch
|
2012-01-09 14:48:53 +01:00
|
|
|
# PATCH-FIX-OPENSUSE revert pthread-cond-wait change since it causes hangs - aj@suse.de
|
2012-01-03 11:00:11 +01:00
|
|
|
Patch88: pthread-cond-wait-revert.patch
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix cycle detection - aj@suse.de
|
|
|
|
Patch95: cycle-detection.patch
|
|
|
|
# PATCH-FIX-OPENSUSE Fix LD_PROFILE (glibc bug#13818) - aj@suse.de
|
|
|
|
Patch96: glibc-ld-profile.patch
|
|
|
|
# PATCH-FIX-OPENSUSE Fix path for nss_db (bnc#753657) - aj@suse.de
|
|
|
|
Patch97: nss-db-path.patch
|
2012-04-17 14:34:50 +02:00
|
|
|
# PATCH-FIX-OPENSUSE Fix cycle detection 2 (from Fedora) - aj@suse.de
|
2012-04-13 11:37:44 +02:00
|
|
|
Patch100: glibc-sw13618-2.patch
|
2012-04-17 14:34:50 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
# Patches from upstream
|
|
|
|
###
|
|
|
|
# PATCH-FIX-UPSTREAM Fix missing declarations
|
|
|
|
Patch1000: glibc-2.15-nss_db-declarations.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Fix realloc usage in vfscanf - aj@suse.de
|
|
|
|
Patch1001: glibc-2.16-scanf.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Fix getcontext on 32-bit powerpc - aj@suse.de
|
|
|
|
Patch1002: glibc-ppc-getcontext.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Fix ifunc relocations (bnc#740109) - aj@suse.de
|
|
|
|
Patch1003: glibc-ifunc-2.16.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Fix tests for AVX features - aj@suse.de
|
|
|
|
Patch1004: glibc-2.16-avx.patch
|
|
|
|
# PATCH-FIX-UPSTREAM vfprintf: validate nargs and maybe allocate from heap bnc#747768 - aj@suse.de
|
|
|
|
Patch1005: vfprintf-nargs.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Add Arm dependency on libmemusage - bwiedemann@suse.de
|
|
|
|
Patch1006: glibc-add-arm-dependency-libmemusage.patch
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Fix check abi - aj@suse.de
|
2012-04-17 14:34:50 +02:00
|
|
|
Patch1007: glibc-2.16-fix-check-abi.patch
|
2012-04-13 11:37:44 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Fix check-localelfplt - aj@suse.de
|
2012-04-17 14:34:50 +02:00
|
|
|
Patch1008: glibc-2.16-fix-check-localplt.patch
|
|
|
|
# PATCH-FIX-UPSTREAM - Allow compilation with -altivec aj@suse.de
|
|
|
|
Patch1009: glibc-uio-cell.diff
|
|
|
|
|
|
|
|
###
|
|
|
|
# Patches awaiting upstream approval
|
|
|
|
###
|
|
|
|
# PATCH-FIX-UPSTREAM Fix assertion error in res_query.c (bso#13013)
|
|
|
|
Patch2001: glibc-resolv-assert.diff
|
|
|
|
# PATCH-FIX-UPSTREAM Use new common path for ARMv7 hardware float linker - aj@suse.de
|
|
|
|
Patch2002: armhf-ld-so.patch
|
|
|
|
# PATCH-FIX-UPSTREAM Fix crash when nscd is not running (bso#135949) - aj@suse.de
|
|
|
|
Patch2003: glibc-nscd-crash-bso13594.patch
|
2011-06-16 15:36:45 +02:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%description
|
|
|
|
The GNU C Library provides the most important standard libraries used
|
|
|
|
by nearly all programs: the standard C library, the standard math
|
|
|
|
library, and the POSIX thread library. A system is not functional
|
|
|
|
without these libraries.
|
|
|
|
|
|
|
|
%package info
|
|
|
|
Summary: Info Files for the GNU C Library
|
2012-01-18 10:31:00 +01:00
|
|
|
License: GFDL-1.1
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: Documentation/Other
|
2011-06-27 14:05:13 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(postun): %{install_info_prereq}
|
2011-08-18 14:05:28 +02:00
|
|
|
BuildArch: noarch
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%description info
|
|
|
|
This package contains the documentation for the GNU C library stored as
|
|
|
|
info files. Due to a lack of resources, this documentation is not
|
|
|
|
complete and is partially out of date.
|
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_html}
|
2009-02-20 08:46:43 +01:00
|
|
|
%package html
|
|
|
|
Summary: HTML Documentation for the GNU C Library
|
2012-01-18 10:31:00 +01:00
|
|
|
License: GFDL-1.1
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: Documentation/HTML
|
2011-08-18 14:05:28 +02:00
|
|
|
BuildArch: noarch
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%description html
|
|
|
|
This package contains the HTML documentation for the GNU C library. Due
|
|
|
|
to a lack of resources, this documentation is not complete and is
|
|
|
|
partially out of date.
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%package i18ndata
|
|
|
|
Summary: Database Sources for 'locale'
|
2012-01-18 10:31:00 +01:00
|
|
|
License: GPL-2.0+ and MIT
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: System/Libraries
|
2011-08-18 14:05:28 +02:00
|
|
|
BuildArch: noarch
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%description i18ndata
|
|
|
|
This package contains the data needed to build the locale data files to
|
|
|
|
use the internationalization features of the GNU libc. It is normally
|
|
|
|
not necessary to install this packages, the data files are already
|
|
|
|
created.
|
|
|
|
|
|
|
|
%package locale
|
|
|
|
Summary: Locale Data for Localized Programs
|
2012-01-18 10:31:00 +01:00
|
|
|
License: GPL-2.0+ and MIT and LGPL-2.1+
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: System/Libraries
|
2011-06-27 14:05:13 +02:00
|
|
|
Requires(post): /bin/cat
|
2011-06-15 14:55:16 +02:00
|
|
|
Requires: glibc = %{version}
|
2009-02-20 08:46:43 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: glibc-locale-64bit
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Obsoletes: glibc-locale-32bit
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description locale
|
|
|
|
Locale data for the internationalisation features of the GNU C library.
|
|
|
|
|
|
|
|
%package -n nscd
|
|
|
|
Summary: Name Service Caching Daemon
|
2012-01-18 10:31:00 +01:00
|
|
|
License: GPL-2.0+
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: System/Daemons
|
2011-06-15 14:55:16 +02:00
|
|
|
Provides: aaa_base:/etc/init.d/nscd
|
|
|
|
Provides: glibc:/usr/sbin/nscd
|
2012-01-10 14:02:38 +01:00
|
|
|
Requires: glibc = %{version}
|
2011-06-27 14:05:13 +02:00
|
|
|
Requires(preun): %insserv_prereq
|
|
|
|
Requires(post): %insserv_prereq
|
|
|
|
Requires(postun): %insserv_prereq
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%description -n nscd
|
|
|
|
Nscd caches name service lookups and can dramatically improve
|
|
|
|
performance with NIS, NIS+, and LDAP.
|
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_profile}
|
2009-02-20 08:46:43 +01:00
|
|
|
%package profile
|
|
|
|
Summary: Libc Profiling and Debugging Versions
|
2012-01-18 10:31:00 +01:00
|
|
|
License: LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc = %{version}
|
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: glibc-profile-64bit
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Obsoletes: glibc-profile-32bit
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description profile
|
|
|
|
This package contains special versions of the GNU C library which are
|
|
|
|
necessary for profiling and debugging.
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries Mandatory for Development
|
2012-01-18 10:31:00 +01:00
|
|
|
License: BSD-3-Clause and LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Obsoletes: epoll = 1.0
|
2011-05-24 17:08:51 +02:00
|
|
|
Provides: epoll < 1.0
|
2009-02-20 08:46:43 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: glibc-devel-64bit
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Obsoletes: glibc-devel-32bit
|
|
|
|
%endif
|
2011-06-27 14:05:13 +02:00
|
|
|
Requires: glibc = %{version}
|
|
|
|
Requires: linux-kernel-headers
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
These libraries are needed to develop programs which use the standard C
|
|
|
|
library.
|
|
|
|
|
2011-06-16 15:36:45 +02:00
|
|
|
%package devel-static
|
2011-06-16 17:38:23 +02:00
|
|
|
Summary: C library static libraries for -static linking
|
2012-01-18 10:31:00 +01:00
|
|
|
License: BSD-3-Clause and LGPL-2.1+ and SUSE-LGPL-2.1+-with-GCC-exception and GPL-2.0+
|
2011-06-16 17:14:19 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-06-16 15:36:45 +02:00
|
|
|
Requires: %{name}-devel = %{version}
|
2011-10-19 14:10:22 +02:00
|
|
|
# Provide Fedora name for package to make packaging easier
|
2011-11-08 22:56:00 +01:00
|
|
|
Provides: %{name}-static = %version
|
2011-06-16 15:36:45 +02:00
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
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.
|
|
|
|
|
2011-06-15 09:27:54 +02:00
|
|
|
%package utils
|
2011-06-15 14:55:16 +02:00
|
|
|
Summary: Development utilities from GNU C library
|
2012-01-18 10:31:00 +01:00
|
|
|
License: LGPL-2.1+
|
2011-06-15 09:27:54 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2011-06-15 14:55:16 +02:00
|
|
|
Requires: glibc = %{version}
|
2011-06-15 09:27:54 +02:00
|
|
|
|
|
|
|
%description utils
|
2011-06-27 14:05:13 +02:00
|
|
|
The glibc-utils package contains mtrace, a memory leak tracer and
|
|
|
|
xtrace, a function call tracer which can be helpful during program
|
|
|
|
debugging.
|
2011-06-15 09:27:54 +02:00
|
|
|
|
|
|
|
If you are unsure if you need this, don't install this package.
|
2009-02-20 08:46:43 +01:00
|
|
|
|
2012-01-16 16:06:45 +01:00
|
|
|
# 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
|
2012-01-18 10:31:00 +01:00
|
|
|
License: LGPL-2.1+
|
2012-01-16 16:06:45 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: glibc = %{version}
|
|
|
|
|
|
|
|
%description extra
|
|
|
|
The glibc-extra package contains some extra binaries for glibc that
|
|
|
|
are not essential but recommend to use.
|
|
|
|
|
|
|
|
makedb: A program to create a database for nss
|
|
|
|
|
2011-05-27 17:33:06 +02:00
|
|
|
%ifarch %ix86
|
2011-06-16 15:36:45 +02:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%package obsolete
|
|
|
|
Summary: Obsolete Shared Libraries from the GNU C Library
|
2012-01-18 10:31:00 +01:00
|
|
|
License: LGPL-2.0+
|
2009-02-20 08:46:43 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: glibc = %{version}
|
|
|
|
|
|
|
|
%description obsolete
|
|
|
|
This package provides some old libraries from the GNU C Library which
|
|
|
|
are no longer supported. Additional it provides a compatibility library
|
|
|
|
for old binaries linked against glibc 2.0.
|
|
|
|
|
|
|
|
Install this package if you need one of this libraries to get old
|
|
|
|
binaries working, but since this libraries are not supported and there
|
|
|
|
is no gurantee that they work for you, you should try to get newer
|
|
|
|
versions of your software.
|
|
|
|
|
2011-05-27 17:33:06 +02:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%prep
|
2010-03-25 17:12:02 +01:00
|
|
|
%setup -n glibc-%{version} -q -a 2 -a 3 -a 4
|
2011-07-19 14:17:47 +02:00
|
|
|
# Owl crypt_blowfish
|
|
|
|
tar -xzf %SOURCE50
|
|
|
|
pushd crypt_blowfish-%{crypt_bf_version}
|
|
|
|
%patch80 -p1
|
2011-08-29 10:21:41 +02:00
|
|
|
%patch81 -p1
|
2011-09-30 17:15:00 +02:00
|
|
|
%patch82
|
2011-07-19 14:17:47 +02:00
|
|
|
popd
|
|
|
|
mv crypt/{crypt.h,gnu-crypt.h}
|
|
|
|
mv crypt_blowfish-%crypt_bf_version/*.[chS] crypt/
|
|
|
|
#
|
2011-06-27 14:05:13 +02:00
|
|
|
%patch0
|
2009-02-20 08:46:43 +01:00
|
|
|
# libNoVersion part is only active on ix86
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch1 -p1
|
2009-02-20 08:46:43 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
2011-07-19 14:17:47 +02:00
|
|
|
%patch5 -p1
|
2011-08-29 10:21:41 +02:00
|
|
|
%patch6 -p1
|
2009-02-20 08:46:43 +01:00
|
|
|
%patch7
|
|
|
|
%patch8
|
|
|
|
%patch12
|
2011-02-04 05:30:37 +01:00
|
|
|
%patch14
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch16 -p1
|
|
|
|
%patch20 -p1
|
2012-01-09 14:48:53 +01:00
|
|
|
%patch21 -p1
|
2010-03-18 14:37:59 +01:00
|
|
|
# avoid changing nscd_stat.c mtime to avoid code generation
|
|
|
|
# differences on each rebuild
|
|
|
|
touch -r nscd/nscd_stat.c nscd/s-stamp
|
2011-02-04 05:30:37 +01:00
|
|
|
%patch22
|
2009-02-20 08:46:43 +01:00
|
|
|
%patch23
|
2010-03-18 14:37:59 +01:00
|
|
|
touch -r nscd/s-stamp nscd/nscd_stat.c
|
|
|
|
rm nscd/s-stamp
|
2011-02-04 05:30:37 +01:00
|
|
|
%patch25
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch28 -p1
|
2011-07-06 10:26:32 +02:00
|
|
|
%patch29
|
2009-02-20 08:46:43 +01:00
|
|
|
%patch30
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch33 -p1
|
|
|
|
%patch36 -p1
|
2011-02-04 05:30:37 +01:00
|
|
|
%patch38
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch1009 -p1
|
2011-02-04 05:30:37 +01:00
|
|
|
%patch45
|
|
|
|
%patch46 -p1
|
|
|
|
%patch47 -p1
|
|
|
|
%patch49
|
2012-04-13 11:37:44 +02:00
|
|
|
# XXX: Does not pass testsuite, still there's no better solution yet
|
2011-02-22 13:33:01 +01:00
|
|
|
%patch52
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch58 -p1
|
2011-07-25 10:53:48 +02:00
|
|
|
%patch65 -p1
|
2011-08-17 21:42:24 +02:00
|
|
|
%patch66 -p1
|
|
|
|
%patch67 -p1
|
2012-04-13 11:37:44 +02:00
|
|
|
# XXX Patch 69 replaces 68, remove soon
|
|
|
|
#%patch68 -p1
|
|
|
|
%patch69 -p1
|
2011-09-05 14:34:49 +02:00
|
|
|
%patch71 -p1
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch2001 -p1
|
2011-09-27 13:48:32 +02:00
|
|
|
%patch74 -p1
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch1000 -p1
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch84 -p1
|
|
|
|
%patch87 -p1
|
2012-01-03 11:00:11 +01:00
|
|
|
%patch88 -p1 -R
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch1001 -p1
|
|
|
|
%patch1002 -p1
|
|
|
|
%patch1003 -p1
|
|
|
|
%patch1004 -p1
|
|
|
|
%patch1005 -p1
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch95 -p1
|
|
|
|
# XXX Disable, it breaks the testsuite, test elf/tst-audit2
|
|
|
|
# %patch96 -p1
|
|
|
|
%patch97 -p1
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch2003 -p1
|
|
|
|
%patch1006 -p1
|
2012-04-13 11:37:44 +02:00
|
|
|
%patch100 -p1
|
2012-04-17 14:34:50 +02:00
|
|
|
%patch1007 -p1
|
|
|
|
%patch1008 -p1
|
2012-04-16 22:11:08 +02:00
|
|
|
%ifarch armv7l
|
2012-04-17 14:34:50 +02:00
|
|
|
# Disable for now
|
|
|
|
#%patch2002 -p1
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2011-07-04 15:26:19 +02:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
# Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed!
|
|
|
|
#
|
|
|
|
# Glibc 2.8 introduced the HP_TIMING element to the rtld_global_ro struct # definition.
|
|
|
|
# If the base is built without power4 the loader won't have this element in
|
|
|
|
# the struct whereas the power4/5/6/... libc will, so there will be a disconnect
|
|
|
|
# between the size of the rtld_global_ro struct between the two and dl_close
|
|
|
|
# ends up getting called incorrectly when it's actually attempting to call a
|
|
|
|
# resolver function. This is because the GLRO() macro simply attempts to
|
|
|
|
# compute an offset and gets the wrong one.
|
|
|
|
# Building the base glibc with --with-cpu=power4 solves this problem.
|
|
|
|
# But: ppc32 can not default to -mcpu=power4 because it would emit instructions
|
|
|
|
# which are not available on G3, G4 etc.
|
|
|
|
#
|
|
|
|
# We simply remove the power4 files, and build the base glibc for a generic powerpc cpu
|
|
|
|
# Additional cputuned libs can now be used on powerpc32
|
|
|
|
#
|
|
|
|
rm -fv sysdeps/powerpc/powerpc32/power4/hp-timing.c sysdeps/powerpc/powerpc32/power4/hp-timing.h
|
|
|
|
find . -name configure | xargs touch
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
#######################################################################
|
|
|
|
###
|
|
|
|
### BUILD
|
|
|
|
###
|
|
|
|
#######################################################################
|
2011-02-04 02:37:38 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%build
|
2012-04-13 11:37:44 +02:00
|
|
|
%if %{with glibc_run_testsuite}
|
|
|
|
echo glibc_run_testsuite is set
|
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
if [ -x /bin/uname.bin ]; then
|
2010-01-03 12:31:34 +01:00
|
|
|
/bin/uname.bin -a
|
2009-02-20 08:46:43 +01:00
|
|
|
else
|
2010-01-03 12:31:34 +01:00
|
|
|
uname -a
|
2009-02-20 08:46:43 +01:00
|
|
|
fi
|
|
|
|
uptime || :
|
|
|
|
ulimit -a
|
|
|
|
nice
|
2012-01-12 12:49:18 +01:00
|
|
|
# We do not want configure to figure out the system its building one
|
|
|
|
# to support a common ground and thus set build and host to the
|
|
|
|
# target_cpu.
|
2012-01-31 10:40:30 +01:00
|
|
|
%ifarch %arm
|
|
|
|
%define target %{_target_cpu}-suse-linux-gnueabi
|
|
|
|
%else
|
2012-01-12 12:49:18 +01:00
|
|
|
%define target %{_target_cpu}-suse-linux
|
2012-01-31 10:40:30 +01:00
|
|
|
%endif
|
2012-04-13 11:37:44 +02:00
|
|
|
# Don't use as-needed, it breaks glibc assumptions
|
|
|
|
# Before enabling it, run the testsuite and verify that it
|
|
|
|
# passes completely
|
|
|
|
export SUSE_ASNEEDED=0
|
2009-02-20 08:46:43 +01:00
|
|
|
# Adjust glibc version.h
|
2012-01-31 10:40:30 +01:00
|
|
|
echo "#define CONFHOST \"%{target}\"" >> version.h
|
2009-02-20 08:46:43 +01:00
|
|
|
echo "#define CVSDATE \"`date -r ChangeLog +%Y%m%d`\"" >> version.h
|
|
|
|
#
|
|
|
|
# Default CFLAGS and Compiler
|
|
|
|
#
|
2011-06-27 14:05:13 +02:00
|
|
|
BuildFlags="%{optflags} -U_FORTIFY_SOURCE"
|
2009-02-20 08:46:43 +01:00
|
|
|
BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##' -e 's#-ffortify=[0-9]*##')"
|
2011-10-10 15:44:00 +02:00
|
|
|
BuildCC="%__cc"
|
|
|
|
BuildCCplus="%__cxx"
|
2009-02-20 08:46:43 +01:00
|
|
|
add_ons=",libidn"
|
2010-06-28 23:29:28 +02:00
|
|
|
PARALLEL="%{?_smp_mflags}"
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
#now overwrite for some architectures
|
|
|
|
#
|
|
|
|
%ifarch sparc64
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="-O2 -mcpu=ultrasparc -mvis -fcall-used-g6"
|
|
|
|
BuildCC="gcc -m64"
|
|
|
|
BuildCCplus="$BuildCCplus -m64"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch sparc
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -fcall-used-g6"
|
|
|
|
BuildCC="gcc -m32"
|
|
|
|
BuildCCplus="$BuildCCplus -m32"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch sparcv9
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -mcpu=ultrasparc -fcall-used-g6"
|
|
|
|
BuildCC="gcc -m32"
|
|
|
|
BuildCCplus="$BuildCCplus -m32"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch alphaev6
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="-mcpu=ev6"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$(echo $BuildFlags | sed 's#-mminimal-toc##')"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch ppc64
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildCC="$BuildCC -m64"
|
|
|
|
BuildCCplus="$BuildCCplus -m64"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch hppa
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -mpa-risc-1-1 -fstrict-aliasing"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2012-01-04 08:26:35 +01:00
|
|
|
%ifarch i386 i486 i586
|
2012-01-03 16:43:47 +01:00
|
|
|
# Add this to avoid performance penalty on Xen for 32-bit x86
|
2012-01-04 08:26:35 +01:00
|
|
|
# Note on i686 we build a special library
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -mno-tls-direct-seg-refs"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
# Add flags for all plattforms except AXP
|
|
|
|
%ifnarch alpha
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -g"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%if %{disable_assert}
|
2010-01-03 12:31:34 +01:00
|
|
|
BuildFlags="$BuildFlags -DNDEBUG=1"
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%ifarch %ix86
|
2010-01-03 12:31:34 +01:00
|
|
|
add_ons=$add_ons,noversion
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2011-11-10 15:05:53 +01:00
|
|
|
%ifarch %arm mipsel
|
|
|
|
add_ons=$add_ons,%glibc_ports_dir
|
2010-01-03 12:31:34 +01:00
|
|
|
# fails to build otherwise - need to recheck and fix
|
|
|
|
%define enable_stackguard_randomization 0
|
2009-05-27 12:39:38 +02:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
configure_and_build_glibc() {
|
2010-01-03 12:31:34 +01:00
|
|
|
local dirname="$1"; shift
|
|
|
|
local cflags="$1"; shift
|
|
|
|
local addons="$1"; shift
|
|
|
|
mkdir "cc-$dirname"
|
|
|
|
cd "cc-$dirname"
|
2011-11-10 15:05:53 +01:00
|
|
|
%ifarch %arm
|
|
|
|
# remove asynchronous-unwind-tables during configure as it causes
|
2011-12-27 09:19:44 +01:00
|
|
|
# some checks to fail spuriously on arm
|
2011-11-10 15:05:53 +01:00
|
|
|
conf_cflags="${cflags/-fasynchronous-unwind-tables/}"
|
|
|
|
conf_cflags="${conf_cflags/-funwind-tables/}"
|
|
|
|
%else
|
|
|
|
conf_cflags="$cflags"
|
|
|
|
%endif
|
2012-04-13 11:37:44 +02:00
|
|
|
|
2011-11-10 15:05:53 +01:00
|
|
|
CFLAGS="$conf_cflags" CC="$BuildCC" CXX="$BuildCCplus" ../configure \
|
2010-01-03 12:31:34 +01:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libexecdir=%{_libdir} --infodir=%{_infodir} \
|
2012-04-16 22:11:08 +02:00
|
|
|
--enable-add-ons=nptl$addons \
|
|
|
|
%if %{build_profile}
|
|
|
|
--enable-profile \
|
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
"$@" \
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{enable_stackguard_randomization}
|
2010-01-03 12:31:34 +01:00
|
|
|
--enable-stackguard-randomization \
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2012-01-12 12:49:18 +01:00
|
|
|
--build=%{target} --host=%{target} \
|
2010-11-16 02:47:23 +01:00
|
|
|
%ifarch ppc ppc64 %{ix86} x86_64
|
|
|
|
--enable-multi-arch \
|
2009-05-27 12:39:38 +02:00
|
|
|
%endif
|
2011-10-10 15:44:00 +02:00
|
|
|
%ifarch mipsel
|
|
|
|
--without-fp \
|
|
|
|
%endif
|
2012-01-03 15:57:43 +01:00
|
|
|
--enable-kernel=%{enablekernel} \
|
2011-06-15 14:55:16 +02:00
|
|
|
--enable-bind-now
|
2011-05-25 21:08:25 +02:00
|
|
|
# Should we enable --enable-nss-crypt to build use freebl3 hash functions?
|
2011-11-10 15:05:53 +01:00
|
|
|
# explicitly set CFLAGS to use the full CFLAGS (not the reduced one for configure)
|
|
|
|
make $PARALLEL CFLAGS="$cflags"
|
2010-01-03 12:31:34 +01:00
|
|
|
cd ..
|
2009-02-20 08:46:43 +01:00
|
|
|
}
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
%if !%{optimize_power}
|
|
|
|
#
|
|
|
|
# Build base glibc
|
|
|
|
#
|
|
|
|
configure_and_build_glibc base "$BuildFlags" "$add_ons"
|
2012-01-04 08:26:35 +01:00
|
|
|
%ifarch i686
|
|
|
|
configure_and_build_glibc nosegneg "$BuildFlags -mno-tls-direct-seg-refs" "$add_ons"
|
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
%else
|
2010-01-03 12:31:34 +01:00
|
|
|
#
|
|
|
|
# Build POWER-optimized glibc
|
|
|
|
#
|
|
|
|
# First, base build:
|
|
|
|
pBuildFlags="$BuildFlags -mcpu=%{powerpc_optimize_base} -mtune=%{powerpc_optimize_tune}"
|
2010-04-26 13:34:14 +02:00
|
|
|
%if %{powerpc_optimize_base} != "power3"
|
2010-03-25 17:12:02 +01:00
|
|
|
configure_and_build_glibc base "$pBuildFlags" "$add_ons" --with-cpu=%{powerpc_optimize_base}
|
2010-04-26 13:34:14 +02:00
|
|
|
%else
|
|
|
|
# Use no default CPU
|
|
|
|
configure_and_build_glibc base "$pBuildFlags" "$add_ons"
|
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
# Then other power variants:
|
|
|
|
for pcpu in \
|
2010-04-26 13:34:14 +02:00
|
|
|
%if %{powerpc_optimize_cpu_power4}
|
|
|
|
power4 \
|
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
%if %{powerpc_optimize_cpu_power6}
|
|
|
|
power6 \
|
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_power7}
|
|
|
|
power7 \
|
|
|
|
%endif
|
|
|
|
; do
|
2010-03-25 17:12:02 +01:00
|
|
|
configure_and_build_glibc $pcpu "$BuildFlags -mcpu=$pcpu" "$add_ons" \
|
2010-01-03 12:31:34 +01:00
|
|
|
--with-cpu=$pcpu --disable-runbinaries
|
|
|
|
done
|
|
|
|
# Eventually, special Cell variant:
|
|
|
|
%if %{powerpc_optimize_cpu_cell}
|
|
|
|
configure_and_build_glibc ppc-cell-be "$BuildFlags -mcpu=cell" "$add_ons" --disable-runbinaries
|
|
|
|
%endif
|
|
|
|
%endif # optimize_power
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
# Build html documentation
|
|
|
|
#
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_html}
|
2010-01-03 12:31:34 +01:00
|
|
|
make -C cc-base html
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
# Build glibc_post_upgrade binary
|
|
|
|
#
|
2011-06-27 14:05:13 +02:00
|
|
|
$BuildCC -static %{optflags} -Os $RPM_SOURCE_DIR/glibc_post_upgrade.c -o glibc_post_upgrade \
|
2010-01-03 12:31:34 +01:00
|
|
|
-Lcc-base -Bcc-base/csu \
|
2010-04-26 13:34:14 +02:00
|
|
|
'-DREMOVE_TLS_DIRS' '-DREMOVE_PPC_OPTIMIZE_POWER5' \
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch ppc ppc64
|
2010-04-26 13:34:14 +02:00
|
|
|
%if !%{powerpc_optimize_cpu_power4}
|
|
|
|
'-DREMOVE_PPC_OPTIMIZE_POWER4' \
|
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
%if !%{powerpc_optimize_cpu_power6}
|
2009-02-20 08:46:43 +01:00
|
|
|
'-DREMOVE_PPC_OPTIMIZE_POWER6' \
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%if !%{powerpc_optimize_cpu_power7}
|
2009-02-20 08:46:43 +01:00
|
|
|
'-DREMOVE_PPC_OPTIMIZE_POWER7' \
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%if !%{powerpc_optimize_cpu_cell}
|
2009-02-20 08:46:43 +01:00
|
|
|
'-DREMOVE_PPC_OPTIMIZE_CELL' \
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2011-06-27 14:05:13 +02:00
|
|
|
'-DLIBDIR="/%{_lib}"' '-DGCONV_MODULES_DIR="%{_libdir}/gconv"'
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-07-21 11:06:03 +02:00
|
|
|
# crypt_blowfish man pages
|
|
|
|
pushd crypt_blowfish-%{crypt_bf_version}
|
|
|
|
make man
|
|
|
|
popd
|
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
#######################################################################
|
|
|
|
###
|
|
|
|
### CHECK
|
|
|
|
###
|
|
|
|
#######################################################################
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%check
|
2012-04-13 11:37:44 +02:00
|
|
|
# The testsuite will fail if asneeded is used
|
|
|
|
export SUSE_ASNEEDED=0
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{run_testsuite}
|
2010-01-03 12:31:34 +01:00
|
|
|
# Increase timeout
|
|
|
|
export TIMEOUTFACTOR=16
|
|
|
|
%ifarch alpha %ix86 ppc ppc64 ia64 s390 s390x x86_64
|
|
|
|
# ix86: tst-cputimer? fails
|
|
|
|
# ia64: tst-timer4 fails
|
|
|
|
# ppc64: tst-pselect, ftwtest fails
|
|
|
|
# s390,s390x: tst-timer* fails
|
|
|
|
make -C cc-base -k check || echo make check failed
|
|
|
|
%else
|
|
|
|
make -C cc-base check
|
|
|
|
%endif
|
|
|
|
%endif
|
2012-04-13 11:37:44 +02:00
|
|
|
# File was not created as empty file by patch 101
|
|
|
|
touch abilist/libnss_dns.abilist abilist/libnss_db.abilist
|
2012-04-17 14:34:50 +02:00
|
|
|
# This has to pass on x86 and x86-64
|
|
|
|
# Exceptions:
|
|
|
|
# ARM: There's no check-abi data for arm at all
|
|
|
|
# s390, s390x, ppc, ppc64: Outdated check-abi data
|
|
|
|
%ifnarch %arm s390 s390x ppc ppc64
|
2012-04-13 11:37:44 +02:00
|
|
|
make -C cc-base check-abi
|
2012-04-16 22:11:08 +02:00
|
|
|
#%else
|
|
|
|
#make -C cc-base check-abi || echo check-abi failed
|
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
#######################################################################
|
|
|
|
###
|
|
|
|
### INSTALL
|
|
|
|
###
|
|
|
|
#######################################################################
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
|
2010-01-03 12:31:34 +01:00
|
|
|
# certainly not from libpthread.so.* because it is used by libthread_db to find
|
2009-02-20 08:46:43 +01:00
|
|
|
# some non-exported symbols in order to detect if threading support
|
|
|
|
# should be enabled. These symbols are _not_ exported, and we can't easily
|
|
|
|
# export them retroactively without changing the ABI. So we have to
|
|
|
|
# continue to "export" them via .symtab, instead of .dynsym :-(
|
2010-01-03 12:31:34 +01:00
|
|
|
# But we also want to keep .symtab and .strtab of other libraries since some
|
|
|
|
# debugging tools currently require these sections directly inside the main
|
|
|
|
# files - specifically valgrind and PurifyPlus.
|
|
|
|
export STRIP_KEEP_SYMTAB=*.so*
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
# Make sure we will create the gconv-modules.cache
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/gconv
|
|
|
|
touch %{buildroot}%{_libdir}/gconv/gconv-modules.cache
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Install base glibc
|
2009-02-20 08:46:43 +01:00
|
|
|
# Do not install in parallel, timezone Makefile will fail
|
2011-06-27 14:05:13 +02:00
|
|
|
make install_root=%{buildroot} install -C cc-base
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2012-01-04 08:26:35 +01:00
|
|
|
install_optimized_variant() {
|
|
|
|
local dirname="$1"; shift
|
|
|
|
local subdir="$1"; shift
|
|
|
|
local subdir_up="$1"; shift
|
|
|
|
|
|
|
|
cd "cc-$dirname"
|
|
|
|
destdir=$RPM_BUILD_ROOT/%{_lib}/$subdir
|
|
|
|
mkdir -p $destdir
|
|
|
|
# Don't run a complete make install, we know which libraries
|
|
|
|
# we want
|
|
|
|
for lib in libc math/libm nptl/libpthread rt/librt nptl_db/libthread_db
|
|
|
|
do
|
|
|
|
libbase=${lib#*/}
|
|
|
|
libbaseso=$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}-*.so)
|
|
|
|
# Only install if different from base lib
|
|
|
|
if cmp -s ${lib}.so ../cc-base/${lib}.so; then
|
|
|
|
ln -sf $subdir_up/$libbaseso $destdir/$libbaseso
|
|
|
|
else
|
|
|
|
cp -a ${lib}.so $destdir/$libbaseso
|
|
|
|
fi
|
|
|
|
# Emulate ldconfig
|
|
|
|
ln -sf $libbaseso $destdir/$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}.so.*)
|
|
|
|
done
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
# Install i686 glibc for Xen
|
|
|
|
%ifarch i686
|
|
|
|
install_optimized_variant nosegneg i686/nosegneg "../.."
|
|
|
|
%endif
|
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Install power-optimized glibc
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{optimize_power}
|
2010-04-26 13:34:14 +02:00
|
|
|
%if %{powerpc_optimize_cpu_power4}
|
2012-01-04 08:26:35 +01:00
|
|
|
install_optimized_variant power4 power4 ".."
|
2010-04-26 13:34:14 +02:00
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
%if %{powerpc_optimize_cpu_power6}
|
2012-01-04 08:26:35 +01:00
|
|
|
install_optimized_variant power6 power6 ".."
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_power7}
|
2012-01-04 08:26:35 +01:00
|
|
|
install_optimized_variant power7 power7 ".."
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_cell}
|
2012-01-04 08:26:35 +01:00
|
|
|
install_optimized_variant ppc-cell-be ppc-cell-be ".."
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_power6}
|
2012-01-04 08:26:35 +01:00
|
|
|
# power6 is compatible with power6x
|
|
|
|
# doing a directory symlink doesnt work, ldconfig follows them and accepts only the first real dir
|
|
|
|
if test -d %{buildroot}/%{_lib}/power6; then
|
|
|
|
mkdir -p %{buildroot}/%{_lib}/power6x
|
|
|
|
for i in %{buildroot}/%{_lib}/power6/*.so; do
|
|
|
|
b=`basename $i`
|
|
|
|
ln -vs ../power6/$b %{buildroot}/%{_lib}/power6x/$b
|
|
|
|
libbase=${b%.so}
|
|
|
|
libbaseso=$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}-*.so)
|
|
|
|
# Emulate ldconfig
|
|
|
|
ln -sf $libbaseso %{buildroot}/%{_lib}/power6x/$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}.so.*)
|
|
|
|
done
|
|
|
|
fi
|
2010-01-03 12:31:34 +01:00
|
|
|
%endif
|
|
|
|
%endif # optimize_power
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Install locales
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{build_locales}
|
2010-01-03 12:31:34 +01:00
|
|
|
# Do not install locales in parallel!
|
|
|
|
cd cc-base
|
2011-06-27 14:05:13 +02:00
|
|
|
make install_root=%{buildroot} install-locales -C ../localedata objdir=`pwd`
|
2010-01-03 12:31:34 +01:00
|
|
|
cd ..
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
# Create file list for glibc-locale package
|
2009-02-20 08:46:43 +01:00
|
|
|
%{find_lang} libc
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Prepare obsolete/, used only on some architectures:
|
2009-02-20 08:46:43 +01:00
|
|
|
export RPM_BUILD_ROOT
|
2011-05-27 17:33:06 +02:00
|
|
|
%ifarch %ix86
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}/%{_lib}/obsolete
|
2011-05-27 17:33:06 +02:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
# NPTL <bits/stdio-lock.h> is not usable outside of glibc, so include
|
|
|
|
# the generic one (RH#162634)
|
2011-06-27 14:05:13 +02:00
|
|
|
cp -av bits/stdio-lock.h %{buildroot}%{_includedir}/bits/stdio-lock.h
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch s390x
|
2010-01-03 12:31:34 +01:00
|
|
|
# s390x is different ...
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir %{buildroot}/lib
|
|
|
|
ln -sf ../%{_lib}/ld-%{version}.so %{buildroot}/lib/ld64.so.1
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Miscelanna:
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
install -m 0700 glibc_post_upgrade %{buildroot}%{_sbindir}
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
install -m 644 $RPM_SOURCE_DIR/bindresvport.blacklist %{buildroot}/etc
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/nsswitch.conf %{buildroot}/etc
|
|
|
|
install -m 644 posix/gai.conf %{buildroot}/etc
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}/etc/default
|
|
|
|
install -m 644 nis/nss %{buildroot}/etc/default/
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}%{_includedir}/resolv
|
|
|
|
install -m 0644 resolv/mapv4v6addr.h %{buildroot}%{_includedir}/resolv/
|
|
|
|
install -m 0644 resolv/mapv4v6hostent.h %{buildroot}%{_includedir}/resolv/
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_html}
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/doc/glibc
|
|
|
|
cp -p manual/libc/*.html %{buildroot}%{_datadir}/doc/glibc
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
cd manpages; make install_root=%{buildroot} install; cd ..
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-07-21 11:06:03 +02:00
|
|
|
# crypt_blowfish man pages
|
|
|
|
pushd crypt_blowfish-%{crypt_bf_version}
|
|
|
|
install -m755 -d %{buildroot}%{_mandir}/man3
|
|
|
|
install -m644 *.3 %{buildroot}%{_mandir}/man3
|
|
|
|
popd
|
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# nscd tools:
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-06-27 14:05:13 +02:00
|
|
|
cp nscd/nscd.conf %{buildroot}/etc
|
|
|
|
mkdir -p %{buildroot}/etc/init.d
|
|
|
|
install -m 755 $RPM_SOURCE_DIR/nscd.init %{buildroot}/etc/init.d/nscd
|
|
|
|
ln -sf /etc/init.d/nscd %{buildroot}/usr/sbin/rcnscd
|
|
|
|
mkdir -p %{buildroot}/var/run/nscd
|
|
|
|
touch %{buildroot}/var/run/nscd/{passwd,group,hosts}
|
|
|
|
touch %{buildroot}/var/run/nscd/{socket,nscd.pid}
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
#
|
|
|
|
# Create ld.so.conf
|
|
|
|
#
|
2011-06-27 14:05:13 +02:00
|
|
|
cat > %{buildroot}/etc/ld.so.conf <<EOF
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch s390x sparc64 x86_64 ppc64 ppc
|
2011-07-04 15:26:19 +02:00
|
|
|
/usr/local/lib64
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2011-06-17 13:07:37 +02:00
|
|
|
/usr/local/lib
|
2009-02-20 08:46:43 +01:00
|
|
|
include /etc/ld.so.conf.d/*.conf
|
2011-07-04 15:26:19 +02:00
|
|
|
# /lib64, /lib, /usr/lib64 and /usr/lib gets added
|
|
|
|
# automatically by ldconfig after parsing this file.
|
|
|
|
# So, they do not need to be listed.
|
2009-02-20 08:46:43 +01:00
|
|
|
EOF
|
|
|
|
# Add ldconfig cache directory for directory ownership
|
2011-06-27 14:05:13 +02:00
|
|
|
mkdir -p %{buildroot}/var/cache/ldconfig
|
2010-01-03 12:31:34 +01:00
|
|
|
# Empty the ld.so.cache:
|
2011-06-27 14:05:13 +02:00
|
|
|
rm -f %{buildroot}/etc/ld.so.cache
|
|
|
|
touch %{buildroot}/etc/ld.so.cache
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# libNoVersion belongs only to glibc-obsolete:
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch %ix86
|
2011-06-27 14:05:13 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/libNoVersion*
|
|
|
|
mkdir -p %{buildroot}/%{_lib}/obsolete/noversion
|
|
|
|
mv -v %{buildroot}/%{_lib}/libNoVersion* %{buildroot}/%{_lib}/obsolete/noversion/
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Don't look at ldd! We don't wish a /bin/sh requires
|
2011-06-27 14:05:13 +02:00
|
|
|
chmod 644 %{buildroot}%{_bindir}/ldd
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Remove timezone data, now coming in standalone package:
|
2009-02-20 08:46:43 +01:00
|
|
|
for i in sbin/sln usr/bin/tzselect usr/sbin/zic usr/sbin/zdump etc/localtime; do
|
2011-06-27 14:05:13 +02:00
|
|
|
rm -f %{buildroot}/$i
|
2009-02-20 08:46:43 +01:00
|
|
|
done
|
2011-06-27 14:05:13 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/zoneinfo
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
# Remove the buildflags tracking section and the build-id
|
2011-06-27 14:05:13 +02:00
|
|
|
for o in %{buildroot}/%{_libdir}/crt[1in].o %{buildroot}/%{_libdir}/lib*_nonshared.a; do
|
2010-01-03 12:31:34 +01:00
|
|
|
objcopy -R ".comment.SUSE.OPTs" -R ".note.gnu.build-id" $o
|
2009-02-20 08:46:43 +01:00
|
|
|
done
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2011-07-07 10:29:39 +02:00
|
|
|
mkdir -p %{buildroot}/usr/lib/tmpfiles.d/
|
|
|
|
install -m 644 %{SOURCE20} %{buildroot}/usr/lib/tmpfiles.d/
|
|
|
|
mkdir -p %{buildroot}/lib/systemd/system
|
|
|
|
install -m 644 %{SOURCE21} %{buildroot}/lib/systemd/system
|
|
|
|
install -m 644 %{SOURCE22} %{buildroot}/lib/systemd/system
|
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%ifarch armv7l
|
|
|
|
# Provide compatibility link
|
2012-04-17 14:34:50 +02:00
|
|
|
# XXX ln -s ld-%{version}.so %{buildroot}/lib/ld-linux.so.3
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
#######################################################################
|
|
|
|
###
|
|
|
|
### ...
|
|
|
|
###
|
|
|
|
#######################################################################
|
2009-02-20 08:46:43 +01:00
|
|
|
|
2011-06-15 14:55:16 +02:00
|
|
|
# Note: glibc_post_upgrade does:
|
2011-06-27 14:05:13 +02:00
|
|
|
# %%set_permissions %%{_libdir}/pt_chown
|
2011-06-15 14:55:16 +02:00
|
|
|
# since we cannot do it in our own post section
|
2011-06-16 15:36:45 +02:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%post -p %{_sbindir}/glibc_post_upgrade
|
|
|
|
|
2012-01-16 16:06:45 +01:00
|
|
|
# Enabling the following lines will generate a
|
|
|
|
# requires on /bin/sh but glibc should not require any other binary
|
|
|
|
# packages. Therefore we do the change with the build-in lua:
|
|
|
|
# %verifyscript
|
|
|
|
# %verify_permissions -e %{_libdir}/pt_chown
|
|
|
|
|
|
|
|
%verifyscript -p <lua>
|
|
|
|
os.execute("/usr/bin/chkstat -n --warn --system -e %{_libdir}/pt_chown")
|
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
%post locale
|
|
|
|
for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
|
|
|
|
[ -d "$l.d" ] || continue
|
|
|
|
echo "###X# The following is autogenerated from extra files in the .d directory:" >>"$l"
|
|
|
|
cat "$l.d"/* >>"$l"
|
|
|
|
done
|
2011-02-04 05:30:37 +01:00
|
|
|
/usr/sbin/iconvconfig
|
2010-01-03 12:31:34 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%post info
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libc.info.gz
|
|
|
|
|
|
|
|
%postun info
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
|
|
|
|
|
|
|
|
%preun -n nscd
|
|
|
|
%stop_on_removal nscd
|
|
|
|
|
|
|
|
%post -n nscd
|
|
|
|
%{insserv_force_if_yast nscd}
|
2011-06-15 14:55:16 +02:00
|
|
|
mkdir -p /var/run/nscd
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%postun -n nscd
|
|
|
|
%restart_on_update nscd
|
|
|
|
%insserv_cleanup
|
|
|
|
exit 0
|
2010-03-18 14:37:59 +01:00
|
|
|
|
2010-01-03 12:31:34 +01:00
|
|
|
#######################################################################
|
|
|
|
###
|
|
|
|
### FILES
|
|
|
|
###
|
|
|
|
#######################################################################
|
2009-02-20 08:46:43 +01:00
|
|
|
|
2010-03-18 14:37:59 +01:00
|
|
|
# glibc
|
2011-02-04 02:37:38 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSES
|
|
|
|
%config(noreplace) /etc/bindresvport.blacklist
|
|
|
|
%config /etc/ld.so.conf
|
|
|
|
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
|
|
|
|
%config(noreplace) /etc/rpc
|
|
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
|
|
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/gai.conf
|
|
|
|
%config(noreplace) /etc/default/nss
|
|
|
|
%doc %{_mandir}/man1/getconf.1.gz
|
|
|
|
%doc %{_mandir}/man1/getent.1.gz
|
|
|
|
%doc %{_mandir}/man1/localedef.1.gz
|
|
|
|
%doc %{_mandir}/man5/*
|
|
|
|
/%{_lib}/ld-%{version}.so
|
2012-04-16 22:11:08 +02:00
|
|
|
|
|
|
|
# Each architecture has a different name for the dynamic linker:
|
|
|
|
%ifarch %arm
|
|
|
|
%ifarch armv7l
|
2012-04-17 14:34:50 +02:00
|
|
|
#XXX /%{_lib}/ld-linux-armhf.so.3
|
2012-04-16 22:11:08 +02:00
|
|
|
# Keep compatibility link
|
|
|
|
/%{_lib}/ld-linux.so.3
|
2009-05-27 12:39:38 +02:00
|
|
|
%else
|
2012-04-16 22:11:08 +02:00
|
|
|
/%{_lib}/ld-linux.so.2
|
2009-05-27 12:39:38 +02:00
|
|
|
%endif
|
2012-04-17 14:34:50 +02:00
|
|
|
%endif
|
2012-04-16 22:11:08 +02:00
|
|
|
%ifarch ia64
|
|
|
|
/%{_lib}/ld-linux-ia64.so.2
|
|
|
|
%endif
|
|
|
|
%ifarch ppc s390 mips hppa
|
|
|
|
/%{_lib}/ld.so.1
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64
|
|
|
|
/%{_lib}/ld64.so.1
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
/lib/ld64.so.1
|
|
|
|
/%{_lib}/ld64.so.1
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
/%{_lib}/ld-linux-x86-64.so.2
|
|
|
|
%endif
|
|
|
|
%ifarch %ix86
|
|
|
|
/%{_lib}/ld-linux.so.2
|
|
|
|
%endif
|
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
/%{_lib}/libBrokenLocale-%{version}.so
|
|
|
|
/%{_lib}/libBrokenLocale.so.1
|
|
|
|
/%{_lib}/libSegFault.so
|
|
|
|
/%{_lib}/libanl-%{version}.so
|
|
|
|
/%{_lib}/libanl.so.1
|
|
|
|
/%{_lib}/libc-%{version}.so
|
|
|
|
/%{_lib}/libc.so.6*
|
|
|
|
/%{_lib}/libcidn-%{version}.so
|
|
|
|
/%{_lib}/libcidn.so.1
|
|
|
|
/%{_lib}/libcrypt-%{version}.so
|
|
|
|
/%{_lib}/libcrypt.so.1
|
|
|
|
/%{_lib}/libdl-%{version}.so
|
|
|
|
/%{_lib}/libdl.so.2*
|
|
|
|
/%{_lib}/libm-%{version}.so
|
|
|
|
/%{_lib}/libm.so.6*
|
|
|
|
/%{_lib}/libnsl-%{version}.so
|
|
|
|
/%{_lib}/libnsl.so.1
|
|
|
|
/%{_lib}/libnss_compat-%{version}.so
|
|
|
|
/%{_lib}/libnss_compat.so.2
|
2011-12-27 09:19:44 +01:00
|
|
|
/%{_lib}/libnss_db-%{version}.so
|
|
|
|
/%{_lib}/libnss_db.so.2
|
2009-02-20 08:46:43 +01:00
|
|
|
/%{_lib}/libnss_dns-%{version}.so
|
|
|
|
/%{_lib}/libnss_dns.so.2
|
|
|
|
/%{_lib}/libnss_files-%{version}.so
|
|
|
|
/%{_lib}/libnss_files.so.2
|
|
|
|
/%{_lib}/libnss_hesiod-%{version}.so
|
|
|
|
/%{_lib}/libnss_hesiod.so.2
|
|
|
|
/%{_lib}/libnss_nis-%{version}.so
|
|
|
|
/%{_lib}/libnss_nis.so.2
|
|
|
|
/%{_lib}/libnss_nisplus-%{version}.so
|
|
|
|
/%{_lib}/libnss_nisplus.so.2
|
|
|
|
/%{_lib}/libpthread-%{version}.so
|
|
|
|
/%{_lib}/libpthread.so.0
|
|
|
|
/%{_lib}/libresolv-%{version}.so
|
|
|
|
/%{_lib}/libresolv.so.2
|
|
|
|
/%{_lib}/librt-%{version}.so
|
|
|
|
/%{_lib}/librt.so.1
|
|
|
|
/%{_lib}/libthread_db-1.0.so
|
|
|
|
/%{_lib}/libthread_db.so.1
|
|
|
|
/%{_lib}/libutil-%{version}.so
|
|
|
|
/%{_lib}/libutil.so.1
|
2012-01-04 08:26:35 +01:00
|
|
|
%define optimized_libs() \
|
|
|
|
%dir %attr(0755,root,root) /%{_lib}/%1\
|
|
|
|
/%{_lib}/%1/libc-%{version}.so\
|
|
|
|
/%{_lib}/%1/libc.so.6*\
|
|
|
|
/%{_lib}/%1/libm-%{version}.so\
|
|
|
|
/%{_lib}/%1/libm.so.6*\
|
|
|
|
/%{_lib}/%1/libpthread-%{version}.so\
|
|
|
|
/%{_lib}/%1/libpthread.so.0\
|
|
|
|
/%{_lib}/%1/librt-%{version}.so\
|
|
|
|
/%{_lib}/%1/librt.so.1\
|
|
|
|
/%{_lib}/%1/libthread_db-1.0.so\
|
|
|
|
/%{_lib}/%1/libthread_db.so.1
|
|
|
|
|
|
|
|
%ifarch i686
|
|
|
|
%dir %attr(0755,root,root) /%{_lib}/i686
|
|
|
|
%{optimized_libs i686/nosegneg}
|
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{optimize_power}
|
2010-04-26 13:34:14 +02:00
|
|
|
%if %{powerpc_optimize_cpu_power4}
|
|
|
|
%{optimized_libs power4}
|
|
|
|
%endif
|
2010-01-03 12:31:34 +01:00
|
|
|
%if %{powerpc_optimize_cpu_power6}
|
|
|
|
%{optimized_libs power6}
|
|
|
|
%{optimized_libs power6x}
|
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_power7}
|
|
|
|
%{optimized_libs power7}
|
|
|
|
%endif
|
|
|
|
%if %{powerpc_optimize_cpu_cell}
|
|
|
|
%{optimized_libs ppc-cell-be}
|
|
|
|
%endif
|
|
|
|
%endif # optimize_power
|
2009-02-20 08:46:43 +01:00
|
|
|
%dir %attr(0700,root,root) /var/cache/ldconfig
|
|
|
|
/sbin/ldconfig
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/gencat
|
|
|
|
%{_bindir}/getconf
|
|
|
|
%{_bindir}/getent
|
|
|
|
%{_bindir}/iconv
|
|
|
|
%attr(755,root,root) %{_bindir}/ldd
|
2009-02-20 08:46:43 +01:00
|
|
|
%ifarch %ix86 sparc sparcv9
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/lddlibc4
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/locale
|
|
|
|
%{_bindir}/localedef
|
|
|
|
%verify(not mode caps) %attr(4755,root,root) %{_libdir}/pt_chown
|
2009-02-20 08:46:43 +01:00
|
|
|
%dir %attr(0755,root,root) %{_libdir}/getconf
|
|
|
|
%{_libdir}/getconf/*
|
|
|
|
%{_sbindir}/glibc_post_upgrade
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_sbindir}/iconvconfig
|
2012-04-13 11:37:44 +02:00
|
|
|
#%dir /var/db
|
2009-02-20 08:46:43 +01:00
|
|
|
|
2011-05-27 17:33:06 +02:00
|
|
|
%ifarch %ix86
|
2011-06-16 15:36:45 +02:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%files obsolete
|
|
|
|
%defattr (755,root,root,755)
|
|
|
|
%dir /%{_lib}/obsolete/
|
2010-01-03 12:31:34 +01:00
|
|
|
%dir /%{_lib}/obsolete/noversion
|
|
|
|
/%{_lib}/obsolete/noversion/libNoVersion-%{version}.so
|
|
|
|
/%{_lib}/obsolete/noversion/libNoVersion.so.1
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files locale -f libc.lang
|
|
|
|
%defattr(-,root,root)
|
2011-06-27 14:05:13 +02:00
|
|
|
%{_datadir}/locale/locale.alias
|
2009-02-20 08:46:43 +01:00
|
|
|
%if %{build_locales}
|
2010-01-03 12:31:34 +01:00
|
|
|
/usr/lib/locale
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%{_libdir}/gconv
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-12-27 09:19:44 +01:00
|
|
|
%doc COPYING COPYING.LIB FAQ NEWS NOTES README BUGS CONFORMANCE
|
2009-02-20 08:46:43 +01:00
|
|
|
%doc %{_mandir}/man1/catchsegv.1.gz
|
|
|
|
%doc %{_mandir}/man1/rpcgen.1.gz
|
|
|
|
%doc %{_mandir}/man1/sprof.1.gz
|
|
|
|
%doc %{_mandir}/man3/*
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/catchsegv
|
|
|
|
%{_bindir}/rpcgen
|
|
|
|
%{_bindir}/sprof
|
2011-06-27 14:05:13 +02:00
|
|
|
%{_includedir}/*
|
2009-02-20 08:46:43 +01:00
|
|
|
%{_libdir}/*.o
|
|
|
|
%{_libdir}/*.so
|
2011-06-16 15:36:45 +02:00
|
|
|
# These static libraries are needed even for shared builds
|
2009-02-20 08:46:43 +01:00
|
|
|
%{_libdir}/libbsd-compat.a
|
|
|
|
%{_libdir}/libc_nonshared.a
|
|
|
|
%{_libdir}/libg.a
|
|
|
|
%{_libdir}/libieee.a
|
2010-01-03 12:31:34 +01:00
|
|
|
%ifarch ppc ppc64 s390 s390x sparc sparcv8 sparcv9 sparcv9v
|
|
|
|
# This is not built on sparc64.
|
|
|
|
%{_libdir}/libnldbl_nonshared.a
|
2009-02-20 08:46:43 +01:00
|
|
|
%endif
|
|
|
|
%{_libdir}/libmcheck.a
|
2011-06-16 15:36:45 +02:00
|
|
|
%{_libdir}/libpthread_nonshared.a
|
|
|
|
%{_libdir}/librpcsvc.a
|
|
|
|
|
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libBrokenLocale.a
|
|
|
|
%{_libdir}/libanl.a
|
|
|
|
%{_libdir}/libc.a
|
|
|
|
%{_libdir}/libcrypt.a
|
|
|
|
%{_libdir}/libdl.a
|
|
|
|
%{_libdir}/libm.a
|
2009-02-20 08:46:43 +01:00
|
|
|
%{_libdir}/libnsl.a
|
|
|
|
%{_libdir}/libpthread.a
|
|
|
|
%{_libdir}/libresolv.a
|
|
|
|
%{_libdir}/librt.a
|
|
|
|
%{_libdir}/libutil.a
|
|
|
|
|
|
|
|
%files info
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_infodir}/libc.info.gz
|
|
|
|
%doc %{_infodir}/libc.info-?.gz
|
|
|
|
%doc %{_infodir}/libc.info-??.gz
|
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_html}
|
2009-02-20 08:46:43 +01:00
|
|
|
%files html
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_prefix}/share/doc/glibc
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
|
|
|
|
%files i18ndata
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/share/i18n
|
|
|
|
|
|
|
|
%files -n nscd
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) /etc/nscd.conf
|
|
|
|
%config /etc/init.d/nscd
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_sbindir}/nscd
|
|
|
|
%{_sbindir}/rcnscd
|
2011-07-07 10:29:39 +02:00
|
|
|
/lib/systemd/system/nscd.service
|
|
|
|
/lib/systemd/system/nscd.socket
|
|
|
|
%dir /usr/lib/tmpfiles.d
|
|
|
|
/usr/lib/tmpfiles.d/nscd.conf
|
2010-05-04 08:54:49 +02:00
|
|
|
%dir %attr(0755,root,root) %ghost /var/run/nscd
|
2009-02-20 08:46:43 +01:00
|
|
|
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/nscd.pid
|
|
|
|
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/socket
|
|
|
|
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/passwd
|
|
|
|
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/group
|
|
|
|
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/hosts
|
|
|
|
|
2012-04-16 22:11:08 +02:00
|
|
|
%if %{build_profile}
|
2009-02-20 08:46:43 +01:00
|
|
|
%files profile
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libc_p.a
|
|
|
|
%{_libdir}/libBrokenLocale_p.a
|
|
|
|
%{_libdir}/libanl_p.a
|
|
|
|
%{_libdir}/libm_p.a
|
|
|
|
%{_libdir}/libcrypt_p.a
|
|
|
|
%{_libdir}/libpthread_p.a
|
|
|
|
%{_libdir}/libresolv_p.a
|
|
|
|
%{_libdir}/libnsl_p.a
|
|
|
|
%{_libdir}/librt_p.a
|
|
|
|
%{_libdir}/librpcsvc_p.a
|
|
|
|
%{_libdir}/libutil_p.a
|
|
|
|
%{_libdir}/libdl_p.a
|
2012-04-16 22:11:08 +02:00
|
|
|
%endif
|
2009-02-20 08:46:43 +01:00
|
|
|
|
2011-06-15 09:27:54 +02:00
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/%{_lib}/libmemusage.so
|
|
|
|
/%{_lib}/libpcprofile.so
|
2011-08-17 21:42:24 +02:00
|
|
|
%dir /%{_libdir}/audit
|
|
|
|
/%{_libdir}/audit/sotruss-lib.so
|
2011-06-17 09:34:54 +02:00
|
|
|
# These need gd-devel for building
|
2011-06-27 14:05:13 +02:00
|
|
|
# %%{_bindir}/memusage
|
|
|
|
# %%{_bindir}/memusagestat
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/mtrace
|
|
|
|
%{_bindir}/pcprofiledump
|
2011-08-17 21:42:24 +02:00
|
|
|
%{_bindir}/sotruss
|
2011-06-15 14:55:16 +02:00
|
|
|
%{_bindir}/xtrace
|
2011-12-27 09:19:44 +01:00
|
|
|
%{_bindir}/pldd
|
2011-06-15 09:27:54 +02:00
|
|
|
|
2012-01-16 16:06:45 +01:00
|
|
|
%files extra
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/makedb
|
2012-04-13 11:37:44 +02:00
|
|
|
/var/lib/misc/Makefile
|
2012-01-16 16:06:45 +01:00
|
|
|
|
2009-02-20 08:46:43 +01:00
|
|
|
%changelog
|