Commit Graph

40 Commits

Author SHA1 Message Date
Adolf Belka
2fc3c29093 coreutils: Update to version 9.5
- Update from version 9.0 to 9.5
- Update of the uname patch to 9.5
- Obtained the 9.5 version of the i18n patch. However this caused the coreutils build to
   fail. Without the patch the build had no problems. After investigating for some time
   I identified that coreutils used to have the mbchar.h and mbchar.c files in its
   source tarball lib directory. However those are no longer needed by coreutils so they
   have been deleted in the source tarball. However the i18n patch still requires them.
   The patch creates the code for the mbchar.h and mbchar.c files. However it has made
   the availability of the  members buf & mb_setascii and some code related to old_mbc
   dependent on GNULIB being defined. This is specified in configure.ac but that define
   did not make it into the prepared configure file. This causes those members to not be
   found and the build fails.
- Removing the three #if defined GNLIB_MBFILE statements from the coreutils-9.5-i18n
   patch, so that the code is executed in the build, causes the members to be present
   and the build is successfull.
- Update of rootfile
- Changelog
    9.5
	** Bug fixes
	  chmod -R now avoids a race where an attacker may replace a traversed file
	   with a symlink, causing chmod to operate on an unintended file.
	   [This bug was present in "the beginning".]
	  cp, mv, and install no longer issue spurious diagnostics like "failed
	   to preserve ownership" when copying to GNU/Linux CIFS file systems.
	   They do this by working around some Linux CIFS bugs.
	  cp --no-preserve=mode will correctly maintain set-group-ID bits
	   for created directories.  Previously on systems that didn't support ACLs,
	   cp would have reset the set-group-ID bit on created directories.
	   [bug introduced in coreutils-8.20]
	  join and uniq now support multi-byte characters better.
	   For example, 'join -tX' now works even if X is a multi-byte character,
	   and both programs now treat multi-byte characters like U+3000
	   IDEOGRAPHIC SPACE as blanks if the current locale treats them so.
	  numfmt options like --suffix no longer have an arbitrary 127-byte limit.
	   [bug introduced with numfmt in coreutils-8.21]
	  mktemp with --suffix now better diagnoses templates with too few X's.
	   Previously it conflated the insignificant --suffix in the error.
	   [bug introduced in coreutils-8.1]
	  sort again handles thousands grouping characters in single-byte locales
	   where the grouping character is greater than CHAR_MAX.  For e.g. signed
	   character platforms with a 0xA0 (aka &nbsp) grouping character.
	   [bug introduced in coreutils-9.1]
	  split --line-bytes with a mixture of very long and short lines
	   no longer overwrites the heap (CVE-2024-0684).
	   [bug introduced in coreutils-9.2]
	  tail no longer mishandles input from files in /proc and /sys file systems,
	   on systems with a page size larger than the stdio BUFSIZ.
	   [This bug was present in "the beginning".]
	  timeout avoids a narrow race condition, where it might kill arbitrary
	   processes after a failed process fork.
	   [bug introduced with timeout in coreutils-7.0]
	  timeout avoids a narrow race condition, where it might fail to
	   kill monitored processes immediately after forking them.
	   [bug introduced with timeout in coreutils-7.0]
	  wc no longer fails to count unprintable characters as parts of words.
	   [bug introduced in textutils-2.1]
	** Changes in behavior
	  base32 and base64 no longer require padding when decoding.
	   Previously an error was given for non padded encoded data.
	  base32 and base64 have improved detection of corrupted encodings.
	   Previously encodings with non zero padding bits were accepted.
	  basenc --base16 -d now supports lower case hexadecimal characters.
	   Previously an error was given for lower case hex digits.
	  cp --no-clobber, and mv -n no longer exit with failure status if
	   existing files are encountered in the destination.  Instead they revert
	   to the behavior from before v9.2, silently skipping existing files.
	  ls --dired now implies long format output without hyperlinks enabled,
	   and will take precedence over previously specified formats or hyperlink mode.
	  numfmt will accept lowercase 'k' to indicate Kilo or Kibi units on input,
	   and uses lowercase 'k' when outputting such units in '--to=si' mode.
	  pinky no longer tries to canonicalize the user's login location by default,
	   rather requiring the new --lookup option to enable this often slow feature.
	  wc no longer ignores encoding errors when counting words.
	   Instead, it treats them as non white space.
	** New features
	  chgrp now accepts the --from=OWNER:GROUP option to restrict changes to files
	   with matching current OWNER and/or GROUP, as already supported by chown(1).
	  chmod adds support for -h, -H,-L,-P, and --dereference options, providing
	   more control over symlink handling.  This supports more secure handling of
	   CLI arguments, and is more consistent with chown, and chmod on other systems.
	  cp now accepts the --keep-directory-symlink option (like tar), to preserve
	   and follow existing symlinks to directories in the destination.
	  cp and mv now accept the --update=none-fail option, which is similar
	   to the --no-clobber option, except that existing files are diagnosed,
	   and the command exits with failure status if existing files.
	   The -n,--no-clobber option is best avoided due to platform differences.
	  env now accepts the -a,--argv0 option to override the zeroth argument
	   of the command being executed.
	  mv now accepts an --exchange option, which causes the source and
	   destination to be exchanged.  It should be combined with
	   --no-target-directory (-T) if the destination is a directory.
	   The exchange is atomic if source and destination are on a single
	   file system that supports atomic exchange; --exchange is not yet
	   supported in other situations.
	  od now supports printing IEEE half precision floating point with -t fH,
	   or brain 16 bit floating point with -t fB, where supported by the compiler.
	  tail now supports following multiple processes, with repeated --pid options.
	** Improvements
	  cp,mv,install,cat,split now read and write a minimum of 256KiB at a time.
	   This was previously 128KiB and increasing to 256KiB was seen to increase
	   throughput by 10-20% when reading cached files on modern systems.
	  env,kill,timeout now support unnamed signals. kill(1) for example now
	   supports sending such signals, and env(1) will list them appropriately.
	  SELinux operations in file copy operations are now more efficient,
	   avoiding unneeded MCS/MLS label translation.
	  sort no longer dynamically links to libcrypto unless -R is used.
	   This decreases startup overhead in the typical case.
	  wc is now much faster in single-byte locales and somewhat faster in
	   multi-byte locales.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:21 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Michael Tremer
