Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tools build on newer hosts. #3

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

jameshilliard
Copy link

Backport various library compatibility fixes from upstream so that tools build on recent hosts. Most of these are glibc related fixes but there's a few other libraries as well that had issues.

cvalley-sx and others added 30 commits February 3, 2021 15:40
…onTechnologies/update_2021_02_03

Update for 2021_02_03
…onTechnologies/update-again

Add qca/ and dl/ folders
Patch 100-fix-gets-removal.patch is removed because it's included in the new version.

Signed-off-by: Etienne Haarsma <[email protected]>
Add a temporary workaround to compile with glibc 2.28
as some constants were removed and others made private

Signed-off-by: Luis Araneda <[email protected]>
Link zlib statically on Linux systems.

Signed-off-by: Jo-Philipp Wich <[email protected]>

SVN-Revision: 46909
Do not rely on the system default collaction when sorting directory entries
but explicitely request "C" collation.

Signed-off-by: Jo-Philipp Wich <[email protected]>

SVN-Revision: 47689
Update to latest make_ext4fs Git HEAD to fix build with recent glibc version
which does not implicitely includes sysmacros.h anymore.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Update e2fsprogs to 1.45.6

Signed-off-by: Daniel Engberg <[email protected]>
 - update mtd-utils to 1.5.2 (git a494d30ab1ae40cb7665680cadf5af3ca3830a73)
 - remove patches that went upstream
 - fixes build from scratch as of broken patches

Signed-off-by: Sven Roederer <[email protected]>
[use the final version of 1.5.2 instead, fix header of jffs2_lzma_(de,)compress()]
Signed-off-by: Hauke Mehrtens <[email protected]>

SVN-Revision: 47790
Use the timestamp from the enviroment SOURCE_DATE_EPOCH
if set instead of the build time.

Signed-off-by: Alexander Couzens <[email protected]>
glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1015

Signed-off-by: Alex Maclean <[email protected]>
[refresh patches]
Signed-off-by: Mathias Kresin <[email protected]>
This pulls in Paul Kocialkowski's SOURCE_DATE_EPOCH support patch for u-boot,
which landed upstream circa July 2015. Note that this "host" u-boot repo is
only used to compile the 'mkimage' utility, and isn't used to actually compile
a bootloader for any target.

This patch could be removed if/when the host u-boot package is updated to a
contemporary version (but there doesn't seem to be any motivation/need to do
so).

Signed-off-by: bryan newbold <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [fix portability error, refresh patches]

SVN-Revision: 48542
Fixes build with GCC 6.

Signed-off-by: Matthias Schiffer <[email protected]>
The OpenSSL 1.1.x version series undergone some major API changes which made
the RSA structure opaque and deprecated a number of methods, so add some
conditional compat code to make the u-boot source build again.

Signed-off-by: Jo-Philipp Wich <[email protected]>
libressl sets OPENSSL_VERSION_NUMBER to 0x20000000L, which breaks API
checks based on it.

Signed-off-by: Felix Fietkau <[email protected]>
LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime()
on Linux.

Use pkg-config to portably discover the required linker flags.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Since linker argument order is significant on modern host compilers, pass
the required libcrypto libraries through the HOST_LOADLIBES variable in
order to ensure proper order of the final linker command line.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Update GNU findutils to the new stable version 4.6.0
Remove the patch for 32-bit buildhosts as the issue is fixed upstream.

Signed-off-by: Hannu Nyman <[email protected]>

SVN-Revision: 48991
glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1016

Signed-off-by: Alex Maclean <[email protected]>
Add a temporary workaround to compile with glibc 2.28
as some constants were removed and others made private

Signed-off-by: Luis Araneda <[email protected]>
-fixed-time <timestamp> set mkfs-timestamp and file-mtime to this timestamp.
Reproducible builds requires the removal of all timestamp or setting all to a specific one.

Signed-off-by: Alexander Couzens <[email protected]>

SVN-Revision: 47858
Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 47859
glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1018

Signed-off-by: Alex Maclean <[email protected]>
Fixes the following build error with GCC 10:
	/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `swap'; mksquashfs.o:(.bss+0x1b2a88): first defined here
And a compile warning.

Fixes: FS#3104, FS#3119
Signed-off-by: Hauke Mehrtens <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 47869
glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1017

Signed-off-by: Alex Maclean <[email protected]>
[refresh patches]
Signed-off-by: Mathias Kresin <[email protected]>
Remove usage of coccinelle tool because it doesn't work on all versions
of Ubuntu versions. So removed from tools and instead having it
installed in build machine.

gcc patch is required to compile on ubuntu 18

Change-Id: I5d50afab2add1a12611e3b3b298a8f0810c8ac14
Signed-off-by: Jie Yu <[email protected]>
Signed-off-by: Sirisha Mosalikanti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.