Perl+c23#270
Merged
Merged
Conversation
jkloetzke
reviewed
Aug 23, 2025
Member
No, we can leave them in here. |
Contributor
Author
|
Thanks for the feedback 👍 I'll rework it following your suggestions but it might take some time to recompile everything... |
a4c2081 to
8dffa54
Compare
Bash has CFLAGS and CFLAGS_FOR_BUILD. CFLAGS are used for (cross)compiling bash, while CFLAGS_FOR_BUILD are used with the host-gcc. Therefore, the CROSS_COMPILE information needs to be at CFLAGS instead of CFLAGS_FOR_BUILD. Otherwise, the wrong settings detected by configure are picked up.
Apply a buildroot patch to fix compile with gcc15.
gcc15 has c23 enabled by default. Apply a patch to the bundled glib.
Our host-compat-toolchain uses glibc 2.31 ATM. This version still had libcrypt support which was later removed in glibc 2.38. Since we have glibc 2.39 the is no libxcrypt in the sandbox and thus tools linked shared against the host-compat toolchains libcrypt can not be started without libxcrypt.
Using an absolute path for the interpreter breaks if the interpreter is installed somewhere else. Add a helper function to replace the absolute path by '/usr/bin/env <interpreter>'. In case the interpreter is called with arguments, `env -S` must be used. This only works for coreutils-env and is not supported by busybox 'env'.
The sandbox toolchain doesn't provide a CROSS_COMPILE or a TOOLCHAIN_SYSROOT environment.
For cross compiling perl modules we need to keep some development files which are usually not required on the target. Provide a perl-dev package to make them useable. Also apply some patches from openembedded to make it possible to cross-compile perl modules.
This class picks up perl modules from the dependencies and builds the PERL5LIB search path.
This class configures the necessary environment for cross compilation of perl modules.
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The reason for this change is to add support for perl modules as needed for example by graphviz (see BobBuildTool/basement-gnu-linux#5)
It seams to be crucial to have the same environment when compiling perl and the perl module, which is not the case if perl is in the sandbox / the host perl and the module is build using the host-compat-toolchain. By using perl as a regular tool perl modules can be used like python modules.
As a new sandbox is necessary I run into #268. The fixes are also added here for now. I can separate the PR's if you want to.