bbedf54c52 Config: Globally permit using 32 bit time_t
This is required because some packages do not recommend building with
time_t when it is 32 bit (Y2038 problem).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:13:43 +00:00
Peter Müller
06fe9baec7 Coreutils: update to 9.0
Please refer to https://lists.gnu.org/archive/html/coreutils/2021-09/msg00113.html
for this version's release announcement.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2021-11-19 07:03:31 +01:00
Peter Müller
c1d98bbbb3 ~/src/patches/: Clean up orphaned patches, duplicates and application patches outside existing directory structures
This patch represents the first batch of various patches we do not use
anymore, hence there is no sense in keeping them, polluting ~/src/patches/.

Two coreutils patches have been moved into the already existing
coreutils folder, while one libloc patch has been a duplicate to that
one already existing in ~/src/patches/libloc/.

Cleaning up this dump remains a non-exhaustive attempt, though. There
are several other patches I could not locate in LFS files in the first
place, which means that the amount of files we can drop from this
directory is likely to be greater than this patch currently covers.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2021-06-04 18:23:12 +02:00
Michael Tremer
e027e094cb Revert "~/src/patches/: Clean up orphaned patches, duplicates and application patches outside existing directory structures"
This reverts commit 5adde58cd5.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-04 10:46:30 +00:00
Peter Müller
5adde58cd5 ~/src/patches/: Clean up orphaned patches, duplicates and application patches outside existing directory structures
This patch represents the first batch of various patches we do not use
anymore, hence there is no sense in keeping them, polluting ~/src/patches/.

Two coreutils patches have been moved into the already existing
coreutils folder, while one libloc patch has been a duplicate to that
one already existing in ~/src/patches/libloc/.

