Commit Graph

58 Commits

Author SHA1 Message Date
Hans-Christian Noren Egtvedt
c206f2fc3e packages/glibc: add glibc version 2.35
Copied patches from glibc version 2.34, they still apply clean and I
assume they still are relevant.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
[cp add __convert_scm_timestamps patch]
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2022-02-09 20:56:28 +13:00
Chris Packham
3d2b48fb7a glibc: Remove obsolete versions
The following versions were marked obsolete in crosstool-ng-1.24.0,
remove them.
- glibc-linaro-2.20-2014.11
- glibc-2.12.2
- glibc-2.13
- glibc-2.14.1
- glibc-2.15
- glibc-2.16.0
- glibc-2.18
- glibc-2.20
- glibc-2.21
- glibc-2.22

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-09-21 21:24:31 +12:00
Chris Packham
5faf255006 packages/glibc: Add 2.34
Add glibc 2.34. Bring through patches for canadian build and ARC700.

https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-08-25 20:32:27 +12:00
messense
1da73325db Add glibc 2.24 fix cmpli usage in power6 memset patch
Signed-off-by: messense <messense@icloud.com>
2021-05-23 19:57:31 +08:00
messense
0088351811 fix BZ 18116 - build failure on ppc64le: setcontext.S uses power6 mtfsf
when not supported
2021-05-13 19:09:40 +08:00
messense
798904409c Add ppc64le patches for glibc 2.17 from CentOS git 2021-05-13 15:12:54 +08:00
Alexey Brodkin
21f0bc13fb glibc: Add ARC700 support to v2.32 & v2.33
As of today ARCompact (AKA "ARCv1 ISA") processors (mostly those are ARC770)
are not officially supported by upstream glibc as it adds quite some burden
on release ans support of yet another "architecture" port.

But given on ABI and ISA front ARCompact is very close to ARCv2 we may
easily retrofit its support off-the-tree, which we do here.

Also given amount of changes we need to apply there's a hope it will be easy
and straight-forward to apply the same to later versions of glibc.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-02-14 11:13:02 +03:00
Hans-Christian Noren Egtvedt
b8001d14f2 glibc: add version 2.33
Forward ported all local patches from previous glibc release 2.32, they
applied cleanly.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2021-02-12 12:29:24 +01:00
Hans-Christian Noren Egtvedt
80a2e0cf87 glibc: fix version 2.32 not setting correct version string
Backport change from glibc upstream that defines RELEASE as stable
instead of release. This will at least cause the default_cflags to be
set to expected default values again.

Ref issue #1396, although the bigger issue of respecting crosstool-ng
CT_GLIBC_EXTRA_CFLAGS is most likely still not fixed.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2020-10-05 09:54:46 +02:00
Chris Packham
645ee12492 glibc: Don't build with -Werror for powerpc64+glibc-2.32
When building powerpc64+glibc-2.32 we see the following error:

[ALL  ]      In file included from ../sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c:26,
[ALL  ]                       from ../sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c:18:
[ALL  ]      ../string/wordcopy.c: In function '_wordcopy_fwd_aligned':
[ERROR]      ../string/wordcopy.c:98:26: error: 'a1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
[ALL  ]         98 |       ((op_t *) dstp)[0] = a1;
[ALL  ]            |       ~~~~~~~~~~~~~~~~~~~^~~~
[ALL  ]      In file included from ../sysdeps/powerpc/powerpc64/power4/../../powerpc32/power4/memcopy.h:38,
[ALL  ]                       from ../sysdeps/powerpc/powerpc64/power4/memcopy.h:1,
[ALL  ]                       from ../string/wordcopy.c:23,
[ALL  ]                       from ../sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c:26,
[ALL  ]                       from ../sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c:18:
[ALL  ]      ../string/wordcopy.c: In function '_wordcopy_fwd_dest_aligned':
[ERROR]      ../sysdeps/generic/memcopy.h:72:61: error: 'a3' may be used uninitialized in this function [-Werror=maybe-uninitialized]
[ALL  ]         72 | #define MERGE(w0, sh_1, w1, sh_2) (((w0) << (sh_1)) | ((w1) >> (sh_2)))
[ALL  ]            |                                                             ^~

