Hello community,
here is the log from the commit of package coreutils.2423 for openSUSE:13.1:Update checked in at 2014-01-07 11:33:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:13.1:Update/coreutils.2423 (Old)
and /work/SRC/openSUSE:13.1:Update/.coreutils.2423.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "coreutils.2423"
Changes:
--------
New Changes file:
--- /dev/null 2013-11-25 01:44:08.036031256 +0100
+++ /work/SRC/openSUSE:13.1:Update/.coreutils.2423.new/coreutils-testsuite.changes 2014-01-07 11:33:35.000000000 +0100
@@ -0,0 +1,2820 @@
+-------------------------------------------------------------------
+Thu Dec 19 22:54:26 UTC 2013 - mail@bernhard-voelker.de
+
+- Fix issue with binary input in non-C locale (rh#1036289)
+ (coreutils-i18n.patch): Initialize memory for some edge cases
+ in the i18n patch for uniq and join.
+
+-------------------------------------------------------------------
+Wed Dec 11 20:22:47 UTC 2013 - mail@bernhard-voelker.de
+
+- Avoid false sort test failure (coreutils-i18n.patch):
+ As for the C locale, skip the multi-byte test case
+ 'output-is-input-mb.p'.
+
+-------------------------------------------------------------------
+Sat Dec 7 19:15:40 UTC 2013 - schwab@linux-m68k.org
+
+- Require valgrind only when it exists
+
+-------------------------------------------------------------------
+Sun Dec 1 22:48:48 UTC 2013 - mail@bernhard-voelker.de
+
+- Update I18N patch from Fedora:
+ (coreutils-i18n.patch)
+ * sort: fix multibyte incompabilities (rh#821264)
+ * pr -e, with a mix of backspaces and TABs, could corrupt the
+ heap in multibyte locales (analyzed by J.Koncicky)
+ * path in the testsuite to cover i18n regressions
+ * Enable cut and sort-merge perl tests for multibyte as well
+- Refresh longlong-aarch64.patch.
+
+-------------------------------------------------------------------
+Wed Aug 7 08:10:22 UTC 2013 - mail@bernhard-voelker.de
+
+- Remove "BuildRequires: help2man" as it is included.
+
+-------------------------------------------------------------------
+Tue Aug 6 14:02:42 CEST 2013 - pth@suse.de
+
+- Remove the the unnecessary povision of itself as rpmbuild takes
+ care of that.
+- Remove all traces of coreutils-8.9-singlethreaded-sort.patch in
+ the spec file.
+
+-------------------------------------------------------------------
+Tue Jul 23 13:22:21 UTC 2013 - mail@bernhard-voelker.de
+
+- Undo the previous change.
+ Remove configure options gl_cv_func_printf_directive_n and
+ gl_cv_func_printf_infinite_long_double again because of constant
+ factory build failures on x86_64 and i586. The argument for
+ adding them was that the fortify checks would be bypassed
+ by the gnulib "reimplementation of printf", but that is not
+ the case: instead, gnulib just adds some wrapping code to ensure
+ a consistent behaviour on all supported platforms.
+
+-------------------------------------------------------------------
+Mon Jul 8 15:09:22 UTC 2013 - schwab@suse.de
+
+- Override broken configure checks
+- coreutils-gl_printf_safe.patch: remove unused patch
+
+-------------------------------------------------------------------
+Sun Jun 16 23:59:28 UTC 2013 - jengelh@inai.de
+
+- Explicitly list libattr-devel as BuildRequires
+- More robust make install call
+
+-------------------------------------------------------------------
+Fri Jun 7 14:36:26 UTC 2013 - schwab@suse.de
+
+- longlong-aarch64.patch: fix build on aarch64
+
+-------------------------------------------------------------------
+Fri Jun 7 01:50:04 UTC 2013 - mail@bernhard-voelker.de
+
+- Remove su(1) and kill(1) - both are provided by util-linux now.
+ * su.pamd, su.default, coreutils-su.patch: Remove patch and PAM
+ config files related to su(1).
+ * coreutils-remove_kill_documentation.patch: Add patch to remove
+ kill from the texinfo manual.
+ * coreutils.spec: Remove above, su-related patch and sources.
+ Remove Requires:pam and BuildRequires:pam-devel.
+ Remove Provides:/bin/{su,kill}.
+ Remove paragraph mentioning su(1) and kill(1) in %description.
+ Remove `moving su trickery` and other left-overs from %install,
+ %post and %files.
+ Remove %posttrans and %verifyscript sections (as these contained
+ su-related stuff).
+ Add code to %install to remove kill's program and man page.
+
+-------------------------------------------------------------------
+Mon May 20 15:38:30 UTC 2013 - mail@bernhard-voelker.de
+
+- Try to fix nap() races in gnulib-tests.
+ (coreutils-gnulib-tests-fix-nap-race.patch: add upstream patch)
+ (coreutils-gnulib-tests-fix-nap-race-obs.patch: add openSUSE patch for OBS)
+
+-------------------------------------------------------------------
+Wed May 15 11:26:29 UTC 2013 - mhrusecky@suse.com
+
+- Provides: /bin/{kill,su}
+ * for compatibility with programs requiring these (like lsb) until these will
+ be provided by util-linux
+
+-------------------------------------------------------------------
+Thu Apr 4 23:25:17 UTC 2013 - mail@bernhard-voelker.de
+
+- Fix source url for coreutils-testsuite.
+
+-------------------------------------------------------------------
+Thu Mar 21 11:55:13 UTC 2013 - mmeister@suse.com
+
+- Added url as source.
+ Please see http://en.opensuse.org/SourceUrls
+
+-------------------------------------------------------------------
+Thu Mar 21 11:54:05 UTC 2013 - mail@bernhard-voelker.de
+
+- Fix multibyte issue in unexpand (rh#821262)
+ (coreutils-i18n.patch: patch by Roman Kollár )
+
+- Fix cut to terminate mbdelim string
+
+ Otherwise, cut might do an unbounded strdup of the delimiter string
+ in i18n mode (https://bugzilla.redhat.com/show_bug.cgi?id=911929)
+ (coreutils-i18n.patch, from Mark Wielaard )
+
+- Add su(1) again
+
+ Now, su(1) will be provided via a symlink trick
+ to the file installed with a ".core" suffix.
+ By this, we can upgrade to 8.21 without having to wait
+ for a util-linux version providing it.
+
+ * coreutils-su.patch: Add cumulative su patch from previous Base:System
+ version 8.17, ported to 8.21 build structure. This supersedes the
+ following partial patches:
+ coreutils-8.6-compile-su-with-fpie.diff,
+ coreutils-8.6-honor-settings-in-etc-default-su-resp-etc-login.defs.diff,
+ coreutils-8.6-log-all-su-attempts.diff,
+ coreutils-8.6-make-sure-sbin-resp-usr-sbin-are-in-PATH.diff,
+ coreutils-8.6-pam-support-for-su.diff,
+ coreutils-8.6-set-sane-default-path.diff,
+ coreutils-8.6-update-man-page-for-pam.diff,
+ coreutils-bnc#697897-setsid.patch.
+
+ * pam, pam-devel: Add as requirements, also during build.
+ * coreutils.spec (%description): Clarify that su is included although removed
+ upstreams.
+ (%install): Install su+kill files with suffix ".core".
+ (%post): Move setting permissions on su from %posttrans to %install.
+ (%posttrans): Create symlinks to files with ".core" suffix unless already
+ existing.
+
+- Install kill(1) with the same symlink trick.
+
+- Remove now-obsolete patches and files:
+
+ * coreutils-8.17.de.po.xz:
+ * coreutils-8.17.tar.xz:
+ Remove sources + translation of previous version
+
+ * coreutils-acl-nofollow.patch:
+ * coreutils-basename_documentation.patch:
+ * coreutils-cp-corrupt-fragmented-sparse.patch:
+ * coreutils-df-always-hide-rootfs.patch:
+ * coreutils-skip-du-slink-test.patch:
+ Fixed upstream.
+
+ * coreutils-getaddrinfo.patch:
+ * coreutils-misc.patch:
+ * coreutils-no_silent-rule.patch:
+ Remove test and build related patches.
+
+ * coreutils-ptr_int_casts.patch:
+ Remove because merged into coreutils-i18n.patch.
+
+- Add files:
+
+ * coreutils-8.21.tar.xz:
+ Add tarball of the new upstream version
+ * coreutils-8.21.de.po.xz:
+ Add language file.
+
+- Update patches:
+
+ * coreutils-i18n.patch
+ Merge some Fedora changes to keep the i18n patch like theirs.
+ Fix and cleanup sort's multibyte test with incorporated test data.
+
+ * coreutils-remove_hostname_documentation.patch
+
+- Add patch to build 'timeout' as PIE (OBS requires it).
+ This patch actually was included in one of the old su patches.
+
+ * new patch name: coreutils-build-timeout-as-pie.patch
++++ 2623 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:13.1:Update/.coreutils.2423.new/coreutils-testsuite.changes
New Changes file:
coreutils.changes: same change
New:
----
baselibs.conf
coreutils-8.21.de.po.xz
coreutils-8.21.tar.xz
coreutils-build-timeout-as-pie.patch
coreutils-gnulib-tests-fix-nap-race-obs.patch
coreutils-gnulib-tests-fix-nap-race.patch
coreutils-i18n.patch
coreutils-invalid-ids.patch
coreutils-remove_hostname_documentation.patch
coreutils-remove_kill_documentation.patch
coreutils-sysinfo.patch
coreutils-testsuite.changes
coreutils-testsuite.spec
coreutils.changes
coreutils.spec
longlong-aarch64.patch
pre_checkin.sh
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ coreutils-testsuite.spec ++++++
#
# spec file for package coreutils-testsuite
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: coreutils-testsuite
Summary: GNU Core Utilities
License: GPL-3.0+
Group: System/Base
Url: http://www.gnu.org/software/coreutils/
Version: 8.21
Release: 0
#################################################################
#################################################################
### ! ! ! R E M I N D E R ! ! ! ###
#################################################################
### Please call "./pre_checkin.sh" prior to submitting. ###
### (This will regenerate coreutils-testsuite.spec) ###
#################################################################
#################################################################
BuildRequires: automake
BuildRequires: gmp-devel
BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libcap-devel
BuildRequires: libselinux-devel
BuildRequires: makeinfo
BuildRequires: perl
BuildRequires: xz
%if "%{name}" == "coreutils-testsuite"
BuildRequires: acl
BuildRequires: gdb
BuildRequires: perl-Expect
BuildRequires: python-pyinotify
BuildRequires: strace
%ifarch %ix86 x86_64 ppc ppc64 s390x armv7l armv7hl
BuildRequires: valgrind
%endif
%endif
%if "%{name}" == "coreutils"
Provides: fileutils = %{version}
Provides: mktemp = %{version}
Provides: sh-utils = %{version}
Provides: stat = %{version}
Provides: textutils = %{version}
%endif
%if "%{name}" == "coreutils"
Recommends: %{name}-lang = %version
%endif
# this will create a cycle, broken up randomly - coreutils is just
# too core to have other prerequisites.
#PreReq: permissions
PreReq: %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Git-Web: http://git.savannah.gnu.org/gitweb/?p=coreutils.git
#Git-Clone: git://git.sv.gnu.org/coreutils
%if "%{name}" == "coreutils"
# For upgrading you now just need to increase the version, remove the old
# tarballs, then run osc service localrun download_files, osc addremove,
# osc vc and osc ci and you are done.
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
%else
# In "coreutils-testsuite", we use the version controlled file from "coreutils".
# otherwise that file would be downloaded twice during the above mentioned
# upgrade procedure.
Source: coreutils-%{version}.tar.xz
%endif
Source1: baselibs.conf
Source2: coreutils-%{version}.de.po.xz
Patch1: coreutils-remove_hostname_documentation.patch
Patch3: coreutils-remove_kill_documentation.patch
Patch4: coreutils-i18n.patch
Patch8: coreutils-sysinfo.patch
Patch16: coreutils-invalid-ids.patch
Patch17: longlong-aarch64.patch
# OBS / RPMLINT require /usr/bin/timeout to be built with the -fpie option.
Patch100: coreutils-build-timeout-as-pie.patch
# Fix gnulib-test failures related to gnulib-tests/nap.h.
Patch200: coreutils-gnulib-tests-fix-nap-race.patch
# Fix gnulib-test failures: increase nap() delay multiplier even
# a bit more to avoid failures on OBS.
Patch201: coreutils-gnulib-tests-fix-nap-race-obs.patch
# ================================================
%description
These are the GNU core utilities. This package is the union of
the GNU fileutils, sh-utils, and textutils packages.
[ arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp
csplit cut date dd df dir dircolors dirname du echo env expand expr
factor false fmt fold groups head hostid id install join
link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup
nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink
realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum
shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test
timeout touch tr true truncate tsort tty uname unexpand uniq unlink
uptime users vdir wc who whoami yes
# ================================================
%lang_package
%prep
%setup -q -n coreutils-%{version}
%patch4
%patch1
%patch3
%patch8
%patch16
%patch17 -p1
#
%patch100
%patch200
%patch201
xz -dc %{S:2} >po/de.po
#???## We need to statically link to gmp, otherwise we have a build loop
#???#sed -i s,'$(LIB_GMP)',%%{_libdir}/libgmp.a,g Makefile.in
# ================================================
%build
%if 0%{suse_version} >= 1200
AUTOPOINT=true autoreconf -fi
%endif
export CFLAGS="%optflags"
%configure --libexecdir=%{_libdir} \
--enable-install-program=arch \
DEFAULT_POSIX2_VERSION=200112 \
alternative=199209
make -C po update-po
# Regenerate manpages
touch man/*.x
make all %{?_smp_mflags} V=1
# ================================================
%check
%if "%{name}" == "coreutils-testsuite"
# Make our multi-byte test for sort executable
chmod a+x tests/misc/sort-mb-tests.sh
# Avoid parallel make, because otherwise some timeout based tests like
# rm/ext3-perf may fail due to high CPU or IO load.
make check-very-expensive \
&& install -d -m 755 %{buildroot}%{_docdir}/%{name} \
&& xz -c tests/test-suite.log \
> %{buildroot}%{_docdir}/%{name}/test-suite.log.xz
%endif
# ================================================
%install
%if "%{name}" == "coreutils"
make install DESTDIR="%buildroot" pkglibexecdir=%{_libdir}/%{name}
# remove kill
rm -v %{buildroot}%{_bindir}/kill
rm -v %{buildroot}/%{_mandir}/man1/kill.1
#UsrMerge
install -d %{buildroot}/bin
for i in arch basename cat chgrp chmod chown cp date dd df echo \
false ln ls mkdir mknod mktemp mv pwd rm rmdir sleep sort stat \
stty sync touch true uname readlink md5sum
do
ln -sf %{_bindir}/$i %{buildroot}/bin/$i
done
#EndUsrMerge
echo '.so man1/test.1' > %{buildroot}/%{_mandir}/man1/\[.1
%find_lang coreutils
%endif
# ================================================
%post
%if "%{name}" == "coreutils"
%install_info --info-dir=%{_infodir} %{_infodir}/coreutils.info.gz
%endif
# ================================================
%postun
%if "%{name}" == "coreutils"
%install_info_delete --info-dir=%{_infodir} %{_infodir}/coreutils.info.gz
%endif
# ================================================
%files
%if "%{name}" == "coreutils"
%defattr(-,root,root)
%doc COPYING NEWS README THANKS
%{_bindir}/*
#UsrMerge
/bin/*
#EndUsrMerge
%{_libdir}/%{name}
%doc %{_infodir}/coreutils.info*.gz
%doc %{_mandir}/man1/*.1.gz
%dir %{_datadir}/locale/*/LC_TIME
%files lang -f coreutils.lang
%defattr(-,root,root)
%else
# test-suite
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/test-suite.log.xz
%endif
# ================================================
%changelog
++++++ coreutils.spec ++++++
#
# spec file for package coreutils
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: coreutils
Summary: GNU Core Utilities
License: GPL-3.0+
Group: System/Base
Url: http://www.gnu.org/software/coreutils/
Version: 8.21
Release: 0
#################################################################
#################################################################
### ! ! ! R E M I N D E R ! ! ! ###
#################################################################
### Please call "./pre_checkin.sh" prior to submitting. ###
### (This will regenerate coreutils-testsuite.spec) ###
#################################################################
#################################################################
BuildRequires: automake
BuildRequires: gmp-devel
BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libcap-devel
BuildRequires: libselinux-devel
BuildRequires: makeinfo
BuildRequires: perl
BuildRequires: xz
%if "%{name}" == "coreutils-testsuite"
BuildRequires: acl
BuildRequires: gdb
BuildRequires: perl-Expect
BuildRequires: python-pyinotify
BuildRequires: strace
%ifarch %ix86 x86_64 ppc ppc64 s390x armv7l armv7hl
BuildRequires: valgrind
%endif
%endif
%if "%{name}" == "coreutils"
Provides: fileutils = %{version}
Provides: mktemp = %{version}
Provides: sh-utils = %{version}
Provides: stat = %{version}
Provides: textutils = %{version}
%endif
%if "%{name}" == "coreutils"
Recommends: %{name}-lang = %version
%endif
# this will create a cycle, broken up randomly - coreutils is just
# too core to have other prerequisites.
#PreReq: permissions
PreReq: %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Git-Web: http://git.savannah.gnu.org/gitweb/?p=coreutils.git
#Git-Clone: git://git.sv.gnu.org/coreutils
%if "%{name}" == "coreutils"
# For upgrading you now just need to increase the version, remove the old
# tarballs, then run osc service localrun download_files, osc addremove,
# osc vc and osc ci and you are done.
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
%else
# In "coreutils-testsuite", we use the version controlled file from "coreutils".
# otherwise that file would be downloaded twice during the above mentioned
# upgrade procedure.
Source: coreutils-%{version}.tar.xz
%endif
Source1: baselibs.conf
Source2: coreutils-%{version}.de.po.xz
Patch1: coreutils-remove_hostname_documentation.patch
Patch3: coreutils-remove_kill_documentation.patch
Patch4: coreutils-i18n.patch
Patch8: coreutils-sysinfo.patch
Patch16: coreutils-invalid-ids.patch
Patch17: longlong-aarch64.patch
# OBS / RPMLINT require /usr/bin/timeout to be built with the -fpie option.
Patch100: coreutils-build-timeout-as-pie.patch
# Fix gnulib-test failures related to gnulib-tests/nap.h.
Patch200: coreutils-gnulib-tests-fix-nap-race.patch
# Fix gnulib-test failures: increase nap() delay multiplier even
# a bit more to avoid failures on OBS.
Patch201: coreutils-gnulib-tests-fix-nap-race-obs.patch
# ================================================
%description
These are the GNU core utilities. This package is the union of
the GNU fileutils, sh-utils, and textutils packages.
[ arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp
csplit cut date dd df dir dircolors dirname du echo env expand expr
factor false fmt fold groups head hostid id install join
link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup
nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink
realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum
shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test
timeout touch tr true truncate tsort tty uname unexpand uniq unlink
uptime users vdir wc who whoami yes
# ================================================
%lang_package
%prep
%setup -q -n coreutils-%{version}
%patch4
%patch1
%patch3
%patch8
%patch16
%patch17 -p1
#
%patch100
%patch200
%patch201
xz -dc %{S:2} >po/de.po
#???## We need to statically link to gmp, otherwise we have a build loop
#???#sed -i s,'$(LIB_GMP)',%%{_libdir}/libgmp.a,g Makefile.in
# ================================================
%build
%if 0%{suse_version} >= 1200
AUTOPOINT=true autoreconf -fi
%endif
export CFLAGS="%optflags"
%configure --libexecdir=%{_libdir} \
--enable-install-program=arch \
DEFAULT_POSIX2_VERSION=200112 \
alternative=199209
make -C po update-po
# Regenerate manpages
touch man/*.x
make all %{?_smp_mflags} V=1
# ================================================
%check
%if "%{name}" == "coreutils-testsuite"
# Make our multi-byte test for sort executable
chmod a+x tests/misc/sort-mb-tests.sh
# Avoid parallel make, because otherwise some timeout based tests like
# rm/ext3-perf may fail due to high CPU or IO load.
make check-very-expensive \
&& install -d -m 755 %{buildroot}%{_docdir}/%{name} \
&& xz -c tests/test-suite.log \
> %{buildroot}%{_docdir}/%{name}/test-suite.log.xz
%endif
# ================================================
%install
%if "%{name}" == "coreutils"
make install DESTDIR="%buildroot" pkglibexecdir=%{_libdir}/%{name}
# remove kill
rm -v %{buildroot}%{_bindir}/kill
rm -v %{buildroot}/%{_mandir}/man1/kill.1
#UsrMerge
install -d %{buildroot}/bin
for i in arch basename cat chgrp chmod chown cp date dd df echo \
false ln ls mkdir mknod mktemp mv pwd rm rmdir sleep sort stat \
stty sync touch true uname readlink md5sum
do
ln -sf %{_bindir}/$i %{buildroot}/bin/$i
done
#EndUsrMerge
echo '.so man1/test.1' > %{buildroot}/%{_mandir}/man1/\[.1
%find_lang coreutils
%endif
# ================================================
%post
%if "%{name}" == "coreutils"
%install_info --info-dir=%{_infodir} %{_infodir}/coreutils.info.gz
%endif
# ================================================
%postun
%if "%{name}" == "coreutils"
%install_info_delete --info-dir=%{_infodir} %{_infodir}/coreutils.info.gz
%endif
# ================================================
%files
%if "%{name}" == "coreutils"
%defattr(-,root,root)
%doc COPYING NEWS README THANKS
%{_bindir}/*
#UsrMerge
/bin/*
#EndUsrMerge
%{_libdir}/%{name}
%doc %{_infodir}/coreutils.info*.gz
%doc %{_mandir}/man1/*.1.gz
%dir %{_datadir}/locale/*/LC_TIME
%files lang -f coreutils.lang
%defattr(-,root,root)
%else
# test-suite
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/test-suite.log.xz
%endif
# ================================================
%changelog
++++++ baselibs.conf ++++++
targettype x86 package coreutils
+^/bin/uname$
prereq -glibc-x86
++++++ coreutils-build-timeout-as-pie.patch ++++++
From d1a49cccf99373293a88f5bce74857d5bb813e46 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker
Date: Thu, 10 Jan 2013 09:21:22 +0200
Subject: build timeout as PIE
The OBS requires /usr/bin/timeout to be built as an position
independent executable (PIE). This is enforced via RPMLINT.
* src/local.mk (AM_CFLAGS): Add -fpie option.
(timeout_CFLAGS): Likewise.
(timeout_LDFLAGS): Add -pie option.
---
src/local.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: src/local.mk
===================================================================
--- src/local.mk.orig
+++ src/local.mk
@@ -17,7 +17,7 @@
## along with this program. If not, see http://www.gnu.org/licenses/.
# FIXME: once lib/ and gnulib-tests/ are also converted, hoist to Makefile.am
-AM_CFLAGS = $(WERROR_CFLAGS)
+AM_CFLAGS = $(WERROR_CFLAGS) -fpie
# The list of all programs (separated in different variables to express
# the how and when they should be installed) is defined in this makefile
@@ -266,6 +266,9 @@ src_factor_LDADD += $(LIB_GMP)
# for getloadavg
src_uptime_LDADD += $(GETLOADAVG_LIBS)
+src_timeout_CFLAGS = -fpie
+src_timeout_LDFLAGS = -pie
+
# for various ACL functions
copy_ldadd += $(LIB_ACL)
src_ls_LDADD += $(LIB_ACL)
++++++ coreutils-gnulib-tests-fix-nap-race-obs.patch ++++++
From: Bernhard Voelker
Date: Mon, 20 May 2013 00:03:20 +0200
Subject: [PATCH] tests/nap.h: increase delay multiplier to avoid problems in
VMs like OBS
The gnulib change http://git.sv.gnu.org/cgit/gnulib.git/commit/?id=5191133e
(available upstreams with >= 8.22, applied to openSUSE's coreutils
package with "coreutils-gnulib-tests-fix-nap-race.patch", decreased the
probability of lost races to about a third, however such problems could
still be observed in virtual machines like OBS.
Increasing the factor from 1.125 to 3 seems to close the race window.
* tests/nap.h (nap): Change the multiplier for the delay from 1.125
to 3.
---
gnulib-tests/nap.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: gnulib-tests/nap.h
===================================================================
--- gnulib-tests/nap.h.orig
+++ gnulib-tests/nap.h
@@ -126,9 +126,11 @@ nap (void)
/* Multiply by 1.125 (rounding up), to avoid problems if the
file system's clock is a bit slower than nanosleep's.
+ OBS: use 3 as multiplier to avoid this race a bit better
+ which is even more likely in VMs.
Ceiling it at INT_MAX, though. */
- int delta = (d >> 3) + ((d & 7) != 0);
- d = delta < INT_MAX - d ? d + delta : INT_MAX;
+ int d2 = 3 * d;
+ d = d2 < INT_MAX ? d2 : INT_MAX;
delay.tv_sec = d / 1000000000;
delay.tv_nsec = d % 1000000000;
}
++++++ coreutils-gnulib-tests-fix-nap-race.patch ++++++
++++ 1071 lines (skipped)
++++++ coreutils-i18n.patch ++++++
++++ 4679 lines (skipped)
++++++ coreutils-invalid-ids.patch ++++++
While uid_t and gid_t are both unsigned, the values (uid_t) -1 and
(gid_t) -1 are reserved. A uid or gid argument of -1 to the chown(2)
system call means to leave the uid/gid unchanged. Catch this case
so that trying to set a uid or gid to -1 will result in an error.
Test cases:
chown 4294967295 file
chown :4294967295 file
chgrp 4294967295 file
Andreas Gruenbacher
Index: src/chgrp.c
===================================================================
--- src/chgrp.c.orig
+++ src/chgrp.c
@@ -88,7 +88,7 @@ parse_group (const char *name)
{
unsigned long int tmp;
if (! (xstrtoul (name, NULL, 10, &tmp, "") == LONGINT_OK
- && tmp <= GID_T_MAX))
+ && tmp <= GID_T_MAX && (gid_t) tmp != (gid_t) -1))
error (EXIT_FAILURE, 0, _("invalid group: %s"), quote (name));
gid = tmp;
}
++++++ coreutils-remove_hostname_documentation.patch ++++++
Index: doc/coreutils.texi
===================================================================
--- doc/coreutils.texi.orig
+++ doc/coreutils.texi
@@ -66,7 +66,6 @@
* groups: (coreutils)groups invocation. Print group names a user is in.
* head: (coreutils)head invocation. Output the first part of files.
* hostid: (coreutils)hostid invocation. Print numeric host identifier.
-* hostname: (coreutils)hostname invocation. Print or set system name.
* id: (coreutils)id invocation. Print user identity.
* install: (coreutils)install invocation. Copy and change attributes.
* join: (coreutils)join invocation. Join lines on a common field.
@@ -198,7 +197,7 @@ Free Documentation License''.
* File name manipulation:: dirname basename pathchk mktemp realpath
* Working context:: pwd stty printenv tty
* User information:: id logname whoami groups users who
-* System context:: date arch nproc uname hostname hostid uptime
+* System context:: date arch nproc uname hostid uptime
* SELinux context:: chcon runcon
* Modified command invocation:: chroot env nice nohup stdbuf timeout
* Process control:: kill
@@ -419,7 +418,6 @@ System context
* date invocation:: Print or set system date and time
* nproc invocation:: Print the number of processors
* uname invocation:: Print system information
-* hostname invocation:: Print or set system name
* hostid invocation:: Print numeric host identifier
* uptime invocation:: Print system uptime and load
@@ -14626,7 +14624,6 @@ information.
* arch invocation:: Print machine hardware name.
* nproc invocation:: Print the number of processors.
* uname invocation:: Print system information.
-* hostname invocation:: Print or set system name.
* hostid invocation:: Print numeric host identifier.
* uptime invocation:: Print system uptime and load.
@end menu
@@ -15448,15 +15445,6 @@ easily available, as is the case with Li
Print the machine hardware name (sometimes called the hardware class
or hardware type).
-@item -n
-@itemx --nodename
-@opindex -n
-@opindex --nodename
-@cindex hostname
-@cindex node name
-@cindex network node name
-Print the network node hostname.
-
@item -p
@itemx --processor
@opindex -p
@@ -15510,30 +15498,6 @@ Print the kernel version.
@exitstatus
-
-@node hostname invocation
-@section @command{hostname}: Print or set system name
-
-@pindex hostname
-@cindex setting the hostname
-@cindex printing the hostname
-@cindex system name, printing
-@cindex appropriate privileges
-
-With no arguments, @command{hostname} prints the name of the current host
-system. With one argument, it sets the current host name to the
-specified string. You must have appropriate privileges to set the host
-name. Synopsis:
-
-@example
-hostname [@var{name}]
-@end example
-
-The only options are @option{--help} and @option{--version}. @xref{Common
-options}.
-
-@exitstatus
-
@node hostid invocation
@section @command{hostid}: Print numeric host identifier
++++++ coreutils-remove_kill_documentation.patch ++++++
Index: doc/coreutils.texi
===================================================================
--- doc/coreutils.texi.orig
+++ doc/coreutils.texi
@@ -69,7 +69,6 @@
* id: (coreutils)id invocation. Print user identity.
* install: (coreutils)install invocation. Copy and change attributes.
* join: (coreutils)join invocation. Join lines on a common field.
-* kill: (coreutils)kill invocation. Send a signal to processes.
* link: (coreutils)link invocation. Make hard links between files.
* ln: (coreutils)ln invocation. Make links between files.
* logname: (coreutils)logname invocation. Print current login name.
@@ -200,7 +199,6 @@ Free Documentation License''.
* System context:: date arch nproc uname hostid uptime
* SELinux context:: chcon runcon
* Modified command invocation:: chroot env nice nohup stdbuf timeout
-* Process control:: kill
* Delaying:: sleep
* Numeric operations:: factor seq
* File permissions:: Access modes
@@ -446,10 +444,6 @@ Modified command invocation
* stdbuf invocation:: Run a command with modified I/O buffering
* timeout invocation:: Run a command with a time limit
-Process control
-
-* kill invocation:: Sending a signal to processes.
-
Delaying
* sleep invocation:: Delay for a specified time
@@ -16380,90 +16374,6 @@ the exit status of @var{command} otherwi
@end display
-@node Process control
-@chapter Process control
-
-@cindex processes, commands for controlling
-@cindex commands for controlling processes
-
-@menu
-* kill invocation:: Sending a signal to processes.
-@end menu
-
-
-@node kill invocation
-@section @command{kill}: Send a signal to processes
-
-@pindex kill
-@cindex send a signal to processes
-
-The @command{kill} command sends a signal to processes, causing them
-to terminate or otherwise act upon receiving the signal in some way.
-Alternatively, it lists information about signals. Synopses:
-
-@example
-kill [-s @var{signal} | --signal @var{signal} | -@var{signal}] @var{pid}@dots{}
-kill [-l | --list | -t | --table] [@var{signal}]@dots{}
-@end example
-
-@mayConflictWithShellBuiltIn{kill}
-
-The first form of the @command{kill} command sends a signal to all
-@var{pid} arguments. The default signal to send if none is specified
-is @samp{TERM}@. The special signal number @samp{0} does not denote a
-valid signal, but can be used to test whether the @var{pid} arguments
-specify processes to which a signal could be sent.
-
-If @var{pid} is positive, the signal is sent to the process with the
-process ID @var{pid}. If @var{pid} is zero, the signal is sent to all
-processes in the process group of the current process. If @var{pid}
-is @minus{}1, the signal is sent to all processes for which the user has
-permission to send a signal. If @var{pid} is less than @minus{}1, the signal
-is sent to all processes in the process group that equals the absolute
-value of @var{pid}.
-
-If @var{pid} is not positive, a system-dependent set of system
-processes is excluded from the list of processes to which the signal
-is sent.
-
-If a negative @var{pid} argument is desired as the first one, it
-should be preceded by @option{--}. However, as a common extension to
-POSIX, @option{--} is not required with @samp{kill
--@var{signal} -@var{pid}}. The following commands are equivalent:
-
-@example
-kill -15 -1
-kill -TERM -1
-kill -s TERM -- -1
-kill -- -1
-@end example
-
-The first form of the @command{kill} command succeeds if every @var{pid}
-argument specifies at least one process that the signal was sent to.
-
-The second form of the @command{kill} command lists signal information.
-Either the @option{-l} or @option{--list} option, or the @option{-t}
-or @option{--table} option must be specified. Without any
-@var{signal} argument, all supported signals are listed. The output
-of @option{-l} or @option{--list} is a list of the signal names, one
-per line; if @var{signal} is already a name, the signal number is
-printed instead. The output of @option{-t} or @option{--table} is a
-table of signal numbers, names, and descriptions. This form of the
-@command{kill} command succeeds if all @var{signal} arguments are valid
-and if there is no output error.
-
-The @command{kill} command also supports the @option{--help} and
-@option{--version} options. @xref{Common options}.
-
-A @var{signal} may be a signal name like @samp{HUP}, or a signal
-number like @samp{1}, or an exit status of a process terminated by the
-signal. A signal name can be given in canonical form or prefixed by
-@samp{SIG}@. The case of the letters is ignored, except for the
-@option{-@var{signal}} option which must use upper case to avoid
-ambiguity with lower case option letters.
-@xref{Signal specifications}, for a list of supported
-signal names and numbers.
-
@node Delaying
@chapter Delaying
++++++ coreutils-sysinfo.patch ++++++
Index: src/uname.c
===================================================================
--- src/uname.c.orig
+++ src/uname.c
@@ -337,6 +337,36 @@ main (int argc, char **argv)
# endif
}
#endif
+ if (element == unknown)
+ {
+ struct utsname name;
+ static char processor[sizeof (name.machine)];
+ if (uname (&name) != 0)
+ error (EXIT_FAILURE, errno, _("cannot get system name"));
+ strcpy (processor, name.machine);
+ element = processor;
+#ifdef __linux__
+ if (!strcmp (element, "i686"))
+ {
+ /* Check for Athlon */
+ char line[1024];
+ FILE *f = fopen ("/proc/cpuinfo", "r");
+ if (f)
+ {
+ while (fgets (line, sizeof (line), f) > 0)
+ {
+ if (strncmp (line, "vendor_id", 9) == 0)
+ {
+ if (strstr (line, "AuthenticAMD"))
+ element = "athlon";
+ break;
+ }
+ }
+ fclose (f);
+ }
+ }
+#endif
+ }
if (! (toprint == UINT_MAX && element == unknown))
print_element (element);
}
@@ -362,6 +392,18 @@ main (int argc, char **argv)
element = hardware_platform;
}
#endif
+ if (element == unknown)
+ {
+ struct utsname name;
+ static char hardware_platform[sizeof (name.machine)];
+ if (uname (&name) != 0)
+ error (EXIT_FAILURE, errno, _("cannot get system name"));
+ strcpy (hardware_platform, name.machine);
+ if (hardware_platform[0] == 'i' && hardware_platform[2] == '8'
+ && hardware_platform[3] == '6' && hardware_platform[4] == 0)
+ hardware_platform[1] = '3';
+ element = hardware_platform;
+ }
if (! (toprint == UINT_MAX && element == unknown))
print_element (element);
}
++++++ longlong-aarch64.patch ++++++
From 9fe7c5b6eb373d859390dd5a7844a666d8b7818b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Torbj=C3=B6rn=20Granlund?=
Date: Mon, 4 Mar 2013 17:57:33 +0000
Subject: [PATCH] build: fix factor build failure on aarch64
* src/longlong.h (__aarch64__): Make add_ssaaaa and sub_ddmmss work.
* NEWS: Mention the build fix.
Reported at https://bugzilla.redhat.com/917735
---
NEWS | 4 ++++
src/longlong.h | 21 +++++++--------------
2 files changed, 11 insertions(+), 14 deletions(-)
Index: coreutils-8.21/src/longlong.h
===================================================================
--- coreutils-8.21.orig/src/longlong.h
+++ coreutils-8.21/src/longlong.h
@@ -529,23 +529,16 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype
#endif /* __arm__ */
#if defined (__aarch64__) && W_TYPE_SIZE == 64
+/* FIXME: Extend the immediate range for the low word by using both
+ ADDS and SUBS, since they set carry in the same way. */
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
- __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \
+ __asm__ ("adds\t%1, %x4, %5\n\tadc\t%0, %x2, %x3" \
: "=r" (sh), "=&r" (sl) \
- : "r" (ah), "rZ" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC)
+ : "rZ" (ah), "rZ" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC)
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
- do { \
- if (__builtin_constant_p (bl)) \
- { \
- __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \
- : "=r" (sh), "=&r" (sl) \
- : "r" (ah), "r" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \
- } \
- else /* only bh might be a constant */ \
- __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \
- : "=r" (sh), "=&r" (sl) \
- : "r" (ah), "rZ" (bh), "r" (al), "rI" (bl) __CLOBBER_CC);\
- } while (0)
+ __asm__ ("subs\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3" \
+ : "=r,r" (sh), "=&r,&r" (sl) \
+ : "rZ,rZ" (ah), "rZ,rZ" (bh), "r,Z" (al), "rI,r" (bl) __CLOBBER_CC)
#define umul_ppmm(ph, pl, m0, m1) \
do { \
UDItype __m0 = (m0), __m1 = (m1); \
++++++ pre_checkin.sh ++++++
#!/bin/bash
# This script has to be run prior to a check-in if changes were done
# to spec and/or changes
sed -e "s,^\(Name:.*coreutils\),\1-testsuite," coreutils.spec > coreutils-testsuite.spec
cp coreutils.changes coreutils-testsuite.changes
osc service localrun format_spec_file
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org