diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..76483f1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,1251 @@ +coreutils (9.7-3) unstable; urgency=high + + * Correct spurious permission denied errors messages when copying from a file + with NFS ACLs to a filesystem which supports different ACLs. + (Backport of upstream fix.) (Closes: #1107169) + * Additional lintian overrides (for "mono", which is not defined for + terminals but is for other output formats) to address remaining lintian + warnings. + + -- Michael Stone Wed, 04 Jun 2025 11:14:05 -0400 + +coreutils (9.7-2) unstable; urgency=low + + * Build without y2038 support on hurd-i386 (Closes: #1078000) + * Hardening build flags (Closes: #1023556) + * Update URLs and metadata (Closes: #1057101) + * Support nodoc build profile (Closes: #1057136) + * Remove md5sum.textutils link (Closes: #1061302) + * Use DEB_VENDOR for packager name + * Lintian overrides + * Update standards version (no changes) + + -- Michael Stone Sun, 20 Apr 2025 13:39:09 -0400 + +coreutils (9.7-1) unstable; urgency=low + + * New upstream version + * Remove Breaks: usrmerge + * Add libsystemd dependency (Closes: #1080330) + * Add packager to version output (Closes: #1094325) + + -- Michael Stone Wed, 09 Apr 2025 09:09:41 -0400 + +coreutils (9.6-2) unstable; urgency=low + + * Backport upstream commit 915004f4 to address crash in ls -Z + + -- Michael Stone Fri, 04 Apr 2025 10:54:18 -0400 + +coreutils (9.6-1) unstable; urgency=low + + * New upstream version + * Disable autoreconf on build (for now) + + -- Michael Stone Thu, 03 Apr 2025 13:29:08 -0400 + +coreutils (9.5-1) unstable; urgency=low + + * New upstream version (Closes: #1033277) + * drop cp -n patch + * drop non-essential attributes in upstream/signing-key.asc to reduce size + * update watch file to use https rather than ftp + + -- Michael Stone Wed, 23 Oct 2024 09:08:43 -0400 + +coreutils (9.4-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * DEP17: Move files to /usr. (Closes: #1061274, #1057250) + + -- Helmut Grohne Sat, 09 Mar 2024 18:42:01 +0100 + +coreutils (9.4-3) unstable; urgency=low + + * remove arch restriction from libssl-dev build-depend + * revert cp -n behavior to debian 12 & prior (Closes: #1058752) + * add deprecation/compatibility warning for above + + -- Michael Stone Tue, 02 Jan 2024 08:54:03 -0500 + +coreutils (9.4-2) unstable; urgency=low + + * link against libssl if gpl compatible version available; add to + build-depends for linux-amd64 only at this time (will add others later as + makes sense) + + -- Michael Stone Fri, 10 Nov 2023 08:33:49 -0500 + +coreutils (9.4-1) unstable; urgency=low + + * New upstream version (Closes: #1017354) + - corrects cksum crashes due to missing cpu features (Closes: #1037264) + - corrects copy dir-relative operations (Closes: #1035531) + - corrects copy backup operations (Closes: #1035530) + * Drop old 61_whoips.patch and who --ips option; it no longer applies + cleanly after who.c refactoring, and it isn't clear the patch is still + useful given how system logging has changed since the patch was written + * Drop 63_dd-appenderrors.patch as documentation has been updated for ages + * Update copyright file + + -- Michael Stone Thu, 09 Nov 2023 14:18:41 -0500 + +coreutils (9.1-1) unstable; urgency=low + + * New upstream version (Closes: #1017354) + - Corrects printf single quote behavior (Closes: #1017110) + - Works around broken fuse.portal (Closes: #991378) + - split --number=K/N fixed (Closes: #982300) + - Supersedes restore-ls-behavior patch + * Use DPKG_ROOT in postinst/postrm (Closes: #983565) + * Update debhelper compat to 13 + * Update copyright file (Closes: #1012665) + * remove old kfbsd patches 85 (timer_settime) and 99 (fstat) + + -- Michael Stone Tue, 20 Sep 2022 11:27:27 -0400 + +coreutils (8.32-4) unstable; urgency=low + + * Fix FTBFS on ARM64. (Closes: #966449) + - d/p/restore-ls-behavior-8.31.patch: Upstream patch to restore + coreutils ls' 8.31 behavior on removed directories, which is + necessary to prevent using SYS_getdents that doesn't exist on + ARM64. + + -- Michael Stone Tue, 22 Sep 2020 08:17:17 -0400 + +coreutils (8.32-3) unstable; urgency=low + + * build with libgmp now that apt pulls it in anyway (Closes: #64527) + + -- Michael Stone Mon, 20 Jul 2020 14:09:06 -0400 + +coreutils (8.32-2) unstable; urgency=low + + * undo "remove LC_TIME symlinks" as this causes problems with date + display in some circumstances (Closes: #963513) + + -- Michael Stone Tue, 23 Jun 2020 08:24:55 -0400 + +coreutils (8.32-1) unstable; urgency=low + + * New upstream version (Closes: #959995) + - adds basenc command + * Update to dh 12 + * Standards version 4.5.0 (no changes) + + -- Michael Stone Mon, 22 Jun 2020 14:39:28 -0400 + +coreutils (8.30-3) unstable; urgency=medium + + * Fix renameat2 patch (Closes: #923420) + + -- Michael Stone Thu, 28 Feb 2019 10:30:31 -0500 + +coreutils (8.30-2) unstable; urgency=medium + + * Use renameat2 glibc function that can be intercepted by fakechroot + (Closes: #915559) + * Above requires autoreconf turned on again + + -- Michael Stone Tue, 26 Feb 2019 07:15:19 -0500 + +coreutils (8.30-1) unstable; urgency=low + + * New upstream version + - man pages are distributed again, should fix cross building issues + (Closes: #721358) + - fixes problem with install program location when cross building + (Closes: #879073) + - env -S support to pass multiple arguments in #! lines + * Standards version 4.2.1.0 (no changes) + + -- Michael Stone Wed, 29 Aug 2018 16:20:06 -0400 + +coreutils (8.28-1) unstable; urgency=low + + * New upstream version + - ls adds hyperlink format (terminals with appropriate support get + clickable links) + - env adds --chdir (-C) option + - another round of tail -f fixes/optimizations + - date introduces stable long option --rfc-email for -R + - nproc honors OMP_THREAD_LIMIT + * Reenable default ls quoting + * Get rid of old transition packages & logic for mktemp, timeout, + and realpath + * drop hppa longlong patch + * drop PPC sha256.o patch + Discussion in 854053 indicated that it shouldn't be an issue with gcc 7. + If people do still see a performance issue with sha256 on PPC we should + be early enough in the buster cycle to fix it in gcc. + * Standards version 4.1.1.0 + - update watch file & add upstream signing key + + -- Michael Stone Mon, 02 Oct 2017 13:51:20 -0400 + +coreutils (8.26-3) unstable; urgency=medium + + * Update standards version to 3.9.8.0 (no changes) + * Add -fno-schedule-insns to CFLAGS for sha256.o on PPC to fix + performance regression (Closes: #854053) + + -- Michael Stone Wed, 22 Feb 2017 07:23:45 -0500 + +coreutils (8.26-2) unstable; urgency=low + + * Fix regression in which specifying a TZ in date -d causes the + displayed date to no longer be printed in the local time zone + Upstream patch from Pádraig Brady (Closes: #851934) + + -- Michael Stone Fri, 20 Jan 2017 09:46:22 -0500 + +coreutils (8.26-1) unstable; urgency=low + + * New upstream version + + -- Michael Stone Fri, 09 Dec 2016 09:08:27 -0500 + +coreutils (8.25-2) unstable; urgency=medium + + * Disable default ls quoting for now to get the rest of 8.25 into testing. + (Closes: #813164) + + -- Michael Stone Tue, 16 Feb 2016 09:02:12 -0500 + +coreutils (8.25-1) unstable; urgency=low + + * New upstream version + - adds globbing to dircolors, hopefully color definitions less fragile in + future (Closes: #791921) + - date --iso-8601 now uses +00:00 timezone format rather than +0000. + (Closes: #799479) + - new df name selection logic hopefully less surprising for bind mounts + (Closes: #799131) + * update debhelper dependency + + -- Michael Stone Fri, 29 Jan 2016 10:51:32 -0500 + +coreutils (8.24-1) unstable; urgency=low + + * New upstream version (Closes: #804062) + * No longer include /usr/sbin/touch symlink, create in postinst if necessary + (Closes: #767710) + * [64] backport upstream patch for overlayfs (Closes: #810669) + * Switch to source format 3.0 (quilt) + * Drop auto tests, not working and needs to be revisited + + -- Michael Stone Mon, 18 Jan 2016 15:34:49 -0500 + +coreutils (8.23-4) unstable; urgency=low + + * [33] remove chroot optimization that avoids the actual chroot when + running "chroot /". The intent was to allow "chroot / true" to + work in all cases on all platforms even for non-root users, but + has caused problems with bind mounts. Upstream has added a new + option to chroot, but I'll wait for the new upstream version for + that. (Closes: #765514) + * remove spurious file addition in patch [31] that did not affect + built package + + -- Michael Stone Sat, 14 Mar 2015 07:59:06 -0400 + +coreutils (8.23-3) unstable; urgency=low + + * Standards version 3.9.6.0 + * build with verbose make (Closes: #751132) + * add numfmt to package description (Closes: #764698) + * [31] show duplicate remote mounts in df (Closes: #737399) + * [32] cherry pick upstream fix to make info doc references + more reliable (Closes: #760861) + + -- Michael Stone Wed, 29 Oct 2014 20:58:59 -0400 + +coreutils (8.23-2) unstable; urgency=low + + * Added missing replaces (Closes: #760233, #760234) + + -- Michael Stone Mon, 01 Sep 2014 19:52:12 -0400 + +coreutils (8.23-1) unstable; urgency=low + + * New upstream version + * Include realpath command in coreutils package and replace Debian + version of the command from the realpath package (Closes: #730779). + Add transational realpath package to help with upgrades. + (from Robert Luberda ) + * Add build-arch and build-indep targets required by Policy + 3.9.4. (Niels Thykier ) (Closes: #721118) + + -- Michael Stone Mon, 01 Sep 2014 09:56:18 -0400 + +coreutils (8.21-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Ensure config.{sub,guess} are up to date for new arches, using + autotools-dev (Closes: #689611) + * Add aarch64 assembler in longlong.h (from Colin Watson) (Closes: #698330) + + -- Wookey Sat, 12 Apr 2014 01:51:02 +0000 + +coreutils (8.21-1.1) unstable; urgency=medium + + * Non-Maintainer Upload + * Do not install su on hurd-i386 any more (Closes: #737806). + + -- Samuel Thibault Wed, 05 Feb 2014 22:50:43 +0000 + +coreutils (8.21-1) unstable; urgency=low + + * New upstream version + * Disable tests by default. I'm not entirely happy about doing this, as the + build tests have uncovered more than one library bug that would have been + problematic, but of late they've failed more because of buildd oddities + than real problems. I am trying this early in the jessie cycle, and will + turn the tests back on if it ends up being an issue. + + -- Michael Stone Sat, 20 Jul 2013 15:45:55 -0400 + +coreutils (8.20-3) unstable; urgency=low + + * actually include autopkgtest changes + + -- Michael Stone Sun, 18 Nov 2012 10:17:12 -0500 + +coreutils (8.20-2) unstable; urgency=low + + * Add upstream patch to fix build failure on hppa (Closes: #693578) + * Disable df test which seems to fail on some buildds + * Get rid of realpath (provided by other package) (Closes: #693211) + * Add autopkgtest. Thanks Martin Pitt. (Closes: #692748) + * Fix HAVE_LONG_LONG typo in factor. Thanks Daniel Schepler + (Closes: #693337) + + -- Michael Stone Sun, 18 Nov 2012 09:26:57 -0500 + +coreutils (8.20-1) unstable; urgency=low + + * New upstream version + - fixes possible data loss in sort -u (from 8.6) (Closes: #685238) + - df prefers shorter device names (Closes: #653073) + * Update watch file (Closes: #693171) + + -- Michael Stone Tue, 13 Nov 2012 20:49:45 -0500 + +coreutils (8.13-3.3) unstable; urgency=low + + * Non-maintainer upload + * [50] Updates to Danish, German, Spanish, French, and Vietnamese + translations from translationproject.org (Closes: #671807) + * [51] (Etienne Millon) Fix typo in "/usr/bin/[ --help" output with + LANG=fr (Closes: #598481) + * [52] (Michael Below) Fix typos in ln -s "permission denied" + message with LANG=de (Closes: #683401) + * [55] Touch pot file to ensure binary message catalogs are + regenerated during the build. + + -- Jonathan Nieder Mon, 10 Sep 2012 22:02:19 -0700 + +coreutils (8.13-3.2) unstable; urgency=low + + * Non-maintainer upload. + * Don't declare separate build-arch/build-indep targets when they just + fall through to the same common build rule, since they don't have correct + target dependencies themselves. Closes: #670481. + * Enable hardening build flags. Thanks to Moritz Muehlenhoff for the + patch. Closes: #653743. + * debian/patches/99_Werror-format-string.dpatch: fix the gnulib test suite + so that it doesn't fail to build with hardening flags on. + * Mark coreutils Multi-Arch: foreign. Thanks to Colin Watson. + Closes: #649397. + * debian/patches/99_tests-misc-sort-continue-Port-to-Fedora-15.dpatch: + cherry-pick from upstream to fix a build failure whenever the build + system happens to be holding an fd open, as happens when running in + certain environments (e.g., Lucas's test rebuild farm, or bzr-builddeb). + Closes: #669555. + + -- Steve Langasek Wed, 02 May 2012 02:27:43 +0000 + +coreutils (8.13-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Use architecture wildcards instead of type-handling virtual packages in + Build-Depends (closes: #587859). Thanks to Sebastian Andrzej Siewior for + the bug report and Guillem Jover for the patch. + + -- Jakub Wilk Wed, 29 Feb 2012 00:11:27 +0100 + +coreutils (8.13-3) unstable; urgency=low + + * revert previous change to -mlong-double-64 + + -- Michael Stone Sat, 01 Oct 2011 12:31:33 -0400 + +coreutils (8.13-2) unstable; urgency=low + + * Fix typo in kfbsd test patch + * Move libstdbuf.so back to /usr/lib + * [85] kfbsd ignores fractional part of timeouts over 100000s + (Closes: #641832) + * PPC uses -mlong-double-64 to prevent test failures (Closes: #641907) + * Minor build changes + + -- Michael Stone Mon, 19 Sep 2011 19:52:02 -0400 + +coreutils (8.13-1) unstable; urgency=low + + * New upstream version + - no diagnostic when tail -f from pipe (Closes: #622182) + - du ignores specified dir when part of cycle (Closes: #598438) + - corrects translation errors (Closes: #595019, #545347) + - fixes missing prototype which caused FTBFS in some cases (Closes: #585509) + - documentation updates (Closes: #395430, #115833, #545347) + * preserve upstream man pages in clean (Closes: #630735) + * respect CFLAGS in build (Closes: #596262) + * remove LC_TIME symlinks (Closes: #584837) + + -- Michael Stone Mon, 12 Sep 2011 17:21:19 -0400 + +coreutils (8.5-1) unstable; urgency=low + + * New upstream version + * kfbsd patch to work around fstat bug (from jwilk) (Closes: #573940) + * temporarily killing tests on mipsel due to longstanding gcc bug #519006 + + -- Michael Stone Tue, 27 Apr 2010 20:32:54 -0400 + +coreutils (8.4-2) unstable; urgency=low + + * Fix kfbsd build test problems (Closes: #569020) + + -- Michael Stone Fri, 05 Mar 2010 19:06:22 -0500 + +coreutils (8.4-1) unstable; urgency=low + + * New upstream version + - fixes "Bad file descriptor" message from cp & touch (Closes: #563754) + - tail -F won't abort when file is moved (Closes: #561481, #561854) + - mktemp man page describes template (Closes: #548316) + * temporarily disable tests/misc/ls-time to work around some spurious + build failures (on btrfs) + + -- Michael Stone Sat, 16 Jan 2010 14:37:32 -0500 + +coreutils (8.1-1) unstable; urgency=low + + * New upstream version + - adds nproc(1) + + -- Michael Stone Sat, 21 Nov 2009 16:44:35 -0500 + +coreutils (8.0-1) unstable; urgency=low + + * New upstream version + * touch accepts leap seconds (Closes: #510347) + * ln adds -L and -P + * rm -rf should be faster + * remove usr/share/info/dir in build rules (Closes: #546016) + * replaces: timeout (Closes: #552509) + + -- Michael Stone Sat, 14 Nov 2009 16:41:02 -0500 + +coreutils (7.5-6) unstable; urgency=low + + * remove usr/share/info/dir.gz in build rules (Closes: #546016) + * [83] make sure tail -f flushes initial output before waiting + (Closes: #545422) + + -- Michael Stone Fri, 11 Sep 2009 05:59:32 -0400 + +coreutils (7.5-5) unstable; urgency=low + + * update standards version to 3.8.3.0 (no changes) + * [82] fix "function not implemented" in cp -a of symlink on older + linux kernels (Closes: #545306) + + -- Michael Stone Thu, 10 Sep 2009 20:07:24 -0400 + +coreutils (7.5-4) unstable; urgency=low + + * [81] fix tail -f - with inotify (Closes: #545422) + + -- Michael Stone Tue, 08 Sep 2009 20:54:42 -0400 + +coreutils (7.5-3) unstable; urgency=low + + * [61] update who --ips to support more ipv6 ranges (Closes: #508924) + + -- Michael Stone Fri, 04 Sep 2009 17:48:31 -0400 + +coreutils (7.5-2) unstable; urgency=low + + * [79] fix ls-misc build test problem if files are created world-writable + (Closes: #544965) + * [80] fix tail/wait build test problem on kfreebsd (Closes: #545009) + * add -mieee to sh4 build flags (Closes: #544977) + + -- Michael Stone Fri, 04 Sep 2009 16:34:34 -0400 + +coreutils (7.5-1) unstable; urgency=low + + * new upstream version + - fix ls -1 output error (Closes: #539476) + - new program "stdbuf" + - chroot adds --userspec and --groups + - cp adds --reflink + - sort adds --human-numeric-sort + - tail --follow uses inotify + * update package description (Closes: #535458) + * tweak section and priority for mktemp package + * conflict with package "timeout". I think coreutils timeout is just + different enough that it shouldn't replace that package. + + -- Michael Stone Wed, 02 Sep 2009 20:50:02 -0400 + +coreutils (7.4-2) unstable; urgency=low + + * move mktemp to /bin instead of /usr/bin (Closes: #531842) + * include fake non-essential mktemp package (Closes: #531846) + + -- Michael Stone Thu, 04 Jun 2009 17:40:56 -0400 + +coreutils (7.4-1) unstable; urgency=low + + * new upstream version (Closes: #285609) + * replaces: mktemp + * adds: arch(1) (Closes: #516050) + + -- Michael Stone Wed, 03 Jun 2009 21:26:52 -0400 + +coreutils (7.3-1) unstable; urgency=low + + * new upstream version (Closes: #525048, #524500) + + -- Michael Stone Sat, 02 May 2009 12:28:58 -0400 + +coreutils (7.2-1) unstable; urgency=low + + * new upstream version (Closes: #517558) + * [78] fix kfreebsd build problem (Closes: #520368) + + -- Michael Stone Tue, 07 Apr 2009 19:21:42 -0400 + +coreutils (7.1-2) unstable; urgency=low + + * remove timeout binary, conflicts with package "timeout" (Closes: #516652) + + -- Michael Stone Sun, 22 Feb 2009 17:35:32 -0500 + +coreutils (7.1-1) unstable; urgency=low + + * New upstream version + + -- Michael Stone Sun, 22 Feb 2009 12:36:29 -0500 + +coreutils (6.12-2) unstable; urgency=low + + * [77] fall back if utimensat doesn't exist (Closes: #515731) + + -- Michael Stone Tue, 17 Feb 2009 22:11:52 -0500 + +coreutils (6.12-1) unstable; urgency=low + + * New upstream version + * Switch to dpatch + + -- Michael Stone Mon, 16 Feb 2009 12:42:44 -0500 + +coreutils (6.10-6) unstable; urgency=low + + * [76] Add ubuntu/upstream patch to prevent failure of cp of a special + (e.g., fifo) file to an existing file + * [71] change getgrouplist patch to skip the autoconf test and use + getgrouplist unconditionally. (Patch isn't immediately ready for + upstream anyway, and I assume that glibc provides this function + on all our supported platforms. If this turns out to not be true, + I'll revisit.) (Closes: #459615) + + -- Michael Stone Fri, 04 Apr 2008 10:02:18 -0400 + +coreutils (6.10-5) unstable; urgency=low + + * [75] Fix that last patch so that it doesn't display error messages + on non-selinux systems (closes: 473739) + + -- Michael Stone Tue, 01 Apr 2008 06:55:03 -0400 + +coreutils (6.10-4) unstable; urgency=low + + * [74] upstream patch to allow dd & other commands to use /dev/stdin + (Thanks Paul Eggert) (closes: #290727) + * [75] prevent ls from displaying a + for files with an selinux context. + (this will change in future, but the exact future output isn't certain + yet) (Thanks Russell Coker) (closes: #472590) + * Add a watch file to keep people from complaining about not having a watch + file. (closes: #441108) + * printf(1) now references printf(3) (closes: #465522) + + -- Michael Stone Mon, 31 Mar 2008 18:19:52 -0400 + +coreutils (6.10-3) unstable; urgency=low + + * [71] use getgrouplist to get list of groups, e.g., for id(1) + (Closes: #459615) + * [72] display warning if user is in too many groups + (Closes: #175994) + * [73] prevent segfault in ls -l /proc/sys/fs/inotify/ + (Thanks Jan Moringen) (Closes: #463043) + * Try upstream fix for info references in man pages + (Closes: #388684) + * Upstream change in documentation for mv in the case of a + moving a symlink to a directory with a trailing '/' + (Closes: #343652) + * move kill to /bin on hurd (Closes: #380387) + * Fix some minor typos/formatting in debian packaging + * Add link to upstream FAQ in README.Debian + + -- Michael Stone Mon, 28 Jan 2008 21:11:32 -0500 + +coreutils (6.10-2) unstable; urgency=low + + * run make check with VERBOSE enabled; this no longer makes the logs + unreadably huge (thanks Julien Cristau for asking the obvious + question) + * print cpu info during build to help debug build failures + * bump policy version + * lose perl-base & bzip2 build-deps. Someday need to support lzma tarball + * drop more legacy fileutils/shellutils/textutils upgrade support. + hopefully people have finished upgrading to etch + + -- Michael Stone Wed, 23 Jan 2008 20:36:12 -0500 + +coreutils (6.10-1) unstable; urgency=low + + * new upstream release + - cp, by default, refuses to copy through a dangling destination symlink + Set POSIXLY_CORRECT if you require the old, risk-prone behavior. + + -- Michael Stone Tue, 22 Jan 2008 20:01:35 -0500 + +coreutils (6.10~20071127-1) experimental; urgency=low + + * new snapshot + * coreutils now includes mktemp, but it is not included in this package + because debian already has a mktemp package with similar syntax. + + -- Michael Stone Fri, 30 Nov 2007 14:21:47 -0500 + +coreutils (6.10~20070907-3) experimental; urgency=low + + * use correct upstream changelog + * make su suid on hurd again (Closes: #439249) + + -- Michael Stone Sat, 15 Sep 2007 12:47:01 -0400 + +coreutils (6.10~20070907-2) experimental; urgency=low + + * forgot to add bison to build-deps + + -- Michael Stone Sat, 08 Sep 2007 14:09:40 -0400 + +coreutils (6.10~20070907-1) experimental; urgency=low + + * SELinux support has been integrated upstream. This may break things + in the short term (I encourage SELinux users to test) but is + expected to simplify coreutils development since the size of the + debian diff is greatly reduced. + * Bumped policy number + * Killed off textutils/fileutils/shellutils transition packages + * most debian patches are gone, except for whoips & dd appenderrors + * may need some, like s390 no sha2, returned (see how autobuilds do) + + -- Michael Stone Sat, 08 Sep 2007 07:55:11 -0400 + +coreutils (5.97-5.4) unstable; urgency=medium + + * Non-maintainer upload. + * New patch 64_coreutils-futimens: rename futimens to cu_futimens, + since glibc now defines an futimens function with a different + prototype. Closes: #433394. + * Urgency medium for the RC bug fix. + + -- Daniel Schepler Sat, 18 Aug 2007 16:41:21 -0400 + +coreutils (5.97-5.3) unstable; urgency=high + + * This is a non-maintainer upload done with the maintainer's blessing, + to fix a FTBS bug, and to get the SELinux changes in through to Etch. + * Bug fix: "coreutils - FTBFS", thanks to Bastian Blank and Andreas + Barth. The problem is with a build time test suite, which did not + take into account that there could be two directory names with the + same inode, which is what happens if there is a bind mount. So this + is not anything s390 specific, nor is it a problem with the coreutils + package itself, just with the build time test. Applied a version of + the patch being used by upstream to fix the test. + (Closes: #380552, #407628). + + -- Manoj Srivastava Tue, 23 Jan 2007 15:00:28 -0600 + +coreutils (5.97-5.2) unstable; urgency=low + + * This is an follow up non-maintainer upload to fix an issue introduced + in my last NMU. This fixes an FTBS bugs when building for non-SELinux + environments, for example, for non Linux architectures. + * Bug fix: "coreutils: FTBFS on hurd and kfreebsd: Unguarded usage of + SELinux code", thanks to Michael Banck. I missed out on guarding + assignments one. Rather than use the suggested patch (which adds two + members to a struct on non-selinux machines that would never get used, + I went back and corrected the non-selinux patch, since that is the + correct location to add this fix. The version of the patch included + in this version should do the right thing. (Closes: #396655). + + -- Manoj Srivastava Sun, 5 Nov 2006 16:04:08 -0600 + +coreutils (5.97-5.1) unstable; urgency=low + + * With permission from the maintainer, this upload (from a non-maintainer) + updates the SELinux patch, synchronizing with the latest patches from + fedora core (:pserver:anonymous@cvs.fedora.redhat.com:/cvs/dist, + repository rpms/coreutils/devel). The patches had to be tweaked for + Debian. This bring coreutils into compatibility with the latest + version of SELinux now in Debian. + * Bug fix: "coreutils: Updated SELinux patch", thanks to Manoj + Srivastava. The NMU patch is available in that bug report, + essentially, this is a minimal change upload. (Closes: #394287). + + -- Manoj Srivastava Fri, 20 Oct 2006 15:11:27 -0500 + +coreutils (5.97-5) unstable; urgency=medium + + * Actually kill sha384 and sha512 on s390. Finally got logged into an s390 + system, which makes debugging easier. (Conversely, buildds that fail a + build without providing a log make debugging harder.) Note to debian + developers: if you want introduce a dependency on sha384 or sha512, talk + to me first. + + -- Michael Stone Thu, 31 Aug 2006 07:38:19 -0400 + +coreutils (5.97-4) unstable; urgency=medium + + * s390 just doesn't seem to like sha384 (tests fail). I'm gonna kill that & + sha512 on s390 until someone with access to that arch & interest in the + problem steps up. + * add new catalan translation Closes: #384563 + + -- Michael Stone Thu, 03 Aug 2006 20:53:46 -0400 + +coreutils (5.97-3) unstable; urgency=low + + * Update sha2 patch to fix alignment issue on sparc + (Thanks David Madore) + + -- Michael Stone Thu, 03 Aug 2006 20:53:46 -0400 + +coreutils (5.97-2) unstable; urgency=low + + * Update sha2 patch to fix FTBFS on various architectures + (Thanks David Madore) + + -- Michael Stone Tue, 01 Aug 2006 20:21:05 -0400 + +coreutils (5.97-1) unstable; urgency=low + + * New upstream version + - cat options work in /proc Closes: 370583 + * [70] add sha2 utilities Closes: 325205 + * remove spurious removal of /usr/share/man/man1/md5sum.textutils + in preinst + + -- Michael Stone Wed, 26 Jul 2006 07:34:44 -0400 + +coreutils (5.96-5) unstable; urgency=low + + * [62] fix segfault when diropen fails on remove Closes: #375333 + * [63] warn on append with trunc Closes: #373736 + * fix idiotic typo in build rules for hurd Closes: #344166 + + -- Michael Stone Sun, 25 Jun 2006 13:30:21 -0400 + +coreutils (5.96-4) unstable; urgency=low + + * Fix deprecation messages Closes: #375335 + * Try to clobber chcon man page build on hurd Closes: #344166 + + -- Michael Stone Sun, 25 Jun 2006 13:30:21 -0400 + +coreutils (5.96-3) unstable; urgency=low + + * Follow strategy from Ian Jackson to better deal with the dpkg md5sum + mess. Only remove dpkg's mad md5sum diversion `once' (ie, on upgrade + from non-/usr/bin/md5sum-supplying coreutils). This preserves any later + sysadmin-installed diversions of md5sum.textutils. + * Add NEWS.Debian notes on the POSIX2_VERSION change + * add who --ips option to display IPs instead of hostnames. Code taken + from last.c in sysvinit-2.86.ds1. + Closes: #363126 + + -- Michael Stone Sat, 27 May 2006 14:05:44 -0400 + +coreutils (5.96-2) unstable; urgency=low + + * [60] Add deprecation warnings for tail +n and sort +n, but allow that + syntax + * Build-depend on autoconf 2.59.cvs.2006.05.25-1 to avoid bug that could + affect coreutils performance. Backporters may be able to weaken that + dependency. + + -- Michael Stone Sat, 27 May 2006 09:21:43 -0400 + +coreutils (5.96-1) unstable; urgency=low + + * New upstream version + * Don't override posix version at build time anymore. Upstream has + made this less painful; is this viable for etch? + * Update copyright file (Closes: #356532) + + -- Michael Stone Tue, 23 May 2006 21:08:13 -0400 + +coreutils (5.94-2) unstable; urgency=low + + * Reorder 55_coreutils.selinux.patch to fix builds on hurd + (Closes: #344166) + * [58_getcwd-chroot] fix pwd failure on certain bind mounts + (Closes: #355810) + * [59_dircolors-moreterms] add rxvt-unicode & mlterm to dircolors + (Closes: #270139, #317503) + * Update copyright file (thanks Joost van Baal) (Closes: #356532) + * Extend the diversion hackery (Closes: #361799) + + -- Michael Stone Sat, 15 Apr 2006 21:48:43 -0400 + +coreutils (5.94-1) unstable; urgency=low + + * New upstream version (Closes: #349530, #273781, #332779, #341912) + - upstream has reverted the behavior for stat --format + and added a new --printf option with the new behavior + (Closes: #339136) + - tail -f works on append-only files again (Closes: #339400) + - tail -c 3 works again (Closes: #340364) + - tail -0f work for multiple files (but use -n 0 -f instead) + (Closes: #341785) + * [99_dircolors-shell] dircolors test doesn't depend on the shell + * Fix md5sum diversion problems with a hacksaw (Closes: #340119) + + -- Michael Stone Wed, 15 Feb 2006 14:11:23 -0500 + +coreutils (5.93-5) unstable; urgency=low + + * Actually conflict with apt-move instead of just thinking about it + (Closes: #339136) + * Drop help2man build-dep (we're actually using one in the build tree) + + -- Michael Stone Wed, 16 Nov 2005 07:46:45 -0500 + +coreutils (5.93-4) unstable; urgency=low + + * Conflict with apt-move expecting particular stat syntax (Closes: #339136) + I need to think more about what to do with upstream changes to stat -c + * For now, add upstream patch so that stat -c "%whatever\n" actually works + + -- Michael Stone Tue, 15 Nov 2005 09:30:56 -0500 + +coreutils (5.93-3) unstable; urgency=low + + * Remove --enable-pam from selinux rules (we don't use our su for selinux) + * [99] Revert change to POSIX version override (I forgot about +n usage) + I once again *strongly* urge people to convert to more portable syntax. + (search NEWS for POSIX 1003.1-2001) + (Closes: #339085) + * [57] Patch from Petr Salinger to fix selinux build problems on non-linux + systems (Closes: #338821) + + -- Michael Stone Mon, 14 Nov 2005 20:55:57 -0500 + +coreutils (5.93-2) unstable; urgency=low + + * Change section to utils (base ain't what it used to be) + * Trust the autoreconf wrapper because things are too complicated otherwise + * [56] Recognize cifs as remote so it can be ignored, e.g., in df -l + (Closes: #324934) + + -- Michael Stone Sat, 12 Nov 2005 20:28:53 -0500 + +coreutils (5.93-1) unstable; urgency=low + + * New upstream version + - tail's --allow-missing option has been removed. Use --retry instead + - stat's --link and -l options have been removed. Use --dereference + - support things like head -NUM when conforming to POSIX 1003.1-2001. + because of this, debian no longer forces POSIX version 199209 + - many other changes documented in /usr/share/doc/coreutils/NEWS.gz + * Need automake 1.9 now + * Allow build check to be skipped with nocheck option (Closes: #278915) + * Work around dpkg changes (Closes: #314713) + * Try to recover from badly planned move on part of dpkg maintainer to + put a *local* diversion on md5sum. There is no good way to handle this; + hopefully nobody will do something so stupid in the future. + * Remove some ancient debian-specific patches + - install no longer calls strip with special options + - no more --reversible option to cat + - no more --first-eof option to paste + - no more field seperator option to uniq + * [54] Update acl patch using fedora devel patch + * [55] Add selinux support from fedora devel & Manoj Srivastava + (Closes: #312426) + + -- Michael Stone Sat, 12 Nov 2005 13:34:05 -0500 + +coreutils (5.2.1-3) unstable; urgency=low + + * fix info install + * install the right upstream changelog + + -- Michael Stone Fri, 16 Jul 2004 07:28:41 -0400 + +coreutils (5.2.1-2) unstable; urgency=low + + * remove su for kfreebsd (Closes: #225131) + * add yacc to build depends. forgot that the date patch [31] forced a + rebuild from getdate.y (Closes: #259563) + + -- Michael Stone Fri, 16 Jul 2004 07:28:41 -0400 + +coreutils (5.2.1-1) unstable; urgency=low + + * New upstream version (Closes: #245360, #244784, #259282, #246509) + - Fixes ls --block-size="1" (Closes: #237330) + - `chown user.group file' now has its traditional meaning even when + conforming to POSIX 1003.1-2001, so long as no user has a name + containing `.' that happens to equal `user.group'. + - time stamps output by stat now include actual fractional seconds, + when available -- or .0000000 for files without that information. + - rmdir -p exits with status 1 on error; formerly it sometimes exited + with status 0 when given more than one argument. + - chgrp and chown now accept POSIX-mandated -L, -H, and -P options + - du can now process hierarchies of virtually unlimited depth. + - du's -H option will soon have the meaning required by POSIX + (--dereference-args, aka -D) rather then the current meaning of --si. + Now, using -H elicits a warning to that effect. + * [53] Update acl patch for 5.2.1. Now based on FC2 coreutils patch. + * Removed xattr patch. AFAICT this isn't particularly useful for anything + except selinux, and other selinux support isn't included. Also, the + option added with this patch isn't being used consistently between + different linux distributions and I'd rather not support something that + will cause incompatibilities. If anyone was depending on this support + please contact me with details. (Closes: #244603) + * fix minor typo in README.Debian (Closes: #218333) + * [31] seconds defaults to 0 when using something like + date -d '21:04 +0100' (Closes: #238046) + * rebuild should fix hppa problem (Closes: #219458) + * remove join -n + * update documentation for test so that the FD parameter to test -t is + mandatory (Closes: #255694) + + -- Michael Stone Wed, 14 Jul 2004 06:13:38 -0400 + +coreutils (5.0.91-2) unstable; urgency=low + + * add bzip2 to build-deps (Closes: #214094) + * fix stupid typo in preinst info cleanup script (Closes: #214134) + * make sure /usr/share/info doesn't contain a dir file + (Closes: #214050, #214138) + + -- Michael Stone Sat, 04 Oct 2003 18:35:32 -0400 + +coreutils (5.0.91-1) unstable; urgency=low + + * New upstream version + - date accepts a new option --rfc-2822, an alias for --rfc-822 + - split accepts a new option -d or --numeric-suffixes + - cp, install, mv, and touch now preserve microsecond resolution + - sort now supports the zero byte (NUL) as a field separator; use -t '\0' + The -t '' option, which formerly had no effect, is now an error + - sort option order no longer matters for -S, -d, -i, -o, and -t + - tail --allow-missing option is deprecated; use --retry instead + - `sha1sum --check' now accepts the BSD format for SHA1 message digests + - who -l now means `who --login', not `who --lookup', per POSIX. Feature + was deprecated in woody + - mv renaming file onto differently-cased form of the same name no longer + causes data loss on case-insensitive filesystem like vfat. Name-mapping + filesystems such as ntfs or hpfs can still have problems, see NEWS file + for details. (Closes: #189319) + - seq's default step is 1, even if LAST < FIRST (Closes: #208494) + * [30] upstream patch for du -D with symlinks (Closes: #211591) + * make sure buildinfo is cleaned up + * debian/newfiles aren't used any more + * old {file,shell,text}utils info doc indices are cleaned up (Closes: #209160) + * add sha1sum to description (Closes: #211724) + + -- Michael Stone Fri, 03 Oct 2003 23:01:28 -0400 + +coreutils (5.0.90-3) unstable; urgency=low + + * [28,29] don't hang in who or pinky trying to look up the fake + host entries that screen puts in utmp + * [50,51] acl support + - libacl1-dev build dependency + - probably won't work on non-linux, patches welcome for hurd et al. if + they break + * [52] extended attribute support + - libattr1-dev build dependency (still necessary with new libc?) + - not sure about this one, it might come out (is it always valid to + preserve ea's even if we don't know what they are for?) + + -- Michael Stone Mon, 18 Aug 2003 19:47:29 -0400 + +coreutils (5.0.90-2) unstable; urgency=medium + + * [27] tail -n 0 -f no longer causes busy wait/hang (Closes: #205251) + + -- Michael Stone Wed, 13 Aug 2003 22:46:30 -0400 + +coreutils (5.0.90-1) unstable; urgency=low + + * New upstream version + - `test -t', `test --help', and `test --version' now silently exit + with status 0. To test whether standard output is a terminal, use + `test -t 1'. To get help and version info for `test', use + `[ --help' and `[ --version'. + `test' now exits with status 2 (not 1) if there is an error. + - rm without --recursive (aka -r or -R) no longer prompts regarding + unwritable directories, as required by POSIX. + - uniq -c now uses a SPACE, not a TAB between the count and the + corresponding line, as required by POSIX. + - expr now exits with status 2 if the expression is syntactically valid, + and with status 3 if an error occurred. POSIX requires this. + - md5sum --check now accepts the output of the BSD/OpenSSL md5sum program + - chown: `.' is no longer recognized as a separator when POSIX2 version + is >= 200112 + * [26] split-fail test doesn't fail + * revert 17, patch doesn't work anyway. 26 is a new patch for the problem + of building as non-root in a chroot owned by the builder. + (Closes: #204778) + * use dh_buildinfo + * standards-version 3.6.0 + * add readlink to description (Closes: #204974) + * temporarily override posix version to 199209 so I can upload this package. + need a transition plan. try setting the environment variable + _POSIX2_VERSION on your system to "200112" and see how much breaks. + I encourage debian developers to update their packages so the above works. + + -- Michael Stone Mon, 11 Aug 2003 17:31:34 -0400 + +coreutils (5.0-5) unstable; urgency=low + + * [23] upstream patch to make split --verbose actually verbose + (Closes: #199205) + * enable kill & su for freebsd (Closes: #194743) + * [24] upstream fix for du not displaying / on last line of du / + (Closes: #200542) + * Build-conflict on automake1.4 (Closes: #200378) + * [25] chown no longer preserves setuid bits (Closes: #112597) + + -- Michael Stone Sat, 12 Jul 2003 09:11:08 -0400 + +coreutils (5.0-4) unstable; urgency=medium + + * upstream patch to prevent fd leak (Closes: #197655) + + -- Michael Stone Mon, 16 Jun 2003 17:34:51 -0400 + +coreutils (5.0-3) unstable; urgency=low + + * More hurd stuff, again (Closes: 190738) + * uname -i and -p don't exist anymore, stop complaining + + -- Michael Stone Tue, 13 May 2003 16:57:55 -0400 + +coreutils (5.0-2) unstable; urgency=low + + * Cope with symlinks at LC_TIME for woody upgrades (Closes: 191338) + * Upstream patch to fix FTBFS on hurd (Closes: 190738) + + -- Michael Stone Sun, 11 May 2003 10:29:21 -0400 + +coreutils (5.0-1) unstable; urgency=low + + * New upstream version + - false --help now exits nonzero + - a number of printf fixes + - a couple of seq fixes + + -- Michael Stone Mon, 14 Apr 2003 20:03:36 -0400 + +coreutils (4.5.10-1) unstable; urgency=low + + * New upstream version + - printf no longer segfaults for a negative field width or precision + - shred now always enables --exact for non-regular files + - du no longer lists hard-linked files more than once + - du no longer dumps core on some systems due to `infinite' recursion + via nftw's use of the buggy replacement function in getcwd.c + (Closes: #183962) + - portability patches for a few vendor compilers and 64-bit systems + - du -S *really* now works like it did before the change in 4.5.5 + * make it clearer that {file,shell,text}utils are obsolete + (Closes: #184191, #183631) + + -- Michael Stone Tue, 18 Mar 2003 19:35:23 -0500 + +coreutils (4.5.9-1) unstable; urgency=low + + * New upstream version + - du no longer truncates file sizes or sums to fit in 32-bit size_t + - work around Linux kernel bug in getcwd (fixed in 2.4.21-pre4), so that pwd + now fails if the name of the working directory is so long that getcwd + truncates it. Before it would print the truncated name and exit successfully. + - `df /some/mount-point' no longer hangs on a GNU libc system when another + hard-mounted NFS file system (preceding /some/mount-point in /proc/mounts) + is inaccessible. + - rm -rf now gives an accurate diagnostic when failing to remove a file + under certain unusual conditions + - mv and `cp --preserve=links' now preserve multiple hard links even under + certain unusual conditions where they used to fail + + -- Michael Stone Thu, 06 Mar 2003 07:09:05 -0500 + +coreutils (4.5.8-2) unstable; urgency=medium + + * Fix typesize problem in du that caused wrapping at 2G + (Closes: #183210, #183393) + * Added upstream patch to fix behavior where mv would fail to move files + under certain (rare) conditions + * Added upstream patch to fix error message "cannot chdir" when rm -rf fails + to remove a file because of insufficient permission (Closes: #178471) + + -- Michael Stone Tue, 04 Mar 2003 20:33:14 -0500 + +coreutils (4.5.8-1) unstable; urgency=low + + * New upstream version + - du -S once again works like it did before the change in 4.5.5 + - stat accepts a new file format, %B, for the size of each block + reported by %b + - du accepts new option: --apparent-size + - du --bytes (-b) works the same way it did in fileutils-3.16 and before + - du reports proper sizes for directories (not zero) + - df now always displays under `Filesystem', the device file name + corresponding to the listed mount point. Before, for a block- or + character- special file command line argument, df would display that + argument. E.g., `df /dev/hda' would list `/dev/hda' as the + `Filesystem', rather than say /dev/hda3 (the device on which `/' is + mounted), as it does now. + - test now works properly when invoked from a set user ID or set group ID + context and when testing access to files subject to alternate protection + mechanisms. For example, without this change, a set-UID program that + invoked `test -w F' (to see if F is writable) could mistakenly report + that it *was* writable, even though F was on a read-only file system, or + F had an ACL prohibiting write access, or F was marked as immutable. + * Add ipv6 support for name resolution (from "J.H.M. Dassen (Ray)" + ) (Closes: 181817) + * Provide readlink (Replaces: debianutils <= 2.3.1) + + -- Michael Stone Sun, 02 Mar 2003 11:34:07 -0500 + +coreutils (4.5.7-1) unstable; urgency=low + + * New upstream version + - Includes upstream's fix for 175135 + * {shell,text,file}utils now priority extra, section misc + * putty added to dircolors known terminal list (Closes: #180312) + * split will not terminate prematurely on non-full buffer read + (Closes: #177559) + + -- Michael Stone Sun, 09 Feb 2003 09:09:19 -0500 + +coreutils (4.5.6-2) unstable; urgency=medium + + * du behaves properly when multiple relative paths are specified on the + command line (Closes: #180228) + + -- Michael Stone Sat, 08 Feb 2003 11:01:53 -0500 + +coreutils (4.5.6-1) unstable; urgency=low + + * New upstream version + - Fixes coloring of executables on ext2 (Closes: #175135) + - uses new dirent format for info doc (currently reverted + pending dpkg install-info update) + * dd closes output before printing stats (Closes: #178400) + + -- Michael Stone Fri, 07 Feb 2003 07:49:42 -0500 + +coreutils (4.5.4-1) unstable; urgency=low + + * New upstream version + * touch gives correct error message when trying to update the time of an + unowned file + * Upstream is using newer config.{sub,guess} (Closes: #171498) + * touch test succeeds if unprivileged user can write to / (Closes: #171893) + * again with ls -s of symlink--covered all the cases yet? + also fixes ls -i of symlink (Closes: #173793) + * shred -z no longer expects argument (Closes: #172019) + + -- Michael Stone Wed, 01 Jan 2003 13:25:48 -0500 + +coreutils (4.5.3-4) unstable; urgency=low + + * ls on explicit symlink to directory properly shows directory contents + (Closes: #171459) + * ls -L on broken symlink generates error again + * run make check on package build again + + -- Michael Stone Tue, 03 Dec 2002 17:41:46 -0500 + +coreutils (4.5.3-3) unstable; urgency=low + + * printf %b works (Closes: #170983) + * remove cycle breaking patch in tsort (Closes: #168914) + + -- Michael Stone Wed, 27 Nov 2002 17:50:59 -0500 + +coreutils (4.5.3-2) unstable; urgency=low + + * ls --color works properly with -d on directories (Closes: #168203) + * explicit ls for broken symlink works (Closes: #168203) + * explicit ls -s of symlink works (Closes: #167964) + * document du -m (Closes: #167769) + + -- Michael Stone Sat, 09 Nov 2002 22:39:10 -0500 + +coreutils (4.5.3-1) unstable; urgency=low + + * New upstream version + * backed out more specific uname processor output + - Closes: #164691, #164710, #165530, #166621 + - basically no positive feedback :) + * remove /usr/share/doc/coreutils/ABOUT-NLS.gz (Closes: #164920) + * printf with a trailing \ doesn't cause end-of-string to be ignored + (Closes: #166201) + + -- Michael Stone Thu, 31 Oct 2002 21:20:37 -0500 + +coreutils (4.5.2-1) unstable; urgency=low + + * New upstream version + - translations fixed (Closes: #161629, #163712) + * .jar color fixed (Closes: #163838) + * dired test doesn't break for non-english locale (Closes: #161069) + * more specific uname processor output (Closes: #88070) + - let's see how people react to this one :) + + -- Michael Stone Tue, 08 Oct 2002 21:42:27 -0400 + +coreutils (4.5.1-2) unstable; urgency=high + + * don't provide stat (causes nasty upgrade problem) + (Closes: #161245, #161249) + * bump standards-version + * register info file properly + * DEB_BUILD_OPTIONS (Closes: #152189) + + -- Michael Stone Tue, 17 Sep 2002 21:40:51 -0400 + +coreutils (4.5.1-1) unstable; urgency=low + + * New upstream release + * Replaces fileutils, shellutils, and textutils + + -- Michael Stone Fri, 13 Sep 2002 21:00:15 -0400 + + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c8cea3b --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: coreutils +Maintainer: Michael Stone +Section: utils +Priority: required +Standards-Version: 4.7.2 +Build-Depends: gettext (>= 0.10.37), debhelper-compat (= 13), texinfo (>= 4.2) , libattr1-dev [linux-any], libacl1-dev [linux-any], libselinux1-dev (>= 1.32) [linux-any], gperf, bison, libgmp3-dev, libssl-dev, libsystemd-dev + +Package: coreutils +Architecture: any +Multi-Arch: foreign +Pre-Depends: ${shlibs:Depends}, ${misc:Pre-Depends} +Essential: yes +Depends: ${misc:Depends} +Description: GNU core utilities + This package contains the basic file, shell and text manipulation + utilities which are expected to exist on every operating system. + . + Specifically, this package includes: + 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 flock 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 sha*sum seq shred sleep sort split stat stty sum sync tac + tail tee test timeout touch tr true truncate tsort tty uname unexpand + uniq unlink users vdir wc who whoami yes +Homepage: https://gnu.org/software/coreutils diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6cf6551 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,125 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Comment: This is the Debian GNU/Linux packaged version of the GNU core + utilities. + This package is maintained by Michael Stone . + See the file AUTHORS for a list of each program's main authors. +Source: ftp://ftp.gnu.org/gnu/coreutils + +Files: * +Copyright: (C) 1984-2023 Free Software Foundation, Inc. +License: GPL-3+ + +Files: lib/fts.c + lib/fts_.h +Copyright: (C) 2004-2020, 2008 Free Software Foundation, Inc. + (c) 1989, 1990, 1993, 1994 The Regents of the University of California. All rights reserved. +License: GPL-3+ and BSD-4-clause-UC + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-3'. + +License: BSD-4-clause-UC + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + +Files: lib/rand-isaac.c + lib/rand-isaac.h +Copyright: (C) 1999-2006 Free Software Foundation, Inc. + (C) 1997, 1998, 1999 Colin Plumb. +License: GPL-3+ + +Files: lib/inet_ntop.c +Copyright: (C) 2005, 2006 Free Software Foundation, Inc. +License: GPL-3+ and ISC + +License: ISC + * Copyright (c) 1996-1999 by Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + +Files: m4/autobuild.m4 +Copyright: (C) 2004, 2006-2023 Free Software Foundation, Inc. +License: FSFULLR + This file is free software; the Free Software Foundation + gives unlimited permission to copy and/or distribute it, + with or without modifications, as long as this notice is preserved. +Comment: From Simon Josefsson + +Files: src/cut.c +Copyright: (C) 1997-2007 Free Software Foundation, Inc. + (C) 1984 David M. Ihnat +License: GPL-3+ + +Files: src/dircolors.c +Copyright: (C) 1996-2007 Free Software Foundation, Inc. + (C) 1994, 1995, 1997, 1998, 1999, 2000 H. Peter Anvin +License: GPL-3+ + +Files: src/paste.c +Copyright: (C) 1997-2005 Free Software Foundation, Inc. + (C) 1984 David M. Ihnat +License: GPL-3+ + +Files: src/shred.c +Copyright: (C) 1999-2007 Free Software Foundation, Inc. + (C) 1997, 1998, 1999 Colin Plumb. +License: GPL-3+ + +Files: doc/coreutils.texi +Copyright: 1994-2023 Free Software Foundation, Inc. +License: GFDL-NIV-1.3 + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 or + any later version published by the Free Software Foundation; with no + Invariant Sections, with no Front-Cover Texts, and with no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + . + On Debian systems, the complete text of the GNU Free Documentation License, + Version 1.3 can be found in `/usr/share/common-licenses/GFDL-1.3'. diff --git a/debian/coreutils.NEWS b/debian/coreutils.NEWS new file mode 100644 index 0000000..9275358 --- /dev/null +++ b/debian/coreutils.NEWS @@ -0,0 +1,40 @@ +coreutils (8.23-1) unstable; urgency=low + + GNU coreutils package now includes the `realpath' command that used to + be found in a separate `realpath' package. + + Even though the GNU version provides all the features of the old Debian + version, the behaviour is a bit different, namely: + + * GNU `realpath' and `realpath -s' commands require all but the + last path components to exist + + whereas: + + * Debian version of `realpath' required all the path components to exist; + * Debian version of `realpath -s' required no path components to exist. + + To get the old behaviour in GNU `realpath' an additional option needs + to be used: + + Old Debian realpath New GNU coreutils realpath + ----------------------- ---------------------------- + realpath file(s) => realpath -e file(s) + realpath -s file(s) => realpath -s -m file(s) + + -- Robert Luberda Sun, 31 Aug 2014 16:08:14 +0200 + +coreutils (5.96-3) unstable; urgency=low + + * The POSIX compatibility level is now set to POSIX 1003.1-2001, + which affects the syntax for several commands. For transition + purposes, "sort +number" and "tail +number" will be supported + for the etch release. Note that these usages are deprecated, and + will be removed in etch+1; the recommended usage is "sort -k number" + and "tail -n +number". Also, "uniq +number" should be replaced with + "uniq -s number" and "touch number filename" should be replaced with + "touch -t number filename". To revert to the older syntax, set the + environment variable _POSIX2_VERSION to "199209". + + -- Michael Stone Sat, 27 May 2006 12:56:18 -0400 + diff --git a/debian/coreutils.README.Debian b/debian/coreutils.README.Debian new file mode 100644 index 0000000..4cd3e92 --- /dev/null +++ b/debian/coreutils.README.Debian @@ -0,0 +1,10 @@ +Most of the coreutils documentation is available as info pages. (Try "info +coreutils" at a command prompt). A version of this documentation is also +available online at +http://www.gnu.org/software/coreutils/manual/html_node/index.html +(Note that the online version may not reflect the version of coreutils in this +package.) + +There is also a frequently asked questions document available at +http://www.gnu.org/software/coreutils/faq/coreutils-faq.html + diff --git a/debian/coreutils.dirs b/debian/coreutils.dirs new file mode 100644 index 0000000..5add52c --- /dev/null +++ b/debian/coreutils.dirs @@ -0,0 +1 @@ +usr/share/doc/coreutils diff --git a/debian/coreutils.docs b/debian/coreutils.docs new file mode 100644 index 0000000..0430391 --- /dev/null +++ b/debian/coreutils.docs @@ -0,0 +1,5 @@ +AUTHORS +NEWS +README +THANKS +TODO diff --git a/debian/coreutils.lintian-overrides b/debian/coreutils.lintian-overrides new file mode 100644 index 0000000..acb8eed --- /dev/null +++ b/debian/coreutils.lintian-overrides @@ -0,0 +1,3 @@ +coreutils: custom-library-search-path RUNPATH /usr/lib/* +coreutils: groff-message *warning: macro 'mono' not defined* +coreutils: groff-message *warning: macro '/mono' not defined* diff --git a/debian/patches/72_id_checkngroups.patch b/debian/patches/72_id_checkngroups.patch new file mode 100644 index 0000000..8526079 --- /dev/null +++ b/debian/patches/72_id_checkngroups.patch @@ -0,0 +1,17 @@ +Author: +Description: +Index: coreutils-8.24/src/id.c +=================================================================== +--- coreutils-8.24.orig/src/id.c ++++ coreutils-8.24/src/id.c +@@ -416,6 +416,10 @@ print_full_info (const char *username) + ok &= false; + return; + } ++ else if (sysconf(_SC_NGROUPS_MAX) > 0 && n_groups > sysconf(_SC_NGROUPS_MAX)) ++ { ++ fprintf (stderr, _("Warning: user %s is in more groups than system's configured maximum.\n"), (username != NULL)?username:""); ++ } + + if (n_groups > 0) + fputs (_(" groups="), stdout); diff --git a/debian/patches/gnulib-nfs-acl.patch b/debian/patches/gnulib-nfs-acl.patch new file mode 100644 index 0000000..8c7d3e8 --- /dev/null +++ b/debian/patches/gnulib-nfs-acl.patch @@ -0,0 +1,449 @@ +Author: Paul Eggert +Description: addresses spurious cp permission errors +=================================================================== +diff --git a/lib/acl.h b/lib/acl.h +index 90fd24e152..e3c134fb41 100644 +--- a/lib/acl.h ++++ b/lib/acl.h +@@ -79,6 +79,8 @@ struct aclinfo + bool acl_errno_valid (int) _GL_ATTRIBUTE_CONST; + int file_has_acl (char const *, struct stat const *); + int file_has_aclinfo (char const *restrict, struct aclinfo *restrict, int); ++int fdfile_has_aclinfo (int, char const *restrict, ++ struct aclinfo *restrict, int); + + #if HAVE_LINUX_XATTR_H && HAVE_LISTXATTR + bool aclinfo_has_xattr (struct aclinfo const *, char const *) +diff --git a/lib/copy-acl.c b/lib/copy-acl.c +index c36f64e51d..2fce6c7d46 100644 +--- a/lib/copy-acl.c ++++ b/lib/copy-acl.c +@@ -33,6 +33,7 @@ + a valid file descriptor, use file descriptor operations, else use + filename based operations on SRC_NAME. Likewise for DEST_DESC and + DST_NAME. ++ MODE should be the source file's st_mode. + If access control lists are not available, fchmod the target file to + MODE. Also sets the non-permission bits of the destination file + (S_ISUID, S_ISGID, S_ISVTX) to those from MODE if any are set. +diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c +index 66b920c1ab..a356ee0d0b 100644 +--- a/lib/file-has-acl.c ++++ b/lib/file-has-acl.c +@@ -85,6 +85,13 @@ smack_new_label_from_path (MAYBE_UNUSED const char *path, + { + return -1; + } ++static ssize_t ++smack_new_label_from_file (MAYBE_UNUSED int fd, ++ MAYBE_UNUSED const char *xattr, ++ MAYBE_UNUSED char **label) ++{ ++ return -1; ++} + # endif + static bool + is_smack_enabled (void) +@@ -115,14 +122,16 @@ aclinfo_may_indicate_xattr (struct aclinfo const *ai) + + static bool + has_xattr (char const *xattr, struct aclinfo const *ai, +- MAYBE_UNUSED char const *restrict name, MAYBE_UNUSED int flags) ++ int fd, char const *restrict name, int flags) + { + if (ai && aclinfo_has_xattr (ai, xattr)) + return true; + else if (!ai || aclinfo_may_indicate_xattr (ai)) + { +- int ret = ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr) +- (name, xattr, NULL, 0)); ++ int ret = (fd < 0 ++ ? ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr) ++ (name, xattr, NULL, 0)) ++ : fgetxattr (fd, xattr, NULL, 0)); + if (0 <= ret || (errno == ERANGE || errno == E2BIG)) + return true; + } +@@ -145,11 +154,12 @@ aclinfo_has_xattr (struct aclinfo const *ai, char const *xattr) + return false; + } + +-/* Get attributes of the file NAME into AI, if USE_ACL. ++/* Get attributes of the file FD aka NAME into AI, if USE_ACL. ++ Ignore FD if it is negative. + If FLAGS & ACL_GET_SCONTEXT, also get security context. + If FLAGS & ACL_SYMLINK_FOLLOW, follow symbolic links. */ + static void +-get_aclinfo (char const *name, struct aclinfo *ai, int flags) ++get_aclinfo (int fd, char const *name, struct aclinfo *ai, int flags) + { + int scontext_err = ENOTSUP; + ai->buf = ai->u.__gl_acl_ch; +@@ -163,7 +173,9 @@ get_aclinfo (char const *name, struct aclinfo *ai, int flags) + = (flags & ACL_SYMLINK_FOLLOW ? listxattr : llistxattr); + while (true) + { +- ai->size = lsxattr (name, ai->buf, acl_alloc); ++ ai->size = (fd < 0 ++ ? lsxattr (name, ai->buf, acl_alloc) ++ : flistxattr (fd, ai->buf, acl_alloc)); + if (0 < ai->size) + break; + ai->u.err = ai->size < 0 ? errno : 0; +@@ -171,7 +183,9 @@ get_aclinfo (char const *name, struct aclinfo *ai, int flags) + break; + + /* The buffer was too small. Find how large it should have been. */ +- ssize_t size = lsxattr (name, NULL, 0); ++ ssize_t size = (fd < 0 ++ ? lsxattr (name, NULL, 0) ++ : flistxattr (fd, NULL, 0)); + if (size <= 0) + { + ai->size = size; +@@ -214,9 +228,13 @@ get_aclinfo (char const *name, struct aclinfo *ai, int flags) + { + if (ai->size < 0 || aclinfo_has_xattr (ai, XATTR_NAME_SMACK)) + { +- ssize_t r = smack_new_label_from_path (name, "security.SMACK64", +- flags & ACL_SYMLINK_FOLLOW, +- &ai->scontext); ++ static char const SMACK64[] = "security.SMACK64"; ++ ssize_t r = ++ (fd < 0 ++ ? smack_new_label_from_path (name, SMACK64, ++ flags & ACL_SYMLINK_FOLLOW, ++ &ai->scontext) ++ : smack_new_label_from_file (fd, SMACK64, &ai->scontext)); + scontext_err = r < 0 ? errno : 0; + } + } +@@ -226,8 +244,10 @@ get_aclinfo (char const *name, struct aclinfo *ai, int flags) + if (ai->size < 0 || aclinfo_has_xattr (ai, XATTR_NAME_SELINUX)) + { + ssize_t r = +- ((flags & ACL_SYMLINK_FOLLOW ? getfilecon : lgetfilecon) +- (name, &ai->scontext)); ++ (fd < 0 ++ ? ((flags & ACL_SYMLINK_FOLLOW ? getfilecon : lgetfilecon) ++ (name, &ai->scontext)) ++ : fgetfilecon (fd, &ai->scontext)); + scontext_err = r < 0 ? errno : 0; + # ifndef SE_SELINUX_INLINE + /* Gnulib's selinux-h module is not in use, so getfilecon and +@@ -362,11 +382,13 @@ acl_nfs4_nontrivial (uint32_t *xattr, ssize_t nbytes) + } + #endif + +-#if (!USE_LINUX_XATTR && USE_ACL && HAVE_ACL_GET_FD \ +- && !HAVE_ACL_EXTENDED_FILE && !HAVE_ACL_TYPE_EXTENDED \ +- && !HAVE_ACL_GET_LINK_NP) +-# include +-# ifdef O_PATH ++#if (!USE_LINUX_XATTR && USE_ACL && !HAVE_ACL_EXTENDED_FILE \ ++ && !HAVE_ACL_TYPE_EXTENDED) ++ ++# if HAVE_ACL_GET_FD && !HAVE_ACL_GET_LINK_NP ++# include ++# ifdef O_PATH ++# define acl_get_fd_np(fd, type) acl_get_fd (fd) + + /* Like acl_get_file, but do not follow symbolic links. */ + static acl_t +@@ -381,8 +403,24 @@ acl_get_link_np (char const *name, acl_type_t type) + errno = err; + return r; + } +-# define HAVE_ACL_GET_LINK_NP 1 ++# define HAVE_ACL_GET_LINK_NP 1 ++# endif + # endif ++ ++static acl_t ++acl_get_fdfile (int fd, char const *name, acl_type_t type, int flags) ++{ ++ acl_t (*get) (char const *, acl_type_t) = acl_get_file; ++# if HAVE_ACL_GET_LINK_NP /* FreeBSD, NetBSD >= 10, Cygwin >= 2.5 */ ++ if (0 <= fd) ++ return acl_get_fd_np (fd, type); ++ if (! (flags & ACL_SYMLINK_FOLLOW)) ++ get = acl_get_link_np; ++# else ++ /* Ignore FD and FLAGS, unfortunately. */ ++# endif ++ return get (name, type); ++} + #endif + + /* Return 1 if NAME has a nontrivial access control list, +@@ -398,14 +436,35 @@ acl_get_link_np (char const *name, acl_type_t type) + If the d_type value is not known, use DT_UNKNOWN though this may be less + efficient. */ + int +-file_has_aclinfo (MAYBE_UNUSED char const *restrict name, ++file_has_aclinfo (char const *restrict name, + struct aclinfo *restrict ai, int flags) ++{ ++ return fdfile_has_aclinfo (-1, name, ai, flags); ++} ++ ++/* Return 1 if FD aka NAME has a nontrivial access control list, ++ 0 if ACLs are not supported, or if NAME has no or only a base ACL, ++ and -1 (setting errno) on error. Note callers can determine ++ if ACLs are not supported as errno is set in that case also. ++ Ignore FD if it is negative. ++ Set *AI to ACL info regardless of return value. ++ FLAGS should be a d_type value, optionally ORed with ++ - _GL_DT_NOTDIR if it is known that NAME is not a directory, ++ - ACL_GET_SCONTEXT to retrieve security context and return 1 if present, ++ - ACL_SYMLINK_FOLLOW to follow the link if NAME is a symbolic link; ++ otherwise do not follow them if possible. ++ If the d_type value is not known, use DT_UNKNOWN though this may be less ++ efficient. */ ++int ++fdfile_has_aclinfo (MAYBE_UNUSED int fd, ++ MAYBE_UNUSED char const *restrict name, ++ struct aclinfo *restrict ai, int flags) + { + MAYBE_UNUSED unsigned char d_type = flags & UCHAR_MAX; + + #if USE_LINUX_XATTR + int initial_errno = errno; +- get_aclinfo (name, ai, flags); ++ get_aclinfo (fd, name, ai, flags); + + if (!aclinfo_may_indicate_xattr (ai) && ai->size <= 0) + { +@@ -418,11 +477,11 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + In earlier Fedora the two types of ACLs were mutually exclusive. + Attempt to work correctly on both kinds of systems. */ + +- if (!has_xattr (XATTR_NAME_NFSV4_ACL, ai, name, flags)) ++ if (!has_xattr (XATTR_NAME_NFSV4_ACL, ai, fd, name, flags)) + return +- (has_xattr (XATTR_NAME_POSIX_ACL_ACCESS, ai, name, flags) ++ (has_xattr (XATTR_NAME_POSIX_ACL_ACCESS, ai, fd, name, flags) + || ((d_type == DT_DIR || d_type == DT_UNKNOWN) +- && has_xattr (XATTR_NAME_POSIX_ACL_DEFAULT, ai, name, flags))); ++ && has_xattr (XATTR_NAME_POSIX_ACL_DEFAULT, ai, fd, name, flags))); + + /* A buffer large enough to hold any trivial NFSv4 ACL. + The max length of a trivial NFSv4 ACL is 6 words for owner, +@@ -432,8 +491,10 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + everyone is another word to hold "EVERYONE@". */ + uint32_t buf[2 * (6 + 6 + 7)]; + +- int ret = ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr) +- (name, XATTR_NAME_NFSV4_ACL, buf, sizeof buf)); ++ int ret = (fd < 0 ++ ? ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr) ++ (name, XATTR_NAME_NFSV4_ACL, buf, sizeof buf)) ++ : fgetxattr (fd, XATTR_NAME_NFSV4_ACL, buf, sizeof buf)); + if (ret < 0) + switch (errno) + { +@@ -467,20 +528,23 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + /* On Linux, acl_extended_file is an optimized function: It only + makes two calls to getxattr(), one for ACL_TYPE_ACCESS, one for + ACL_TYPE_DEFAULT. */ +- ret = ((flags & ACL_SYMLINK_FOLLOW +- ? acl_extended_file +- : acl_extended_file_nofollow) +- (name)); ++ ret = (fd < 0 ++ ? ((flags & ACL_SYMLINK_FOLLOW ++ ? acl_extended_file ++ : acl_extended_file_nofollow) ++ (name)) ++ : acl_extended_fd (fd)); + # elif HAVE_ACL_TYPE_EXTENDED /* Mac OS X */ + /* On Mac OS X, acl_get_file (name, ACL_TYPE_ACCESS) + and acl_get_file (name, ACL_TYPE_DEFAULT) + always return NULL / EINVAL. There is no point in making + these two useless calls. The real ACL is retrieved through +- acl_get_file (name, ACL_TYPE_EXTENDED). */ +- acl_t acl = ((flags & ACL_SYMLINK_FOLLOW +- ? acl_get_file +- : acl_get_link_np) +- (name, ACL_TYPE_EXTENDED)); ++ ACL_TYPE_EXTENDED. */ ++ acl_t acl = ++ (fd < 0 ++ ? ((flags & ACL_SYMLINK_FOLLOW ? acl_get_file : acl_get_link_np) ++ (name, ACL_TYPE_EXTENDED)) ++ : acl_get_fd_np (fd, ACL_TYPE_EXTENDED)); + if (acl) + { + ret = acl_extended_nontrivial (acl); +@@ -489,13 +553,8 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + else + ret = -1; + # else /* FreeBSD, NetBSD >= 10, IRIX, Tru64, Cygwin >= 2.5 */ +- acl_t (*acl_get_file_or_link) (char const *, acl_type_t) = acl_get_file; +-# if HAVE_ACL_GET_LINK_NP /* FreeBSD, NetBSD >= 10, Cygwin >= 2.5 */ +- if (! (flags & ACL_SYMLINK_FOLLOW)) +- acl_get_file_or_link = acl_get_link_np; +-# endif + +- acl_t acl = acl_get_file_or_link (name, ACL_TYPE_ACCESS); ++ acl_t acl = acl_get_fdfile (fd, name, ACL_TYPE_ACCESS, flags); + if (acl) + { + ret = acl_access_nontrivial (acl); +@@ -517,7 +576,7 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + && (d_type == DT_DIR + || (d_type == DT_UNKNOWN && !(flags & _GL_DT_NOTDIR)))) + { +- acl = acl_get_file_or_link (name, ACL_TYPE_DEFAULT); ++ acl = acl_get_fdfile (fd, name, ACL_TYPE_DEFAULT, flags); + if (acl) + { + # ifdef __CYGWIN__ /* Cygwin >= 2.5 */ +@@ -562,7 +621,10 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + + /* Solaris 10 (newer version), which has additional API declared in + (acl_t) and implemented in libsec (acl_set, acl_trivial, +- acl_fromtext, ...). */ ++ acl_fromtext, ...). ++ ++ Ignore FD, unfortunately. That is better than mishandling ++ ZFS-style ACLs, as the general case code does. */ + return acl_trivial (name); + + # else /* Solaris, Cygwin, general case */ +@@ -586,7 +648,9 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + + for (;;) + { +- count = acl (name, GETACL, alloc, entries); ++ count = (fd < 0 ++ ? acl (name, GETACL, alloc, entries) ++ : facl (fd, GETACL, alloc, entries)); + if (count < 0 && errno == ENOSPC) + { + /* Increase the size of the buffer. */ +@@ -657,7 +721,9 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + + for (;;) + { +- count = acl (name, ACE_GETACL, alloc, entries); ++ count = (fd < 0 ++ ? acl (name, ACE_GETACL, alloc, entries) ++ : facl (fd, ACE_GETACL, alloc, entries)); + if (count < 0 && errno == ENOSPC) + { + /* Increase the size of the buffer. */ +@@ -722,7 +788,9 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + struct acl_entry entries[NACLENTRIES]; + int count; + +- count = getacl (name, NACLENTRIES, entries); ++ count = (fd < 0 ++ ? getacl (name, NACLENTRIES, entries) ++ : fgetacl (fd, NACLENTRIES, entries)); + + if (count < 0) + { +@@ -751,7 +819,8 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + { + struct stat statbuf; + +- if (stat (name, &statbuf) == -1 && errno != EOVERFLOW) ++ if ((fd < 0 ? stat (name, &statbuf) : fstat (fd, &statbuf)) < 0 ++ && errno != EOVERFLOW) + return -1; + + return acl_nontrivial (count, entries); +@@ -765,6 +834,7 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + struct acl entries[NACLVENTRIES]; + int count; + ++ /* Ignore FD, unfortunately. */ + count = acl ((char *) name, ACL_GET, NACLVENTRIES, entries); + + if (count < 0) +@@ -809,7 +879,9 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + /* The docs say that type being 0 is equivalent to ACL_ANY, but it + is not true, in AIX 5.3. */ + type.u64 = ACL_ANY; +- if (aclx_get (name, 0, &type, aclbuf, &aclsize, &mode) >= 0) ++ if (0 <= (fd < 0 ++ ? aclx_get (name, 0, &type, aclbuf, &aclsize, &mode) ++ : aclx_fget (fd, 0, &type, aclbuf, &aclsize, &mode))) + break; + if (errno == ENOSYS) + return 0; +@@ -855,7 +927,10 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + + union { struct acl a; char room[4096]; } u; + +- if (statacl ((char *) name, STX_NORMAL, &u.a, sizeof (u)) < 0) ++ if ((fd < 0 ++ ? statacl ((char *) name, STX_NORMAL, &u.a, sizeof u) ++ : fstatacl (fd, STX_NORMAL, &u.a, sizeof u)) ++ < 0) + return -1; + + return acl_nontrivial (&u.a); +@@ -866,6 +941,7 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name, + struct acl entries[NACLENTRIES]; + int count; + ++ /* Ignore FD, unfortunately. */ + count = acl ((char *) name, ACL_GET, NACLENTRIES, entries); + + if (count < 0) +diff --git a/lib/qcopy-acl.c b/lib/qcopy-acl.c +index ad7966152a..282f4b2d2a 100644 +--- a/lib/qcopy-acl.c ++++ b/lib/qcopy-acl.c +@@ -26,6 +26,7 @@ + #if USE_XATTR + + # include ++# include + # include + + # if HAVE_LINUX_XATTR_H +@@ -61,6 +62,7 @@ is_attr_permissions (const char *name, struct error_context *ctx) + a valid file descriptor, use file descriptor operations, else use + filename based operations on SRC_NAME. Likewise for DEST_DESC and + DST_NAME. ++ MODE should be the source file's st_mode. + If access control lists are not available, fchmod the target file to + MODE. Also sets the non-permission bits of the destination file + (S_ISUID, S_ISGID, S_ISVTX) to those from MODE if any are set. +@@ -86,10 +88,29 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, + Functions attr_copy_* return 0 in case we copied something OR nothing + to copy */ + if (ret == 0) +- ret = source_desc <= 0 || dest_desc <= 0 +- ? attr_copy_file (src_name, dst_name, is_attr_permissions, NULL) +- : attr_copy_fd (src_name, source_desc, dst_name, dest_desc, +- is_attr_permissions, NULL); ++ { ++ ret = source_desc <= 0 || dest_desc <= 0 ++ ? attr_copy_file (src_name, dst_name, is_attr_permissions, NULL) ++ : attr_copy_fd (src_name, source_desc, dst_name, dest_desc, ++ is_attr_permissions, NULL); ++ ++ /* Copying can fail with EOPNOTSUPP even when the source ++ permissions are trivial (Bug#78328). Don't report an error ++ in this case, as the chmod_or_fchmod suffices. */ ++ if (ret < 0 && errno == EOPNOTSUPP) ++ { ++ /* fdfile_has_aclinfo cares only about DT_DIR, _GL_DT_NOTDIR, ++ and DT_LNK (but DT_LNK is not possible here), ++ so use _GL_DT_NOTDIR | DT_UNKNOWN for other file types. */ ++ int flags = S_ISDIR (mode) ? DT_DIR : _GL_DT_NOTDIR | DT_UNKNOWN; ++ ++ struct aclinfo ai; ++ if (!fdfile_has_aclinfo (source_desc, src_name, &ai, flags)) ++ ret = 0; ++ aclinfo_free (&ai); ++ errno = EOPNOTSUPP; ++ } ++ } + #else + /* no XATTR, so we proceed the old dusty way */ + struct permission_context ctx; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d67729a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +72_id_checkngroups.patch +gnulib-nfs-acl.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4dba353 --- /dev/null +++ b/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +#export DH_OPTIONS=-v + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DEB_CFLAGS_MAINT_APPEND = -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT + +# Renesas SH(sh4) need -mieee option. +ifeq ($(DEB_HOST_ARCH_CPU),sh4) + DEB_CFLAGS_MAINT_APPEND += -mieee +endif + +ifeq ($(DEB_HOST_ARCH),hurd-i386) + Y2038 = --disable-year2038 +endif + +ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) + export MAKEINFO = true +endif + +BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false ln ls mkdir \ + mknod mv pwd readlink rm rmdir vdir sleep stty sync touch true uname \ + mktemp +d=debian/coreutils + +override_dh_update_autotools_config: + # don't do this + +override_dh_autoreconf: + # don't do this + +override_dh_auto_configure: + dh_auto_configure -- --enable-systemd --enable-install-program=arch --with-openssl=auto-gpl-compat --with-packager=$(DEB_VENDOR) --with-packager-version=$(DEB_VERSION) $(Y2038) + +%: + dh $@ + +override_dh_auto_clean: + make distclean || true + +override_dh_auto_test: + # tests fail a lot on the buildds + +override_dh_auto_install: + dh_auto_install --destdir=$(d) + +override_dh_install-arch: + dh_install -a + + # remove stuff provided by other packages +ifeq ($(DEB_HOST_ARCH_OS),linux) + # kill from procps is linux-specific + rm -f $(d)/usr/bin/kill $(d)/usr/share/man/man1/kill.1 +endif + rm -f $(d)/usr/bin/hostname $(d)/usr/share/man/man1/hostname.1 + rm -f $(d)/usr/bin/uptime $(d)/usr/share/man/man1/uptime.1 + + # the [ program doesn't have its own man page yet + ln -s test.1 $(d)/usr/share/man/man1/[.1 + + # gnu thinks chroot is in bin, debian thinks it's in sbin + install -d $(d)/usr/sbin $(d)/usr/share/man/man8 + mv $(d)/usr/bin/chroot $(d)/usr/sbin/chroot + sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 > $(d)/usr/share/man/man8/chroot.8 + rm $(d)/usr/share/man/man1/chroot.1 + + # some build environments will leave a dangling info dir + rm -f $(d)/usr/share/info/dir + +ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) + # Remove info files and manual pages if building with + rm -rf $(d)/usr/share/info/ + rm -rf $(d)/usr/share/man/ +endif + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..10bd18a --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://bugs.gnu.org/coreutils +Documentation: https://www.gnu.org/software/coreutils/manual/ +Repository: https://git.savannah.gnu.org/git/coreutils.git +Repository-Browse: https://git.savannah.gnu.org/gitweb/?p=coreutils.git diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc new file mode 100644 index 0000000..de5fc51 --- /dev/null +++ b/debian/upstream/signing-key.asc @@ -0,0 +1,53 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBE58fE4BEADGS6VzDkx2OOQMPQedsmBtRs3S5sz9tzO51EwkS779js3Sjt96 +KlQM0SbwtbUxOFor42LRXJKUU9T/Jl3v3+onASvoHAUcuAL15WAhnY9cuQeFOvZP +/iy0I1+bV0CILrz364T6vL614obnBBdTg8ZqSZM+csRlpGwXJiuY6mkrsPLXakxA +35n/nAgQOcQPj36CuuvpCH4JKPkzklwUMqueDzXkYMNSdWmVnI+ZSfDmeiwzAbFY +tE5uGW+c3DzD98RGCLt3FLr86n24IDlaTZSsaWbTJVsur9s4sbp6rST3pspDSQYF +ShhJ5aqqEYIvPp5kXj2CZJjOFBnIkn+0aDSps+XrnZjJn/f8f9lIAg0/0JjmytHY +yopo6HFZMdtOvklmnsIuJ/fdyk7761+necYHf5dopVuv29PSu62+A/gnKGfGaqtY +AjXFfsiLp/+iTQ+LNV4hWFbFKHHZOn4G194pWl6nY1gArwQKPZ5p6uy5EXgiNPRs +C1CcuVZNJp1RiayhTI68uuI+cldBU6N7+yZKGhjDUQKjIZ3eDB8X7vsCC9S1GgvX +Hcv8mjcMcHtnoC0w0FiW35JYtAu9mY4+uQhoRPTyPHh+ufX+OdKf7q5BKCppY1r7 +HF1VRFKjSybhEwMeGBdj1EEY413/A8ynpgpHLosPT36n8HtAWUGu+TadZQARAQAB +tCFQw6FkcmFpZyBCcmFkeSA8UEBkcmFpZ0JyYWR5LmNvbT6JAjsEEwECACUCGwMG +CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJOfIDXAhkBAAoJEN9v2XEwYDfZ4AEP +/jr6zmXUVhNiVCtqiHqc4jOs1OPC51iEcMUwpeaEEWHq17uMMIqz+nd8B7CAyjzw +FJIW4gtwPS3uTsXR2+KOl1VnMS5O/M9suyG5eM+fpCWkzyTC1He/1M9iaRMGY8u2 +wOjZoeY40QFN5fvL/BuC8GLBefI0rTzMaYO0WFlVWTpaemj4pL1Z4JoQdmR49H6O +qI155jfsXuv2VWjN1NoYT8w3FEugc7rdNWe4dmscU5H54JEQMuFd34X7Ja2S9YnQ +OdqO/nVQGm3te2X6ElOBoA68HyuXcEozf0KgKkcPrBEV/tjQrzn5Mc7jOgeCDDV3 +7MFwBZUi+z69jjOc85tNYf/FHRfUFnBLPC1HrOIlrraaqydPfvHBRTybTJVhXlQW +b9kqfrT1HU8UGfwP+5cwTy2WjZecxvozZakYBO4cdcmsSNE5jM8Tp7EU7ktxPXg1 +IQwZ8sEFJN6HRhRVmhK1FyR1hrwdcvfYrFmoYbyWUCW1RNuGw3RXdjXjGSl6VxzC +vrWXjeiMyLQQ7l7IneFaIPV22quPi/NVJbNeT5DqKa58kYgEVASfZVZkL7S3PJvj +fEqhw5jTi3l84AHtYNNo95UXWQQCWhpYjZ3q61satme++Eth552VAGP+JK4634mj +vVViYmWAnjs0efSN9yCOWKDKBONviW5WGZwi7MVtgF6uiQI4BBMBAgAiBQJOfHxO +AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRDfb9lxMGA32ZEZD/0an52x +qE8Yjk5I5AnVJn3Xy8gqzTupuhaffuzmk7O5qqk49SybnUz7k6D53vCdCrHAdZcz +0YxltE+ju7KQ6J3yHzHWP2RWQiM793hrbeQ4l8CVN/Dlr2odWHSpOhdAXydAMqpT +sfbFQYa6hqU3yyG3DwYPJidBNCP+90+WiJUar1f7NvNDFNt6faVInpSzbvPiR/77 +MVIQt+JL0P1BfJzl+BJ0NExHfxmHT4eU+8BaOZnJby42yA4G2FjpAhXP5A4JrzaL +TiKYz1oi+o/9i0olZ2b8FBWfLnvMr8i/0maeDoLdyGWUQDv2OZm5AvmYBGpBLgBc +Uu1P1X6TK+w3+XwOPZPtT2N0wNj/3melK1jqXh2kZEylH+esf/yuwCX0n/0i2WG2 +OZKx9JmHnygzi0mhrUjbcyDAsOe6iXjTWkA6aPGllpq9eZhKBdyrY38526Ykmdjl +YgyZ3YpUir+5k2LTe18YpUxxh4JpDtVlRqVHvICj/te4nom+H31Fb3dsEI4Ng2W4 +zTKBf7UovDf4AalHBsLW4V610GOXV/e6EuCiUJUmMWIrOD9muXlxFGskBX49tUfw +lnV+iFlzWvuzbrVlp5ZP6ARkQ0FcBOpZn0ZSP2bEPM8vMARc5CZKUuTOyfok25Fy +aVVmIqjp01EG3VuE6IFaCuScghSHqbTEBPDrMrQiUMOhZHJhaWcgQnJhZHkgPHBp +eGVsYmVhdEBnbnUub3JnPokCOAQTAQIAIgUCTnyAtAIbAwYLCQgHAwIGFQgCCQoL +BBYCAwECHgECF4AACgkQ32/ZcTBgN9moHg/+Mjq/O1RnNg7kdUjRK1wOflym7itg +E8kq4G55EJvLSxo6wIgd7ZKUj+cvX+iXQpGRc3bicpNTsKcW6EjDtyg+VCSWD7qJ +3EtwxVf9mN3bIqWSVwP0k8kc1N+tp+L+/9jve+h7Hf7rXZoNo+l9h0/AIIr9YyM2 +r1VtiAsMNCfD/Ssvc5Yx4fZHR+2VkOLeVb2lqdYVe7ZrXDt8qkdBHMCtxm+9jaY3 +pZVDFKk19NeI74Vzr9+mYn0I0OZS0capUuG7+a+FGI1Dx2jn8uL+x4eLDdI3vvr/ +vGWparikBExGq1pAKWm5gBF10CDP4nx9+5hzjPipvCuQerRnjL3FQyXa6E/GpCp4 +Mk7SdB4zML1CmnYUzz4n0TcV5aFiyaMQPk5TByxzYXWUqjFJzFwmU0z8Oy/d64ZM +GLyAxCly6gBc/AmXzsUhg2hJB3nG3JRw2WmpOIeOdYn6S3onfAFT1tGo7kWNIWYx +X5fT7qAHVlnAmgjz+zvfB8Hwq/B0FDZPzgwYX4LeRMCj9VDspoCVnaMd4rWqbH2l +KUU/k0SFRt3iAqjvT6WPbJIDtEF0ifU2R79laaZZU5rbYWZC52AfO7NdLP+7uwxt +PYyOdP/4s0HS0e8WDuykdZbTaC9KHbIiKMW9YXQJRo6YupWJWOpFpPkvx9ttcQQ7 +C5s8YFjVR/96dYI= +=ZdDU +-----END PGP PUBLIC KEY BLOCK----- diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..ed79f19 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +opts=pgpsigurlmangle=s/$/.sig/ https://ftp.gnu.org/gnu/coreutils/coreutils-([\d+\.]+)\.tar\.(?:gz|bz2|lzma|xz)