This seems to only trigger for powerpc64. Other architectures build
cleanly. For now avoid specifying -Werror for powerpc64+glibc-2.32.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2020-09-03 22:47:02 +12:00
Chris Packham
4e5bc43627
Merge pull request #1371 from egtvedt/add-glibc-2.32
Add support for glibc 2.32
2020-08-30 20:59:17 +12:00
Hans-Christian Noren Egtvedt
c0f2d7016b Patch glibc to support building with GCC 10 based toolchains 2020-08-27 11:35:59 +02:00
Chris Packham
d908f53ffa
Merge pull request #1246 from nikkon-dev/spaun2002/add_glibc_2_19_patch
Add powerpc asm fix for glibc 2.19
2020-08-26 19:32:47 +12:00
Chris Packham
60473e7274
Merge pull request #1362 from cpackham/patch-1
glibc: Fix typo in package.desc
2020-08-23 20:47:30 +12:00
Hans-Christian Noren Egtvedt
107e8111c3 Add support for glibc 2.32
Forward ported 0000-typedef-caddr.patch from previous release (2.31).

Dropped the 0001-Add-ARC-architecture.patch file, since ARC support is
included in glibc release 2.32.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2020-08-14 10:23:49 +02:00
Chris Packham
05ec369391
glibc: Fix typo in package.desc
Simple typo fix
2020-07-12 21:15:20 +12:00
spaun2002
3d3da62987 Add power6 patch to all the glibc versions that need it 2020-07-07 16:10:36 -07:00
Nikita Konyuchenko
93f566b0a1 Add powerpc asm fix for glibc 2.19
Integration of the https://patchwork.ozlabs.org/patch/686205/ fix by Joseph Myersk

Signed-off-by: spaun2002 <spaun2002mobile@gmail.com>
2020-07-07 16:10:36 -07:00
Jakub Labenski
3a39186a4b Allow glibc 2.12 - 2.20 to work with GCC 10+ 2020-06-08 08:58:48 +02:00
Alexey Neyman
1aec4479c7 GLIBC 2.28 milestone has a dependency
... but no definition after af2f3ac9c.

Signed-off-by: Alexey Neyman <stilor@att.net>
2020-03-17 15:33:49 -07:00
Alexey Neyman
f290ad2417 Update ARC patch to glibc 2.31
Build-tested only.

Signed-off-by: Alexey Neyman <stilor@att.net>
2020-02-26 11:05:19 -08:00
Alexey Neyman
a74f8d9ccb Add glibc 2.31
Signed-off-by: Alexey Neyman <stilor@att.net>
2020-02-26 11:05:19 -08:00
Alexey Neyman
d35d267278 Upstrean fix for CET-enabled compiler with no --enable-cet
Signed-off-by: Alexey Neyman <stilor@att.net>
2020-02-03 16:12:38 -08:00
Alexey Neyman
fdcfffebf6
Merge pull request #1233 from cpackham/fixup-arc-patch
glibc: arc: Don't interfere with other architectures
2019-09-30 23:43:24 -07:00
Alexey Brodkin
fb1736fb48 glibc-2.30: Re-add ARC support
So again due to non-technical reasons (lack of public documentation
of ARC instruction set which we actively work on but no yet published)
we missed upstream 2.30 release.

Still the code is there, we regularly run full test-suite and are confident
in port's quality and robustness.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-09-06 14:28:15 +03:00
Chris Packham
01e21d90f7 glibc: arc: Don't interfere with other architectures
Fixes: #1227

Adjust the ARC patch so that it only sets with_fp_cond when the machine
is arc.

https://github.com/foss-for-synopsys-dwc-arc-processors/glibc/issues/7

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2019-09-05 14:17:18 +12:00
Chris Packham
7b362e6dae Add glibc 2.30
Add the GNU C Library version 2.30. Bring forward the
typedef-caddr.patch. Skip the ARC patch for now.

https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2019-09-05 11:32:23 +12:00
Alexey Brodkin
e9e30581e6 glibc: Add ARC support
ARC port of Glibc was submitted to the mailing list recently [1]
but due to late submission it didn't make it in Glibc 2.29 release.

Hopefully by the time of next release it will be a part of upstream
release but for now we have to use off-the-tree patch.

Still it's proven to work internally as well as its test-suite
shows brilliant results as might be seen from [1]:
------------------>8-------------------
Summary of test results:
     24 FAIL
   5124 PASS
     27 UNSUPPORTED
     19 XFAIL
------------------>8-------------------

Moreover ARC's Glibc port is known to work in Buildroot, OpenEmbedded
and even Automotive Grade Linux distro so we should be good having
this patch for Glibc.

BTW the patch itself is a copy of the one I use in OE, see [2].