Cleaning up this dump remains a non-exhaustive attempt, though. There
are several other patches I could not locate in LFS files in the first
place, which means that the amount of files we can drop from this
directory is likely to be greater than this patch currently covers.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-03 09:49:29 +00:00
Arne Fitzenreiter
88e8bf31ce coreutils: add uptream patch to fix build on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-05-02 10:39:19 +00:00
Peter Müller
b347830644 coreutils: update to 8.32
Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-05-01 19:08:40 +00:00
Peter Müller
3bc5296d8d coreutils: update to 8.31
Refer to https://lists.gnu.org/archive/html/coreutils-announce/2019-03/msg00000.html
for release announcements.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-23 18:32:30 +00:00
Michael Tremer
fa9cfe5a02 coreutils+gzip: Allow building with 32 bit time_t on 32 bit arches
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-24 17:27:38 +01:00
Michael Tremer
347bbe8fb4 coreutils: Update to 8.30
Builds with newer versions of glibc

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-19 08:57:11 +01:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Peter Müller
c069312790 coreutils: update to 8.29
Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-06-17 18:20:07 +01:00
Michael Tremer
2dd9f3b379 Cleanup toolchain scripts
No functional changes, just some tidy up

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-12 12:44:37 +00:00
Michael Tremer
6c4cc7ea1b Move toolchain from /tools to /tools_${arch}
This will allow us to run multiple builds on the same
system at the same time (or at least have them on disk).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-23 15:57:28 +00:00
Matthias Fischer
e1fb40529c coreutils: Update to 8.27
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-16 17:33:35 +01:00
Marcel Lorenz
7cf3a80b47 coreutils: update to 8.25 v3
Coreutils 8.25 needs the automake 1.15
I have send this patch earlier.
Plaese merge automake before coreutils 8.25

Signed-off-by: Marcel Lorenz <marcel.lorenz@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-01 22:40:05 +01:00
matthias.fischer@ipfire.org
ae7814b0c6 coreutils: Update to 8.24
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-17 20:31:28 +01:00
Michael Tremer
df0bd0e304 coreutils: Remove dead symlink /bin/[
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-07-02 21:38:20 +02:00
Michael Tremer
285f03c2e8 coreutils: Update to 8.23. 2014-07-27 12:49:56 +02:00
Michael Tremer
b21b0df6a6 Import bash startfiles from IPFire 3.x. 2012-11-11 23:28:52 +01:00
Michael Tremer
c96ea3240f Workaround configure getting stuck at mktime check. 2012-08-20 11:43:11 +02:00
Michael Tremer
bee870d74f coreutils: Remove --build from configure options. 2012-08-12 16:51:12 -04:00
Michael Tremer
d499764561 coreutils: Fix compiling coreutils with glibc >= 2.10. 2012-08-06 17:40:58 +02:00
Arne Fitzenreiter
920b610fa0 toolchain: remove old uname hack. 2011-12-31 02:45:19 +01:00
Michael Tremer
7b321c2cbe Merge remote branch 'origin/next' into arm-port
Conflicts:
	config/rootfiles/common/i586/gcc
	lfs/binutils
	lfs/cleanup-toolchain
	lfs/coreutils
	lfs/gcc
	lfs/glibc
	lfs/groff
	src/pakfire/pakfire.conf
	src/patches/gcc-4.1.2-specs-1.patch
2011-09-18 02:58:34 +02:00
Michael Tremer
ef6cd59b61 Add better uname replacement.
Supports faking kernel release and supports ARM.
2011-09-16 00:10:15 +02:00
Michael Tremer
afab70b199 coreutils: Remove unhandled configure option. 2011-09-16 00:09:19 +02:00
Arne Fitzenreiter
3529923589 toolchain: cpu-type fixes. 2011-09-11 09:25:16 +02:00
Arne Fitzenreiter
107d282894 coreutils: hack uname for build on hosts with linux kernel 3.x. 2011-09-08 14:31:56 +02:00
Michael Tremer
b48b7254d8 coreutils: Disable uname patch which adds x86 ASM code for ARM. 2011-09-02 14:02:23 +00:00
Michael Tremer
51f9e7ace1 Add support to build an ARM toolchain. 2011-09-02 12:06:09 +00:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
ms
71e323840b Bashpromt erweitert und FTP Upload wieder funktionierend gemacht...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@397 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-01-25 19:04:11 +00:00
ms
857d9bf244 Zwischencommit fuer LFS.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@305 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-10-08 14:39:28 +00:00
ms
9b0ff0a0b6 Zwischencommit beim Umzug auf LFS 6.2.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@299 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-10-01 10:51:18 +00:00
ms
dd714b8aad Habe IPFire auf LFS 6.2 gebracht.
Das hier ist der erste Teil.
Nur Toolchain bisher.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@297 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-09-30 16:33:03 +00:00
ms
f417cab6e0 Zweiter Teil des dicken Quellenupdates. Diesmal: C bis D.
Status: 49/230 fertiggestellt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@132 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-22 12:47:00 +00:00
ipfire
cd1a292722 git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 2006-02-15 21:15:54 +00:00