mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 01:28:53 +00:00
8908eb3037
Using this: tar cf - -C "/some/place" |tar xf - -C "/some/other/place" to copy a directory to another place does not properly fail (when it does). Using this instead: cp -av "/some/place" "/some/other/place" makes it easy to see why and how it failed. Impacted: libc/uClibc debug/ltrace tools/sstrip scripts/populate
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Build script for ltrace
|
|
|
|
do_debug_ltrace_get() {
|
|
CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
|
|
# Create a link so that the following steps are easier to do:
|
|
cd "${CT_TARBALLS_DIR}"
|
|
ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig")
|
|
ln -sf "ltrace_${CT_LTRACE_VERSION}.orig${ltrace_ext}" "ltrace-${CT_LTRACE_VERSION}${ltrace_ext}"
|
|
}
|
|
|
|
do_debug_ltrace_extract() {
|
|
CT_Extract "ltrace-${CT_LTRACE_VERSION}"
|
|
CT_Patch "ltrace-${CT_LTRACE_VERSION}"
|
|
# ltrace uses ppc instead of powerpc for the arch name
|
|
# create a symlink to get it to build for powerpc
|
|
CT_Pushd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/sysdeps/linux-gnu"
|
|
CT_DoExecLog ALL ln -sf ppc powerpc
|
|
CT_Popd
|
|
}
|
|
|
|
do_debug_ltrace_build() {
|
|
CT_DoStep INFO "Installing ltrace"
|
|
|
|
CT_DoLog EXTRA "Copying sources to build dir"
|
|
CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}" \
|
|
"${CT_BUILD_DIR}/build-ltrace"
|
|
CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
|
|
|
|
CT_DoLog EXTRA "Configuring ltrace"
|
|
CT_DoExecLog ALL \
|
|
./configure \
|
|
--build=${CT_BUILD} \
|
|
--host=${CT_TARGET} \
|
|
--prefix=/usr
|
|
|
|
CT_DoLog EXTRA "Building ltrace"
|
|
CT_DoExecLog ALL make
|
|
|
|
CT_DoLog EXTRA "Installing ltrace"
|
|
CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" install
|
|
|
|
CT_Popd
|
|
CT_EndStep
|
|
}
|
|
|