From a0026bfed0d62a07893d593ed6c9ebdb817130e3 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 6 Feb 2019 12:07:32 +0100 Subject: [PATCH 01/18] linux-headers: Update version from 4.14.76 to 4.14.87 --- linux-headers.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-headers.be0 b/linux-headers.be0 index 58de8784b..905531b33 100755 --- a/linux-headers.be0 +++ b/linux-headers.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION linux-headers-4.14.76-0 +# BEE_VERSION linux-headers-4.14.87-0 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From 030bae427138aed0129b2f4e87ac6aaab7119d15 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 6 Feb 2019 11:55:20 +0100 Subject: [PATCH 02/18] glibc: Update version from 2.27 to 2.29 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From the [announcement][1]: > NEWS for version 2.29 > ==================== > > * The getcpu wrapper function has been added, which returns the > currently used CPU and NUMA node. This function is Linux-specific. > > * A new convenience target has been added for distribution maintainers > to build and install all locales as directories with files. The new > target is run by issuing the following command in your build tree: > 'make localedata/install-locale-files', with an optional DESTDIR > to set the install root if you wish to install into a non-default > configured location. > > * Optimized generic exp, exp2, log, log2, pow, sinf, cosf, sincosf and > tanf. > > * The reallocarray function is now declared under _DEFAULT_SOURCE, not > just for _GNU_SOURCE, to match BSD environments. > > * For powercp64le ABI, Transactional Lock Elision is now enabled iff > kernel indicates that it will abort the transaction prior to entering > the kernel (PPC_FEATURE2_HTM_NOSC on hwcap2). On older kernels the > transaction is suspended, and this caused some undefined side-effects > issues by aborting transactions manually. Glibc avoided it by abort > transactions manually on each syscall, but it lead to performance > issues on newer kernels where the HTM state is saved and restore > lazily (the state being saved even when the process actually does not > use HTM). > > * The functions posix_spawn_file_actions_addchdir_np and > posix_spawn_file_actions_addfchdir_np have been added, enabling > posix_spawn and posix_spawnp to run the new process in a different > directory. These functions are GNU extensions. The function > posix_spawn_file_actions_addchdir_np is similar to the Solaris > function of the same name. > > * The popen and system do not run atfork handlers anymore (BZ#17490). > Although it is a possible POSIX violation, the POSIX rationale in > pthread_atfork documentation regarding atfork handlers is to handle > inconsistent mutex state after a fork call in a multi-threaded > process. > In both popen and system there is no direct access to user-defined > mutexes. > > * Support for the C-SKY ABIV2 running on Linux has been added. This > port requires at least binutils-2.32, gcc-9.0, and linux-4.20. Two > ABIs are supported: > - C-SKY ABIV2 soft-float little-endian > - C-SKY ABIV2 hard-float little-endian > > * strftime's default formatting of a locale's alternative year (%Ey) > has been changed to zero-pad the year to a minimum of two digits, > like "%y". This improves the display of Japanese era years during > the first nine years of a new era, and is expected to be harmless > for all other locales (only Japanese locales regularly have > alternative year numbers less than 10). Zero-padding can be > overridden with the '_' or '-' flags (which are GNU extensions). > > * As a GNU extension, the '_' and '-' flags can now be applied to > "%EY" to control how the year number is formatted; they have the > same effect that they would on "%Ey". […] > Security related changes: > > CVE-2018-19591: A file descriptor leak in if_nametoindex can lead to a > denial of service due to resource exhaustion when processing > getaddrinfo calls with crafted host names. Reported by Guido Vranken. > > CVE-2019-6488: On x32, the size_t parameter may be passed in the lower > 32 bits of a 64-bit register with with non-zero upper 32 bit. When it > happened, accessing the 32-bit size_t value as the full 64-bit > register in the assembly string/memory functions would cause a buffer > overflow. > Reported by H.J. Lu. > > CVE-2016-10739: The getaddrinfo function could successfully parse IPv4 > addresses with arbitrary trailing characters, potentially leading to > data or command injection issues in applications. [1]: https://sourceware.org/ml/libc-announce/2019/msg00000.html --- glibc.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc.be0 b/glibc.be0 index 8483e18f5..2547c8462 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION glibc-2.27-0 +# BEE_VERSION glibc-2.29-0 SRCURL[0]="https://ftp.gnu.org/gnu/glibc/glibc-${PKGVERSION}.tar.bz2" From 2edeea92369bd7b062a322348675264ca90731df Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 6 Feb 2019 11:55:44 +0100 Subject: [PATCH 03/18] glibc: Strip trailing spaces --- glibc.be0 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glibc.be0 b/glibc.be0 index 2547c8462..bcb7a5751 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -31,7 +31,7 @@ mee_patch_post() { # use /bin/bash instead of /bin/sh .. echo "sed-ing elf/ldd.bash.in" sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in - + # fix some binary issues when gzipping manpages.. echo "sed-ing manual/Makefile" sed -i 's|gzip -9|gzip -n -9|' manual/Makefile @@ -95,9 +95,9 @@ mee_install_post() { # timezones anymore with glibc >= 2.16 # install Europe/Berlin as default Timezone #rm -v ${D}${SYSCONFDIR}/localtime - #ln -v ${D}/${PREFIX}/share/zoneinfo/Europe/Berlin ${D}${SYSCONFDIR}/localtime - - + #ln -v ${D}/${PREFIX}/share/zoneinfo/Europe/Berlin ${D}${SYSCONFDIR}/localtime + + if [ "${SLIBDIR}" != "${LIBDIR}" ] ; then cd ${D}${SLIBDIR} for i in * ; do @@ -105,7 +105,7 @@ mee_install_post() { done cd - fi - + if [ "${ROOTSBINDIR}" != "${SBINDIR}" ] ; then cd ${D}${ROOTSBINDIR} for i in * ; do From ba0d6baf3a95fdab40d3dabb1624ad5ff1923f08 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 6 Feb 2019 11:57:54 +0100 Subject: [PATCH 04/18] glibc: Increase minimal Linux header requirement to 4.14.87 That is the oldest Linux kernel version, currently in MarIuX. --- glibc.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc.be0 b/glibc.be0 index bcb7a5751..c14c38b1c 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -51,7 +51,7 @@ mee_configure() { --enable-add-ons \ --enable-obsolete-rpc \ --enable-obsolete-nsl \ - --enable-kernel=4.4.34 + --enable-kernel=4.14.87 } mee_build_pre() { From acee80c2d0e5194c6c4e1c26629e2b1890c83497 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 6 Feb 2019 11:58:47 +0100 Subject: [PATCH 05/18] glibc: Use strong stack protector --enable-stack-protector=[yes|no|all|strong] Use -fstack-protector[-all|-strong] to detect glibc buffer overflows --- glibc.be0 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glibc.be0 b/glibc.be0 index c14c38b1c..32fc78157 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -51,7 +51,8 @@ mee_configure() { --enable-add-ons \ --enable-obsolete-rpc \ --enable-obsolete-nsl \ - --enable-kernel=4.14.87 + --enable-kernel=4.14.87 \ + --enable-stack-protector=strong } mee_build_pre() { From 5400a8b4b752fc3136d79104fd915b7a0f070248 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 8 Feb 2019 14:12:36 +0100 Subject: [PATCH 06/18] glibc-locales: Update version from 2.27 to 2.29 --- glibc-locales.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc-locales.be0 b/glibc-locales.be0 index 83eff1982..9fe6c5031 100755 --- a/glibc-locales.be0 +++ b/glibc-locales.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION glibc-locales-2.27-0 +# BEE_VERSION glibc-locales-2.29-0 mee_install() { mkdir -pv ${D}${LIBDIR}/locale From 781503d7185dbdfa847ab9d365c41c27a2f9e4a7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 10 Mar 2021 14:39:34 +0100 Subject: [PATCH 07/18] glibc: Update version from 2.29 to 2.33 --- glibc.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc.be0 b/glibc.be0 index 32fc78157..f99c9cefa 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION glibc-2.29-0 +# BEE_VERSION glibc-2.33-0 SRCURL[0]="https://ftp.gnu.org/gnu/glibc/glibc-${PKGVERSION}.tar.bz2" From 3c4d092a4aaccd897cb611e654a4a4ff8e1aebd4 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 14:15:46 +0100 Subject: [PATCH 08/18] glibc: Update ldconfig patches --- glibc.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glibc.be0 b/glibc.be0 index f99c9cefa..5f6d64008 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -5,8 +5,8 @@ SRCURL[0]="https://ftp.gnu.org/gnu/glibc/glibc-${PKGVERSION}.tar.bz2" PATCHURL=( - /src/mariux/patches/glibc-2.25-0001-ldconfig-don-t-generate-links-by-default-v2.patch - /src/mariux/patches/glibc-2.25-0002-ldconfig-don-t-remove-stale-symlinks-by-default-v2.patch + /src/mariux/patches/glibc-2.33-0001-ldconfig-don-t-generate-links-by-default-v2.patch + /src/mariux/patches/glibc-2.33-0002-ldconfig-don-t-remove-stale-symlinks-by-default-v2.patch ) SYSCONFDIR=/etc From 0c09746afa934383fba46e210ddb9875be84d149 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 14:19:52 +0100 Subject: [PATCH 09/18] glibc: Remove obsolete comments --- glibc.be0 | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/glibc.be0 b/glibc.be0 index 5f6d64008..8bec88828 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -35,14 +35,6 @@ mee_patch_post() { # fix some binary issues when gzipping manpages.. echo "sed-ing manual/Makefile" sed -i 's|gzip -9|gzip -n -9|' manual/Makefile - - # those seds prevent installing glibc in /lib64 instead of /lib.. - # echo "sed-ing sysdeps/unix/sysv/linux/configure" - # sed -i 's,x86_64 |,,' sysdeps/unix/sysv/linux/configure - - # echo "sed-ing sysdeps/unix/sysv/linux/configure.in" - # sed -i 's,x86_64 |,,' sysdeps/unix/sysv/linux/configure.in - } mee_configure() { @@ -87,18 +79,6 @@ mee_install_post() { # remove temporary ld.so.* because this is not part of the package rm -v ${D}${SYSCONFDIR}/ld.so.{conf,cache} - #mkdir -vp ${D}/usr/include/rpc{,svc} - #cp -v ${S}/sunrpc/rpc/*.h ${D}/usr/include/rpc - #cp -v ${S}/sunrpc/rpcsvc/*.h ${D}/usr/include/rpcsvc - #cp -v ${S}/nis/rpcsvc/*.h ${D}/usr/include/rpcsvc - - # this has been moved to tzdata package since glibc dow not provide - # timezones anymore with glibc >= 2.16 - # install Europe/Berlin as default Timezone - #rm -v ${D}${SYSCONFDIR}/localtime - #ln -v ${D}/${PREFIX}/share/zoneinfo/Europe/Berlin ${D}${SYSCONFDIR}/localtime - - if [ "${SLIBDIR}" != "${LIBDIR}" ] ; then cd ${D}${SLIBDIR} for i in * ; do From 9bd47d06c753ce9f1d54815be3b6f9d92b012bbd Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 15:17:45 +0100 Subject: [PATCH 10/18] glibc: Simplify mee_check Remove debug code from mee_check. --- glibc.be0 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/glibc.be0 b/glibc.be0 index 8bec88828..67527fc65 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -58,10 +58,7 @@ mee_build_post() { } mee_check() { - make -k check 2>&1 | tee glibc-check-log - grep Error glibc-check-log - echo grep Error glibc-check-log - bash + make -k check } mee_install_pre() { From 74bbcddafd96376222c6d2df82e3bbbbd0706e55 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 15:23:00 +0100 Subject: [PATCH 11/18] glibc: Remove --disable-profile Remove --disable-profile, because that is the default. --- glibc.be0 | 1 - 1 file changed, 1 deletion(-) diff --git a/glibc.be0 b/glibc.be0 index 67527fc65..a454f509a 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -39,7 +39,6 @@ mee_patch_post() { mee_configure() { bee_configure \ - --disable-profile \ --enable-add-ons \ --enable-obsolete-rpc \ --enable-obsolete-nsl \ From fb5e6995a24686f3289bf44eadc404efc195adf5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 15:23:38 +0100 Subject: [PATCH 12/18] glibc: Remove non-functional configure options Remove options, which no longer exist. --- glibc.be0 | 3 --- 1 file changed, 3 deletions(-) diff --git a/glibc.be0 b/glibc.be0 index a454f509a..fc947eb44 100755 --- a/glibc.be0 +++ b/glibc.be0 @@ -39,9 +39,6 @@ mee_patch_post() { mee_configure() { bee_configure \ - --enable-add-ons \ - --enable-obsolete-rpc \ - --enable-obsolete-nsl \ --enable-kernel=4.14.87 \ --enable-stack-protector=strong } From c01520efa2af0a9ffa6a554593ca2f4d16b69d6d Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 15:58:55 +0100 Subject: [PATCH 13/18] libnss_nis: Add version 3.1 This code was formerly part of glibc, but is now standalone to be able to link against TI-RPC for IPv6 support. --- libnss_nis.be0 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 libnss_nis.be0 diff --git a/libnss_nis.be0 b/libnss_nis.be0 new file mode 100755 index 000000000..43abb5a24 --- /dev/null +++ b/libnss_nis.be0 @@ -0,0 +1,37 @@ +#!/usr/bin/env beesh + +# BEE_VERSION libnss_nis-3.1-0 + +# more info: https://github.com/thkukuk/libnss_nis + +SRCURL[0]="https://github.com/thkukuk/libnss_nis/releases/download/v${PKGVERSION}/libnss_nis-${PKGVERSION}.tar.xz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#} From 69b7bd279d77780b3fca603284f32e7a46c6c4e2 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 16:41:13 +0100 Subject: [PATCH 14/18] libtirpc: Update version from 1.1.4 to 1.3.1 --- libtirpc.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtirpc.be0 b/libtirpc.be0 index 24c154773..5b78c3200 100755 --- a/libtirpc.be0 +++ b/libtirpc.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION libtirpc-1.1.4-0 +# BEE_VERSION libtirpc-1.3.1-0 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From d148c05db5c60f567d51d41bf4ff3fcfdfc036eb Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 12 Mar 2021 17:08:13 +0100 Subject: [PATCH 15/18] glibc-locales: Update version from 2.29 to 2.33 --- glibc-locales.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc-locales.be0 b/glibc-locales.be0 index 9fe6c5031..b7b160d3d 100755 --- a/glibc-locales.be0 +++ b/glibc-locales.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION glibc-locales-2.29-0 +# BEE_VERSION glibc-locales-2.33-0 mee_install() { mkdir -pv ${D}${LIBDIR}/locale From 34d2778b7b3339b79e276aec83ef71546892ecf1 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Apr 2021 10:29:04 +0200 Subject: [PATCH 16/18] rpcsev-proto: Add version 1.4.2 This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc. Additional it contains rpcgen, which is needed to create header files and sources from protocol files. This package is only needed, if glibc is installed without the deprecated sunrpc functionality and libtirpc should replace --- rpcsvc-proto.be0 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 rpcsvc-proto.be0 diff --git a/rpcsvc-proto.be0 b/rpcsvc-proto.be0 new file mode 100755 index 000000000..7c524b557 --- /dev/null +++ b/rpcsvc-proto.be0 @@ -0,0 +1,37 @@ +#!/usr/bin/env beesh + +# BEE_VERSION rpcsvc-proto-1.4.2-0 + +# more info: https://foo.bar.com + +SRCURL[0]="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${PKGVERSION}/rpcsvc-proto-${PKGVERSION}.tar.xz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#} From 6ea15f922193be5dca4d93e55f5a76610d4670cd Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Apr 2021 10:44:08 +0200 Subject: [PATCH 17/18] autofs: Rebuild with --with-libtirpc Fix ./include/rpc_subs.h:19:10: fatal error: rpc/rpc.h: No such file or directory #include ^~~~~~~~~~~ libtirpc provides the include files in another directory than glibc did. Add --with-libtirpc so that pkg_config is used to pick up the right include path: $ pkg-config --cflags libtirpc -I/usr/include/tirpc --- autofs.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autofs.be0 b/autofs.be0 index 7be5f1cf2..7174f3fd7 100755 --- a/autofs.be0 +++ b/autofs.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION autofs-5.1.7-0 +# BEE_VERSION autofs-5.1.7-1 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -54,7 +54,7 @@ build_in_sourcedir #} mee_configure() { - bee_configure --enable-ignore-busy + bee_configure --enable-ignore-busy --with-libtirpc } #mee_build() { From b0c59b90ef0828960b2cd17144f0943497a40a78 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Apr 2021 11:44:56 +0200 Subject: [PATCH 18/18] libnsl: Add version 1.3.0 This package contains the libnsl library. This library contains the public client interface for NIS(YP) and NIS+. This code was formerly part of glibc, but is now standalone to be able to link against TI-RPC for IPv6 support. The NIS(YP) functions are still maintained, the NIS+ part is deprecated and should not be used anymore. --- libnsl-1.3.0-0.bee | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 libnsl-1.3.0-0.bee diff --git a/libnsl-1.3.0-0.bee b/libnsl-1.3.0-0.bee new file mode 100644 index 000000000..165fccb78 --- /dev/null +++ b/libnsl-1.3.0-0.bee @@ -0,0 +1,37 @@ +#!/usr/bin/env beesh + +# BEE_VERSION libnsl-1.3.0-0 + +# more info: https://github.com/thkukuk/libnsl + +SRCURL[0]="https://github.com/thkukuk/libnsl/releases/download/v${PKGVERSION}/libnsl-${PKGVERSION}.tar.xz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#}