first commit
[scm/bb/meta-tizen.git] / recipes-tizen / glibc / glibc.inc
1 DESCRIPTION = "Standard Shared Libraries (from the GNU C Library)"
2 HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
3 SECTION = "Base/Libraries"
4 LICENSE = "LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by glibc-devel 
13 PROVIDES += "glibc-devel"
14 RPROVIDES_glibc-devel += "glibc-devel"
15 RPROVIDES_glibc-devel += "glibc-dev"
16
17 #PROVIDES by glibc-locale 
18 PROVIDES += "glibc-locale"
19 RPROVIDES_glibc-locale += "glibc-locale"
20
21 #PROVIDES by glibc-devel-static 
22 PROVIDES += "glibc-devel-static"
23 RPROVIDES_glibc-devel-static += "glibc-devel-static"
24 RPROVIDES_glibc-devel-static += "glibc-dev"
25 # the PROVIDES rules is ignore "glibc-static = 2.18"
26 PROVIDES += "glibc-static"
27 RPROVIDES_glibc-devel-static += "glibc-static"
28
29 #PROVIDES by glibc-extra 
30 PROVIDES += "glibc-extra"
31 RPROVIDES_glibc-extra += "glibc-extra"
32
33 #PROVIDES by glibc 
34 PROVIDES += "glibc"
35 RPROVIDES_glibc += "glibc"
36 # the PROVIDES rules is ignore "rtld(GNU_HASH)  "
37 PROVIDES += "rtld(GNU_HASH)"
38 RPROVIDES_glibc += "rtld(GNU_HASH)"
39
40 #PROVIDES by glibc-obsolete 
41 PROVIDES += "glibc-obsolete"
42 RPROVIDES_glibc-obsolete += "glibc-obsolete"
43
44 #PROVIDES by glibc-docs  
45 PROVIDES += "glibc-docs "
46 RPROVIDES_glibc-docs  += "glibc-docs "
47
48 #PROVIDES by glibc-info 
49 PROVIDES += "glibc-info"
50 RPROVIDES_glibc-info += "glibc-info"
51
52 #PROVIDES by glibc-devel-utils 
53 PROVIDES += "glibc-devel-utils"
54 RPROVIDES_glibc-devel-utils += "glibc-devel-utils"
55 RPROVIDES_glibc-devel-utils += "glibc-dev"
56
57 #PROVIDES by nscd 
58 PROVIDES += "nscd"
59 RPROVIDES_nscd += "nscd"
60 # the PROVIDES rules is ignore "glibc:/usr/sbin/nscd  "
61 PROVIDES += "glibc:/usr/sbin/nscd"
62 RPROVIDES_nscd += "glibc:/usr/sbin/nscd"
63
64 #PROVIDES by glibc-i18ndata 
65 PROVIDES += "glibc-i18ndata"
66 RPROVIDES_glibc-i18ndata += "glibc-i18ndata"
67
68 #PROVIDES by glibc-html 
69 PROVIDES += "glibc-html"
70 RPROVIDES_glibc-html += "glibc-html"
71
72 #PROVIDES by glibc-profile 
73 PROVIDES += "glibc-profile"
74 RPROVIDES_glibc-profile += "glibc-profile"
75
76 RDEPENDS = ""
77 #RDEPENDS of glibc-devel (${PN}-devel)
78 RDEPENDS_${PN}-devel += "eglibc"
79
80 #RDEPENDS of glibc-locale (${PN}-locale)
81 RDEPENDS_${PN}-locale += "/usr/bin/cat"
82 RDEPENDS_${PN}-locale += "eglibc"
83
84 #RDEPENDS of glibc-devel-static (${PN}-devel-static)
85 RDEPENDS_${PN}-devel-static += "glibc-dev"
86
87 #RDEPENDS of glibc-extra (${PN}-extra)
88 RDEPENDS_${PN}-extra += "eglibc"
89
90 #RDEPENDS of glibc-profile (${PN}-profile)
91 RDEPENDS_${PN}-profile += "eglibc"
92
93 #RDEPENDS of glibc-obsolete (${PN}-obsolete)
94 RDEPENDS_${PN}-obsolete += "eglibc"
95
96 #RDEPENDS of glibc-devel-utils (${PN}-devel-utils)
97 RDEPENDS_${PN}-devel-utils += "eglibc"
98
99 #RDEPENDS of nscd (nscd)
100 RDEPENDS_nscd += "eglibc"
101
102 #RDEPENDS of glibc (${PN})
103 RDEPENDS_${PN} += "filesystem"
104
105
106 DEPENDS = ""
107 #DEPENDS of glibc 
108 DEPENDS += "xz"
109 DEPENDS += "gcc-cross"
110 DEPENDS += "fdupes-native"
111 #Replace "DEPENDS" on gettext by "inherit gettext"
112 inherit gettext
113 DEPENDS += "makeinfo"
114
115 do_patch() {
116  chmod -Rf a+rX,u+w,g-w,o-w ${S}
117  #setup -n glibc-2.18 -q 
118  cp ${S}/packaging/glibc.manifest .
119  
120  
121 }
122
123 do_configure() {
124 }
125
126 do_compile() {
127  LANG=C
128  export LANG
129  unset DISPLAY
130  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
131  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
132  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
133  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
134  
135  if [ -x /bin/uname.bin ]; then
136         /bin/uname.bin -a
137  else
138         uname -a
139  fi
140  uptime || :
141  ulimit -a
142  nice
143  # We do not want configure to figure out the system its building one
144  # to support a common ground and thus set build and host to the
145  # target_cpu.
146  # Don't use as-needed, it breaks glibc assumptions
147  # Before enabling it, run the testsuite and verify that it
148  # passes completely
149  export LD_AS_NEEDED=0
150  # Adjust glibc version.h
151  echo "#define CONFHOST \"x86_64-tizen-linux\"" >> version.h
152  echo "#define GITID \"eefa3be8e4c2\"" >> version.h
153  #
154  # Default CFLAGS and Compiler
155  #
156  BuildFlags=$(echo -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables | sed -e "s/-Wp,-D_FORTIFY_SOURCE=2//g" | sed -e "s/-ffast-math//" | sed -e "s/atom/i686/g" | sed -e "s/-mthumb//" |   sed -e "s/-fexceptions//" )
157  BuildFlags="$BuildFlags -O2 -g -U_FORTIFY_SOURCE"
158  BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##' -e 's#-ffortify=[0-9]*##')"
159  BuildCC="${HOST_SYS}-gcc"
160  BuildCCplus="${HOST_SYS}-g++"
161  add_ons=",libidn"
162  
163  
164  BuildFlags="$BuildFlags -g"
165  
166  configure_and_build_glibc() {
167         local dirname="$1"; shift
168         local cflags="$1"; shift
169         local addons="$1"; shift
170         mkdir "cc-$dirname"
171         cd "cc-$dirname"
172         conf_cflags="$cflags"
173  
174         profile="--disable-profile"
175          if [ "$dirname" = "base" ] ; then
176             profile="--enable-profile"
177         fi
178         CFLAGS="$conf_cflags" BUILD_CFLAGS="$conf_cflags" \
179          CC="$BuildCC" CXX="$BuildCCplus"  ../configure \
180                 --prefix=/usr \
181                 --libexecdir=/usr/libexec --infodir=/usr/share/info \
182                 --enable-add-ons=nptl$addons \
183                 $profile \
184                 "$@" \
185                 --enable-stackguard-randomization \
186                 --build=x86_64-tizen-linux --host=x86_64-tizen-linux \
187                 --enable-multi-arch \
188                 --enable-kernel=2.6.16 \
189                 --enable-bind-now  --enable-obsolete-rpc
190         # explicitly set CFLAGS to use the full CFLAGS (not the reduced one for configure)
191         make -j16 #CFLAGS="$cflags" BUILD_CFLAGS="$cflags"
192         cd ..
193  }
194  
195         #
196         # Build base glibc
197         #
198         configure_and_build_glibc base "$BuildFlags" "$add_ons"
199  
200  #
201  # Build html documentation
202  #
203  make -C cc-base html
204  
205  #
206  # Build glibc_post_upgrade binary
207  #
208  $BuildCC -static -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Os $RPM_SOURCE_DIR/glibc_post_upgrade.c -o glibc_post_upgrade \
209       -Lcc-base -Bcc-base/csu \
210      '-DREMOVE_TLS_DIRS' '-DREMOVE_PPC_OPTIMIZE_POWER5' \
211      '-DLIBDIR="/lib"' '-DGCONV_MODULES_DIR="/usr/lib/gconv"'
212  
213  
214  #######################################################################
215  ###
216  ### CHECK
217  ###
218  #######################################################################
219  
220  exit 0
221  # The testsuite will fail if asneeded is used
222  export LD_AS_NEEDED=0
223  # This has to pass on all platforms!
224  # Exceptions:
225  # None!
226  make -j16 -C cc-base check-abi
227  
228  #######################################################################
229  ###
230  ### INSTALL
231  ###
232  #######################################################################
233  
234  
235  
236 }
237
238 do_install() {
239  echo export RPM_BUILD_ROOT=${D}
240  LANG=C
241  export LANG
242  unset DISPLAY
243  rm -rf ${D} 
244  mkdir -p ${D} 
245  
246  # We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
247  # certainly not from libpthread.so.* because it is used by libthread_db to find
248  # some non-exported symbols in order to detect if threading support
249  # should be enabled.  These symbols are _not_ exported, and we can't easily
250  # export them retroactively without changing the ABI.  So we have to
251  # continue to "export" them via .symtab, instead of .dynsym :-(
252  # But we also want to keep .symtab and .strtab of other libraries since some
253  # debugging tools currently require these sections directly inside the main
254  # files - specifically valgrind and PurifyPlus.
255  export STRIP_KEEP_SYMTAB=*.so*
256  
257  # Make sure we will create the gconv-modules.cache
258  mkdir -p ${D}/usr/lib/gconv
259  touch ${D}/usr/lib/gconv/gconv-modules.cache
260  
261  # Install base glibc
262  make -j16 install_root=${D} install -C cc-base
263  
264  install_optimized_variant() {
265         local dirname="$1"; shift
266         local subdir="$1"; shift
267         local subdir_up="$1"; shift
268  
269  cd "cc-$dirname"
270  destdir=$RPM_BUILD_ROOT/lib/$subdir
271  mkdir -p $destdir
272  # Don't run a complete make install, we know which libraries
273  # we want
274  for lib in libc math/libm nptl/libpthread rt/librt nptl_db/libthread_db
275  do
276    libbase=${lib#*/}
277    libbaseso=$(basename $RPM_BUILD_ROOT/lib/${libbase}-*.so)
278    # Only install if different from base lib
279    if cmp -s ${lib}.so ../cc-base/${lib}.so; then
280      ln -sf $subdir_up/$libbaseso $destdir/$libbaseso
281    else
282      cp -a ${lib}.so $destdir/$libbaseso
283    fi
284    # Emulate ldconfig
285    ln -sf $libbaseso $destdir/$(basename $RPM_BUILD_ROOT/lib/${libbase}.so.*)
286  done
287  cd ..
288  }
289  
290  
291  # Install locales
292         # XXX Do not install locales in parallel!
293         cd cc-base
294         # localedef creates hardlinks to other locales if possible
295         # this will not work if we generate them in parallel.
296         # thus we need to run fdupes on  /usr/lib/locale/
297         # Still, on my system this is a speed advantage:
298         # non-parallel build for install-locales: 9:34mins
299         # parallel build with fdupes: 7:08mins
300         make -j16 install_root=${D} localedata/install-locales
301         
302   _target=""; 
303   _symlinks=0; 
304    
305   fdupes -q -n -r ${D}/usr/lib/locale | 
306    while read _file; do 
307      if test -z "$_target" ; then 
308        _target="$_file"; 
309      else 
310        if test -z "$_file" ; then 
311         _target=""; 
312         continue ; 
313        fi ; 
314        if test "$_symlinks" = 1; then 
315          ln -sf "${_target#${D}}" "$_file"; 
316        else 
317          ln -f "$_target" "$_file"; 
318        fi ;
319      fi ; 
320   done 
321         cd ..
322  # Create file list for glibc-locale package
323  /usr/share/spec2yocto/macro/lib/find-lang.sh ${D} libc
324  
325  # Prepare obsolete/, used only on some architectures:
326  export RPM_BUILD_ROOT
327  
328  # NPTL <bits/stdio-lock.h> is not usable outside of glibc, so include
329  # the generic one (RH#162634)
330  cp -av bits/stdio-lock.h ${D}/usr/include/bits/stdio-lock.h
331  
332  
333  # Miscelanna:
334  
335  install -m 0700 glibc_post_upgrade ${D}/usr/sbin
336  
337  install -m 644 ${S}/packaging/bindresvport.blacklist ${D}/etc
338  install -m 644 ${S}/packaging/nsswitch.conf ${D}/etc
339  install -m 644 posix/gai.conf ${D}/etc
340  
341  mkdir -p ${D}/etc/default
342  install -m 644 nis/nss ${D}/etc/default/
343  
344  mkdir -p ${D}/usr/include/resolv
345  install -m 0644 resolv/mapv4v6addr.h ${D}/usr/include/resolv/
346  install -m 0644 resolv/mapv4v6hostent.h ${D}/usr/include/resolv/
347  
348  mkdir -p ${D}/usr/share/doc/glibc
349  cp -p cc-base/manual/libc/*.html ${D}/usr/share/doc/glibc
350  
351  
352  # nscd tools:
353  
354  cp nscd/nscd.conf ${D}/etc
355  mkdir -p ${D}/etc/init.d
356  ln -sf /sbin/service ${D}/usr/sbin/rcnscd
357  mkdir -p ${D}/var/run/nscd
358  touch ${D}/var/run/nscd/{passwd,group,hosts}
359  touch ${D}/var/run/nscd/{socket,nscd.pid}
360  
361  #
362  # Create ld.so.conf
363  #
364  cat > ${D}/etc/ld.so.conf <<EOF
365  /usr/local/lib64
366  /usr/local/lib
367  include /etc/ld.so.conf.d/*.conf
368  # /lib64, /lib, /usr/lib64 and /usr/lib gets added
369  # automatically by ldconfig after parsing this file.
370  # So, they do not need to be listed.
371  EOF
372  # Add ldconfig cache directory for directory ownership
373  mkdir -p ${D}/var/cache/ldconfig
374  # Empty the ld.so.cache:
375  rm -f ${D}/etc/ld.so.cache
376  touch ${D}/etc/ld.so.cache
377  
378  # Don't look at ldd! We don't wish a /bin/sh requires
379  chmod 644 ${D}/usr/bin/ldd
380  
381  # Remove timezone data, now coming in standalone package:
382  for i in sbin/sln usr/bin/tzselect usr/sbin/zic usr/sbin/zdump etc/localtime; do
383         rm -f ${D}/$i
384  done
385  rm -rf ${D}/usr/share/zoneinfo
386  
387  mkdir -p ${D}/usr/lib/tmpfiles.d/
388  install -m 644 ${S}/packaging/nscd.conf ${D}/usr/lib/tmpfiles.d/
389  mkdir -p ${D}/usr/lib/systemd/system
390  install -m 644 ${S}/packaging/nscd.service ${D}/usr/lib/systemd/system
391  
392  
393  # Move getconf to /usr/libexec/getconf/ to avoid cross device link
394  mv ${D}/usr/bin/getconf ${D}/usr/libexec/getconf/getconf
395  ln -s /usr/libexec/getconf/getconf ${D}/usr/bin/getconf
396  
397  #######################################################################
398  ###
399  ### ...
400  ###
401  #######################################################################
402  
403  
404 }
405
406 PACKAGES = ""
407 PACKAGES += "glibc-devel"
408 PACKAGES += "glibc-locale"
409 PACKAGES += "glibc-devel-static"
410 PACKAGES += "glibc-extra"
411 PACKAGES += "glibc"
412 PACKAGES += "glibc-docs"
413 PACKAGES += "glibc-info"
414 PACKAGES += "glibc-devel-utils"
415 PACKAGES += "nscd"
416 PACKAGES += "glibc-i18ndata"
417 PACKAGES += "glibc-html"
418 PACKAGES += "glibc-profile"
419
420 glibc-devel_files = ""
421 glibc-devel_files += "glibc.manifest"
422 glibc-devel_files += "LGPL-2.0+ COPYING COPYING.LIB"
423 glibc-devel_files += "NEWS README BUGS CONFORMANCE"
424 glibc-devel_files += "/usr/bin/rpcgen"
425 glibc-devel_files += "/usr/include/*"
426 glibc-devel_files += "/usr/lib/*.o"
427 glibc-devel_files += "/usr/lib/*.so"
428 glibc-devel_files += "/usr/lib/libbsd-compat.a"
429 glibc-devel_files += "/usr/lib/libc_nonshared.a"
430 glibc-devel_files += "/usr/lib/libg.a"
431 glibc-devel_files += "/usr/lib/libieee.a"
432 glibc-devel_files += "/usr/lib/libmcheck.a"
433 glibc-devel_files += "/usr/lib/libpthread_nonshared.a"
434 glibc-devel_files += "/usr/lib/librpcsvc.a"
435
436 glibc-locale_files = ""
437 glibc-locale_files += "glibc.manifest"
438 glibc-locale_files += "/usr/share/locale/locale.alias"
439 glibc-locale_files += "/usr/lib/locale/*"
440 glibc-locale_files += "/usr/lib/gconv"
441
442 glibc-devel-static_files = ""
443 glibc-devel-static_files += "glibc.manifest"
444 glibc-devel-static_files += "/usr/lib/libBrokenLocale.a"
445 glibc-devel-static_files += "/usr/lib/libanl.a"
446 glibc-devel-static_files += "/usr/lib/libc.a"
447 glibc-devel-static_files += "/usr/lib/libcrypt.a"
448 glibc-devel-static_files += "/usr/lib/libdl.a"
449 glibc-devel-static_files += "/usr/lib/libm.a"
450 glibc-devel-static_files += "/usr/lib/libnsl.a"
451 glibc-devel-static_files += "/usr/lib/libpthread.a"
452 glibc-devel-static_files += "/usr/lib/libresolv.a"
453 glibc-devel-static_files += "/usr/lib/librt.a"
454 glibc-devel-static_files += "/usr/lib/libutil.a"
455
456 glibc-extra_files = ""
457 glibc-extra_files += "glibc.manifest"
458 glibc-extra_files += "/usr/bin/makedb"
459 glibc-extra_files += "/var/lib/misc/Makefile"
460
461 glibc_files = ""
462 glibc_files += "glibc.manifest"
463 glibc_files += "LGPL-2.0+ LICENSES"
464 glibc_files += "/etc/bindresvport.blacklist"
465 glibc_files += "/etc/ld.so.conf"
466 glibc_files += "/etc/rpc"
467 glibc_files += "/etc/default/nss"
468 glibc_files += "/lib/ld-2.18.so"
469 glibc_files += "/lib/ld-linux-x86-64.so.2"
470 glibc_files += "/lib/libanl-2.18.so"
471 glibc_files += "/lib/libanl.so.1"
472 glibc_files += "/lib/libc-2.18.so"
473 glibc_files += "/lib/libc.so.6*"
474 glibc_files += "/lib/libcidn-2.18.so"
475 glibc_files += "/lib/libcidn.so.1"
476 glibc_files += "/lib/libcrypt-2.18.so"
477 glibc_files += "/lib/libcrypt.so.1"
478 glibc_files += "/lib/libdl-2.18.so"
479 glibc_files += "/lib/libdl.so.2*"
480 glibc_files += "/lib/libm-2.18.so"
481 glibc_files += "/lib/libm.so.6*"
482 glibc_files += "/lib/libnsl-2.18.so"
483 glibc_files += "/lib/libnsl.so.1"
484 glibc_files += "/lib/libnss_compat-2.18.so"
485 glibc_files += "/lib/libnss_compat.so.2"
486 glibc_files += "/lib/libnss_db-2.18.so"
487 glibc_files += "/lib/libnss_db.so.2"
488 glibc_files += "/lib/libnss_dns-2.18.so"
489 glibc_files += "/lib/libnss_dns.so.2"
490 glibc_files += "/lib/libnss_files-2.18.so"
491 glibc_files += "/lib/libnss_files.so.2"
492 glibc_files += "/lib/libnss_hesiod-2.18.so"
493 glibc_files += "/lib/libnss_hesiod.so.2"
494 glibc_files += "/lib/libnss_nis-2.18.so"
495 glibc_files += "/lib/libnss_nis.so.2"
496 glibc_files += "/lib/libnss_nisplus-2.18.so"
497 glibc_files += "/lib/libnss_nisplus.so.2"
498 glibc_files += "/lib/libpthread-2.18.so"
499 glibc_files += "/lib/libpthread.so.0"
500 glibc_files += "/lib/libresolv-2.18.so"
501 glibc_files += "/lib/libresolv.so.2"
502 glibc_files += "/lib/librt-2.18.so"
503 glibc_files += "/lib/librt.so.1"
504 glibc_files += "/lib/libutil-2.18.so"
505 glibc_files += "/lib/libutil.so.1"
506 #Remove rpm attribut "%attr(0700,root,root)"
507 glibc_files += "/var/cache/ldconfig"
508 glibc_files += "/sbin/ldconfig"
509 glibc_files += "/usr/bin/gencat"
510 glibc_files += "/usr/bin/getconf"
511 glibc_files += "/usr/bin/getent"
512 glibc_files += "/usr/bin/iconv"
513 glibc_files += "/usr/bin/locale"
514 glibc_files += "/usr/bin/localedef"
515 #Remove rpm attribut "%attr(0755,root,root)"
516 glibc_files += "/usr/libexec/getconf"
517 glibc_files += "/usr/libexec/getconf/*"
518 glibc_files += "/usr/sbin/glibc_post_upgrade"
519 glibc_files += "/usr/sbin/iconvconfig"
520
521 glibc-docs_files = ""
522 glibc-docs_files += "/usr/share/info"
523 glibc-docs_files += "/usr/share/man"
524
525 glibc-info_files = ""
526 glibc-info_files += "glibc.manifest"
527 glibc-info_files += "/usr/share/info/libc.info.gz"
528 glibc-info_files += "/usr/share/info/libc.info-?.gz"
529 glibc-info_files += "/usr/share/info/libc.info-??.gz"
530
531 glibc-devel-utils_files = ""
532 glibc-devel-utils_files += "glibc.manifest"
533 glibc-devel-utils_files += "/lib/libmemusage.so"
534 glibc-devel-utils_files += "/lib/libpcprofile.so"
535 glibc-devel-utils_files += "/lib/libBrokenLocale-2.18.so"
536 glibc-devel-utils_files += "/lib/libBrokenLocale.so.1"
537 glibc-devel-utils_files += "/usr/lib/libBrokenLocale.so"
538 glibc-devel-utils_files += "/lib/libSegFault.so"
539 glibc-devel-utils_files += "/lib/libthread_db-1.0.so"
540 glibc-devel-utils_files += "/lib/libthread_db.so.1"
541 glibc-devel-utils_files += "/usr/lib/libthread_db.so"
542 glibc-devel-utils_files += "/usr/lib/audit"
543 glibc-devel-utils_files += "/usr/lib/audit/sotruss-lib.so"
544 glibc-devel-utils_files += "/usr/bin/mtrace"
545 glibc-devel-utils_files += "/usr/bin/pcprofiledump"
546 glibc-devel-utils_files += "/usr/bin/sotruss"
547 glibc-devel-utils_files += "/usr/bin/xtrace"
548 glibc-devel-utils_files += "/usr/bin/pldd"
549 glibc-devel-utils_files += "/usr/bin/catchsegv"
550 glibc-devel-utils_files += "/usr/bin/sprof"
551
552 nscd_files = ""
553 nscd_files += "glibc.manifest"
554 nscd_files += "/etc/nscd.conf"
555 nscd_files += "/usr/sbin/nscd"
556 nscd_files += "/usr/sbin/rcnscd"
557 nscd_files += "/usr/lib/systemd/system/nscd.service"
558 nscd_files += "/usr/lib/tmpfiles.d"
559 nscd_files += "/usr/lib/tmpfiles.d/nscd.conf"
560 #Remove rpm attribut "%attr(0755,root,root)"
561 nscd_files += "%ghost /var/run/nscd"
562
563 glibc-i18ndata_files = ""
564 glibc-i18ndata_files += "glibc.manifest"
565 glibc-i18ndata_files += "/usr/share/i18n"
566
567 glibc-html_files = ""
568 glibc-html_files += "glibc.manifest"
569 glibc-html_files += "/usr/share/doc/glibc"
570
571 glibc-profile_files = ""
572 glibc-profile_files += "glibc.manifest"
573 glibc-profile_files += "/usr/lib/libc_p.a"
574 glibc-profile_files += "/usr/lib/libBrokenLocale_p.a"
575 glibc-profile_files += "/usr/lib/libanl_p.a"
576 glibc-profile_files += "/usr/lib/libm_p.a"
577 glibc-profile_files += "/usr/lib/libcrypt_p.a"
578 glibc-profile_files += "/usr/lib/libpthread_p.a"
579 glibc-profile_files += "/usr/lib/libresolv_p.a"
580 glibc-profile_files += "/usr/lib/libnsl_p.a"
581 glibc-profile_files += "/usr/lib/librt_p.a"
582 glibc-profile_files += "/usr/lib/librpcsvc_p.a"
583 glibc-profile_files += "/usr/lib/libutil_p.a"
584 glibc-profile_files += "/usr/lib/libdl_p.a"
585
586 FILES_${PN}-devel = "${glibc-devel_files}"
587 FILES_${PN}-locale = "${glibc-locale_files}"
588 FILES_${PN}-devel-static = "${glibc-devel-static_files}"
589 FILES_${PN}-extra = "${glibc-extra_files}"
590 FILES_${PN} = "${glibc_files}"
591 FILES_${PN}-docs = "${glibc-docs_files}"
592 FILES_${PN}-info = "${glibc-info_files}"
593 FILES_${PN}-devel-utils = "${glibc-devel-utils_files}"
594 FILES_nscd = "${nscd_files}"
595 FILES_${PN}-i18ndata = "${glibc-i18ndata_files}"
596 FILES_${PN}-html = "${glibc-html_files}"
597 FILES_${PN}-profile = "${glibc-profile_files}"
598
599 PKG_glibc-devel= "glibc-devel"
600 PKG_glibc-locale= "glibc-locale"
601 PKG_glibc-devel-static= "glibc-devel-static"
602 PKG_glibc-extra= "glibc-extra"
603 PKG_glibc= "glibc"
604 PKG_glibc-docs= "glibc-docs"
605 PKG_glibc-info= "glibc-info"
606 PKG_glibc-devel-utils= "glibc-devel-utils"
607 PKG_nscd= "nscd"
608 PKG_glibc-i18ndata= "glibc-i18ndata"
609 PKG_glibc-html= "glibc-html"
610 PKG_glibc-profile= "glibc-profile"
611
612 require glibc-extraconf.inc