[1] https://sourceware.org/ml/libc-alpha/2018-12/msg00678.html
[2] https://github.com/foss-for-synopsys-dwc-arc-processors/meta-synopsys/blob/master/recipes-core/glibc/files/0031-Add-ARC-architecture.patch

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-04-17 10:30:34 +03:00
Alexey Neyman
862c35457d Fix build of glibc 2.29 on systems with obsolete host programs
- Force building make as a companion tool if host make is older than
4.0 (CentOS 7 currently has 3.82)
- Disable 2.29 as a choice if host python is older than 3.4
(CentOS 7 has 2.6 unless python from EPEL is installed)
- Python2 emits its version information to STDERR. Ugh.

While there, also use the detected host Python for GDB configuration.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-02 15:45:37 -08:00
Alexey Neyman
91d01a0e47 Another wave of version updates
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-13 22:47:07 -08:00
Alexey Neyman
0fe21f8db8 Config v2: select relevant parts of each package version
Also, remove a couple of config options that dealt with package versions
that have been since retired.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-30 00:09:30 -08:00
Alexey Neyman
e149e28e57 Disable -fstack-protector* from being used by glibc
... until it was fixed (to some extent) in 2.25.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07 00:03:04 -08:00
Alexey Neyman
8236e5d996 Fix fdivp argument order
Patch from upstream. Bug didn't exist in 2.14.1 and fix is already
applied in 2.16.

Fixes #1048

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-06 08:43:57 -07:00
Alexey Neyman
98834458f1 Upgrades. Lots of 'em.
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-24 23:09:53 -07:00
Alexey Neyman
37ac0e8474 Too many fixes need backporting for GCC8...
... so instead, disable -Werror for older versions of glibc.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-14 23:47:17 -07:00
Alexey Neyman
2b055ddc67 Second batch of backported fixes
getlogin/getlogin_r, zic

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-12 23:17:03 -07:00
Alexey Neyman
387c8d8e2c First batch of fixes
- Incompatible function type for ifunc alias
- Multiple statements macro expansion in strftime
- if_nametoindex size checking

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-12 13:03:29 -07:00
Alexey Neyman
79b100707b Bring in GDB 8.1 and glibc 2.27.
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-03 12:05:29 -08:00
Alexey Neyman
36bb675a71 More fixes after the upgrades:
- GLIBC requires a fix to work with binutils 2.30 on aarch64. This fix
  relies on binutils 2.24 or newer, which is okay for glibc 2.26 since
  it needs 2.25 or newer anyway. But older glibc versions are now pinned
  to binutils 2.29 or older on aarch64.
- xtensa needs patches in libgcc with gcc 7.3.
- comment in newlib's patch to indicate it is a reversal of a commit.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-01-30 15:08:18 -08:00
Alexey Neyman
98bc4decde Run all patches through renumbering and update
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-12-02 12:44:39 -08:00
Alexey Neyman
b3038a0a41 Add digests for all packages
Also fix test-packages: it was saving the output from CT_DoLog into
the checksum file. Also use one file per version.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-29 17:05:22 -07:00
Alexey Neyman
48a949cf60 Add an ability to verify the digest/signature
Fixes #611.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-27 22:40:21 -07:00
Alexey Neyman
24b0e666b5 Apply ucontext patch to mainstream GCC releases
Not applicable to 4.8, as GLIBC2.26 requires 4.9 or newer. Record
that dependency.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-27 20:27:21 -07:00
Alexey Neyman
f627e740ff Merge pull request #814 from stilor/issue-802
Issue 802
2017-08-26 16:29:58 -07:00
Alexey Neyman
eba1a82686 Make --enable-obsolete-rpc an option in ct-ng
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:45 -07:00
Alexey Neyman
bf7641d1b9 Backport --enable-obsolete-rpc from 2.16
Fixes #802.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:45 -07:00
Alexey Neyman
8aa8a2cbc9 Missed glibc 2.14 when obsoleting releases
Superseded on the branch by 2.14.1.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:44 -07:00
Alexey Neyman
a840a08f44 Fix regressions after binutils 2.29
Binutils 2.29 are more picky about versioning of common symbols.
Fix two offenders in glibc versions as applicable.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-25 15:14:00 -07:00
Alexey Neyman
48b4c8db08 Remove sourceware from glibc mirrors
It only hosts releases up to 2.11.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 23:58:50 -07:00
Alexey Neyman
f8d4ce3d0e Implement a script for checking packages
Then use this script to check that all packages can be extracted and patched.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 16:05:40 -07:00