Skip to content

Latest commit

 

History

History
566 lines (467 loc) · 18.1 KB

glibc.spec

File metadata and controls

566 lines (467 loc) · 18.1 KB
 
Mar 27, 2019
Mar 27, 2019
1
2
%define glibcsrcdir glibc-2.25
Oct 4, 2011
Oct 4, 2011
3
Name: glibc
Mar 24, 2012
Mar 24, 2012
4
Dec 4, 2018
Dec 4, 2018
5
Summary: GNU C library shared libraries
Mar 27, 2019
Mar 27, 2019
6
Version: 2.25+git5
Feb 18, 2019
Feb 18, 2019
7
Release: 0
Oct 4, 2011
Oct 4, 2011
8
9
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Group: System/Libraries
Dec 4, 2018
Dec 4, 2018
10
11
URL: http://www.gnu.org/software/libc/
Source0: glibc-2.25.tar.xz
May 27, 2012
May 27, 2012
12
Source11: build-locale-archive.c
Mar 31, 2014
Mar 31, 2014
13
Mar 24, 2012
Mar 24, 2012
14
Patch1: glibc-arm-alignment-fix.patch
Dec 4, 2018
Dec 4, 2018
15
16
17
18
19
20
21
Patch2: glibc-2.25-arm-runfast.patch
Patch3: glibc-2.25-no-timestamping.patch
Patch4: glibc-2.25-elf-rtld.diff
Patch5: glibc-2.25-ldso-rpath-prefix-option.diff
Patch6: glibc-2.25-nsswitchconf-location.diff
Patch7: glibc-2.25-nscd-socket-location.diff
Patch8: glibc-2.25-ldso-nodefaultdirs-option.diff
Mar 31, 2014
Mar 31, 2014
22
Patch9: glibc-2.14-locarchive-fedora.patch
Dec 4, 2018
Dec 4, 2018
23
24
25
Patch10: eglibc-2.15-fix-neon-libdl.patch
Patch11: eglibc-2.19-shlib-make.patch
Patch12: glibc-2.25-bits.patch
Mar 15, 2019
Mar 15, 2019
26
Patch13: ubuntu-2.25.6-git-updates.diff
Feb 7, 2012
Feb 7, 2012
27
Oct 4, 2011
Oct 4, 2011
28
29
30
31
Provides: ldconfig
# The dynamic linker supports DT_GNU_HASH
Provides: rtld(GNU_HASH)
Requires: glibc-common = %{version}-%{release}
Sep 12, 2012
Sep 12, 2012
32
33
34
35
36
37
38
# This is a short term need until everything is rebuilt in armhf
%ifarch armv7hl armv7nhl armv7tnhl
Provides: ld-linux.so.3
Provides: ld-linux.so.3(GLIBC_2.4)
%endif
Dec 4, 2018
Dec 4, 2018
39
BuildRequires: xz tar
Oct 4, 2011
Oct 4, 2011
40
41
42
# Require libgcc in case some program calls pthread_cancel in its %%post
Requires(pre): libgcc
BuildRequires: zlib-devel texinfo
Apr 16, 2012
Apr 16, 2012
43
BuildRequires: sed >= 3.95, libcap-devel, gettext
Mar 24, 2012
Mar 24, 2012
44
45
BuildRequires: gawk, util-linux, quilt
# This gcc >= 3.2 is to ensure that __frame_state_for is exported by glibc
Oct 4, 2011
Oct 4, 2011
46
47
# will be compatible with egcs 1.x.y
BuildRequires: gcc >= 3.2
Mar 24, 2012
Mar 24, 2012
48
%define enablekernel 2.6.32
Oct 4, 2011
Oct 4, 2011
49
%ifarch %{ix86}
Oct 15, 2011
Oct 15, 2011
50
51
52
%ifarch i486
%define _target_cpu i486
%else
Oct 4, 2011
Oct 4, 2011
53
54
%define _target_cpu i686
%endif
Oct 15, 2011
Oct 15, 2011
55
%endif
Oct 4, 2011
Oct 4, 2011
56
57
58
%ifarch i386
%define nptl_target_cpu i486
%else
Dec 14, 2014
Dec 14, 2014
59
60
61
%ifarch i486
%define nptl_target_cpu i686
%else
Oct 4, 2011
Oct 4, 2011
62
63
%define nptl_target_cpu %{_target_cpu}
%endif
Dec 14, 2014
Dec 14, 2014
64
%endif
Feb 18, 2019
Feb 18, 2019
65
%define target %{nptl_target_cpu}-meego-linux-gnu
Oct 4, 2011
Oct 4, 2011
66
67
68
69
70
71
72
73
74
75
# Need AS_NEEDED directive
# Need --hash-style=* support
BuildRequires: binutils >= 2.19.51.0.10
BuildRequires: gcc >= 3.2.1-5
BuildRequires: elfutils >= 0.72
BuildRequires: rpm >= 4.2-0.56
%define __find_provides %{_builddir}/%{glibcsrcdir}/find_provides.sh
%define _filter_GLIBC_PRIVATE 1
Dec 4, 2018
Dec 4, 2018
76
%define run_glibc_tests 0
Oct 4, 2011
Oct 4, 2011
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%description
The glibc package contains standard libraries which are used by
multiple programs on the system. In order to save disk space and
memory, as well as to make upgrading easier, common system code is
kept in one place and shared between programs. This particular package
contains the most important sets of shared libraries: the standard C
library and the standard math library. Without these two libraries, a
Linux system will not function.
%package devel
Summary: Object files for development using standard C libraries
Group: Development/Libraries
Requires(pre): /sbin/install-info
Requires(pre): %{name}-headers
Requires: %{name}-headers = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
%description devel
The glibc-devel package contains the object files necessary
for developing programs which use the standard C libraries (which are
used by nearly all programs). If you are developing programs which
will use the standard C libraries, your system needs to have these
standard object files available in order to create the
executables.
Install glibc-devel if you are going to develop programs which will
use the standard C libraries.
%package static
Summary: C library static libraries for -static linking
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
The glibc-static package contains the C library static libraries
for -static linking. You don't need these, unless you link statically,
which is highly discouraged.
%package headers
Summary: Header files for development using standard C libraries
Group: Development/Libraries
Provides: %{name}-headers(%{_target_cpu})
%ifarch x86_64
# If both -m32 and -m64 is to be supported on AMD64, x86_64 glibc-headers
# have to be installed, not i586 ones.
Obsoletes: %{name}-headers(i586)
Obsoletes: %{name}-headers(i686)
%endif
Requires(pre): kernel-headers
Requires: kernel-headers >= 2.2.1, %{name} = %{version}-%{release}
BuildRequires: kernel-headers >= 2.6.22
%description headers
The glibc-headers package contains the header files necessary
for developing programs which use the standard C libraries (which are
used by nearly all programs). If you are developing programs which
will use the standard C libraries, your system needs to have these
standard header files available in order to create the
executables.
Install glibc-headers if you are going to develop programs which will
use the standard C libraries.
%package common
Summary: Common binaries and locale data for glibc
Requires: %{name} = %{version}-%{release}
Requires: tzdata >= 2003a
Group: System/Base
%description common
The glibc-common package includes common binaries for the GNU libc
libraries, as well as national language (locale) support.
%package -n nscd
Summary: A Name Service Caching Daemon (nscd)
Group: System/Daemons
Requires(pre): /usr/sbin/useradd, /usr/sbin/userdel, sh-utils
%description -n nscd
Nscd caches name service lookups and can dramatically improve
performance with NIS+, and may help with DNS as well.
%package utils
Summary: Development utilities from GNU C library
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description utils
The glibc-utils package contains memusage, a memory usage profiler,
mtrace, a memory leak tracer and xtrace, a function call tracer
which can be helpful during program debugging.
If unsure if you need this, don't install this package.
Feb 18, 2019
Feb 18, 2019
172
173
174
175
176
177
178
179
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
%{summary}.
Dec 4, 2018
Dec 4, 2018
180
%prep
Mar 27, 2019
Mar 27, 2019
181
%setup -q -n %{glibcsrcdir}
Dec 4, 2018
Dec 4, 2018
182
xz -dc %SOURCE0 | tar -x
Aug 28, 2016
Aug 28, 2016
183
Mar 27, 2019
Mar 27, 2019
184
cd %{glibcsrcdir}
Dec 4, 2018
Dec 4, 2018
185
%patch1 -p2
Feb 7, 2012
Feb 7, 2012
186
%ifarch %{arm}
Oct 4, 2011
Oct 4, 2011
187
188
%patch2 -p1
%endif
Mar 24, 2012
Mar 24, 2012
189
%patch3 -p1
Oct 4, 2011
Oct 4, 2011
190
191
192
193
194
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
Mar 31, 2014
Mar 31, 2014
195
%patch9 -p1
Mar 18, 2013
Mar 18, 2013
196
%if 0%{?qemu_user_space_build}
Mar 31, 2014
Mar 31, 2014
197
%patch10 -p1
Mar 18, 2013
Mar 18, 2013
198
%endif
Dec 4, 2018
Dec 4, 2018
199
%patch11 -p1
Mar 31, 2014
Mar 31, 2014
200
201
%patch12 -p1
%patch13 -p1
Mar 24, 2012
Mar 24, 2012
202
Oct 4, 2011
Oct 4, 2011
203
204
205
%build
GCC=gcc
GXX=g++
Dec 4, 2018
Dec 4, 2018
206
BuildFlags="-g"
Oct 4, 2011
Oct 4, 2011
207
%ifarch %{ix86}
Dec 13, 2014
Dec 13, 2014
208
%ifnarch i486
Dec 4, 2018
Dec 4, 2018
209
BuildFlags="$BuildFlags -march=core2 -mtune=atom"
Oct 4, 2011
Oct 4, 2011
210
%endif
Oct 15, 2011
Oct 15, 2011
211
%endif
Oct 4, 2011
Oct 4, 2011
212
213
214
215
216
217
218
219
%ifnarch %{arm}
BuildFlags="$BuildFlags -fasynchronous-unwind-tables"
%endif
EnableKernel="--enable-kernel=%{enablekernel}"
echo "$GCC" > Gcc
Dec 4, 2018
Dec 4, 2018
220
221
builddir=build-%{name}-%{version}
rm -rf build-%{name}-*
Oct 4, 2011
Oct 4, 2011
222
mkdir $builddir ; cd $builddir
Dec 4, 2018
Dec 4, 2018
223
Feb 5, 2013
Feb 5, 2013
224
225
226
echo libdir=/usr/lib > configparms
echo slibdir=/lib >> configparms
echo BUILD_CC=gcc >> configparms
Dec 4, 2018
Dec 4, 2018
227
Mar 8, 2014
Mar 8, 2014
228
%ifarch mipsel
Dec 4, 2018
Dec 4, 2018
229
build_CFLAGS="$BuildFlags -O1"
Mar 8, 2014
Mar 8, 2014
230
%else
Dec 4, 2018
Dec 4, 2018
231
build_CFLAGS="$BuildFlags -O3"
Mar 8, 2014
Mar 8, 2014
232
%endif
Dec 4, 2018
Dec 4, 2018
233
Jan 1, 2014
Jan 1, 2014
234
export MAKEINFO=:
Dec 4, 2018
Dec 4, 2018
235
Mar 27, 2019
Mar 27, 2019
236
../%{glibcsrcdir}/configure CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" \
Oct 4, 2011
Oct 4, 2011
237
--prefix=%{_prefix} \
Feb 18, 2019
Feb 18, 2019
238
239
"--enable-add-ons=libidn" --without-cvs $EnableKernel \
--enable-bind-now --with-tls \
Jan 1, 2014
Jan 1, 2014
240
--with-headers=%{_prefix}/include \
Oct 4, 2011
Oct 4, 2011
241
242
243
%ifarch %{multiarcharches}
--enable-multi-arch \
%endif
Feb 18, 2019
Feb 18, 2019
244
245
246
--disable-profile --enable-obsolete-rpc \
--enable-stack-protector=strong \
--build=%{target}
Jan 1, 2014
Jan 1, 2014
247
Dec 4, 2018
Dec 4, 2018
248
make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS"
Oct 4, 2011
Oct 4, 2011
249
250
251
cd ..
May 27, 2012
May 27, 2012
252
$GCC -Os -static -o build-locale-archive %SOURCE11 \
Dec 4, 2018
Dec 4, 2018
253
254
./build-%{name}-%{version}/locale/locarchive.o \
./build-%{name}-%{version}/locale/md5.o \
May 27, 2012
May 27, 2012
255
-DDATADIR=\"%{_datadir}\" -DPREFIX=\"%{_prefix}\" \
Mar 27, 2019
Mar 27, 2019
256
-L./build-%{name}-%{version} -I%{glibcsrcdir}
May 27, 2012
May 27, 2012
257
Oct 4, 2011
Oct 4, 2011
258
%install
Dec 4, 2018
Dec 4, 2018
259
260
261
rm -rf ${RPM_BUILD_ROOT}
cd build-%{name}-%{version}
make -j1 install_root=${RPM_BUILD_ROOT} install
Oct 4, 2011
Oct 4, 2011
262
Mar 27, 2019
Mar 27, 2019
263
install -p -m 644 ../%{glibcsrcdir}/nss/nsswitch.conf $RPM_BUILD_ROOT/etc/nsswitch.conf
Oct 4, 2011
Oct 4, 2011
264
265
mkdir -p $RPM_BUILD_ROOT/etc/default
Mar 27, 2019
Mar 27, 2019
266
install -p -m 644 ../%{glibcsrcdir}/nis/nss $RPM_BUILD_ROOT/etc/default/nss
Oct 4, 2011
Oct 4, 2011
267
Mar 27, 2019
Mar 27, 2019
268
install -m 644 ../%{glibcsrcdir}/nscd/nscd.conf $RPM_BUILD_ROOT/etc
Oct 4, 2011
Oct 4, 2011
269
270
# Include ld.so.conf
Apr 24, 2013
Apr 24, 2013
271
echo 'include /etc/ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT/etc/ld.so.conf
Oct 4, 2011
Oct 4, 2011
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
> $RPM_BUILD_ROOT/etc/ld.so.cache
chmod 644 $RPM_BUILD_ROOT/etc/ld.so.conf
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
> $RPM_BUILD_ROOT/etc/sysconfig/nscd
# Include %{_prefix}/%{_lib}/gconv/gconv-modules.cache
> $RPM_BUILD_ROOT%{_prefix}/%{_lib}/gconv/gconv-modules.cache
chmod 644 $RPM_BUILD_ROOT%{_prefix}/%{_lib}/gconv/gconv-modules.cache
strip -g $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.o
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}
cp -a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.a \
$RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/%{_lib}/*_p.a
# Now strip debugging info from static libraries
pushd $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
for i in *.a; do
if [ -f $i ]; then
case "$i" in
*_p.a) ;;
*) strip -g -R .comment $i ;;
esac
fi
done
popd
Dec 21, 2014
Dec 21, 2014
300
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/locale/
Oct 4, 2011
Oct 4, 2011
301
Sep 12, 2012
Sep 12, 2012
302
303
304
305
%ifarch armv7hl armv7tnhl armv7nhl
ln -s /lib/ld-linux-armhf.so.3 ${RPM_BUILD_ROOT}/lib/ld-linux.so.3
%endif
Oct 4, 2011
Oct 4, 2011
306
307
308
309
310
311
312
313
314
315
316
317
318
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libnss1-*
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libnss-*.so.1
# Ugly hack for buggy rpm
ln -f ${RPM_BUILD_ROOT}%{_sbindir}/iconvconfig{,.%{_target_cpu}}
rm -f $RPM_BUILD_ROOT/etc/gai.conf
# In F7+ this is provided by rpcbind rpm
rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo
# BUILD THE FILE LIST
{
Feb 18, 2019
Feb 18, 2019
319
320
321
322
find $RPM_BUILD_ROOT \( -type f -o -type l \) '!' -path "*/lib/debug/*" \
| sed -e "s|^${RPM_BUILD_ROOT}||" -e '\|/etc/|s|^|%%config |' \
-e '\|/gconv-modules$|s|^|%%verify(not md5 size mtime) %%config(noreplace) |' \
-e '\|/gconv-modules\.cache$|s|^|%%verify(not md5 size mtime) |'
Oct 4, 2011
Oct 4, 2011
323
find $RPM_BUILD_ROOT -type d \
Feb 18, 2019
Feb 18, 2019
324
325
326
327
328
329
330
\( -path '*%{_datadir}/locale' -prune -o \
\( -path '*%{_datadir}/*' \
! -path '*%{_infodir}' -o \
-path "*%{_includedir}/*" \) \
\) \
| grep -v '%{_datadir}/locale' \
| sed "s|^$RPM_BUILD_ROOT|%%dir |"
Oct 4, 2011
Oct 4, 2011
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
} | {
# primary filelist
SHARE_LANG='s|.*/share/locale/\([^/_]\+\).*/LC_MESSAGES/.*\.mo|%lang(\1) &|'
LIB_LANG='s|.*/lib/locale/\([^/_]\+\)|%lang(\1) &|'
# rpm does not handle %lang() tagged files hardlinked together accross
# languages very well, temporarily disable
LIB_LANG=''
sed -e "$LIB_LANG" -e "$SHARE_LANG" \
-e '\,/etc/\(localtime\|nsswitch.conf\|ld\.so\.conf\|ld\.so\.cache\|default\),d' \
-e '\,/%{_lib}/lib\(pcprofile\|memusage\)\.so,d' \
-e '\,bin/\(memusage\|mtrace\|xtrace\|pcprofiledump\),d'
} | sort > rpm.filelist
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_lib}
mv -f $RPM_BUILD_ROOT/%{_lib}/lib{pcprofile,memusage}.so $RPM_BUILD_ROOT%{_prefix}/%{_lib}
grep '%{_prefix}/include/gnu/stubs-[32164]\+\.h' < rpm.filelist >> devel.filelist || :
grep '%{_prefix}/include' < rpm.filelist |
egrep -v '%{_prefix}/include/(linuxthreads|gnu/stubs-[32164]+\.h)' \
> headers.filelist
sed -i -e '\|%{_prefix}/%{_lib}/lib.*_p.a|d' \
-e '\|%{_prefix}/include|d' \
-e '\|%{_infodir}|d' rpm.filelist
grep '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist \
| grep '/lib\(\(c\|pthread\|nldbl\)_nonshared\|bsd\(\|-compat\)\|g\|ieee\|mcheck\|rpcsvc\)\.a$' \
>> devel.filelist
grep '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist \
| grep -v '/lib\(\(c\|pthread\|nldbl\)_nonshared\|bsd\(\|-compat\)\|g\|ieee\|mcheck\|rpcsvc\)\.a$' \
> static.filelist
grep '%{_prefix}/%{_lib}/.*\.o' < rpm.filelist >> devel.filelist
grep '%{_prefix}/%{_lib}/lib.*\.so' < rpm.filelist >> devel.filelist
sed -i -e '\|%{_prefix}/%{_lib}/lib.*\.a|d' \
-e '\|%{_prefix}/%{_lib}/.*\.o|d' \
-e '\|%{_prefix}/%{_lib}/lib.*\.so|d' \
-e '\|%{_prefix}/%{_lib}/linuxthreads|d' \
-e '\|nscd|d' rpm.filelist
grep '%{_prefix}/bin' < rpm.filelist >> common.filelist
#grep '%{_prefix}/lib/locale' < rpm.filelist | grep -v /locale-archive.tmpl >> common.filelist
#grep '%{_prefix}/libexec/pt_chown' < rpm.filelist >> common.filelist
grep '%{_prefix}/sbin/[^gi]' < rpm.filelist >> common.filelist
grep '%{_prefix}/share' < rpm.filelist | \
grep -v '%{_prefix}/share/zoneinfo' >> common.filelist
sed -i -e '\|%{_prefix}/bin|d' \
-e '\|%{_prefix}/lib/locale|d' \
-e '\|%{_prefix}/sbin/[^gi]|d' \
-e '\|%{_prefix}/share|d' rpm.filelist
> nosegneg.filelist
May 27, 2012
May 27, 2012
387
echo '%{_prefix}/sbin/build-locale-archive' >> common.filelist
Oct 4, 2011
Oct 4, 2011
388
389
390
391
392
393
394
395
396
397
398
399
400
401
echo '%{_prefix}/sbin/nscd' > nscd.filelist
cat > utils.filelist <<EOF
%{_prefix}/%{_lib}/libmemusage.so
%{_prefix}/%{_lib}/libpcprofile.so
#%{_prefix}/bin/memusage
#%{_prefix}/bin/memusagestat
%{_prefix}/bin/mtrace
%{_prefix}/bin/pcprofiledump
%{_prefix}/bin/xtrace
EOF
# /etc/localtime
rm -f $RPM_BUILD_ROOT/etc/localtime
Jan 1, 2014
Jan 1, 2014
402
403
404
#ls -al $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo/
#cp -f $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo/US/Eastern $RPM_BUILD_ROOT/etc/localtime
ln -sf %{_prefix}/share/zoneinfo/US/Eastern $RPM_BUILD_ROOT/etc/localtime
Oct 4, 2011
Oct 4, 2011
405
406
407
408
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo
# the last bit: more documentation
Dec 4, 2018
Dec 4, 2018
409
rm -rf ../documentation
Feb 18, 2019
Feb 18, 2019
410
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
Mar 27, 2019
Mar 27, 2019
411
bzip2 -9 ../%{glibcsrcdir}/ChangeLog*
Feb 18, 2019
Feb 18, 2019
412
install -m0644 -t $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \
Mar 27, 2019
Mar 27, 2019
413
414
415
416
417
418
419
420
421
422
../%{glibcsrcdir}/crypt/README.ufc-crypt \
../%{glibcsrcdir}/ChangeLog{,.16,.17}.bz2 \
../%{glibcsrcdir}/posix/gai.conf \
../%{glibcsrcdir}/README \
../%{glibcsrcdir}/NEWS \
../%{glibcsrcdir}/INSTALL \
../%{glibcsrcdir}/BUGS \
../%{glibcsrcdir}/CONFORMANCE \
../%{glibcsrcdir}/hesiod/README.hesiod
install -m0644 ../%{glibcsrcdir}/timezone/README \
Feb 18, 2019
Feb 18, 2019
423
424
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.timezone
Mar 27, 2019
Mar 27, 2019
425
cp ../%{glibcsrcdir}/{COPYING,COPYING.LIB,LICENSES} ..
Oct 4, 2011
Oct 4, 2011
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
%if 0%{run_glibc_tests}
# Increase timeouts
export TIMEOUTFACTOR=16
parent=$$
echo ====================TESTING=========================
cd build-%{nptl_target_cpu}-linuxnptl
( make %{?_smp_mflags} -k check PARALLELMFLAGS=-s 2>&1
sleep 10s
teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
[ -n "$teepid" ] && kill $teepid
) | tee check.log || :
cd ..
echo ====================TESTING DETAILS=================
for i in `sed -n 's|^.*\*\*\* \[\([^]]*\.out\)\].*$|\1|p' build-*-linux*/check.log`; do
echo =====$i=====
cat $i || :
echo ============
done
echo ====================TESTING END=====================
PLTCMD='/^Relocation section .*\(\.rela\?\.plt\|\.rela\.IA_64\.pltoff\)/,/^$/p'
echo ====================PLT RELOCS LD.SO================
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/ld-*.so | sed -n -e "$PLTCMD"
echo ====================PLT RELOCS LIBC.SO==============
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/libc-*.so | sed -n -e "$PLTCMD"
echo ====================PLT RELOCS END==================
%endif
pushd $RPM_BUILD_ROOT/usr/%{_lib}/
Dec 4, 2018
Dec 4, 2018
457
gcc -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
Oct 4, 2011
Oct 4, 2011
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
rm libpthread.a
ar rcs libpthread.a libpthread.o
rm libpthread.o
popd
%ifarch %{auxarches}
echo Cutting down the list of unpackaged files
>> debuginfocommon.filelist
sed -e '/%%dir/d;/%%config/d;/%%verify/d;s/%%lang([^)]*) //;s#^/*##' \
common.filelist devel.filelist static.filelist headers.filelist \
utils.filelist nscd.filelist debuginfocommon.filelist |
(cd $RPM_BUILD_ROOT; xargs --no-run-if-empty rm -f 2> /dev/null || :)
%else
mkdir -p $RPM_BUILD_ROOT/var/{db,run}/nscd
touch $RPM_BUILD_ROOT/var/{db,run}/nscd/{passwd,group,hosts,services}
touch $RPM_BUILD_ROOT/var/run/nscd/{socket,nscd.pid}
%endif
Dec 4, 2018
Dec 4, 2018
481
install -m 700 ../build-locale-archive $RPM_BUILD_ROOT/usr/sbin/build-locale-archive
May 27, 2012
May 27, 2012
482
Oct 4, 2011
Oct 4, 2011
483
484
485
mkdir -p $RPM_BUILD_ROOT/var/cache/ldconfig
> $RPM_BUILD_ROOT/var/cache/ldconfig/aux-cache
Sep 29, 2017
Sep 29, 2017
486
487
%post -p /sbin/ldconfig
Oct 4, 2011
Oct 4, 2011
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
%postun -p /sbin/ldconfig
%pre headers
# this used to be a link and it is causing nightmares now
if [ -L %{_prefix}/include/scsi ] ; then
rm -f %{_prefix}/include/scsi
fi
%post utils -p /sbin/ldconfig
%postun utils -p /sbin/ldconfig
%pre -n nscd
/usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \
-c "NSCD Daemon" -u 28 nscd > /dev/null 2>&1 || :
%postun -n nscd
if [ $1 = 0 ] ; then
/usr/sbin/userdel nscd > /dev/null 2>&1 || :
fi
if [ "$1" -ge "1" ]; then
service nscd condrestart > /dev/null 2>&1 || :
fi
Dec 4, 2018
Dec 4, 2018
513
%files -f build-%{name}-%{version}/rpm.filelist
Oct 4, 2011
Oct 4, 2011
514
515
516
517
518
519
520
521
522
523
%defattr(-,root,root)
%verify(not md5 size mtime) %config(noreplace) /etc/localtime
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
%verify(not md5 size mtime) %config(noreplace) /etc/ld.so.conf
%dir /etc/ld.so.conf.d
%dir %{_prefix}/libexec/getconf
%dir %{_prefix}/%{_lib}/gconv
%dir %attr(0700,root,root) /var/cache/ldconfig
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/cache/ldconfig/aux-cache
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
Feb 18, 2019
Feb 18, 2019
524
%license COPYING COPYING.LIB LICENSES
Oct 4, 2011
Oct 4, 2011
525
526
527
%ifnarch %{auxarches}
Dec 4, 2018
Dec 4, 2018
528
%files -f build-%{name}-%{version}/common.filelist common
Oct 4, 2011
Oct 4, 2011
529
530
531
532
533
%defattr(-,root,root)
%dir %{_prefix}/lib/locale
%dir %attr(755,root,root) /etc/default
%verify(not md5 size mtime) %config(noreplace) /etc/default/nss
Dec 4, 2018
Dec 4, 2018
534
%files -f build-%{name}-%{version}/devel.filelist devel
Oct 4, 2011
Oct 4, 2011
535
536
%defattr(-,root,root)
Dec 4, 2018
Dec 4, 2018
537
%files -f build-%{name}-%{version}/static.filelist static
Oct 4, 2011
Oct 4, 2011
538
539
%defattr(-,root,root)
Dec 4, 2018
Dec 4, 2018
540
%files -f build-%{name}-%{version}/headers.filelist headers
Oct 4, 2011
Oct 4, 2011
541
542
%defattr(-,root,root)
Dec 4, 2018
Dec 4, 2018
543
%files -f build-%{name}-%{version}/utils.filelist utils
Oct 4, 2011
Oct 4, 2011
544
545
%defattr(-,root,root)
Dec 4, 2018
Dec 4, 2018
546
%files -f build-%{name}-%{version}/nscd.filelist -n nscd
Oct 4, 2011
Oct 4, 2011
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
%defattr(-,root,root)
%config(noreplace) /etc/nscd.conf
%dir %attr(0755,root,root) /var/run/nscd
%dir %attr(0755,root,root) /var/db/nscd
%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
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/services
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/passwd
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/group
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/hosts
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services
%ghost %config(missingok,noreplace) /etc/sysconfig/nscd
%endif
Feb 18, 2019
Feb 18, 2019
564
565
566
%files doc
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}