Revert `Move to /usr' transition.
The `Move to /usr' transition for glibc can not be completed without support from RPM. There are too many Requires that explicitly reference non-/usr paths in various spec files. Reverting this patch is the only way forward until we find a transitional way to support this.
This commit is contained in:
parent
62c3082486
commit
b8e4762c60
207
glibc.spec
207
glibc.spec
@ -1,6 +1,6 @@
|
|||||||
%define glibcsrcdir glibc-2.17-931-g30bbc0c
|
%define glibcsrcdir glibc-2.17-931-g30bbc0c
|
||||||
%define glibcversion 2.17.90
|
%define glibcversion 2.17.90
|
||||||
%define glibcrelease 12%{?dist}
|
%define glibcrelease 13%{?dist}
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# If run_glibc_tests is zero then tests are not run for the build.
|
# If run_glibc_tests is zero then tests are not run for the build.
|
||||||
# You must always set run_glibc_tests to one for production builds.
|
# You must always set run_glibc_tests to one for production builds.
|
||||||
@ -725,23 +725,13 @@ GCC=`cat Gcc`
|
|||||||
# Cleanup any previous installs...
|
# Cleanup any previous installs...
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT
|
mkdir -p $RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Install the build into the build root. We set slibdir, sbindir and
|
|
||||||
# rootsbindir to ensure that all of the files are installed under /usr per the
|
|
||||||
# "Move to /usr" initiative: http://fedoraproject.org/wiki/Features/UsrMove
|
|
||||||
make -j1 install_root=$RPM_BUILD_ROOT \
|
make -j1 install_root=$RPM_BUILD_ROOT \
|
||||||
slibdir=%{_libdir} \
|
|
||||||
sbindir=%{_sbindir} \
|
|
||||||
rootsbindir=%{_sbindir} \
|
|
||||||
install -C build-%{target} %{silentrules}
|
install -C build-%{target} %{silentrules}
|
||||||
# If we are not building an auxiliary arch then install all of the supported
|
# If we are not building an auxiliary arch then install all of the supported
|
||||||
# locales.
|
# locales.
|
||||||
%ifnarch %{auxarches}
|
%ifnarch %{auxarches}
|
||||||
pushd build-%{target}
|
pushd build-%{target}
|
||||||
make %{?_smp_mflags} install_root=$RPM_BUILD_ROOT \
|
make %{?_smp_mflags} install_root=$RPM_BUILD_ROOT \
|
||||||
slibdir=%{_libdir} \
|
|
||||||
sbindir=%{_sbindir} \
|
|
||||||
rootsbindir=%{_sbindir} \
|
|
||||||
install-locales -C ../localedata objdir=`pwd`
|
install-locales -C ../localedata objdir=`pwd`
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
@ -750,20 +740,14 @@ popd
|
|||||||
# Install rtkaio libraries.
|
# Install rtkaio libraries.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
%ifarch %{rtkaioarches}
|
%ifarch %{rtkaioarches}
|
||||||
# The name of librt.so.x DSO to which we will link librtkaio-*.so.
|
librtso=`basename $RPM_BUILD_ROOT/%{_lib}/librt.so.*`
|
||||||
librtso=`basename $RPM_BUILD_ROOT%{_libdir}/librt.so.*`
|
rm -f $RPM_BUILD_ROOT{,%{_prefix}}/%{_lib}/librtkaio.*
|
||||||
# Move all of the rtkaio libraries into /usr/lib[64]/rtkaio
|
rm -f $RPM_BUILD_ROOT%{_libdir}/librt.so.*
|
||||||
mkdir -p "$RPM_BUILD_ROOT%{_libdir}/rtkaio"
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}/rtkaio
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/librtkaio* "$RPM_BUILD_ROOT%{_libdir}/rtkaio/"
|
mv $RPM_BUILD_ROOT/%{_lib}/librtkaio-*.so $RPM_BUILD_ROOT/%{_lib}/rtkaio/
|
||||||
# Remove the static archive for librtkaio.
|
rm -f $RPM_BUILD_ROOT/%{_lib}/$librtso
|
||||||
rm -f "$RPM_BUILD_ROOT%{_libdir}/rtkaio/librtkaio.a"
|
ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so` $RPM_BUILD_ROOT/%{_lib}/$librtso
|
||||||
# Remove the DSO symlink that won't be used by any application. Remember
|
ln -sf `basename $RPM_BUILD_ROOT/%{_lib}/rtkaio/librtkaio-*.so` $RPM_BUILD_ROOT/%{_lib}/rtkaio/$librtso
|
||||||
# that librtkaio.so is a dropin for librt.so, and the latter is the only
|
|
||||||
# link we care about. No application will ever explicitly link against
|
|
||||||
# librtkaio.so.
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/rtkaio/librtkaio.*
|
|
||||||
# Provided a librt.so.x link that is implemented by rtkaio.
|
|
||||||
ln -sf librtkaio-%{glibcversion}.so "$RPM_BUILD_ROOT%{_libdir}/rtkaio/$librtso"
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# install_different:
|
# install_different:
|
||||||
@ -801,28 +785,27 @@ install_different()
|
|||||||
libbase=${lib#*/}
|
libbase=${lib#*/}
|
||||||
# Take care that `libbaseso' has a * that needs expanding so
|
# Take care that `libbaseso' has a * that needs expanding so
|
||||||
# take care with quoting.
|
# take care with quoting.
|
||||||
libbaseso=$(basename $RPM_BUILD_ROOT%{_libdir}/${libbase}-*.so)
|
libbaseso=$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}-*.so)
|
||||||
# Only install if different from default build library.
|
# Only install if different from default build library.
|
||||||
if cmp -s ${lib}.so ../build-%{target}/${lib}.so; then
|
if cmp -s ${lib}.so ../build-%{target}/${lib}.so; then
|
||||||
ln -sf "$subdir_up"/$libbaseso $libdestdir/$libbaseso
|
ln -sf "$subdir_up"/$libbaseso $libdestdir/$libbaseso
|
||||||
else
|
else
|
||||||
cp -a ${lib}.so $libdestdir/$libbaseso
|
cp -a ${lib}.so $libdestdir/$libbaseso
|
||||||
fi
|
fi
|
||||||
dlib=$libdestdir/$(basename $RPM_BUILD_ROOT%{_libdir}/${libbase}.so.*)
|
dlib=$libdestdir/$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}.so.*)
|
||||||
ln -sf $libbaseso $dlib
|
ln -sf $libbaseso $dlib
|
||||||
done
|
done
|
||||||
%ifarch %{rtkaioarches}
|
%ifarch %{rtkaioarches}
|
||||||
local rtkdestdir="$destdir/rtkaio/$subdir"
|
local rtkdestdir="$RPM_BUILD_ROOT/%{_lib}/rtkaio/$subdir"
|
||||||
local librtso=`basename $RPM_BUILD_ROOT%{_libdir}/librt.so.*`
|
local librtso=`basename $RPM_BUILD_ROOT/%{_lib}/librt.so.*`
|
||||||
mkdir -p $rtkdestdir
|
mkdir -p $rkdestdir
|
||||||
lib="rtkaio/librtkaio"
|
librtkaioso=$(basename $RPM_BUILD_ROOT/%{_lib}/librt-*.so | sed s/librt-/librtkaio-/)
|
||||||
libbaseso=librtkaio-%{glibcversion}.so
|
if cmp -s rtkaio/librtkaio.so ../build-%{target}/rtkaio/librtkaio.so; then
|
||||||
if cmp -s "${lib}.so" "../build-%{target}/${lib}.so"; then
|
ln -s %{nosegneg_subdir_up}/$librtkaioso $rtkdestdir/$librtkaioso
|
||||||
ln -s "$subdir_up"/$libbaseso "$rtkdestdir"/$libbaseso
|
|
||||||
else
|
else
|
||||||
cp -a "${lib}.so" "$rtkdestdir"/$libbaseso
|
cp -a rtkaio/librtkaio.so $rtkdestdir/$librtkaioso
|
||||||
fi
|
fi
|
||||||
ln -sf "$libbaseso" $rtkdestdir/$librtso
|
ln -sf $librtkaioso $rtkdestdir/$librtso
|
||||||
%endif
|
%endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -834,7 +817,7 @@ install_different()
|
|||||||
%define nosegneg_subdir i686/nosegneg
|
%define nosegneg_subdir i686/nosegneg
|
||||||
%define nosegneg_subdir_up ../..
|
%define nosegneg_subdir_up ../..
|
||||||
pushd build-%{target}-nosegneg
|
pushd build-%{target}-nosegneg
|
||||||
destdir=$RPM_BUILD_ROOT%{_libdir}
|
destdir=$RPM_BUILD_ROOT/%{_lib}
|
||||||
install_different "$destdir" "%{nosegneg_subdir}" "%{nosegneg_subdir_up}"
|
install_different "$destdir" "%{nosegneg_subdir}" "%{nosegneg_subdir_up}"
|
||||||
popd
|
popd
|
||||||
%endif # %{buildxen}
|
%endif # %{buildxen}
|
||||||
@ -936,10 +919,10 @@ install -p -m 644 nis/nss $RPM_BUILD_ROOT/etc/default/nss
|
|||||||
|
|
||||||
# This is for ncsd - in glibc 2.2
|
# This is for ncsd - in glibc 2.2
|
||||||
install -m 644 nscd/nscd.conf $RPM_BUILD_ROOT/etc
|
install -m 644 nscd/nscd.conf $RPM_BUILD_ROOT/etc
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/
|
||||||
install -m 644 releng/nscd.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/
|
install -m 644 releng/nscd.conf %{buildroot}/usr/lib/tmpfiles.d/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system
|
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
|
||||||
install -m 644 releng/nscd.service releng/nscd.socket $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system
|
install -m 644 releng/nscd.service releng/nscd.socket $RPM_BUILD_ROOT/lib/systemd/system
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Include ld.so.conf
|
# Include ld.so.conf
|
||||||
@ -972,7 +955,7 @@ ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
|
|||||||
|
|
||||||
# Install the upgrade program
|
# Install the upgrade program
|
||||||
install -m 700 build-%{target}/glibc_post_upgrade.%{_target_cpu} \
|
install -m 700 build-%{target}/glibc_post_upgrade.%{_target_cpu} \
|
||||||
$RPM_BUILD_ROOT%{_prefix}/sbin/glibc_post_upgrade.%{_target_cpu}
|
$RPM_BUILD_ROOT/usr/sbin/glibc_post_upgrade.%{_target_cpu}
|
||||||
|
|
||||||
# Strip all of the installed object files.
|
# Strip all of the installed object files.
|
||||||
strip -g $RPM_BUILD_ROOT%{_libdir}/*.o
|
strip -g $RPM_BUILD_ROOT%{_libdir}/*.o
|
||||||
@ -1050,6 +1033,9 @@ rm -f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/*_p.a
|
|||||||
-e '\,bin/\(memusage\|mtrace\|xtrace\|pcprofiledump\),d'
|
-e '\,bin/\(memusage\|mtrace\|xtrace\|pcprofiledump\),d'
|
||||||
} | sort > rpm.filelist
|
} | sort > rpm.filelist
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
mv -f $RPM_BUILD_ROOT/%{_lib}/lib{pcprofile,memusage}.so $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
|
||||||
# The xtrace and memusage scripts have hard-coded paths that need to be
|
# The xtrace and memusage scripts have hard-coded paths that need to be
|
||||||
# translated to a correct set of paths using the $LIB token which is
|
# translated to a correct set of paths using the $LIB token which is
|
||||||
# dynamically translated by ld.so as the default lib directory.
|
# dynamically translated by ld.so as the default lib directory.
|
||||||
@ -1091,63 +1077,36 @@ grep '%{_libdir}/lib.*\.a' < rpm.filelist \
|
|||||||
# Put all of the object files and *.so (not the versioned ones) into the
|
# Put all of the object files and *.so (not the versioned ones) into the
|
||||||
# devel package.
|
# devel package.
|
||||||
grep '%{_libdir}/.*\.o' < rpm.filelist >> devel.filelist
|
grep '%{_libdir}/.*\.o' < rpm.filelist >> devel.filelist
|
||||||
# This regexp is tricky because we want to match libfoo.so, but not
|
grep '%{_libdir}/lib.*\.so' < rpm.filelist >> devel.filelist
|
||||||
# libfoo-X.Y.so or libfoo.so.1. The latter pair of libraries is needed for a
|
|
||||||
# program to run (soname refers to them), whlie the former is needed only
|
|
||||||
# when building an application (devel subpackage). We use the same regexp
|
|
||||||
# in the in-place sed below to remove these files from the core glibc package.
|
|
||||||
# We don't look for lib.*.so in rtkaio because we already removed those files
|
|
||||||
# earlier.
|
|
||||||
grep '^%{_libdir}/lib.*[[:alpha:]]\.so$' < rpm.filelist >> devel.filelist
|
|
||||||
# Remove libSegFault.so from devel, as it doesn't match the above rule.
|
|
||||||
sed -i -e '\|%{_libdir}/libSegFault\.so|d' devel.filelist
|
|
||||||
|
|
||||||
# Remove all of the static, object, unversioned DSOs, old linuxthreads stuff,
|
# Remove all of the static, object, unversioned DSOs, old linuxthreads stuff,
|
||||||
# and nscd from the core glibc package.
|
# and nscd from the core glibc package.
|
||||||
sed -i -e '\|%{_libdir}/lib.*\.a|d' \
|
sed -i -e '\|%{_libdir}/lib.*\.a|d' \
|
||||||
-e '\|%{_libdir}/.*\.o|d' \
|
-e '\|%{_libdir}/.*\.o|d' \
|
||||||
-e '\|^%{_libdir}/lib.*[[:alpha:]]\.so$|d' \
|
-e '\|%{_libdir}/lib.*\.so|d' \
|
||||||
%ifarch %{rtkaioarches}
|
|
||||||
-e '\|^%{_libdir}/rtkaio/lib.*[[:alpha:]]\.so$|d' \
|
|
||||||
%endif
|
|
||||||
-e '\|%{_libdir}/linuxthreads|d' \
|
-e '\|%{_libdir}/linuxthreads|d' \
|
||||||
-e '\|nscd|d' rpm.filelist
|
-e '\|nscd|d' rpm.filelist
|
||||||
# Add back libSegFault.so to the core glibc package since it's required by
|
|
||||||
# anyone preloading it to catch segfaults. It should probably be in the
|
|
||||||
# devel subpackage but it's too late for that.
|
|
||||||
echo "%{_libdir}/libSegFault.so" >> rpm.filelist
|
|
||||||
|
|
||||||
# All of the bin and certain sbin files go into the common package.
|
# All of the bin and certain sbin files go into the common package.
|
||||||
# We explicitly exclude certain sbin files that need to go into
|
# We explicitly exclude certain sbin files that need to go into
|
||||||
# the core glibc package for use during upgrades.
|
# the core glibc package for use during upgrades.
|
||||||
# The files we exclude are:
|
grep '%{_prefix}/bin' < rpm.filelist >> common.filelist
|
||||||
# * glibc_post_upgrade - Used in post-upgrade.
|
grep '%{_prefix}/sbin/[^gi]' < rpm.filelist >> common.filelist
|
||||||
# * iconvconfig - Used during upgrade to create iconv modules.
|
|
||||||
# * ldconfig - Used to reprocess library cache after upgarde.
|
|
||||||
# * sln - Used to make links when in the middle of upgrades i.e. static ln.
|
|
||||||
grep '%{_prefix}/bin' < rpm.filelist > common.filelist
|
|
||||||
|
|
||||||
grep -e '%{_prefix}/sbin/.*' < rpm.filelist |
|
|
||||||
grep -v -e '%{_prefix}/sbin/glibc_post_upgrade.*' \
|
|
||||||
-e '%{_prefix}/sbin/iconvconfig.*' \
|
|
||||||
-e '%{_prefix}/sbin/ldconfig.*' \
|
|
||||||
-e '%{_prefix}/sbin/sln.*' >> common.filelist
|
|
||||||
|
|
||||||
# All of the files under share go into the common package since
|
# All of the files under share go into the common package since
|
||||||
# they should be multilib-independent. Remove the zoneinfo files
|
# they should be multilib-independent.
|
||||||
# since we don't plan to ship them (see below for their removal).
|
|
||||||
grep '%{_prefix}/share' < rpm.filelist | \
|
grep '%{_prefix}/share' < rpm.filelist | \
|
||||||
grep -v -e '%{_prefix}/share/zoneinfo' >> common.filelist
|
grep -v -e '%{_prefix}/share/zoneinfo' -e '%%dir %{prefix}/share' \
|
||||||
|
>> common.filelist
|
||||||
|
|
||||||
# Remove the bin, locale, some sbin, and share from the
|
# Remove the bin, locale, some sbin, and share from the
|
||||||
# core glibc package. We cheat a bit and use the slightly dangerous
|
# core glibc package. We cheat a bit and use the slightly dangerous
|
||||||
# /usr/sbin/[^gils] to match the inverse of the search that put the
|
# /usr/sbin/[^gi] to match the inverse of the search that put the
|
||||||
# files into common.filelist. It's dangerous in that additional files
|
# files into common.filelist. It's dangerous in that additional files
|
||||||
# that start with g, i, l, or s would get put into common.filelist and
|
# that start with g, or i would get put into common.filelist and
|
||||||
# rpm.filelist.
|
# rpm.filelist.
|
||||||
sed -i -e '\|%{_prefix}/bin|d' \
|
sed -i -e '\|%{_prefix}/bin|d' \
|
||||||
-e '\|%{_prefix}/lib/locale|d' \
|
-e '\|%{_prefix}/lib/locale|d' \
|
||||||
-e '\|%{_prefix}/sbin/[^gils]|d' \
|
-e '\|%{_prefix}/sbin/[^gi]|d' \
|
||||||
-e '\|%{_prefix}/share|d' rpm.filelist
|
-e '\|%{_prefix}/share|d' rpm.filelist
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -1155,8 +1114,8 @@ sed -i -e '\|%{_prefix}/bin|d' \
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
truncate -s 0 nosegneg.filelist
|
truncate -s 0 nosegneg.filelist
|
||||||
%if %{xenpackage}
|
%if %{xenpackage}
|
||||||
grep '%{_libdir}/%{nosegneg_subdir}' < rpm.filelist >> nosegneg.filelist
|
grep '/%{_lib}/%{nosegneg_subdir}' < rpm.filelist >> nosegneg.filelist
|
||||||
sed -i -e '\|%{_libdir}/%{nosegneg_subdir}|d' rpm.filelist
|
sed -i -e '\|/%{_lib}/%{nosegneg_subdir}|d' rpm.filelist
|
||||||
# TODO: There are files in the nosegneg list which should be in the devel
|
# TODO: There are files in the nosegneg list which should be in the devel
|
||||||
# pacakge, but we leave them instead in the xen subpackage. We may
|
# pacakge, but we leave them instead in the xen subpackage. We may
|
||||||
# wish to clean that up at some point.
|
# wish to clean that up at some point.
|
||||||
@ -1185,12 +1144,9 @@ cat > utils.filelist <<EOF
|
|||||||
%{_prefix}/bin/xtrace
|
%{_prefix}/bin/xtrace
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Remove the zoneinfo files.
|
# Remove the zoneinfo files
|
||||||
# TODO: This is done late in the process for no good reason.
|
# XXX: Why isn't this don't earlier when we are removing files?
|
||||||
# The zone info file are somewhat silently removed above
|
# Won't this impact what is shipped?
|
||||||
# by filtering them out of common.filelist and then
|
|
||||||
# by removing all of %{_prefix}/share from rpm.filelist.
|
|
||||||
# This should be done much earlier.
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/zoneinfo
|
||||||
|
|
||||||
# Make sure %config files have the same timestamp
|
# Make sure %config files have the same timestamp
|
||||||
@ -1209,7 +1165,7 @@ $GCC -Os -g -o build-locale-archive build-locale-archive.c \
|
|||||||
-L../build-%{target} \
|
-L../build-%{target} \
|
||||||
-Wl,--allow-shlib-undefined \
|
-Wl,--allow-shlib-undefined \
|
||||||
-B../build-%{target}/csu/ -lc -lc_nonshared
|
-B../build-%{target}/csu/ -lc -lc_nonshared
|
||||||
install -m 700 build-locale-archive $RPM_BUILD_ROOT%{_prefix}/sbin/build-locale-archive
|
install -m 700 build-locale-archive $RPM_BUILD_ROOT/usr/sbin/build-locale-archive
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Lastly copy some additional documentation for the packages.
|
# Lastly copy some additional documentation for the packages.
|
||||||
@ -1221,16 +1177,16 @@ cp ChangeLog{,.15,.16} documentation
|
|||||||
bzip2 -9 documentation/ChangeLog*
|
bzip2 -9 documentation/ChangeLog*
|
||||||
cp posix/gai.conf documentation/
|
cp posix/gai.conf documentation/
|
||||||
|
|
||||||
# Compatibility symlink
|
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
|
# Compatibility symlink
|
||||||
ln -sf %{_libdir}/ld64.so.1 $RPM_BUILD_ROOT%{_prefix}/lib/ld64.so.1
|
mkdir -p $RPM_BUILD_ROOT/lib
|
||||||
|
ln -sf /%{_lib}/ld64.so.1 $RPM_BUILD_ROOT/lib/ld64.so.1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Leave a compatibility symlink for the dynamic loader on armhfp targets,
|
# Leave a compatibility symlink for the dynamic loader on armhfp targets,
|
||||||
# at least until the world gets rebuilt
|
# at least until the world gets rebuilt
|
||||||
%ifarch armv7hl armv7hnl
|
%ifarch armv7hl armv7hnl
|
||||||
ln -sf %{_libdir}/ld-linux-armhf.so.3 $RPM_BUILD_ROOT%{_libdir}/ld-linux.so.3
|
ln -sf /lib/ld-linux-armhf.so.3 $RPM_BUILD_ROOT/lib/ld-linux.so.3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -1291,9 +1247,9 @@ done
|
|||||||
echo ====================TESTING END=====================
|
echo ====================TESTING END=====================
|
||||||
PLTCMD='/^Relocation section .*\(\.rela\?\.plt\|\.rela\.IA_64\.pltoff\)/,/^$/p'
|
PLTCMD='/^Relocation section .*\(\.rela\?\.plt\|\.rela\.IA_64\.pltoff\)/,/^$/p'
|
||||||
echo ====================PLT RELOCS LD.SO================
|
echo ====================PLT RELOCS LD.SO================
|
||||||
readelf -Wr $RPM_BUILD_ROOT%{_libdir}/ld-*.so | sed -n -e "$PLTCMD"
|
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/ld-*.so | sed -n -e "$PLTCMD"
|
||||||
echo ====================PLT RELOCS LIBC.SO==============
|
echo ====================PLT RELOCS LIBC.SO==============
|
||||||
readelf -Wr $RPM_BUILD_ROOT%{_libdir}/libc-*.so | sed -n -e "$PLTCMD"
|
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/libc-*.so | sed -n -e "$PLTCMD"
|
||||||
echo ====================PLT RELOCS END==================
|
echo ====================PLT RELOCS END==================
|
||||||
|
|
||||||
%endif # %{run_glibc_tests}
|
%endif # %{run_glibc_tests}
|
||||||
@ -1307,7 +1263,7 @@ echo ====================PLT RELOCS END==================
|
|||||||
# such that static linking works and produces the most minimally sized
|
# such that static linking works and produces the most minimally sized
|
||||||
# static application possible.
|
# static application possible.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
pushd $RPM_BUILD_ROOT%{_libdir}
|
pushd $RPM_BUILD_ROOT/usr/%{_lib}/
|
||||||
$GCC -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
|
$GCC -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
|
||||||
rm libpthread.a
|
rm libpthread.a
|
||||||
ar rcs libpthread.a libpthread.o
|
ar rcs libpthread.a libpthread.o
|
||||||
@ -1329,10 +1285,10 @@ popd
|
|||||||
# Print some diagnostic information in the builds about the
|
# Print some diagnostic information in the builds about the
|
||||||
# getconf binaries.
|
# getconf binaries.
|
||||||
# XXX: Why do we do this?
|
# XXX: Why do we do this?
|
||||||
ls -l $RPM_BUILD_ROOT%{_prefix}/bin/getconf
|
ls -l $RPM_BUILD_ROOT/usr/bin/getconf
|
||||||
ls -l $RPM_BUILD_ROOT%{_prefix}/libexec/getconf
|
ls -l $RPM_BUILD_ROOT/usr/libexec/getconf
|
||||||
eu-readelf -hS $RPM_BUILD_ROOT%{_prefix}/bin/getconf \
|
eu-readelf -hS $RPM_BUILD_ROOT/usr/bin/getconf \
|
||||||
$RPM_BUILD_ROOT%{_prefix}/libexec/getconf/*
|
$RPM_BUILD_ROOT/usr/libexec/getconf/*
|
||||||
|
|
||||||
find_debuginfo_args='--strict-build-id -g'
|
find_debuginfo_args='--strict-build-id -g'
|
||||||
%ifarch %{debuginfocommonarches}
|
%ifarch %{debuginfocommonarches}
|
||||||
@ -1340,12 +1296,12 @@ find_debuginfo_args="$find_debuginfo_args \
|
|||||||
-l common.filelist \
|
-l common.filelist \
|
||||||
-l utils.filelist \
|
-l utils.filelist \
|
||||||
-l nscd.filelist \
|
-l nscd.filelist \
|
||||||
-p '%{_prefix}/(sbin|libexec)/.*' \
|
-p '.*/(sbin|libexec)/.*' \
|
||||||
-o debuginfocommon.filelist \
|
-o debuginfocommon.filelist \
|
||||||
-l rpm.filelist \
|
-l rpm.filelist \
|
||||||
-l nosegneg.filelist"
|
-l nosegneg.filelist"
|
||||||
%endif
|
%endif
|
||||||
eval %{_prefix}/lib/rpm/find-debuginfo.sh \
|
eval /usr/lib/rpm/find-debuginfo.sh \
|
||||||
"$find_debuginfo_args" \
|
"$find_debuginfo_args" \
|
||||||
-o debuginfo.filelist
|
-o debuginfo.filelist
|
||||||
|
|
||||||
@ -1457,9 +1413,9 @@ if rpm.vercmp(rel, required) < 0 then
|
|||||||
error("FATAL: kernel too old", 0)
|
error("FATAL: kernel too old", 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
%post -p %{_prefix}/sbin/glibc_post_upgrade.%{_target_cpu}
|
%post -p /usr/sbin/glibc_post_upgrade.%{_target_cpu}
|
||||||
|
|
||||||
%postun -p %{_prefix}/sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%triggerin common -p <lua> -- glibc
|
%triggerin common -p <lua> -- glibc
|
||||||
if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0 then
|
if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0 then
|
||||||
@ -1497,9 +1453,9 @@ if [ "$1" = 0 ]; then
|
|||||||
/sbin/install-info --delete %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || :
|
/sbin/install-info --delete %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post utils -p %{_prefix}/sbin/ldconfig
|
%post utils -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun utils -p %{_prefix}/sbin/ldconfig
|
%postun utils -p /sbin/ldconfig
|
||||||
|
|
||||||
%pre -n nscd
|
%pre -n nscd
|
||||||
getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd
|
getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd
|
||||||
@ -1520,8 +1476,8 @@ fi
|
|||||||
%systemd_postun_with_restart nscd.service
|
%systemd_postun_with_restart nscd.service
|
||||||
|
|
||||||
%if %{xenpackage}
|
%if %{xenpackage}
|
||||||
%post xen -p %{_prefix}/sbin/ldconfig
|
%post xen -p /sbin/ldconfig
|
||||||
%postun xen -p %{_prefix}/sbin/ldconfig
|
%postun xen -p /sbin/ldconfig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -1530,31 +1486,31 @@ rm -f *.filelist*
|
|||||||
|
|
||||||
%files -f rpm.filelist
|
%files -f rpm.filelist
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/audit
|
%dir /usr/%{_lib}/audit
|
||||||
%ifarch %{rtkaioarches}
|
%ifarch %{rtkaioarches}
|
||||||
%dir %{_libdir}/rtkaio
|
%dir /%{_lib}/rtkaio
|
||||||
%endif
|
%endif
|
||||||
%if %{buildxen} && !%{xenpackage}
|
%if %{buildxen} && !%{xenpackage}
|
||||||
%dir %{_libdir}/%{nosegneg_subdir_base}
|
%dir /%{_lib}/%{nosegneg_subdir_base}
|
||||||
%dir %{_libdir}/%{nosegneg_subdir}
|
%dir /%{_lib}/%{nosegneg_subdir}
|
||||||
%ifarch %{rtkaioarches}
|
%ifarch %{rtkaioarches}
|
||||||
%dir %{_libdir}/rtkaio/%{nosegneg_subdir_base}
|
%dir /%{_lib}/rtkaio/%{nosegneg_subdir_base}
|
||||||
%dir %{_libdir}/rtkaio/%{nosegneg_subdir}
|
%dir /%{_lib}/rtkaio/%{nosegneg_subdir}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if %{buildpower6}
|
%if %{buildpower6}
|
||||||
%dir %{_libdir}/power6
|
%dir /%{_lib}/power6
|
||||||
%dir %{_libdir}/power6x
|
%dir /%{_lib}/power6x
|
||||||
%ifarch %{rtkaioarches}
|
%ifarch %{rtkaioarches}
|
||||||
%dir %{_libdir}/rtkaio/power6
|
%dir /%{_lib}/rtkaio/power6
|
||||||
%dir %{_libdir}/rtkaio/power6x
|
%dir /%{_lib}/rtkaio/power6x
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%{_prefix}/lib/ld64.so.1
|
/lib/ld64.so.1
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl armv7hnl
|
%ifarch armv7hl armv7hnl
|
||||||
%{_prefix}/lib/ld-linux.so.3
|
/lib/ld-linux.so.3
|
||||||
%endif
|
%endif
|
||||||
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
|
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
|
||||||
%verify(not md5 size mtime) %config(noreplace) /etc/ld.so.conf
|
%verify(not md5 size mtime) %config(noreplace) /etc/ld.so.conf
|
||||||
@ -1573,8 +1529,8 @@ rm -f *.filelist*
|
|||||||
%if %{xenpackage}
|
%if %{xenpackage}
|
||||||
%files -f nosegneg.filelist xen
|
%files -f nosegneg.filelist xen
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/%{nosegneg_subdir_base}
|
%dir /%{_lib}/%{nosegneg_subdir_base}
|
||||||
%dir %{_libdir}/%{nosegneg_subdir}
|
%dir /%{_lib}/%{nosegneg_subdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifnarch %{auxarches}
|
%ifnarch %{auxarches}
|
||||||
@ -1603,9 +1559,9 @@ rm -f *.filelist*
|
|||||||
%config(noreplace) /etc/nscd.conf
|
%config(noreplace) /etc/nscd.conf
|
||||||
%dir %attr(0755,root,root) /var/run/nscd
|
%dir %attr(0755,root,root) /var/run/nscd
|
||||||
%dir %attr(0755,root,root) /var/db/nscd
|
%dir %attr(0755,root,root) /var/db/nscd
|
||||||
%{_prefix}/lib/systemd/system/nscd.service
|
/lib/systemd/system/nscd.service
|
||||||
%{_prefix}/lib/systemd/system/nscd.socket
|
/lib/systemd/system/nscd.socket
|
||||||
%{_prefix}/lib/tmpfiles.d/nscd.conf
|
/usr/lib/tmpfiles.d/nscd.conf
|
||||||
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/nscd.pid
|
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/nscd.pid
|
||||||
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/socket
|
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/socket
|
||||||
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/passwd
|
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/passwd
|
||||||
@ -1631,6 +1587,9 @@ rm -f *.filelist*
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 13 2013 Carlos O'Donell <codonell@redhat.com> - 2.17.90-13
|
||||||
|
- Revert `Move to /usr' transition.
|
||||||
|
|
||||||
* Tue Aug 13 2013 Carlos O'Donell <codonell@redhat.com> - 2.17.90-12
|
* Tue Aug 13 2013 Carlos O'Donell <codonell@redhat.com> - 2.17.90-12
|
||||||
- Complete `Move to /usr' transition. All relevant files are now
|
- Complete `Move to /usr' transition. All relevant files are now
|
||||||
installed into `/usr'.
|
installed into `/usr'.
|
||||||
|
Loading…
Reference in New Issue
Block a user