This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doc:howto:tce [2024/09/02 18:07] stefanbaur [Build system prerequisites for all variants] |
doc:howto:tce [2024/09/12 19:18] (current) stefanbaur [Starting the Build] added info output |
||
---|---|---|---|
Line 33: | Line 33: | ||
* Install the required package(s) by running: < | * Install the required package(s) by running: < | ||
* If you want to speed up subsequent builds, install the recommended package(s) by running: < | * If you want to speed up subsequent builds, install the recommended package(s) by running: < | ||
- | * If you want to be prepared to be able to cross-build across different architectures (e.g. building an ARM image on an Intel/AMD build host) - a feature coming soon - install the optional package(s) by running: < | + | * If you want to be prepared to be able to cross-build across different architectures (e.g. building an ARM image on an Intel/AMD build host) - a feature coming soon - install the optional package(s) by running: < |
===== Building your own X2Go-TCE Image ===== | ===== Building your own X2Go-TCE Image ===== | ||
Line 196: | Line 196: | ||
# | # | ||
# | # | ||
- | if dpkg --print-architecture | grep -q ' | + | if dpkg --print-architecture |
# on arm, these parameters must not be used; if they' | # on arm, these parameters must not be used; if they' | ||
if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' / | if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' / | ||
Line 494: | Line 494: | ||
# original mksquashfs call into a file. | # original mksquashfs call into a file. | ||
- | if (uname -r | grep -q ' | + | if (uname -m | grep -q ' |
+ | echo "INFO: using host-architecture mksquashfs from outside instead of the target-architecture one inside chroot." | ||
# We need to do this as a background task, waiting for the mksquashfs executable to | # We need to do this as a background task, waiting for the mksquashfs executable to | ||
# appear in the changeroot; as the changeroot will only be created later on, once | # appear in the changeroot; as the changeroot will only be created later on, once | ||
Line 556: | Line 557: | ||
#needs switch from e.g. / | #needs switch from e.g. / | ||
sed -e " | sed -e " | ||
+ | ./ | ||
+ | # if the mksquashfs command was missing, add it | ||
+ | grep -q mksquashfs ./ | ||
+ | sed -e "s#^ #$(which mksquashfs) #g" -i \ | ||
./ | ./ | ||
# now let's make this executable | # now let's make this executable |