%define glibcrelease 99.30.art %define auxarches i586 i686 athlon sparcv9 alphaev6 %define prelinkarches noarch %define nptlarches i586 i686 athlon x86_64 ia64 s390 s390x sparcv9 ppc ppc64 %define rtkaioarches i686 athlon x86_64 ia64 s390 s390x ppc ppc64 %define withtlsarches i686 athlon x86_64 ia64 s390 s390x alpha alphaev6 sparc sparcv9 ppc ppc64 %define debuginfocommonarches %{ix86} alpha alphaev6 sparc sparcv9 %define _unpackaged_files_terminate_build 0 %define glibcdate 200309260658 Summary: The GNU libc libraries. Name: glibc Version: 2.3.2 Release: %{glibcrelease} Copyright: LGPL Group: System Environment/Libraries Source0: %{name}-%{version}-%{glibcdate}.tar.bz2 Source1: %{name}-redhat-%{glibcdate}.tar.bz2 Source2: nptl-%{glibcdate}.tar.bz2 Patch0: %{name}-redhat.patch Patch1: %{name}-nptl-check.patch Patch2: %{name}-ppc-assume.patch Patch3: %{name}-execstack-disable.patch Patch4: glibc-2.3.2-mknod.patch Patch5: glibc-2.3.2-sysmacros.patch Patch6: glibc-2.3.2-pause-close-fsync.patch Patch7: glibc-backtrace.patch Patch8: glibc-important-hwcaps.patch Patch9: glibc-ld-statistics.patch Patch10: glibc-locale-be64.patch Patch11: glibc-pthread-once.patch Patch12: glibc-dlopen-exec.patch Patch13: glibc-statvfs.patch Patch14: glibc-glob-brace-escape.patch Patch15: glibc-lt-sigaction.patch Patch16: glibc-nptl-cleanups.patch Patch17: glibc-nptl-stdio-lock.patch Patch18: glibc-reverse-ipv6.patch Patch19: glibc-sprof.patch Patch20: glibc-ftw.patch Patch21: glibc-stdio-compat.patch Patch22: glibc-uselocale.patch Patch23: glibc-ifaddrs.patch Patch24: glibc-regex-upd1.patch Patch25: glibc-regex-upd2.patch Patch26: glibc-regex-update.patch Patch27: glibc-regex-empty-group.patch Patch28: glibc-atan2.patch Patch29: glibc-nextafter.patch Patch30: glibc-amd64-syscall.patch Patch31: glibc-memalign-trace.patch Patch32: glibc-linuxthreads-memleak.patch Patch33: glibc-linuxthreads-throw.patch Patch34: glibc-nptl-pthread-exit.patch Patch35: glibc-nptl-pshared-condvar.patch Patch36: glibc-nptl-attr-destroy.patch Patch37: glibc-nptl-configure.patch Patch38: glibc-nptl-fork-dlopen.patch Patch39: glibc-nptl-unregister-atfork.patch Patch40: glibc-nptl-ia64-defaultstacksize.patch Patch41: glibc-nptl-altstk-unwind.patch Patch42: glibc-nptl-cancelstate-disabled.patch Patch43: glibc-nptl-odd-stacklimit.patch Patch44: glibc-regex-leaks.patch Patch45: glibc-amd64-ldouble.patch Patch46: glibc-ia64-gas-bug.patch Patch47: glibc-regex-bkref.patch Patch48: glibc-pmap-set.patch Patch49: glibc-regex-update2.patch Patch50: glibc-amd64-backtrace.patch Patch51: glibc-amd64-bugfixes.patch Patch52: glibc-intl-fixes.patch Patch53: glibc-ipv6-nibble.patch Patch54: glibc-iso6937.patch Patch55: glibc-inttypes.patch Patch56: glibc-readahead.patch Patch57: glibc-catgets.patch Patch58: glibc-obstack.patch Patch59: glibc-ia64-siginfo.patch Patch60: glibc-translation-update.patch Patch61: glibc-lround1.patch Patch62: glibc-ppc32-cacheflush.patch Patch63: glibc-xent-locking.patch Patch64: glibc-printf-size.patch Patch65: glibc-fclrexcpt.patch Patch66: glibc-exit-flush.patch Patch67: glibc-tzset-cap.patch Patch68: glibc-setenv-alloca.patch Patch69: glibc-regex-update3.patch Patch70: glibc-lround2.patch Patch71: glibc-nptl-requeue-disable.patch Patch72: glibc-lround3.patch Patch73: glibc-nptl-condtimedwait.patch Patch75: glibc-dladdr-locking.patch Patch76: glibc-getaddrinfo.patch Patch77: glibc-lround4.patch Patch78: glibc-lt-ppc64-spinlock.patch Patch79: glibc-mbtowc.patch Patch81: glibc-nptl-fixes.patch Patch82: glibc-nscd.patch Patch83: glibc-popen.patch Patch84: glibc-posix-fadvise64.patch Patch85: glibc-regex-update4.patch Patch86: glibc-nis-performance.patch Patch87: glibc-nscd2.patch Patch88: glibc-nptl-condtest.patch Patch89: glibc-nscd3.patch Patch90: glibc-ppc32-stat.patch Patch91: glibc-posix-fadvise.patch Patch92: glibc-ppc-tls-debug.patch Patch93: glibc-gconv.patch Patch94: glibc-nis-updates.patch Patch95: glibc-nis-updates2.patch Patch96: glibc-fwrite-retval.patch Patch97: glibc-nis-updates3.patch Patch98: glibc-sprintf-opt.patch Patch99: glibc-ia64-iopl.patch Patch100: glibc-clock_settime-errret.patch Patch101: glibc-iconv-c.patch Patch102: glibc-x86_64-hp-timing.patch Patch103: glibc-hwcap.patch Patch104: glibc-tz-stdoff.patch Patch105: glibc-setenv-errret.patch Patch106: glibc-nis-saveit.patch Patch107: glibc-ppc64-umount.patch Patch108: glibc-ffs.patch Patch109: glibc-syslog-memhandling.patch Patch110: glibc-scanf-whitespace.patch Patch111: glibc-error-memhandling.patch Patch112: glibc-i386-string_h.patch Patch113: glibc-sysctl-include.patch Patch114: glibc-nonexecdso-check.patch Patch115: glibc-setown-unix98.patch Patch116: glibc-setpbrk-inline.patch Patch117: glibc-tgmath-fixes.patch Patch118: glibc-memhandling.patch Patch119: glibc-timer-SIGEV_NONE.patch Patch120: glibc-x86_64-ppc-xxxcontext.patch Patch121: glibc-regex-trans.patch Patch122: glibc-undef-rela-tls.patch Patch123: glibc-nodelete.patch Patch124: glibc-nis-ypall-foreach.patch Patch125: glibc-memhandling2.patch Patch126: glibc-memhandling3.patch Patch127: glibc-ia64-x86_64-static-backtrace.patch Patch128: glibc-xtrace-typo.patch Patch129: glibc-nss-closeinvalid.patch Patch130: glibc-lt-semtimedwait.patch Patch131: glibc-nptl-misc-fixes.patch Patch132: glibc-nptl-wakeupseq.patch Patch133: glibc-nptl-futex-cmp-requeue.patch Patch134: glibc-execstack-fix.patch Patch135: glibc-execstack-fix2.patch Patch136: glibc-execstack-fix3.patch Patch137: glibc-execstack-fix4.patch Patch138: glibc-execstack-fix5.patch Patch139: glibc-nscd-hosts-invalidate.patch Patch140: glibc-printf-parsemb.patch Patch141: glibc-pmaplist-free.patch Patch142: glibc-sqrt-specialcase.patch Patch143: glibc-nptl-cond-timedwait.patch Patch144: glibc-nptl-timed-rwlock.patch Patch145: glibc-x86_64-mathinline_h.patch Patch146: glibc-x86_64-fcntl_h.patch Patch147: glibc-getaddrinfo-canonname.patch Patch148: glibc-linuxthreads-clocks.patch Patch149: glibc-dlfini-locking.patch Patch150: glibc-bits-shm.patch Patch151: glibc-bz284.patch Patch152: glibc-execstack-hack.patch Patch153: glibc-getaddrinfo-v4mapped.patch Patch154: glibc-i386-pow.patch Patch155: glibc-ibmiconv-fix.patch Patch156: glibc-ifreq-memhandling.patch Patch157: glibc-loadavg.patch Patch158: glibc-mbsrtowcs-unterminated.patch Patch159: glibc-memusage-large.patch Patch160: glibc-newlocale.patch Patch161: glibc-nptl-rwlock-fix.patch Patch162: glibc-nscd-getgr.patch Patch163: glibc-nscd-i-hosts.patch Patch164: glibc-ppc64-setjmp.patch Patch165: glibc-resolv-leaks.patch Patch166: glibc-strfmon-uninitialized.patch Patch167: glibc-strtod-fix.patch Patch168: glibc-unlocked-stdio.patch Patch169: glibc-ia64-emul-hacks.patch Patch170: glibc-bz123583.patch Patch171: glibc-syslog-tcpudp.patch Patch172: glibc-nis-ypclnt-locking.patch Patch173: glibc-ppc64-atomic.patch Patch174: glibc-malloc-flexmap.patch Patch175: glibc-nptl-x86_64-m32-pthreadtypes.patch Patch176: glibc-nptl-headers.patch Patch177: glibc-nptl-pthread-create-EAGAIN.patch Patch178: glibc-nptl-detach-free.patch Patch179: glibc-nptl-mutex-timedlock.patch Patch180: glibc-linuxthreads-headers.patch Patch181: glibc-nptl-s390-unwind-cfa.patch Patch182: glibc-posix1_lim.patch Patch183: glibc-fnmatch-backslash.patch Patch184: glibc-syslog-pidcopy.patch Patch185: glibc-resolv-id-randomize.patch Patch186: glibc-daemon-dev-null.patch Patch187: glibc-sprintf-realloc.patch Patch188: glibc-loadlocale-ctype.patch Patch189: glibc-fdim-inf-inf.patch Patch190: glibc-glob-dangsymlnk.patch Patch191: glibc-assert.patch Patch192: glibc-cy_GB.patch Patch194: glibc-linuxthreads-bz132654.patch Patch195: glibc-lateglobal-test.patch Patch196: glibc-xopen2k.patch Patch197: glibc-gconv-charset-strip.patch Patch198: glibc-inet-aton.patch Patch199: glibc-SEM_VALUE_MAX.patch Patch200: glibc-linuxthreads-sigmask-debug.patch Patch201: glibc-x86_64-vfork-cfi.patch Patch202: glibc-linuxthreads-BUSY_WAIT_NOP.patch Patch203: glibc-ppc64-libthread_db.patch Patch204: glibc-localedef-linereader.patch Patch205: glibc-mntent_r.patch Patch206: glibc-statvfs64.patch Patch207: glibc-bug-reporting.patch Patch208: glibc-mtrace-location.patch Patch209: glibc-locale-unset-LANG.patch Patch210: glibc-_res-freeres.patch Patch211: glibc-catchsegv.patch Patch212: glibc-libSegFault-backtrace.patch Patch213: glibc-execvp-afs.patch Patch214: glibc-res_send-nonblock.patch # Patches not applied yet, reconsider for U5 Patch300: glibc-nss_compat.patch Patch301: glibc-sem_unlink.patch Patch302: glibc-ia64-MINSIGSTKSZ.patch Patch303: glibc-nptl-cond-destroy.patch # Grsec additions Patch20000: glibc-2.3.2-dl_execstack-PaX-support.patch Buildroot: %{_tmppath}/glibc-%{PACKAGE_VERSION}-root Obsoletes: zoneinfo, libc-static, libc-devel, libc-profile, libc-headers, Obsoletes: linuxthreads, gencat, locale, ldconfig, locale-ja Provides: ldconfig Autoreq: false Requires: glibc-common = %{version}-%{release} %ifarch sparc Obsoletes: libc %endif # Require libgcc in case some program calls pthread_cancel in its %%post Prereq: basesystem, libgcc # This is for building auxiliary programs like memusage # For initial glibc bootstraps it can be commented out BuildPreReq: gd-devel libpng-devel zlib-devel texinfo %ifarch %{prelinkarches} BuildPreReq: prelink >= 0.2.0-5 %endif # This is to ensure that __frame_state_for is exported by glibc # will be compatible with egcs 1.x.y BuildPreReq: gcc >= 3.2 Conflicts: rpm <= 4.0-0.65 Conflicts: glibc-devel < 2.2.3 # Earlier shadow-utils packages had too restrictive permissions on # /etc/default Conflicts: shadow-utils < 2:4.0.3-20 %ifarch ia64 sparc64 s390x x86_64 Conflicts: kernel < 2.4.0 %define enablekernel 2.4.0 %else %ifarch ppc64 Conflicts: kernel < 2.4.19 %define enablekernel 2.4.19 %else %define enablekernel 2.2.5 %ifarch i686 athlon %define enablekernelltfs 2.4.1 %endif %endif %endif %ifarch %{nptlarches} %define enablekernelnptl 2.4.20 %endif BuildRequires: binutils >= 2.13.90.0.16-5 BuildRequires: gcc >= 3.2.1-5 %if "%{_enable_debug_packages}" == "1" BuildPreReq: elfutils >= 0.72 BuildPreReq: rpm >= 4.2-0.56 %endif %define __find_provides %{_builddir}/%{name}-%{version}-%{glibcdate}/find_provides.sh %define _filter_GLIBC_PRIVATE 1 %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 Conflicts: texinfo < 3.11 Conflicts: binutils < 2.13.90.0.16-5 Prereq: /sbin/install-info Obsoletes: libc-debug, libc-headers, libc-devel, linuxthreads-devel Prereq: %{name}-headers Requires: %{name}-headers = %{version}, %{name} = %{version} %ifarch %{ix86} # Earlier gcc's had atexit reference in crtendS.o, which does not # work with this glibc where atexit is in libc_nonshared.a Conflicts: gcc < 2.96-79 %endif Autoreq: true %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 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 i386 ones. Obsoletes: %{name}-headers(i386) %endif Obsoletes: libc-debug, libc-headers, libc-devel, linuxthreads-devel Prereq: kernel-headers Requires: kernel-headers >= 2.2.1, %{name} = %{version} Autoreq: true %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 -n nptl-devel Summary: Header files and static libraries for development using NPTL library. Group: Development/Libraries Requires: glibc-devel = %{version}-%{release} Autoreq: true %description -n nptl-devel The nptl-devel package contains the header and object files necessary for developing programs which use the NPTL library (and either need NPTL specific header files or want to link against NPTL statically). %package profile Summary: The GNU libc libraries, including support for gprof profiling. Group: Development/Libraries Obsoletes: libc-profile Autoreq: true %description profile The glibc-profile package includes the GNU libc libraries and support for profiling using the gprof program. Profiling is analyzing a program's functions to see how much CPU time they use and determining which functions are calling other functions during execution. To use gprof to profile a program, your program needs to use the GNU libc libraries included in glibc-profile (instead of the standard GNU libc libraries included in the glibc package). If you are going to use the gprof program to profile a program, you'll need to install the glibc-profile package. %package common Summary: Common binaries and locale data for glibc Conflicts: %{name} < %{version} Conflicts: %{name} > %{version} Autoreq: false Requires: tzdata >= 2003a Group: System Environment/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 Environment/Daemons Conflicts: kernel < 2.2.0 Prereq: /sbin/chkconfig, /usr/sbin/useradd, /usr/sbin/userdel, sh-utils Autoreq: true %description -n nscd Nscd caches name service lookups and can dramatically improve performance with NIS+, and may help with DNS as well. Note that you can't use nscd with 2.0 kernels because of bugs in the kernel-side thread support. Unfortunately, nscd happens to hit these bugs particularly hard. %package debug Summary: Static standard C libraries with debugging information Group: Development/Libraries Requires: glibc = %{version}-%{release}, glibc-devel = %{version}-%{release} Obsoletes: glibc-debug-static Autoreq: true %description debug The glibc-debug package contains static standard C libraries with debugging information. You need this only if you want to step into C library routines during debugging programs statically linked against one or more of the standard C libraries. To use this debugging information, you need to link binaries with -L%{_prefix}/%{_lib}/debug compiler option. If you want to see glibc source files during debugging, you should install glibc-debuginfo package. If unsure if you need this, don't install this package. %package utils Summary: Development utilities from GNU C library Group: Development/Tools Requires: glibc = %{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. %if "%{_enable_debug_packages}" == "1" %define debug_package %{nil} %package debuginfo Summary: Debug information for package %{name} Group: Development/Debug %ifarch %{debuginfocommonarches} Requires: glibc-debuginfo-common = %{version}-%{release} %endif %description debuginfo This package provides debug information for package %{name}. Debug information is useful when developing applications that use this package or when debugging this package. %ifarch %{debuginfocommonarches} %package debuginfo-common Summary: Debug information for package %{name} Group: Development/Debug %description debuginfo-common This package provides debug information for package %{name}. Debug information is useful when developing applications that use this package or when debugging this package. %endif %endif %prep %setup -q -n %{name}-%{version}-%{glibcdate} -a1 -a2 %patch0 -p1 case "`gcc --version | head -1`" in gcc*\ 3.3*) %ifarch %{nptlarches} %patch1 -p1 %endif ;; gcc*\ 3.2.3*) case "`uname -r`" in *.ent*|*.EL*) %patch2 -p1 #%ifnarch %{ix86} x86_64 #%patch3 -p1 #%endif ;; esac ;; esac %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 #%patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %patch30 -p1 %patch31 -p1 %patch32 -p1 %patch33 -p1 %patch34 -p1 %patch35 -p1 %patch36 -p1 %patch37 -p1 %patch38 -p1 %patch39 -p1 %patch40 -p1 %patch41 -p1 %patch42 -p1 %patch43 -p1 %patch44 -p1 %patch45 -p1 %patch46 -p1 %patch47 -p1 %patch48 -p1 %patch49 -p1 %patch50 -p1 %patch51 -p1 %patch52 -p1 %patch53 -p1 %patch54 -p1 %patch55 -p1 %patch56 -p1 %patch57 -p1 %patch58 -p1 %patch59 -p1 %patch60 -p1 %patch61 -p1 %patch62 -p1 %patch63 -p1 %patch64 -p1 %patch65 -p1 %patch66 -p1 %patch67 -p1 %patch68 -p1 %patch69 -p1 %patch70 -p1 #%patch71 -p1 %patch72 -p1 %patch73 -p1 %patch75 -p1 %patch76 -p1 %patch77 -p1 %patch78 -p1 %patch79 -p1 %patch81 -p1 %patch82 -p1 %patch83 -p1 %patch84 -p1 %patch85 -p1 %patch86 -p1 %patch87 -p1 %patch88 -p1 %patch89 -p1 %patch90 -p1 %patch91 -p1 %patch92 -p1 %patch93 -p1 %patch94 -p1 %patch95 -p1 %patch96 -p1 %patch97 -p1 %patch98 -p1 %patch99 -p1 %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 %patch106 -p1 %patch107 -p1 %patch108 -p1 %patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %patch113 -p1 %patch114 -p1 %patch115 -p1 %patch116 -p1 %patch117 -p1 %patch118 -p1 %patch119 -p1 %patch120 -p1 %patch121 -p1 %patch122 -p1 %patch123 -p1 %patch124 -p1 %patch125 -p1 %patch126 -p1 %patch127 -p1 %patch128 -p1 %patch129 -p1 %patch130 -p1 %patch131 -p1 %patch132 -p1 %patch133 -p1 #%ifarch %{ix86} x86_64 #%patch134 -p1 #%patch135 -p1 #%patch136 -p1 #%patch137 -p1 #%patch138 -p1 #%endif %patch139 -p1 %patch140 -p1 %patch141 -p1 %patch142 -p1 %patch143 -p1 %patch144 -p1 %patch145 -p1 %patch146 -p1 %patch147 -p1 %patch148 -p1 %patch149 -p1 %patch150 -p1 %patch151 -p1 #%ifarch %{ix86} x86_64 #%patch152 -p1 #%endif %patch153 -p1 %patch154 -p1 %patch155 -p1 %patch156 -p1 %patch157 -p1 %patch158 -p1 %patch159 -p1 %patch160 -p1 %patch161 -p1 %patch162 -p1 %patch163 -p1 %patch164 -p1 %patch165 -p1 %patch166 -p1 %patch167 -p1 %patch168 -p1 %patch169 -p1 %patch170 -p1 %patch171 -p1 %patch172 -p1 %patch173 -p1 %patch174 -p1 %patch175 -p1 %patch176 -p1 %patch177 -p1 %patch178 -p1 %patch179 -p1 %patch180 -p1 %patch181 -p1 %patch182 -p1 %patch183 -p1 %patch184 -p1 %patch185 -p1 %patch186 -p1 %patch187 -p1 %patch188 -p1 %patch189 -p1 %patch190 -p1 %patch191 -p1 %patch192 -p1 %patch194 -p1 %patch195 -p1 %patch196 -p1 %patch197 -p1 %patch198 -p1 %patch199 -p1 %patch200 -p1 %patch201 -p1 %patch202 -p1 %patch204 -p1 %patch205 -p1 %patch206 -p1 %patch207 -p1 %patch208 -p1 %patch209 -p1 %patch210 -p1 %patch211 -p1 %patch212 -p1 %patch213 -p1 %patch214 -p1 # grsec #%patch20000 -p1 #%patch300 -p1 #%patch301 -p1 #%patch302 -p1 # This patch is not applied, since it might break some buggy # programs that call pthread_cond_*wait after pthread_cond_destroy #%patch303 -p1 # Hack till glibc-kernheaders get updated, argh mkdir asm cat > asm/unistd.h < %ifarch %{ix86} #ifndef __NR_statfs64 #define __NR_statfs64 268 #define __NR_fstatfs64 269 #endif %endif %ifarch ppc #ifndef __NR_statfs64 #define __NR_statfs64 252 #define __NR_fstatfs64 253 #endif %endif %ifarch s390 #ifndef __NR_statfs64 #define __NR_statfs64 265 #define __NR_fstatfs64 266 #endif %endif #endif EOF %ifnarch %{ix86} alpha alphaev6 sparc sparcv9 rm -rf glibc-compat %endif # If i386 mathinline.h changes, we want to update x86_64 mathinline.h too head -1 %{PATCH145} | md5sum -c || exit # A lot of programs still misuse memcpy when they have to use # memmove. The memcpy implementation below is not tolerant at # all. rm -f sysdeps/alpha/alphaev6/memcpy.S find . -type f -size 0 -o -name "*.orig" -exec rm -f {} \; cat > find_provides.sh </dev/null; then perl -pi -e 's/0 \|\|/1 ||/' ../elf/tst-tls10.h ../linuxthreads/tst-tls1.h fi perl -pi -e 's/^#define.*USE_DL_SYSINFO.*$/#undef USE_DL_SYSINFO/' \ ../nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h perl -pi -e 's/^#define.*NEED_DL_SYSINFO.*$/#undef NEED_DL_SYSINFO/' \ ../nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h \ ../nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h \ ../nptl/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h \ ../linuxthreads/sysdeps/unix/sysv/linux/i386/dl-sysdep.h \ ../linuxthreads/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h BuildFlags="$BuildFlags -DNDEBUG=1" if gcc -v 2>&1 | grep -q 'gcc version 3'; then BuildFlags="$BuildFlags -finline-limit=2000" fi EnableKernel="--enable-kernel=%{enablekernel}" echo "$BuildFlags" > ../BuildFlags echo "$GCC" > ../Gcc AddOns=`cd .. && echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'` echo "$AddOns" > ../AddOns Pthreads=linuxthreads %ifarch %{withtlsarches} WithTls="--with-tls --without-__thread" %else WithTls="--without-tls --without-__thread" %endif CC="$GCC" CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \ --enable-add-ons=$Pthreads$AddOns --without-cvs $EnableKernel \ --with-headers=%{_prefix}/include \ $WithTls --build %{_target_cpu}-redhat-linux --host %{_target_cpu}-redhat-linux if [ -x /usr/bin/getconf ] ; then numprocs=$(/usr/bin/getconf _NPROCESSORS_ONLN) if [ $numprocs -eq 0 ]; then numprocs=1 fi else numprocs=1 fi make -j$numprocs -r CFLAGS="$BuildFlags -g -O3" PARALLELMFLAGS=-s $GCC -static -L. -Os ../redhat/glibc_post_upgrade.c -o glibc_post_upgrade \ %ifarch i386 -DARCH_386 '-DVERSION="%{version}"' \ '-DPVERSION="'`sed 's/^linuxthreads-\([0-9.]*\) .*$/\1/' ../linuxthreads/Banner`'"' \ %endif '-DGCONV_MODULES_CACHE="%{_prefix}/%{_lib}/gconv/gconv-modules.cache"' mkdir sed cd sed CC="$GCC" CFLAGS="$BuildFlags -g -O2" ../../redhat/sed-3.02/configure make -j$numprocs cd .. %install # hack unset LD_ASSUME_KERNEL || : BuildFlags=`cat BuildFlags` GCC=`cat Gcc` AddOns=`cat AddOns` %ifarch %{rtkaioarches} AddOns=,rtkaio$AddOns %endif if [ -x /usr/bin/getconf ] ; then numprocs=$(/usr/bin/getconf _NPROCESSORS_ONLN) if [ $numprocs -eq 0 ]; then numprocs=1 fi else numprocs=1 fi rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT make -j1 install_root=$RPM_BUILD_ROOT install -C build-%{_target_cpu}-linux PARALLELMFLAGS=-s %ifnarch %{auxarches} cd build-%{_target_cpu}-linux && \ make -j$numprocs install_root=$RPM_BUILD_ROOT install-locales -C ../localedata objdir=`pwd` && \ cd .. %endif SubDir= %ifarch i686 athlon rm -rf build-%{_target_cpu}-linuxltfs mkdir build-%{_target_cpu}-linuxltfs ; cd build-%{_target_cpu}-linuxltfs EnableKernel="--enable-kernel=%{enablekernelltfs} --disable-profile" Pthreads=linuxthreads SubDir=i686 %ifarch %{withtlsarches} WithTls="--with-tls --without-__thread" %else WithTls="--without-tls --without-__thread" %endif CC="$GCC" CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \ --enable-add-ons=$Pthreads$AddOns --without-cvs $EnableKernel \ --with-headers=%{_prefix}/include \ $WithTls --build %{_target_cpu}-redhat-linux --host %{_target_cpu}-redhat-linux make -j$numprocs -r CFLAGS="$BuildFlags -g -O3" PARALLELMFLAGS=-s mkdir -p $RPM_BUILD_ROOT/lib/$SubDir/ cp -a libc.so $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/libc-*.so` ln -sf `basename $RPM_BUILD_ROOT/lib/libc-*.so` $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/libc.so.*` cp -a math/libm.so $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/libm-*.so` ln -sf `basename $RPM_BUILD_ROOT/lib/libm-*.so` $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/libm.so.*` cp -a $Pthreads/libpthread.so $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/libpthread-*.so` pushd $RPM_BUILD_ROOT/lib/$SubDir ln -sf libpthread-*.so `basename $RPM_BUILD_ROOT/lib/libpthread.so.*` popd %ifarch %{rtkaioarches} cp -a rtkaio/librtkaio.so $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/librt-*.so | sed s/librt-/librtkaio-/` ln -sf `basename $RPM_BUILD_ROOT/lib/librt-*.so | sed s/librt-/librtkaio-/` $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/librt.so.*` %else cp -a rt/librt.so $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/librt-*.so` ln -sf `basename $RPM_BUILD_ROOT/lib/librt-*.so` $RPM_BUILD_ROOT/lib/$SubDir/`basename $RPM_BUILD_ROOT/lib/librt.so.*` %endif mkdir sed cd sed CFLAGS="$BuildFlags -g -O2" ../../redhat/sed-3.02/configure make -j$numprocs cd .. cd .. %endif %ifarch %{nptlarches} rm -rf build-%{_target_cpu}-linuxnptl mkdir build-%{_target_cpu}-linuxnptl ; cd build-%{_target_cpu}-linuxnptl EnableKernel="--enable-kernel=%{enablekernelnptl} --disable-profile" Pthreads=nptl WithTls="--with-tls --with-__thread" SubDir=tls CC="$GCC" CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \ --enable-add-ons=$Pthreads$AddOns --without-cvs $EnableKernel \ --with-headers=%{_prefix}/include \ $WithTls --build %{_target_cpu}-redhat-linux --host %{_target_cpu}-redhat-linux make -j$numprocs -r CFLAGS="$BuildFlags -g -O3" PARALLELMFLAGS=-s mkdir -p $RPM_BUILD_ROOT/%{_lib}/$SubDir/ cp -a libc.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libc-*.so` ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/libc-*.so` $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libc.so.*` cp -a math/libm.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libm-*.so` ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/libm-*.so` $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libm.so.*` cp -a $Pthreads/libpthread.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/libpthread-`awk '{ print $2 }' ../$Pthreads/Banner`.so pushd $RPM_BUILD_ROOT/%{_lib}/$SubDir ln -sf libpthread-*.so `basename $RPM_BUILD_ROOT/%{_lib}/libpthread.so.*` popd %ifarch %{rtkaioarches} cp -a rtkaio/librtkaio.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so | sed s/librt-/librtkaio-/` ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so | sed s/librt-/librtkaio-/` $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt.so.*` %else cp -a rt/librt.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so` ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so` $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt.so.*` %endif cp -a ${Pthreads}_db/libthread_db.so $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libthread_db-*.so` ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/libthread_db-*.so` $RPM_BUILD_ROOT/%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/libthread_db.so.*` mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl cp -a libc.a nptl/libpthread.a nptl/libpthread_nonshared.a rt/librt.a \ $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/ sed "s| /%{_lib}/| /%{_lib}/$SubDir/|" $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libc.so \ > $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/libc.so sed "s|^GROUP (.*)|GROUP ( /%{_lib}/$SubDir/"`basename $RPM_BUILD_ROOT/%{_lib}/libpthread.so.*`' %{_prefix}/%{_lib}/nptl/libpthread_nonshared.a )|' \ $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libc.so \ > $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/libpthread.so %ifarch %{rtkaioarches} ln -sf /%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so | sed 's/librt-/librtkaio-/'` \ $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/librt.so %else ln -sf /%{_lib}/$SubDir/`basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so` \ $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/librt.so %endif strip -g $RPM_BUILD_ROOT%{_prefix}/%{_lib}/nptl/*.a mkdir -p $RPM_BUILD_ROOT/nptl $RPM_BUILD_ROOT%{_prefix}/include/nptl make -j1 install_root=$RPM_BUILD_ROOT/nptl install-headers PARALLELMFLAGS=-s pushd $RPM_BUILD_ROOT/nptl%{_prefix}/include for i in `find . -type f`; do if ! [ -f $RPM_BUILD_ROOT%{_prefix}/include/$i ] \ || ! cmp -s $i $RPM_BUILD_ROOT%{_prefix}/include/$i; then mkdir -p $RPM_BUILD_ROOT%{_prefix}/include/nptl/`dirname $i` cp -a $i $RPM_BUILD_ROOT%{_prefix}/include/nptl/$i fi done popd rm -rf $RPM_BUILD_ROOT/nptl # The generic version should be always used rm -f $RPM_BUILD_ROOT%{_prefix}/include/nptl/bits/stdio-lock.h mkdir sed cd sed CFLAGS="$BuildFlags -g -O2" ../../redhat/sed-3.02/configure make -j$numprocs cd .. cd .. %endif # compatibility hack: this locale has vanished from glibc, but some other # programs are still using it. Normally we would handle it in the %pre # section but with glibc that is simply not an option mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/locale/ru_RU/LC_MESSAGES # Remove the files we don't want to distribute rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libNoVersion* %ifnarch %{ix86} alpha alphaev6 sparc sparcv9 rm -f $RPM_BUILD_ROOT/%{_lib}/libNoVersion* %endif rm -f $RPM_BUILD_ROOT%{_bindir}/glibcbug # the man pages for the linuxthreads require special attention make -C linuxthreads/man mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 install -m 0644 linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3 gzip -9nvf $RPM_BUILD_ROOT%{_mandir}/man3/* if [ -d $RPM_BUILD_ROOT%{_prefix}/info -a "%{_infodir}" != "%{_prefix}/info" ]; then mkdir -p $RPM_BUILD_ROOT%{_infodir} mv -f $RPM_BUILD_ROOT%{_prefix}/info/* $RPM_BUILD_ROOT%{_infodir} rm -rf $RPM_BUILD_ROOT%{_prefix}/info fi gzip -9nvf $RPM_BUILD_ROOT%{_infodir}/libc* ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libbsd.a install -m 644 redhat/nsswitch.conf $RPM_BUILD_ROOT/etc/nsswitch.conf mkdir -p $RPM_BUILD_ROOT/etc/default install -m 644 nis/nss $RPM_BUILD_ROOT/etc/default/nss # Take care of setuids # -- new security review sez that this shouldn't be needed anymore #chmod 755 $RPM_BUILD_ROOT%{_prefix}/libexec/pt_chown # This is for ncsd - in glibc 2.2 install -m 644 nscd/nscd.conf $RPM_BUILD_ROOT/etc mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d install -m 755 nscd/nscd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd # Don't include ld.so.cache rm -f $RPM_BUILD_ROOT/etc/ld.so.cache # Include ld.so.conf > $RPM_BUILD_ROOT/etc/ld.so.conf chmod 644 $RPM_BUILD_ROOT/etc/ld.so.conf # 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 # Install the upgrade program install -m 700 build-%{_target_cpu}-linux/glibc_post_upgrade $RPM_BUILD_ROOT/usr/sbin/glibc_post_upgrade strip -g $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.o mkdir $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug cp -a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/ rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/debug/*_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 %ifarch %{prelinkarches} %ifarch i686 athlon # Prelink ld.so and libc.so > prelink.conf # For now disable prelinking of ld.so, as it breaks statically linked # binaries built against non-NDEBUG old glibcs (assert unknown dynamic tag) # /usr/sbin/prelink -c ./prelink.conf -C ./prelink.cache \ # --mmap-region-start=0x00101000 $RPM_BUILD_ROOT/%{_lib}/ld-*.so /usr/sbin/prelink --reloc-only=0x00e80000 $RPM_BUILD_ROOT/%{_lib}/$SubDir/libc-*.so %endif %ifarch alpha alphaev6 # Prelink ld.so and libc.so > prelink.conf # For now disable prelinking of ld.so, as it breaks statically linked # binaries built against non-NDEBUG old glibcs (assert unknown dynamic tag) # /usr/sbin/prelink -c ./prelink.conf -C ./prelink.cache \ # --mmap-region-start=0x0000020000000000 $RPM_BUILD_ROOT/%{_lib}/ld-*.so /usr/sbin/prelink --reloc-only=0x0000020010000000 $RPM_BUILD_ROOT/%{_lib}/$SubDir/libc-*.so %endif %endif # rquota.x and rquota.h are now provided by quota rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx] # Hardlink identical locale files together %ifnarch %{auxarches} gcc -O2 -o build-%{_target_cpu}-linux/hardlink redhat/hardlink.c build-%{_target_cpu}-linux/hardlink -vc $RPM_BUILD_ROOT%{_prefix}/lib/locale %endif # BUILD THE FILE LIST find $RPM_BUILD_ROOT -type f -or -type l | sed -e 's|.*/etc|%config &|' \ -e 's|.*/gconv/gconv-modules$|%verify(not md5 size mtime) %config(noreplace) &|' \ -e 's|.*/gconv/gconv-modules.cache|%verify(not md5 size mtime) &|' \ -e '/%{_lib}\/debug/d' > rpm.filelist.in for n in %{_prefix}/share %{_prefix}/include %{_prefix}/lib/locale; do find ${RPM_BUILD_ROOT}${n} -type d | \ grep -v '%{_prefix}/share$' | \ grep -v '\(%{_mandir}\|%{_infodir}\)' | \ sed "s/^/%dir /" >> rpm.filelist.in done # 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 "s|$RPM_BUILD_ROOT||" -e "$LIB_LANG" -e "$SHARE_LANG" < rpm.filelist.in | grep -v '/etc/\(localtime\|nsswitch.conf\|ld.so.conf\|default\)' | \ grep -v '/%{_lib}/lib\(pcprofile\|memusage\).so' | \ grep -v 'bin/\(memusage\|mtrace\|xtrace\|pcprofiledump\)' | \ 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} for i in $RPM_BUILD_ROOT%{_prefix}/bin/{xtrace,memusage}; do cp -a $i $i.tmp sed -e 's~=/%{_lib}/libpcprofile.so~=%{_prefix}/%{_lib}/libpcprofile.so~' \ -e 's~=/%{_lib}/libmemusage.so~=%{_prefix}/%{_lib}/libmemusage.so~' \ $i.tmp > $i chmod 755 $i; rm -f $i.tmp done grep '%{_prefix}/%{_lib}/lib.*_p\.a' < rpm.filelist > profile.filelist || : egrep "(%{_prefix}/include)|(%{_infodir})" < rpm.filelist | grep -v %{_prefix}/include/nptl | grep -v %{_infodir}/dir > devel.filelist mv rpm.filelist rpm.filelist.full grep -v '%{_prefix}/%{_lib}/lib.*_p.a' rpm.filelist.full | egrep -v "(%{_prefix}/include)|(%{_infodir})" > rpm.filelist grep '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist >> devel.filelist grep '%{_prefix}/%{_lib}/.*\.o' < rpm.filelist >> devel.filelist grep '%{_prefix}/%{_lib}/lib.*\.so' < rpm.filelist >> devel.filelist grep '%{_mandir}' < rpm.filelist >> devel.filelist grep '%{_prefix}/include' < devel.filelist > headers.filelist grep -v '%{_prefix}/include' < devel.filelist > devel.filelist.tmp mv -f devel.filelist.tmp devel.filelist mv rpm.filelist rpm.filelist.full grep -v '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist.full | grep -v '%{_prefix}/%{_lib}/.*\.o' | grep -v '%{_prefix}/%{_lib}/lib.*\.so'| grep -v '%{_prefix}/%{_lib}/nptl' | grep -v '%{_mandir}' | grep -v 'nscd' > rpm.filelist grep '%{_prefix}/bin' < rpm.filelist >> common.filelist grep '%{_prefix}/lib/locale' < rpm.filelist >> common.filelist grep '%{_prefix}/libexec' < rpm.filelist >> common.filelist grep '%{_prefix}/sbin/[^gi]' < rpm.filelist >> common.filelist grep '%{_prefix}/share' < rpm.filelist \ | grep -v '%{_prefix}/share/zoneinfo' >> common.filelist mv rpm.filelist rpm.filelist.full grep -v '%{_prefix}/bin' < rpm.filelist.full | grep -v '%{_prefix}/lib/locale' | grep -v '%{_prefix}/libexec' | grep -v '%{_prefix}/sbin/[^gi]' | grep -v '%{_prefix}/share' > rpm.filelist echo '%{_prefix}/sbin/build-locale-archive' >> common.filelist echo '%{_prefix}/sbin/nscd' > nscd.filelist cat > utils.filelist <&1 | tee check.log || : make -j$numprocs -C sed check || : cd .. %ifarch i686 athlon echo ====================TESTING LINUXTHREADS FS========= cd build-%{_target_cpu}-linuxltfs make -j$numprocs -k check PARALLELMFLAGS=-s 2>&1 | tee check.log || : make -j$numprocs -C sed check || : cd .. %endif %ifarch %{nptlarches} echo ====================TESTING NPTL==================== cd build-%{_target_cpu}-linuxnptl make -j$numprocs -k check PARALLELMFLAGS=-s 2>&1 | tee check.log || : make -j$numprocs -C sed check || : cd .. %endif echo ====================TESTING DETAILS================= for i in `sed -n 's|^.*\*\*\* \[\([^]]*\.out\)\].*$|\1|p' build-%{_target_cpu}-linux*/check.log`; do echo =====$i===== cat $i || : echo ============ done %ifarch i686 athlon echo ====================TESTING LINUXTHREADS FS LD.SO=== cd build-%{_target_cpu}-linuxltfs mv elf/ld.so elf/ld.so.orig cp -a ../build-%{_target_cpu}-linux/elf/ld.so elf/ld.so find . -name \*.out -exec mv -f '{}' '{}'.origldso \; make -j$numprocs -k check PARALLELMFLAGS=-s 2>&1 | tee check2.log || : cd .. %endif %ifarch %{nptlarches} echo ====================TESTING NPTL LD.SO============== cd build-%{_target_cpu}-linuxnptl mv elf/ld.so elf/ld.so.orig cp -a ../build-%{_target_cpu}-linux/elf/ld.so elf/ld.so find . -name \*.out -exec mv -f '{}' '{}'.origldso \; make -j$numprocs -k check PARALLELMFLAGS=-s 2>&1 | tee check2.log || : cd .. %endif echo ====================TESTING DETAILS================= for i in `sed -n 's|^.*\*\*\* \[\([^]]*\.out\)\].*$|\1|p' build-%{_target_cpu}-linux*/check2.log`; do echo =====$i===== cat $i || : echo ============ done echo ====================TESTING END===================== %if "%{_enable_debug_packages}" == "1" case "$-" in *x*) save_trace=yes;; esac set +x echo Building debuginfo subpackage... blf=debugfiles.list sf=debugsources.list cblf=debugcommonfiles.list csf=debugcommonsources.list echo -n > $sf echo -n > $csf # Strip ELF binaries for f in `grep -v '%%\(dir\|lang\|config\|verify\)' rpm.filelist`; do bf=$RPM_BUILD_ROOT$f if [ -f $bf -a -x $bf -a ! -h $bf ]; then if `file $bf 2>/dev/null | grep 'ELF.*, not stripped' | grep -vq 'statically linked'`; then bd=`dirname $f` outd=$RPM_BUILD_ROOT/usr/lib/debug$bd mkdir -p $outd echo extracting debug info from $f /usr/lib/rpm/debugedit -b $RPM_BUILD_DIR -d /usr/src/debug -l $sf $bf bn=`basename $f` case $f in /%{_lib}/*) eu-strip -g -f $outd/$bn.debug $bf || :;; *) eu-strip -f $outd/$bn.debug $bf || :;; esac if [ -f $outd/$bn.debug ]; then echo /usr/lib/debug$bd/$bn.debug >> $blf; fi fi fi done for f in `cat common.filelist utils.filelist nscd.filelist \ | grep -v '%%\(dir\|lang\|config\|verify\)'`; do bf=$RPM_BUILD_ROOT$f if [ -f $bf -a -x $bf -a ! -h $bf ]; then if `file $bf 2>/dev/null | grep 'ELF.*, not stripped' | grep -vq 'statically linked'`; then bd=`dirname $f` outd=$RPM_BUILD_ROOT/usr/lib/debug$bd mkdir -p $outd echo extracting debug info from $f /usr/lib/rpm/debugedit -b $RPM_BUILD_DIR -d /usr/src/debug -l $csf $bf bn=`basename $f` eu-strip -f $outd/$bn.debug $bf || : if [ -f $outd/$bn.debug ]; then echo /usr/lib/debug$bd/$bn.debug >> $cblf; fi fi fi done for f in `find $RPM_BUILD_ROOT/%{_lib} -type l`; do l=`ls -l $f` l=${l#* -> } t=/usr/lib/debug`dirname ${f#$RPM_BUILD_ROOT}` if grep -q "^$t/$l.debug\$" $blf; then ln -sf $l.debug $RPM_BUILD_ROOT$t/`basename $f`.debug echo $t/`basename $f`.debug >> $blf elif grep -q "^$t.debug/$l\$" $cblf; then ln -sf $l.debug $RPM_BUILD_ROOT$t/`basename $f`.debug echo $t/`basename $f`.debug >> $cblf fi done echo Sorting source file lists. Might take a while... xargs -0 -n 1 echo < $sf | LANG=C sort -u > $sf.sorted xargs -0 -n 1 echo < $csf | LANG=C sort -u > $csf.sorted mkdir -p $RPM_BUILD_ROOT/usr/src/debug cat $sf.sorted $csf.sorted \ | (cd $RPM_BUILD_DIR; LANG=C sort -u | cpio -pdm ${RPM_BUILD_ROOT}/usr/src/debug) # stupid cpio creates new directories in mode 0700, fixup find $RPM_BUILD_ROOT/usr/src/debug -type d -print | xargs chmod a+rx %ifarch %{debuginfocommonarches} %ifarch %{auxarches} %ifarch %{ix86} %define basearch i386 %endif %ifarch alpha alphaev6 %define basearch alpha %endif %ifarch sparc sparcv9 %define basearch sparc %endif cat $blf > debuginfo.filelist find $RPM_BUILD_ROOT/usr/src/debug/%{name}-%{version}-%{glibcdate} -type d \ | sed "s#^$RPM_BUILD_ROOT#%%dir #" >> debuginfo.filelist grep '/generic/\|/linux/\|/%{basearch}/\|/nptl\(_db\)\?/\|^%{name}-%{version}-%{glibcdate}/build' \ $sf.sorted | sed 's|^|/usr/src/debug/|' >> debuginfo.filelist touch debuginfocommon.filelist %else ( grep '^%{name}-%{version}-%{glibcdate}/build-\|dl-osinfo\.h' $csf.sorted || : ) > $csf.sorted.build cat $blf > debuginfo.filelist cat $cblf > debuginfocommon.filelist grep '^%{name}-%{version}-%{glibcdate}/build-\|dl-osinfo\.h' $sf.sorted \ | sed 's|^|/usr/src/debug/|' >> debuginfo.filelist find $RPM_BUILD_ROOT/usr/src/debug/%{name}-%{version}-%{glibcdate} -type d \ | sed "s#^$RPM_BUILD_ROOT#%%dir #" >> debuginfocommon.filelist ( cat $csf.sorted; grep -v -f $csf.sorted.build $sf.sorted ) \ | grep -v 'dl-osinfo\.h' | LC_ALL=C sort -u \ | sed 's|^|/usr/src/debug/|' >> debuginfocommon.filelist %endif %else cat $blf $cblf | LC_ALL=C sort -u > debuginfo.filelist echo '/usr/src/debug/%{name}-%{version}-%{glibcdate}' >> debuginfo.filelist %endif [ "x$save_trace" = xyes ] && set -x %endif %ifarch %{auxarches} case "$-" in *x*) save_trace=yes;; esac set +x echo Cutting down the list of unpackaged files for i in `sed '/%%dir/d;/%%config/d;/%%verify/d;s/%%lang([^)]*) //' \ common.filelist devel.filelist headers.filelist profile.filelist \ utils.filelist nscd.filelist`; do [ -f "$RPM_BUILD_ROOT$i" ] && rm -f "$RPM_BUILD_ROOT$i" || : done [ "x$save_trace" = xyes ] && set -x %endif %post -p /usr/sbin/glibc_post_upgrade %postun -p /sbin/ldconfig %post common -p /usr/sbin/build-locale-archive %post devel /sbin/install-info %{_infodir}/libc.info.gz %{_infodir}/dir %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 %preun devel if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/libc.info.gz %{_infodir}/dir 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 || : %post -n nscd /sbin/chkconfig --add nscd %preun -n nscd if [ $1 = 0 ] ; then service nscd stop > /dev/null 2>&1 /sbin/chkconfig --del nscd fi %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 %clean rm -rf "$RPM_BUILD_ROOT" rm -f *.filelist* %files -f rpm.filelist %defattr(-,root,root) %ifarch %{nptlarches} %dir /%{_lib}/tls %endif %ifarch i686 athlon %dir /lib/i686 %endif %ifarch s390x %dir /lib /lib/ld64.so.1 %endif %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 %attr(755,root,root) /etc/default %verify(not md5 size mtime) %config(noreplace) /etc/default/nss %doc README NEWS INSTALL FAQ BUGS NOTES PROJECTS CONFORMANCE %doc COPYING COPYING.LIB README.libm LICENSES %doc hesiod/README.hesiod %ifnarch %{auxarches} %files -f common.filelist common %defattr(-,root,root) %doc documentation/* %files -f devel.filelist devel %defattr(-,root,root) %files -f headers.filelist headers %defattr(-,root,root) %files -f profile.filelist profile %defattr(-,root,root) %files -f utils.filelist utils %defattr(-,root,root) %files debug %defattr(-,root,root) %dir %{_prefix}/%{_lib}/debug %{_prefix}/%{_lib}/debug/*.a %files -f nscd.filelist -n nscd %defattr(-,root,root) %config(noreplace) /etc/nscd.conf %config /etc/rc.d/init.d/nscd %endif %ifarch %{nptlarches} %files -n nptl-devel %defattr(-,root,root) %{_prefix}/include/nptl %{_prefix}/%{_lib}/nptl %endif %if "%{_enable_debug_packages}" == "1" %files debuginfo -f debuginfo.filelist %defattr(-,root,root) %ifarch %{debuginfocommonarches} %ifnarch %{auxarches} %files debuginfo-common -f debuginfocommon.filelist %defattr(-,root,root) %endif %endif %endif %changelog * Thu Apr 21 2005 Scott R. Shinn 2.3.2-96.30.art - patched for PaX * Fri Oct 22 2004 Jakub Jelinek 2.3.2-95.30 - ignore also ENODEV and ETIMEDOUT error values when searching paths in execvp/execlp (#136726) - use non-blocking sockets when querying DNS (#135234) * Thu Oct 21 2004 Jakub Jelinek 2.3.2-95.29 - fix temp file vulnerability in catchsegv (CAN-2004-0968, #136318) - make catchsegv working even on bi-arch platforms for both 32-bit and 64-bit binaries - use backtrace () in libSegFault.so, so that catchsegv works even on ia64 and x86-64, add register dumping on ia64 (#130254) - use statfs64/fstatfs64 syscalls on 32-bit arches if available, fix statvfs64/fstatvfs64 (#116428) - change SEM_VALUE_MAX into plain constant - fix reinitialization of _res when using NPTL thread stack cache (BZ #434) - update bug-reporting instructions, remove glibcbug script - fix infinite loop in iconv(1) with some options (BZ #194) - fix inet_aton return value (BZ #276) - fix lateglobal test - add BUSY_WAIT_NOP definition for linuxthreads on x86_64 and ia64 to tell CPU about busy waiting - mask restart signal in linuxthreads during cancel handling (#132654) - don't ever block or mask debug signal in linuxthreads - fix locale(1) output when neither LC_ALL nor LANG env var is set - avoid using unitialized memory in localedef - fix mntent_r escape processing - fix mtrace script to only call location when really needed - fix libthread_db on ppc64 - add cfi instructions to linuxthreads/x86_64 vfork - fix some -D_POSIX_C_SOURCE=200112L header namespace issues * Wed Oct 6 2004 Jakub Jelinek 2.3.2-95.28 - fix V4MAPPED lookups in /etc/hosts (#123583) - always try both TCP and UDP reporting for syslog (#132816, BZ #108) - fix ypclnt.c locking (#132204) - clear high order 32-bits in powerpc64 32-bit atomic ops - avoid fragmentation of address space by malloc on flexmap layouts (#118574) - fix x86_64 for -m32 -I/usr/include/nptl compilation - make NPTL usable in -pedantic -std=c89 mode, as well as in C++ programs (BZ #375) - make rwlocks available with -D_POSIX_C_SOURCE=200112L (BZ #320) - remove __THROW from pthread_once, as the callback might throw - return EAGAIN instead of ENOMEM if pthread_create fails due to lack of memory - fix NPTL stack freeing in case of pthread_create failure with detached thread (BZ #405) - fix i?86 and x86_64 pthread_mutex_timedlock - save gp around linuxthreads ia64 CENABLE/CDISABLE calls - fix s390{,x} unwinding when frames are smaller than 96 (resp. 160) bytes - fix _POSIX_CHILD_MAX and _POSIX_OPEN_MAX values XPG6, add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX, _POSIX_SYMLOOP_MAX and _POSIX_RE_DUP_MAX defines - fix fnmatch backslash handling (BZ #361) - fix out of memory behaviour of syslog (BZ #365) - randomize resolver requests IDs all the time - fix daemon behaviour if /dev/null is not the correct device or it failed to open it - fix *sprintf buffer reallocation condition (BZ #346) - handle _nl_intern_locale_data (BZ #356) - fix fdim{,f,l} (+inf, +inf) (BZ #376) - fix glob on dangling symlinks - stop using __builtin_expect in assert.h (#127606) - fix cy_GB d_t_fmt (#103415) * Mon Aug 30 2004 Jakub Jelinek 2.3.2-95.27 - ugly hacks for the IA-64 /emul braindamage (#124996, #128267) * Thu Aug 19 2004 Jakub Jelinek 2.3.2-95.26 - fix hack for buggy x86-64 kernels (#130059) * Tue Aug 17 2004 Jakub Jelinek 2.3.2-95.25 - add a hack for buggy x86-64 kernels (#130059) - make SHMLBA from usable even in C++ (#132313) - fix with -std=c{8,9}9 -D_XOPEN_SOURCE=600, but without -D_POSIX_C_SOURCE=200112L (BZ #284) - fix IPv6 AI_V4MAPPED filtering - fix i386 and x86-64 pow{,f,l} (BZ #258) - fix IBM932 and IBM943 iconv modules (#128674) - fix ifreq memory handling - fix loadavg if read returns 0 (BZ #263) - fix mbsrtowcs if src is not zero terminated - fix memusage with lots of allocations (BZ #285) - fix newlocale locking - fix NPTL pthread_rwlock_{timed}rdlock on architectures other than ia32 and x86-64 (#129455) - fix nscd_getgr_r - fix nscd -i hosts to cause reinitialization of resolver in all threads, not just one (#125712) - fix ppc64 setjmp (#128360, BZ #269) - fix res_init () memory leaks - initialize all needed fields before call to __printf_fp in strfmon{,_l} and printf_size - fix strtod (BZ #274) - fix fread_unlocked and fwrite_unlocked (BZ #309, #316) * Thu Jul 8 2004 Jakub Jelinek 2.3.2-95.24 - don't hold rtld lock while running _dl_fini destructors (#126111) * Wed Jul 7 2004 Jakub Jelinek 2.3.2-95.23 - fix linuxthreads clock_[gs]ettime (#127328) - fix a bug in DSO holes handling introduced by execstack changes - only canonicalize first name in getaddrinfo with AI_CANONNAME * Sun Jul 4 2004 Jakub Jelinek 2.3.2-95.22 - enable execstack (and backport all execstack related changes) on IA-32 and x86-64 - fix an uninitialized field in __parse_one_specmb - reread resolv.conf in nscd when running nscd --invalidate hosts (#125712) - fix F_{GETLK,SETLK,SETLKW} definitions on x86_64 for -m32 -D_FILE_OFFSET_BITS=64 - avoid referencing freed memory in sunrpc pmaplist destruction (BZ #218) - fix sqrt special case handling on s390/s390x - duplicate i386 bits/mathinline.h in x86_64 bits/mathinline.h guarded with __WORDSIZE == 32, add md5sum check to force upgrade of this patch if i386 bits/mathinline.h changes (#125173) - fix pthread_rwlock_timed*lock and pthread_cond_timedwait handling of invalid tv_nsec - remove /usr/include/nptl/bits/stdio-lock.h from nptl-devel (BZ #245) * Wed Jun 16 2004 Jakub Jelinek 2.3.2-95.21 - speed up sprintf if buffer starts in the first half of address space (#123148) - fix ia64 iopl (#118591) - fix clock_settime error reporting - fix x86-64 LD_DEBUG=statistics - fix hwcap handling when using ld.so.cache (#118518) - fix iconv -c (#117021) - fix PPC64 umount - fix ffsl on some architectures, speedup ffsll on ppc64 - various memory handling fixes - fix *scanf - fix strpbrk macro in - fix strpbrk macro for GCC 3.4+ (BZ #130) - fix (BZ #140) - define S_ISSOCK in -D_XOPEN_SOURCE=600 and S_I[FS]SOCK plus F_[SG]ETOWN also in -D_XOPEN_SOURCE=500 (both included already in XNS5) - reorder dlopen checks, so that dlopening ET_REL objects complains about != ET_DYN != ET_EXEC, not about phentsize (#121606) - fix sem_timedwait return value in linuxthreads (BZ #133) - fix - fix x86_64 makecontext - fix regex translate handling - fix RELA undefined TLS symbol relocation - fix -z nodelete DSO handling - fix nss_nis reentrancy problems - fix setenv handling of invalid arguments - fix ia64/x86_64 backtrace in statically linked programs - fix xtrace error reporting - fix timer_* SIGEV_NONE handling - FUTEX_CMP_REQUEUE support * Fri Apr 2 2004 Jakub Jelinek 2.3.2-95.20 - add SERVICES_AUTHORITATIVE setting to /etc/default/nss * Thu Apr 1 2004 Jakub Jelinek 2.3.2-95.19 - for getservbyname{,_r}, do yp_match on name instead of name/tcp, followed by name/udp before fallback if protocol is NULL - fix return value of fwrite when writing >= 2GB of data at once on 64-bit arches * Wed Mar 31 2004 Jakub Jelinek 2.3.2-95.18 - fix a bug in getservbyport{,_r} - if protocol is NULL for getservby*, first search for "tcp", then "udp" protocol by yp_match and then fallback to sequential scanning - speed up getservby{name,port}{,_r} (arg, NULL) when using NIS (#103576) - add NETID_AUTHORITATIVE support (#118338) * Sat Mar 13 2004 Jakub Jelinek 2.3.2-95.17 - fix last PPC{,64} nptl_db/linuxthreads_db patch * Sat Mar 13 2004 Jakub Jelinek 2.3.2-95.16 - adjust PPC{,64} DW_OP_GNU_push_tls_address values - rebuilt with GCC 3.2.3-31 to fix DW_OP_GNU_push_tls_address values in glibc-debuginfo - fix a gconv memory leak - take gconv lock during fclose * Wed Mar 3 2004 Jakub Jelinek 2.3.2-95.15 - fix posix_fadvise on 64-bit architectures - handle full 32-bit nlink_t in ppc32 {,l,f}stat * Mon Mar 1 2004 Jakub Jelinek 2.3.2-95.14 - fix last nscd patch * Sat Feb 28 2004 Jakub Jelinek 2.3.2-95.13 - nscd fixes - revert NGROUPS_MAX patch - new NPTL condvar tests * Thu Feb 26 2004 Jakub Jelinek 2.3.2-95.12 - add locking for dladdr, dlsym and dlvsym - fix 2 bugs in getaddrinfo (#116526) - fix also inline lrint and lrintf versions on ppc64 - fix linuxthreads spinlocks on ppc64 - fix mbtowc with very large len argument (#116606) - get NGROUPS_MAX value from the kernel if kernel provides it - change NPTL barrier implementation, so that it is not possible to destroy it while still being used - fix NPTL rwlocks on x86-64 - speedup lowlevellock on ia32 and x86-64 - don't use vfork in popen - small nscd fixes - regex updates - posix_fadvise64 fix on ia32 - NIS performance patches - disable NEED_DL_SYSINFO and all vDSO support altogether * Fri Feb 13 2004 Jakub Jelinek 2.3.2-95.11 - pthread_cond_timedwait bugfix - fix lrint and lrintf on ppc64 * Thu Feb 12 2004 Jakub Jelinek 2.3.2-95.10 - assorted AMD64 bugfixes - %I format directive fixes - IPv6 resolver now uses two-nibble format by default again - ISO_6937-2 conversion fixes - PRI*FAST* macro fix in - readahead prototypes in - IA-64 fixes - updated be, nl, ja and pl translations - {,l}lr{ound,int}* fixes - *ent{,_r} locking fixes - don't acquire stdio lock on exit - cap TZ env var hours to 24, not 23 - avoid using too much stack in setenv - another round of regex updates - use int $0x80 instead of call %gs:SYSINFO_OFFSET to enter kernel on i686 - temporarily disable FUTEX_REQUEUE to see if that fixes #115349 * Thu Jan 8 2004 Jakub Jelinek 2.3.2-95.9 - some further regex speedups - fix re.translate handling in regex (#112869) - change regfree to match old regex behaviour (what is freed and clearing of freed pointers) - fix backtrace in threads on AMD64 * Wed Dec 31 2003 Jakub Jelinek 2.3.2-95.8 - fix pmap_set fd and memory leak (#112726) - fix backreference handling in regex * Mon Dec 29 2003 Jakub Jelinek 2.3.2-95.7 - fix to make pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, ) really disable cancellation (#112512) - lots of regex fixes and speedups (#109606, #110401) - fix nextafter*/nexttoward* - handle 6th syscall(3) argument on AMD64 - handle memalign/posix_memalign in mtrace - fix linuxthreads memory leak (#112208) - remove throw () from cancellation points in linuxthreads (#112602) - fix NPTL unregister_atfork - fix unwinding through alternate signal stacks - fix atan2 - fix pshared condvars in NPTL - fix pthread_attr_destroy for attributes created with pthread_attr_init@GLIBC_2.0 - add BuildPrereq texinfo (#110252) - fix pthread_exit in libpthread.a (#109790) - fix ceill/floorl on AMD64 - work around IA64 gas bug with unwind info and .align - fix NPTL configure - allow dlopen after fork () in threaded programs - compute IA-64 default thread stack size correctly - fix thread stacks with ulimit -s not a multiple of a page size * Fri Nov 6 2003 Jakub Jelinek 2.3.2-95.6 - fix getifaddrs (CAN-2003-0859) * Thu Nov 6 2003 Jakub Jelinek 2.3.2-95.5 - fix ftw fd leak - fix linuxthreads sigaction (#108634) - fix glibc 2.0 stdio compatibility - fix uselocale (LC_GLOBAL_LOCALE) - fix sprof (#103727) - prevent dlopening of executables - fix glob with GLOB_BRACE and without GLOB_NOESCAPE - fix getnameinfo and getaddrinfo with reverse IPv6 lookups (#101261) - fix statvfs - speed up stdio locking in non-threaded programs on IA-32 - try to maintain correct order of cleanups between those registered with __attribute__((cleanup)) and with LinuxThreads style pthread_cleanup_push/pop (#108631) * Fri Oct 24 2003 Jakub Jelinek 2.3.2-95.4 - implement backtrace () on IA-64, handle -fomit-frame-pointer in AMD64 backtrace () (#90402) - fix hwcap computation - fix locale printing of word values on 64-bit big-endian arches (#107846) - fix pthread_once on IA-32 * Thu Oct 2 2003 Jakub Jelinek 2.3.2-95.3 - fix close, pause and fsync (#105348) * Mon Sep 29 2003 Jakub Jelinek 2.3.2-95.2 - fix with C++ or -ansi or -pedantic C * Mon Sep 29 2003 Jakub Jelinek 2.3.2-95.1 - fix mknod/ustat return value when given bogus device number (#105768) * Fri Sep 26 2003 Jakub Jelinek 2.3.2-95 - fix IA-64 getcontext * Thu Sep 25 2003 Jakub Jelinek 2.3.2-94 - update from CVS - fix syslog with non-C non-en_* locales (#61296, #104979) - filter GLIBC_PRIVATE symbols from glibc provides - fix NIS+ * Thu Sep 25 2003 Jakub Jelinek 2.3.2-93 - update from CVS - assume 2.4.21 kernel features on RHEL/ppc*, so that {make,set,get,swap}context works - backout execstack support for RHEL - build rtkaio on amd64 too * Wed Sep 24 2003 Jakub Jelinek 2.3.2-92 - update from CVS - execstack/noexecstack support - build nscd as PIE - move __libc_stack_end back to @GLIBC_2.1 - build against elfutils >= 0.86 to fix stripping on s390x * Mon Sep 22 2003 Jakub Jelinek 2.3.2-91 - rebuilt * Mon Sep 22 2003 Jakub Jelinek 2.3.2-90 - update from CVS - NPTL locking change (#102682) - don't jump around lock on amd64 * Thu Sep 18 2003 Jakub Jelinek 2.3.2-89 - fix open_memstream/syslog (#104661) * Thu Sep 18 2003 Jakub Jelinek 2.3.2-88 - update from CVS - retrieve affinity in pthread_getattr_np - fix pthread_attr_[gs]etaffinity_np - handle hex and octal in wordexp * Wed Sep 17 2003 Jakub Jelinek 2.3.2-87 - update from CVS - truncate instead of round in utimes when utimes syscall is not available - don't align stack in every glibc function unnecessarily on IA-32 - make sure threads have their stack 16 byte aligned on IA-32 - move sched_[sg]etaffinity to GLIBC_2.3.3 symbol version (#103231) - fix pthread_getattr_np for the initial thread (#102683) - avoid linuxthreads signal race (#104368) - ensure all gzip invocations are done with -n option * Fri Sep 12 2003 Jakub Jelinek 2.3.2-86 - update from CVS - avoid linking in libgcc_eh.a unnecessarily - change ssize_t back to long int on s390 -m31, unless gcc 2.95.x is used * Wed Sep 10 2003 Jakub Jelinek 2.3.2-85 - update from CVS - fix IA-64 memccpy (#104114) * Tue Sep 9 2003 Jakub Jelinek 2.3.2-84 - update from CVS - undo broken amd64 signal context changes * Tue Sep 9 2003 Jakub Jelinek 2.3.2-83 - update from CVS - change *nlink_t, *ssize_t and *intptr_t types on s390 -m31 to {unsigned,} int - change *u_quad_t, *quad_t, *qaddr_t, *dev_t, *ino64_t, *loff_t, *off64_t, *rlim64_t, *blkcnt64_t, *fsblkcnt64_t, *fsfilcnt64_t on 64-bit arches from {unsigned,} long long int {,*} to {unsigned,} long int {,*} to restore binary compatibility for C++ functions using these types as arguments * Sun Sep 7 2003 Jakub Jelinek 2.3.2-82 - rebuilt * Sat Sep 6 2003 Jakub Jelinek 2.3.2-81 - update from CVS - fix tc[gs]etattr/cf[gs]et[io]speed on ppc (#102732) - libio fixes * Thu Sep 4 2003 Jakub Jelinek 2.3.2-80 - update from CVS - fix IA-64 cancellation when mixing __attribute__((cleanup ())) and old-style pthread_cleanup_push cleanups * Tue Sep 2 2003 Jakub Jelinek 2.3.2-79 - updated from CVS - lots of cancellation fixes - fix posix_fadvise* on ppc32 - TLS layout fix - optimize stdio cleanups (#103354) - sparcv9 NPTL - include sigset, sighold, sigrelse, sigpause and sigignore prototypes in signal.h even if -D_XOPEN_SOURCE_EXTENDED (#103269) - fix svc_getreqset on 64-bit big-endian arches - return ENOSYS in linuxthreads pthread_barrierattr_setpshared for PTHREAD_PROCESS_SHARED - add pthread_cond_timedwait stubs to libc.so (#102709) - split glibc-devel into glibc-devel and glibc-headers to ensure amd64 /usr/include always wins on amd64/i386 bi-arch installs - increase PTHREAD_STACK_MIN on alpha, ia64 and sparc* - get rid of __syscall_* prototypes and stubs in sysdeps/unix/sysv/linux - run make check also with linuxthreads (on IA-32 non-FLOATING_STACKS) ld.so and NPTL (on IA-32 also FLOATING_STACKS linuxthreads) libraries and tests * Tue Aug 25 2003 Jakub Jelinek 2.3.2-78 - include dl-osinfo.h only in glibc-debuginfo-2*.rpm, not in glibc-debuginfo-common* * Mon Aug 25 2003 Jakub Jelinek 2.3.2-77 - update from CVS - fix glibc 2.0 libio compatibility (#101385) - fix ldconfig with /usr/lib/lib*.so symlinks (#102853) - fix assert.h (#102916, #103017) - make ld.so.cache identical between IA-32 and AMD64 (#102887) - fix static linking of large IA-64 binaries (#102586) - avoid using floating point regs in lazy binding code on ppc64 (#102763) * Fri Aug 22 2003 Roland McGrath 2.3.2-76 - add td_thr_tls_get_addr changes missed in initial nptl_db rewrite * Sun Aug 17 2003 Roland McGrath 2.3.2-74 - nptl_db rewrite not yet in CVS * Thu Aug 14 2003 Jakub Jelinek 2.3.2-72 - update from CVS - fix rtkaio aio_fsync{,64} - update rtkaio for !BROKEN_THREAD_SIGNALS - fix assert macro when used on pointers * Wed Aug 13 2003 Jakub Jelinek 2.3.2-71 - update from CVS * Tue Aug 12 2003 Jakub Jelinek 2.3.2-70 - update from CVS - disable CLONE_STOPPED for now until it is resolved - strip crt files - fix libio on arches with no < GLIBC_2.2 support (#102102, #102105) - fix glibc-debuginfo to include all nptl and nptl_db sources * Thu Aug 7 2003 Jakub Jelinek 2.3.2-69 - update from CVS - fix pthread_create@GLIBC_2.0 (#101767) - __ASSUME_CLONE_STOPPED on all arches but s390* in RHEL * Sun Aug 3 2003 Jakub Jelinek 2.3.2-68 - update from CVS - only use CLONE_STOPPED if kernel supports it, fix setting of thread explicit scheduling (#101457) * Fri Aug 1 2003 Jakub Jelinek 2.3.2-67 - update from CVS - fix utimes and futimes if kernel doesn't support utimes syscall - fix s390 ssize_t type - fix dlerror when called before any dlopen/dlsym - update IA-64 bits/sigcontext.h (#101344) - various warning fixes - fix pthread.h comment typos (#101363) * Wed Jul 30 2003 Jakub Jelinek 2.3.2-66 - update from CVS - fix dlopen of libraries using TLS IE/LE models * Tue Jul 29 2003 Jakub Jelinek 2.3.2-65 - update from CVS - fix timer_create - use __extension__ before long long typedefs in (#100718) * Mon Jul 28 2003 Jakub Jelinek 2.3.2-64 - update from CVS - fix wcpncpy (#99462) - export _res@GLIBC_2.0 even from NPTL libc.so (__res_state () unlike __errno_location () or __h_errno_location () was introduced in glibc 2.2) - fix zic bug on 64-bit platforms - some TLS handling fixes - make ldconfig look into alternate ABI dirs by default (#99402) - move %{_datadir}/zoneinfo to tzdata package, so that it can be errataed separately from glibc - new add-on - rtkaio - prereq libgcc, as glibc now relies on libgcc_s.so.1 for pthread_cancel * Tue Jul 15 2003 Jakub Jelinek 2.3.2-63 - fix thread cancellation on ppc64 * Sat Jul 12 2003 Jakub Jelinek 2.3.2-62 - update from CVS - fix thread cancellation on ppc32, s390 and s390x * Thu Jul 10 2003 Jakub Jelinek 2.3.2-61 - update from CVS - build libc_nonshared.a with -fPIC instead of -fpic - fix ppc64 PIE support - add cfi directives to NPTL sysdep-cancel.h on ppc/ppc64/s390/s390x * Tue Jul 8 2003 Jakub Jelinek 2.3.2-60 - update from CVS * Thu Jul 3 2003 Jakub Jelinek 2.3.2-59 - update from CVS - on IA-64 use different symbols for cancellation portion of syscall handlers to make gdb happier * Thu Jun 26 2003 Jakub Jelinek 2.3.2-58 - update from CVS - nss_compat supporting LDAP etc. * Tue Jun 24 2003 Jakub Jelinek 2.3.2-57 - update from CVS * Thu Jun 19 2003 Jakub Jelinek 2.3.2-56 - fix condvars and semaphores in ppc* NPTL - fix test-skeleton.c reporting of timed-out tests (#91269) - increase timeouts for tests during make check * Wed Jun 18 2003 Jakub Jelinek 2.3.2-55 - make ldconfig default to both /lib+/usr/lib and /lib64+/usr/lib64 on bi-ABI architectures (#97557) - disable FUTEX_REQUEUE on ppc* temporarily * Wed Jun 18 2003 Jakub Jelinek 2.3.2-54 - update from CVS - fix glibc_post_upgrade on ppc * Tue Jun 17 2003 Jakub Jelinek 2.3.2-53 - update from CVS - fix localedef (#90659) - tweak linuxthreads for librt cancellation * Mon Jun 16 2003 Jakub Jelinek 2.3.2-52 - update from CVS * Thu Jun 12 2003 Jakub Jelinek 2.3.2-51 - update from CVS - fix (#97169) * Wed Jun 11 2003 Jakub Jelinek 2.3.2-50 - update from CVS * Tue Jun 10 2003 Jakub Jelinek 2.3.2-49 - update from CVS - fix pthread_cond_signal on IA-32 (#92080, #92253) - fix setegid (#91567) - don't prelink -R libc.so on any architecture, it prohibits address randomization * Fri Jun 5 2003 Jakub Jelinek 2.3.2-48 - update from CVS - fix IA-64 NPTL build * Thu Jun 5 2003 Jakub Jelinek 2.3.2-47 - update from CVS - PT_GNU_STACK segment in binaries/executables and .note.GNU-stack section in *.[oa] * Sun Jun 1 2003 Jakub Jelinek 2.3.2-46 - update from CVS - enable NPTL on AMD64 - avoid using trampolines in localedef * Fri May 29 2003 Jakub Jelinek 2.3.2-45 - enable NPTL on IA-64 * Fri May 29 2003 Jakub Jelinek 2.3.2-44 - update from CVS - enable NPTL on s390 and s390x - make __init_array_start etc. symbols in elf-init.oS hidden undefined * Thu May 29 2003 Jakub Jelinek 2.3.2-43 - update from CVS * Fri May 23 2003 Jakub Jelinek 2.3.2-42 - update from CVS * Tue May 20 2003 Jakub Jelinek 2.3.2-41 - update from CVS - use NPTL libs if uname -r contains nptl substring or is >= 2.5.69 or set_tid_address syscall is available instead of checking AT_SYSINFO dynamic tag * Thu May 15 2003 Jakub Jelinek 2.3.2-40 - update from CVS * Wed May 14 2003 Jakub Jelinek 2.3.2-39 - update from CVS - fix for prelinking of libraries with no dependencies * Tue May 13 2003 Jakub Jelinek 2.3.2-38 - update from CVS - enable NPTL on ppc and ppc64 * Tue May 6 2003 Matt Wilson 2.3.2-37 - rebuild * Sun May 4 2003 Jakub Jelinek 2.3.2-36 - update from CVS * Sat May 3 2003 Jakub Jelinek 2.3.2-35 - update from CVS - make -jN build fixes * Fri May 2 2003 Jakub Jelinek 2.3.2-34 - update from CVS - avoid using trampolines in iconvconfig for now * Sat Apr 26 2003 Jakub Jelinek 2.3.2-33 - update from CVS * Fri Apr 25 2003 Jakub Jelinek 2.3.2-32 - update from CVS - more ppc TLS fixes * Wed Apr 23 2003 Jakub Jelinek 2.3.2-31 - update from CVS - nscd fixes - fix Bahrain spelling (#56298) - fix Ukrainian collation (#83973) - accept trailing spaces in /etc/ld.so.conf (#86032) - perror fix (#85994) - fix localedef (#88978) - fix getifaddrs (#89026) - fix strxfrm (#88409) - fix ppc TLS - fix getaddrinfo (#89448) - don't print warning about errno, h_errno or _res if LD_ASSUME_KERNEL=2.4.1 or earlier * Tue Apr 15 2003 Jakub Jelinek 2.3.2-30 - update from CVS - fix prelink on ppc32 - add TLS support on ppc32 and ppc64 - make sure on -m64 arches all helper binaries are built with this option * Mon Apr 14 2003 Jakub Jelinek 2.3.2-29 - update from CVS - fix strxfrm (#88409) - use -m64 -mno-minimal-toc on ppc64 - conflict with kernels < 2.4.20 on ppc64 and < 2.4.0 on x86_64 - link glibc_post_upgrade against newly built libc.a * Sun Apr 13 2003 Jakub Jelinek 2.3.2-28 - update from CVS - fix NPTL pthread_detach and already terminated, but not yet joined thread (#88219) - fix bug-regex4 testcase (#88118) - reenable prelink support broken in 2.3.2-13 - fix register_printf_function (#88052) - fix double free with fopen using ccs= (#88056) - fix potential access below $esp in {set,swap}context (#88093) - fix buffer underrun in gencat -H (#88099) - avoid using unitialized variable in tst-tgmath (#88101) - fix gammal (#88104) - fix iconv -c - fix xdr_string (PR libc/4999) - fix /usr/lib/nptl/librt.so symlink - avoid running NPTL cleanups twice in some cases - unblock __pthread_signal_cancel in linuxthreads, so that linuxthreads threaded programs work correctly if spawned from NPTL threaded programs - fix sysconf _SC_{NPROCESSORS_{CONF,ONLN},{,AV}PHYS_PAGES} - remove /lib/i686 directory before running ldconfig in glibc post during i686 -> i386 glibc "upgrades" (#88456) * Wed Apr 2 2003 Jakub Jelinek 2.3.2-22 - update from CVS - add pthread_atfork to libpthread.a * Tue Apr 1 2003 Jakub Jelinek 2.3.2-21 - update from CVS - make sure linuxthreads pthread_mutex_lock etc. is not a cancellation point * Sat Mar 29 2003 Jakub Jelinek 2.3.2-20 - update from CVS - if kernel >= 2.4.1 doesn't support NPTL, fall back to /lib/i686 libs on i686, not stright to /lib * Fri Mar 28 2003 Jakub Jelinek 2.3.2-19 - update from CVS - timers fixes * Thu Mar 27 2003 Jakub Jelinek 2.3.2-18 - update from CVS - fix NPTL pthread_cond_timedwait - fix sysconf (_SC_MONOTONIC_CLOCK) - use /%%{_lib}/tls instead of /lib/tls on x86-64 - add /%{_lib}/tls/librt*so* and /%{_lib}/i686/librt*so* - display content of .out files for all make check failures * Wed Mar 26 2003 Jakub Jelinek 2.3.2-17 - update from CVS - kernel POSIX timers support * Sat Mar 22 2003 Jakub Jelinek 2.3.2-16 - update from CVS - export __fork from glibc again - fix glibc-compat build in NPTL - fix c_stubs - fix some more atomic.h problems - don't check abi in glibc-compat libs * Fri Mar 21 2003 Jakub Jelinek 2.3.2-15 - update from CVS - build glibc-compat (for glibc 2.0 compatibility) and c_stubs add-ons - condrestart sshd in glibc_post_upgrade so that the user can log in remotely and handle the rest (#86339) - fix a typo in glibc_post_upgrade on sparc * Tue Mar 18 2003 Jakub Jelinek 2.3.2-14 - update from CVS - change i686/athlon libc.so.6 base to 0x00e80000 * Mon Mar 17 2003 Jakub Jelinek 2.3.2-13 - update from CVS - hopefully last fix for condvar problems * Fri Mar 14 2003 Jakub Jelinek 2.3.2-12 - fix bits/syscall.h creation on x86-64 * Thu Mar 13 2003 Jakub Jelinek 2.3.2-11 - update from CVS * Wed Mar 12 2003 Jakub Jelinek 2.3.2-10 - update from CVS * Tue Mar 11 2003 Jakub Jelinek 2.3.2-9 - update from CVS - fix glibc-debug description (#85111) - make librt.so a symlink again, not linker script * Tue Mar 4 2003 Jakub Jelinek 2.3.2-8 - update from CVS - remove the workarounds for broken software accessing GLIBC_PRIVATE symbols * Mon Mar 3 2003 Jakub Jelinek 2.3.2-7 - update from CVS * Sun Mar 2 2003 Jakub Jelinek 2.3.2-6 - fix TLS IE/LE model handling in dlopened libraries on TCB_AT_TP arches * Thu Feb 25 2003 Jakub Jelinek 2.3.2-5 - update from CVS * Tue Feb 25 2003 Jakub Jelinek 2.3.2-4 - update from CVS * Mon Feb 24 2003 Jakub Jelinek 2.3.2-3 - update from CVS - only warn about errno, h_errno or _res for binaries, never libraries - rebuilt with gcc-3.2.2-4 to use direct %gs TLS access insn sequences * Sun Feb 23 2003 Jakub Jelinek 2.3.2-2 - update from CVS * Sat Feb 22 2003 Jakub Jelinek 2.3.2-1 - update from CVS * Thu Feb 20 2003 Jakub Jelinek 2.3.1-51 - update from CVS * Wed Feb 19 2003 Jakub Jelinek 2.3.1-50 - update from CVS * Wed Feb 19 2003 Jakub Jelinek 2.3.1-49 - update from CVS - remove nisplus and nis from the default nsswitch.conf (#67401, #9952) * Tue Feb 18 2003 Jakub Jelinek 2.3.1-48 - update from CVS * Sat Feb 15 2003 Jakub Jelinek 2.3.1-47 - update from CVS * Fri Feb 14 2003 Jakub Jelinek 2.3.1-46 - update from CVS - pthread_cond* NPTL fixes, new NPTL testcases * Thu Feb 13 2003 Jakub Jelinek 2.3.1-45 - update from CVS - include also linuxthreads FLOATING_STACKS libs on i686 and athlon: LD_ASSUME_KERNEL=2.2.5 to LD_ASSUME_KERNEL=2.4.0 is non-FLOATING_STACKS lt, LD_ASSUME_KERNEL=2.4.1 to LD_ASSUME_KERNEL=2.4.19 is FLOATING_STACKS lt, later is NPTL - enable TLS on alpha/alphaev6 - add BuildPreReq: /usr/bin/readlink * Tue Feb 11 2003 Jakub Jelinek 2.3.1-44 - update from CVS - pthread_once fix * Mon Feb 10 2003 Jakub Jelinek 2.3.1-43 - update from CVS - vfork fix on s390 - rebuilt with binutils 2.13.90.0.18-5 so that accesses to errno don't bind locally (#83325) * Thu Feb 06 2003 Jakub Jelinek 2.3.1-42 - update from CVS - fix pthread_create after vfork+exec in linuxthreads * Wed Feb 05 2003 Jakub Jelinek 2.3.1-41 - update from CVS * Thu Jan 30 2003 Jakub Jelinek 2.3.1-40 - update from CVS * Wed Jan 29 2003 Jakub Jelinek 2.3.1-39 - update from CVS - enable TLS on s390{,x} and sparc{,v9} * Fri Jan 17 2003 Jakub Jelinek 2.3.1-38 - update from CVS - initialize __environ in glibc_post_upgrade to empty array, so that it is not NULL - compat symlink for s390x /lib/ld64.so.1 - enable glibc-profile on x86-64 - only include libNoVersion.so on IA-32, Alpha and Sparc 32-bit * Thu Jan 16 2003 Jakub Jelinek 2.3.1-37 - update from CVS - nscd fixes, *scanf fix - fix %%nptlarches noarch build (#81909) - IA-64 TLS fixes * Tue Jan 14 2003 Jakub Jelinek 2.3.1-36 - update from CVS - rework -debuginfo subpackage, add -debuginfo-common subpackage on IA-32, Alpha and Sparc (ie. auxiliary arches) - fix vfork in libc.a on PPC32, Alpha, Sparc - fix libio locks in linuxthreads libc.so if libpthread.so is dlopened later (#81374) * Mon Jan 13 2003 Jakub Jelinek 2.3.1-35 - update from CVS - dlclose bugfixes - fix NPTL libpthread.a - fix glibc_post_upgrade on several arches * Sat Jan 11 2003 Jakub Jelinek 2.3.1-34 - update from CVS - TLS support on IA-64 * Wed Jan 8 2003 Jakub Jelinek 2.3.1-33 - fix vfork in linuxthreads (#81377, #81363) * Tue Jan 7 2003 Jakub Jelinek 2.3.1-32 - update from CVS - don't use TLS libs if kernel doesn't set AT_SYSINFO (#80921, #81212) - add ntp_adjtime on alpha (#79996) - fix nptl_db (#81116) * Sun Jan 5 2003 Jakub Jelinek 2.3.1-31 - update from CVS - support all architectures again * Fri Jan 3 2003 Jakub Jelinek 2.3.1-30 - fix condvar compatibility wrappers - add ugly hack to use non-TLS libs if a binary is seen to have errno, h_errno or _res symbols in .dynsym * Fri Jan 3 2003 Jakub Jelinek 2.3.1-29 - update from CVS - fixes for new condvar * Thu Jan 2 2003 Jakub Jelinek 2.3.1-28 - new NPTL condvar implementation plus related linuxthreads symbol versioning updates * Thu Jan 2 2003 Jakub Jelinek 2.3.1-27 - update from CVS - fix #include with -D_BSD_SOURCE or without feature set macros - make *sigaction, sigwait and raise the same between -lpthread -lc and -lc -lpthread in linuxthreads builds * Tue Dec 31 2002 Jakub Jelinek 2.3.1-26 - fix dlclose * Sun Dec 29 2002 Jakub Jelinek 2.3.1-25 - enable sysenter by default for now - fix endless loop in ldconfig * Sat Dec 28 2002 Jakub Jelinek 2.3.1-24 - update from CVS * Fri Dec 27 2002 Jakub Jelinek 2.3.1-23 - update from CVS - fix ptmalloc_init after clearenv (#80370) * Sun Dec 22 2002 Jakub Jelinek 2.3.1-22 - update from CVS - add IA-64 back - move TLS libraries from /lib/i686 to /lib/tls * Thu Dec 19 2002 Jakub Jelinek 2.3.1-21 - system(3) fix for linuxthreads - don't segfault in pthread_attr_init from libc.so - add cancellation tests from nptl to linuxthreads * Wed Dec 18 2002 Jakub Jelinek 2.3.1-20 - fix up lists of exported symbols + their versions from the libraries * Wed Dec 18 2002 Jakub Jelinek 2.3.1-19 - fix --with-tls --enable-kernel=2.2.5 libc on IA-32 * Wed Dec 18 2002 Jakub Jelinek 2.3.1-18 - update from CVS - fix NPTL hanging mozilla - initialize malloc in mALLOPt (fixes problems with squid, #79957) - make linuxthreads work with dl_dynamic_weak 0 - clear dl_dynamic_weak everywhere * Tue Dec 17 2002 Jakub Jelinek 2.3.1-17 - update from CVS - NPTL socket fixes, flockfile/ftrylockfile/funlockfile fix - kill -debug sub-package, rename -debug-static to -debug - clear dl_dynamic_weak for NPTL * Mon Dec 16 2002 Jakub Jelinek 2.3.1-16 - fix and for C++ - automatically generate NPTL libpthread wrappers * Mon Dec 16 2002 Jakub Jelinek 2.3.1-15 - update from CVS - all functions which need cancellation should now be cancellable both in libpthread.so and libc.so - removed @@GLIBC_2.3.2 cancellation wrappers * Fri Dec 13 2002 Jakub Jelinek 2.3.1-14 - update from CVS - replace __libc_lock_needed@GOTOFF(%ebx) with %gs:offsetof(tcbhead_t, multiple_threads) - start of new NPTL cancellation wrappers * Thu Dec 12 2002 Jakub Jelinek 2.3.1-13 - update from CVS - use inline locks in malloc * Tue Dec 10 2002 Jakub Jelinek 2.3.1-12 - update from CVS - support LD_ASSUME_KERNEL=2.2.5 in statically linked programs * Mon Dec 9 2002 Jakub Jelinek 2.3.1-11 - update from CVS - rebuilt with gcc-3.2.1-2 * Fri Dec 6 2002 Jakub Jelinek 2.3.1-10 - update from CVS - non-nptl --with-tls --without-__thread FLOATING_STACKS libpthread should work now - faster libc locking when using nptl - add OUTPUT_FORMAT to linker scripts - fix x86_64 sendfile (#79111) * Wed Dec 4 2002 Jakub Jelinek 2.3.1-9 - update from CVS - RUSCII support (#78906) - for nptl builds add BuildRequires - fix byteswap.h for non-gcc (#77689) - add nptl-devel package * Tue Dec 3 2002 Jakub Jelinek 2.3.1-8 - update from CVS - make --enable-kernel=2.2.5 --with-tls --without-__thread ld.so load nptl and other --with-__thread libs - disable nptl by default for now * Wed Nov 27 2002 Jakub Jelinek 2.3.1-7 - update from CVS - restructured redhat/Makefile and spec, so that src.rpm contains glibc-.tar.bz2, glibc-redhat-.tar.bz2 and glibc-redhat.patch - added nptl * Fri Nov 8 2002 Jakub Jelinek 2.3.1-6 - update from CVS - even more regex fixes - run sed testsuite to check glibc regex * Thu Oct 24 2002 Jakub Jelinek 2.3.1-5 - fix LD_DEBUG=statistics and LD_TRACE_PRELINKING in programs using libpthread.so. * Thu Oct 24 2002 Jakub Jelinek 2.3.1-4 - update from CVS - fixed %a and %A in *printf (#75821) - fix re_comp memory leaking (#76594) * Tue Oct 22 2002 Jakub Jelinek 2.3.1-3 - update from CVS - some more regex fixes - fix libpthread.a (#76484) - fix locale-archive enlarging * Fri Oct 18 2002 Jakub Jelinek 2.3.1-2 - update from CVS - don't need to use 128K of stacks for DNS lookups - regex fixes - updated timezone data e.g. for this year's Brasil DST changes - expand ${LIB} in RPATH/RUNPATH/dlopen filenames * Fri Oct 11 2002 Jakub Jelinek 2.3.1-1 - update to 2.3.1 final - support really low thread stack sizes (#74073) - tzdata update * Wed Oct 9 2002 Jakub Jelinek 2.3-2 - update from CVS - handle low stack limits - move s390x into */lib64 * Thu Oct 3 2002 Jakub Jelinek 2.3-1 - update to 2.3 final - fix freopen on libstdc++ <= 2.96 stdin/stdout/stderr (#74800) * Sun Sep 29 2002 Jakub Jelinek 2.2.94-3 - don't prelink -r libc.so on ppc/x86-64/sparc*, it doesn't speed things up, because they are neither REL arches, nor ELF_MACHINE_REL_RELATIVE - fix sparc64 build * Sun Sep 29 2002 Jakub Jelinek 2.2.94-2 - update from CVS * Sat Sep 28 2002 Jakub Jelinek 2.2.94-1 - update from CVS - prelink on ppc and x86-64 too - don't remove ppc memset - instead of listing on which arches to remove glibc-compat list where it should stay * Fri Sep 6 2002 Jakub Jelinek 2.2.93-5 - fix wcsmbs functions with invalid character sets (or malloc failures) - make sure __ctype_b etc. compat vars are updated even if they are copy relocs in the main program * Thu Sep 5 2002 Jakub Jelinek 2.2.93-4 - fix /lib/libnss1_dns.so.1 (missing __set_h_errno definition leading to unresolved __set_h_errno symbol) * Wed Sep 4 2002 Jakub Jelinek 2.2.93-3 - security fix - increase dns-network.c MAXPACKET to at least 65536 to avoid buffer overrun. Likewise glibc-compat dns-{host,network}.c. * Tue Sep 3 2002 Jakub Jelinek 2.2.93-2 - temporarily add back __ctype_b, __ctype_tolower and __ctype_toupper to libc.a and export them as @@GLIBC_2.0 symbols, not @GLIBC_2.0 from libc.so - we have still lots of .a libraries referencing __ctype_{b,tolower,toupper} out there... * Tue Sep 3 2002 Jakub Jelinek 2.2.93-1 - update from CVS - 2.2.93 release - use double instead of single indirection in isXXX macros - per-locale wcsmbs conversion state * Sat Aug 31 2002 Jakub Jelinek 2.2.92-2 - update from CVS - fix newlocale/duplocale/uselocale - disable profile on x86_64 for now * Sat Aug 31 2002 Jakub Jelinek 2.2.92-1 - update from CVS - 2.2.92 release - fix gettext after uselocale - fix locales in statically linked threaded programs - fix NSS * Thu Aug 29 2002 Jakub Jelinek 2.2.91-1 - update from CVS - 2.2.91 release - fix fd leaks in locale-archive reader (#72043) - handle EROFS in build-locale-archive gracefully (#71665) * Wed Aug 28 2002 Jakub Jelinek 2.2.90-27 - update from CVS - fix re_match (#72312) - support more than 1024 threads * Fri Aug 23 2002 Jakub Jelinek 2.2.90-26 - update from CVS - fix i386 build * Thu Aug 22 2002 Jakub Jelinek 2.2.90-25 - update from CVS - fix locale-archive loading hang on some (non-primary) locales (#72122, #71878) - fix umount problems with locale-archives when /usr is a separate partition (#72043) - add LICENSES file * Fri Aug 16 2002 Jakub Jelinek 2.2.90-24 - update from CVS - only mmap up to 2MB of locale-archive on 32-bit machines initially - fix fseek past end + fread segfault with mmaped stdio - include which is mistakenly not included in glibc-devel on IA-32 * Fri Aug 16 2002 Jakub Jelinek 2.2.90-23 - don't return normalized locale name in setlocale when using locale-archive * Thu Aug 15 2002 Jakub Jelinek 2.2.90-22 - update from CVS - optimize for primary system locale - localedef fixes (#71552, #67705) * Wed Aug 14 2002 Jakub Jelinek 2.2.90-21 - fix path to locale-archive in libc reader - build locale archive at glibc-common %post time - export __strtold_internal and __wcstold_internal on Alpha again - workaround some localedata problems * Tue Aug 13 2002 Jakub Jelinek 2.2.90-20 - update from CVS - patch out set_thread_area for now * Fri Aug 9 2002 Jakub Jelinek 2.2.90-19 - update from CVS - GB18030 patch from Yu Shao - applied Debian patch for getaddrinfo IPv4 vs. IPv6 - fix regcomp (#71039) * Sun Aug 4 2002 Jakub Jelinek 2.2.90-18 - update from CVS - use /usr/sbin/prelink, not prelink (#70376) * Thu Jul 25 2002 Jakub Jelinek 2.2.90-17 - update from CVS * Thu Jul 25 2002 Jakub Jelinek 2.2.90-16 - update from CVS - ungetc fix (#69586) - fseek errno fix (#69589) - change *etrlimit prototypes for C++ (#68588) - use --without-tls instead of --disable-tls * Thu Jul 11 2002 Jakub Jelinek 2.2.90-15 - set nscd user's shell to /sbin/nologin (#68369) - fix glibc-compat buffer overflows (security) - buildrequire prelink, don't build glibc's own copy of it (#67567) - update from CVS - regex fix (#67734) - fix unused warnings (#67706) - fix freopen with mmap stdio (#67552) - fix realloc (#68499) * Tue Jun 25 2002 Bill Nottingham 2.2.90-14 - update from CVS - fix argp on long words - update atime in libio * Sat Jun 22 2002 Jakub Jelinek 2.2.90-13 - update from CVS - a thread race fix - fix readdir on invalid dirp * Wed Jun 19 2002 Jakub Jelinek 2.2.90-12 - update from CVS - don't use __thread in headers - fix system(3) in threaded apps - update prelink, so that it is possible to prelink -u libc.so.6.1 on Alpha * Fri Jun 7 2002 Jakub Jelinek 2.2.90-11 - update from CVS - fix __moddi3 (#65612, #65695) - fix ether_line (#64427) - fix setvbuf with mmap stdio (#65864) - --disable-tls for now, waiting for kernel - avoid duplication of __divtf3 etc. on IA-64 - make sure get*ent_r and _IO_wfile_jumps are exported (#62278) * Tue May 21 2002 Jakub Jelinek 2.2.90-10 - update from CVS - fix Alpha pthread bug with gcc 3.1 * Fri Apr 19 2002 Jakub Jelinek 2.2.5-35 - fix nice * Mon Apr 15 2002 Jakub Jelinek 2.2.5-34 - add relocation dependencies even for weak symbols (#63422) - stricter check_fds check for suid/sgid binaries - run make check at %%install time * Sat Apr 13 2002 Jakub Jelinek 2.2.5-33 - handle Dec 31 1969 in mktime for timezones west of GMT (#63369) - back out do-lookup.h change (#63261, #63305) - use "memory" clobber instead all the fancy stuff in i386/i686/bits/string.h since lots of compilers break on it - fix sparc build with gcc 3.1 - fix spec file for athlon * Tue Apr 9 2002 Jakub Jelinek 2.2.5-32 - fix debugging of threaded apps (#62804) - fix DST for Estonia (#61494) - document that pthread_mutexattr_?etkind_np are deprecated and pthread_mutexattr_?ettype should be used instead in man pages (#61485) - fix libSegFault.so undefined externals * Fri Apr 5 2002 Jakub Jelinek 2.2.5-31 - temporarily disable prelinking ld.so, as some statically linked binaries linked against debugging versions of old glibcs die on it (#62352) - fix for -std=c99 (#62516) - fix ether_ntohost segfault (#62397) - remove in glibc_post_upgrade on i386 all /lib/i686/libc-*.so, /lib/i686/libm-*.so and /lib/i686/libpthread-*.so, not just current version (#61633) - prelink -r on alpha too * Thu Mar 28 2002 Jakub Jelinek 2.2.5-30 - update GB18030 iconv module (Yu Shao) * Tue Mar 26 2002 Jakub Jelinek 2.2.5-29 - features.h fix * Tue Mar 26 2002 Jakub Jelinek 2.2.5-28 - update from CVS - fix nscd with huge groups - fix nis to not close fds it shouldn't - rebuilt against newer glibc-kernheaders to use the correct PATH_MAX - handle .athlon.rpm glibc the same way as .i686.rpm - add a couple of .ISO-8859-15 locales (#61922) - readd temporarily currencies which were superceeded by Euro into the list of accepted currencies by localedef to make standard conformance testsuites happy - temporarily moved __libc_waitpid back to make Sun JDK happy - use old malloc code - prelink i686/athlon ld.so and prelink -r i686/athlon libc.so * Thu Mar 14 2002 Jakub Jelinek 2.2.5-27 - update from CVS - fix DST handling for southern hemisphere (#60747) - fix daylight setting for tzset (#59951) - fix ftime (#60350) - fix nice return value - fix a malloc segfault - temporarily moved __libc_wait, __libc_fork and __libc_stack_end back to what they used to be exported at - censorship (#60758) * Thu Feb 28 2002 Jakub Jelinek 2.2.5-26 - update from CVS - use __attribute__((visibility(...))) if supported, use _rtld_local for ld.so only objects - provide libc's own __{,u}{div,mod}di3 * Wed Feb 27 2002 Jakub Jelinek 2.2.5-25 - switch back to 2.2.5, mmap stdio needs work * Mon Feb 25 2002 Jakub Jelinek 2.2.90-8 - fix two other mmap stdio bugs (#60228) * Thu Feb 21 2002 Jakub Jelinek 2.2.90-7 - fix yet another mmap stdio bug (#60145) * Tue Feb 19 2002 Jakub Jelinek 2.2.90-6 - fix mmap stdio bug (seen on ld as File truncated error, #60043) - apply Andreas Schwab's fix for pthread sigwait - remove /lib/i686/ libraries in glibc_post_upgrade when performing i386 glibc install * Thu Feb 14 2002 Jakub Jelinek 2.2.90-5 - update to CVS - added glibc-utils subpackage - disable autoreq in glibc-debug - readd %%lang() to locale files * Fri Feb 7 2002 Jakub Jelinek 2.2.90-4 - update to CVS - move glibc private symbols to GLIBC_PRIVATE symbol version * Wed Jan 9 2002 Jakub Jelinek 2.2.90-3 - fix a sqrt bug on alpha which caused SHN_UNDEF $__full_ieee754_sqrt..ng symbol in libm * Tue Jan 8 2002 Jakub Jelinek 2.2.90-2 - add debug-static package * Mon Dec 31 2001 Jakub Jelinek 2.2.90-1 - update from CVS - remove -D__USE_STRING_INLINES - add debug subpackage to trim glibc and glibc-devel size * Wed Oct 3 2001 Jakub Jelinek 2.2.4-19 - fix strsep * Fri Sep 28 2001 Jakub Jelinek 2.2.4-18 - fix a ld.so bug with duplicate searchlists in l_scope - fix erfcl(-inf) - turn /usr/lib/librt.so into linker script * Wed Sep 26 2001 Jakub Jelinek 2.2.4-17 - fix a ld.so lookup bug after lots of dlopen calls - fix CMSG_DATA for non-gcc non-ISOC99 compilers (#53984) - prelinking support for Sparc64 * Fri Sep 21 2001 Jakub Jelinek 2.2.4-16 - update from CVS to fix DT_SYMBOLIC - prelinking support for Alpha and Sparc * Tue Sep 18 2001 Jakub Jelinek 2.2.4-15 - update from CVS - linuxthreads now retries if -1/EINTR is returned from reading or writing to thread manager pipe (#43742) - use DT_FILTER in librt.so (#53394) - update glibc prelink patch so that it handles filters - fix timer_* with SIGEV_NONE (#53494) - make glibc_post_upgrade work on PPC (patch from Franz Sirl) * Mon Sep 10 2001 Jakub Jelinek 2.2.4-14 - fix build on sparc32 - 2.2.4-13 build for some reason missed some locales on alpha/ia64 * Mon Sep 3 2001 Jakub Jelinek 2.2.4-13 - fix iconvconfig * Mon Sep 3 2001 Jakub Jelinek 2.2.4-12 - add fam to /etc/rpc (#52863) - fix for C++ (#52960) - fix perror * Mon Aug 27 2001 Jakub Jelinek 2.2.4-11 - fix strnlen(x, -1) * Mon Aug 27 2001 Jakub Jelinek 2.2.4-10 - doh, should only define __libc_rwlock_t if __USE_UNIX98. * Mon Aug 27 2001 Jakub Jelinek 2.2.4-9 - fix bits/libc-lock.h so that gcc can compile - fix s390 build * Fri Aug 24 2001 Jakub Jelinek 2.2.4-8 - kill stale library symlinks in ldconfig (#52350) - fix inttypes.h for G++ < 3.0 - use DT_REL*COUNT * Wed Aug 22 2001 Jakub Jelinek 2.2.4-7 - fix strnlen on IA-64 (#50077) * Thu Aug 16 2001 Jakub Jelinek 2.2.4-6 - glibc 2.2.4 final - fix -lpthread -static (#51672) * Fri Aug 10 2001 Jakub Jelinek 2.2.4-5 - doh, include libio/tst-swscanf.c * Fri Aug 10 2001 Jakub Jelinek 2.2.4-4 - don't crash on catclose(-1) - fix wscanf %[] handling - fix return value from swprintf - handle year + %U/%W week + week day in strptime * Thu Aug 9 2001 Jakub Jelinek 2.2.4-3 - update from CVS to - fix strcoll (#50548) - fix seekdir (#51132) - fix memusage (#50606) - don't make gconv-modules.cache %%config file, just don't verify its content. * Mon Aug 6 2001 Jakub Jelinek - fix strtod and *scanf (#50723, #50724) * Sat Aug 4 2001 Jakub Jelinek - update from CVS - fix iconv cache handling - glibc should not own %{_infodir}, %{_mandir} nor %{_mandir}/man3 (#50673) - add gconv-modules.cache as emtpy config file (#50699) - only run iconvconfig if /usr is mounted read-write (#50667) * Wed Jul 25 2001 Jakub Jelinek - move iconvconfig from glibc-common into glibc subpackage, call it from glibc_post_upgrade instead of common's post. * Tue Jul 24 2001 Jakub Jelinek - turn off debugging printouts in iconvconfig * Tue Jul 24 2001 Jakub Jelinek - update from CVS - fix IA-32 makecontext - make fflush(0) thread-safe (#46446) * Mon Jul 23 2001 Jakub Jelinek - adjust prelinking DT_* and SHT_* values in elf.h - update from CVS - iconv cache - make iconv work in SUID/SGID programs (#34611) * Fri Jul 20 2001 Jakub Jelinek - update from CVS - kill non-pic code in libm.so - fix getdate - fix some locales (#49402) - rebuilt with binutils-2.11.90.0.8-5 to place .interp section properly in libBrokenLocale.so, libNoVersion.so and libanl.so - add floating stacks on IA-64, Alpha, Sparc (#49308) * Mon Jul 16 2001 Jakub Jelinek - make /lib/i686 directory owned by glibc*.i686.rpm * Mon Jul 9 2001 Jakub Jelinek - remove rquota.[hx] headers which are now provided by quota (#47141) - add prelinking patch * Thu Jul 5 2001 Jakub Jelinek - require sh-utils for nscd * Mon Jun 25 2001 Jakub Jelinek - update from CVS (#43681, #43350, #44663, #45685) - fix ro_RO bug (#44644) * Wed Jun 6 2001 Jakub Jelinek - fix a bunch of math bugs (#43210, #43345, #43346, #43347, #43348, #43355) - make rpc headers -ansi compilable (#42390) - remove alphaev6 optimized memcpy, since there are still far too many broken apps which call memcpy where they should call memmove - update from CVS to (among other things): - fix tanhl bug (#43352) * Tue May 22 2001 Jakub Jelinek - fix #include with -D_XOPEN_SOURCE=500 on ia64 (#35968) - fix a dlclose reldeps handling bug - some more profiling fixes - fix tgmath.h * Thu May 17 2001 Jakub Jelinek - make ldconfig more quiet - fix LD_PROFILE on i686 (#41030) * Wed May 16 2001 Jakub Jelinek - fix the hardlink program, so that it really catches all files with identical content - add a s390x clone fix * Wed May 16 2001 Jakub Jelinek - fix rpc for non-threaded apps using svc_fdset and similar variables (#40409) - fix nss compatibility DSO versions for alphaev6 - add a hardlink program instead of the shell 3x for plus cmp -s/link which takes a lot of time during build - rework BuildPreReq and Conflicts with gcc, so that it applies only where it has to * Fri May 11 2001 Jakub Jelinek - fix locale name of ja_JP in UTF-8 (#39783) - fix re_search_2 (#40244) - fix memusage script (#39138, #39823) - fix dlsym(RTLD_NEXT, ) from main program (#39803) - fix xtrace script (#39609) - make glibc conflict with glibc-devel 2.2.2 and below (to make sure libc_nonshared.a has atexit) - fix getconf LFS_CFLAGS on 64bitters - recompile with gcc-2.96-84 or above to fix binary compatibility problem with __frame_state_for function (#37933) * Fri Apr 27 2001 Jakub Jelinek - glibc 2.2.3 release - fix strcoll (#36539) - add BuildPreReqs (#36378) * Wed Apr 25 2001 Jakub Jelinek - update from CVS * Fri Apr 20 2001 Jakub Jelinek - update from CVS - fix sparc64, ia64 - fix some locale syntax errors (#35982) * Wed Apr 18 2001 Jakub Jelinek - update from CVS * Wed Apr 11 2001 Jakub Jelinek - update from CVS * Fri Apr 6 2001 Jakub Jelinek - support even 2.4.0 kernels on ia64, sparc64 and s390x - include UTF-8 locales - make gconv-modules %%config(noreplace) * Fri Mar 23 2001 Jakub Jelinek - back out sunrpc changes * Wed Mar 21 2001 Jakub Jelinek - update from CVS - fix ia64 build - fix pthread_getattr_np * Fri Mar 16 2001 Jakub Jelinek - update from CVS - run atexit() registered functions at dlclose time if they are in shared libraries (#28625) - add pthread_getattr_np API to make JVM folks happy * Wed Mar 14 2001 Jakub Jelinek - require 2.4.1 instead of 2.4.0 on platforms where it required 2.4 kernel - fix ldd behaviour on unresolved symbols - remove nonsensical ldconfig warning, update osversion for the most recent library with the same soname in the same directory instead (#31703) - apply selected patches from CVS - s390x spec file changes from Florian La Roche * Wed Mar 7 2001 Jakub Jelinek - fix gencat (#30894) - fix ldconfig changes from yesterday, fix LD_ASSUME_KERNEL handling * Tue Mar 6 2001 Jakub Jelinek - update from CVS - make pthread_attr_setstacksize consistent before and after pthread manager is started (#28194) - pass back struct sigcontext from pthread signal wrapper (on ia32 only so far, #28493) - on i686 ship both --enable-kernel 2.2.5 and 2.4.0 libc/libm/libpthread, make ld.so pick the right one * Sat Feb 17 2001 Preston Brown - glib-common doesn't require glibc, until we can figure out how to get out of dependency hell. * Sat Feb 17 2001 Jakub Jelinek - make glibc require particular version of glibc-common and glibc-common prerequire glibc. * Fri Feb 16 2001 Jakub Jelinek - glibc 2.2.2 release - fix regex REG_ICASE bug seen in ksymoops * Sat Feb 10 2001 Jakub Jelinek - fix regexec leaking memory (#26864) * Fri Feb 9 2001 Jakub Jelinek - update from CVS - fix ia64 build with gnupro - make regex 64bit clean - fix tgmath make check failures on alpha * Tue Feb 6 2001 Jakub Jelinek - update again for ia64 DF_1_INITFIRST * Fri Feb 2 2001 Jakub Jelinek - update from CVS - fix getaddrinfo (#25437) - support DF_1_INITFIRST (#25029) * Wed Jan 24 2001 Jakub Jelinek - build all auxiliary arches with --enablekernel 2.4.0, those wanting to run 2.2 kernels can downgrade to the base architecture glibc. * Sat Jan 20 2001 Jakub Jelinek - remove %%lang() flags from %%{_prefix}/lib/locale files temporarily * Sun Jan 14 2001 Jakub Jelinek - update to 2.2.1 final - fix a pthread_kill_other_threads_np breakage (#23966) - make static binaries using dlopen work on ia64 again - fix a typo in glibc-common group * Wed Jan 10 2001 Bernhard Rosenkraenzer - devel requires glibc = %%{version} - noreplace /etc/nscd.conf * Wed Jan 10 2001 Jakub Jelinek - some more security fixes: - don't look up LD_PRELOAD libs in cache for SUID apps (because that bypasses SUID bit checking on the library) - place output files for profiling SUID apps into /var/profile, use O_NOFOLLOW for them - add checks for $MEMUSAGE_OUTPUT and $SEGFAULT_OUTPUT_NAME - hardlink identical locale files together - add %%lang() tags to locale stuff - remove ko_KR.utf8 for now, it is provided by locale-utf8 package * Mon Jan 8 2001 Jakub Jelinek - add glibc-common subpackage - fix alphaev6 memcpy (#22494) - fix sys/cdefs.h (#22908) - don't define stdin/stdout/stderr as macros for -traditional (#22913) - work around a bug in IBM JDK (#22932, #23012) - fix pmap_unset when network is down (#23176) - move nscd in rc.d before netfs on shutdown - fix $RESOLV_HOST_CONF in SUID apps (#23562) * Fri Dec 15 2000 Jakub Jelinek - fix ftw and nftw * Wed Dec 13 2000 Jakub Jelinek - fix fcvt (#22184) - ldd /lib/ld-linux.so.2 is not crashing any longer again (#22197) - fix gencat * Mon Dec 11 2000 Jakub Jelinek - fix alpha htonl and alphaev6 stpcpy * Sat Dec 9 2000 Jakub Jelinek - update to CVS to: - fix getnameinfo (#21934) - don't stomp on memory in rpath handling (#21544) - fix setlocale (#21507) - fix libNoVersion.so.1 loading code (#21579) - use auxarches define in spec file for auxiliary architectures (#21219) - remove /usr/share directory from filelist (#21218) * Sun Nov 19 2000 Jakub Jelinek - update to CVS to fix getaddrinfo * Fri Nov 17 2000 Jakub Jelinek - update to CVS to fix freopen - remove all alpha workarounds, not needed anymore * Wed Nov 15 2000 Jakub Jelinek - fix dladdr bug on alpha/sparc32/sparc64 - fix Makefiles so that they run static tests properly * Tue Nov 14 2000 Jakub Jelinek - update to CVS to fix ldconfig * Thu Nov 9 2000 Jakub Jelinek - update to glibc 2.2 release * Mon Nov 6 2000 Jakub Jelinek - update to CVS to: - export __sysconf@@GLIBC_2.2 (#20417) * Fri Nov 3 2000 Jakub Jelinek - merge to 2.1.97 * Mon Oct 30 2000 Jakub Jelinek - update to CVS, including: - fix WORD_BIT/LONG_BIT definition in limits.h (#19088) - fix hesiod (#19375) - set LC_MESSAGES in zic/zdump for proper error message output (#19495) - fix LFS fcntl when used with non-LFS aware kernels (#19730) * Thu Oct 19 2000 Jakub Jelinek - fix alpha semctl (#19199) - update to CVS, including: - fix glibc headers for Compaq non-gcc compilers - fix locale alias handling code (#18832) - fix rexec on little endian machines (#18886) - started writing changelog again * Thu Aug 10 2000 Adrian Havill - added ja ujis alias for backwards compatibility