I don't think it is the source but because the ebuild recreates a couple of files and therefore they have a different checksum.
I've worked around this by adding to the end of src_prepare():
Code: Select all
sed -i "s:ee4019f80b993cdb1bd13bf39434ad4f1ef15ae57a97594c53fb7b1d76d776a4:$(sha256sum ${S}/third_party/rust/backtrace-sys/src/libbacktrace/ltmain.sh | cut -d ' ' -f 1):" \
"${S}"/third_party/rust/backtrace-sys/.cargo-checksum.json || die
sed -i "s:2b45c89d06809c6ed49d70bfdf51a93e44370fc81f689169a073f47b14b366e5:$(sha256sum ${S}/third_party/rust/backtrace-sys/src/libbacktrace/configure | cut -d ' ' -f 1):" \
"${S}"/third_party/rust/backtrace-sys/.cargo-checksum.json || die
But then it fails with:
Code: Select all
process didn't exit successfully: `/var/tmp/portage/www-client/firefox-57.0.1-r1/work/firefox-57.0.1/ff/testing/geckodriver/./release/build/bzip2-sys-2df4d9d26581b387/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = Some("/usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = Some(" -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -march=ivybridge -pipe -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -freorder-blocks -O2 -fomit-frame-pointer ")
PROFILE = Some("release")
running: "/usr/bin/x86_64-pc-linux-gnu-gcc -std=gnu99" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=free-nonheap-object" "-Wformat" "-Wformat-security" "-march=ivybridge" "-pipe" "-fno-strict-aliasing" "-ffunction-sections" "-fdata-sections" "-fno-math-errno" "-pthread" "-pipe" "-freorder-blocks" "-O2" "-fomit-frame-pointer" "-m64" "-I" "bzip2-1.0.6" "-DBZ_NO_STDIO" "-o" "/var/tmp/portage/www-client/firefox-57.0.1-r1/work/firefox-57.0.1/ff/testing/geckodriver/./x86_64-unknown-linux-gnu/release/build/bzip2-sys-0ba348e4bd239980/out/bzip2-1.0.6/blocksort.o" "-c" "bzip2-1.0.6/blocksort.c"
failed to execute command: No such file or directory (os error 2)
Is `x86_64-pc-linux-gnu-gcc -std=gnu99` not installed?
Looks like the problem is that the value of HOST_CC includes an option but then when it is run the first string needs to be just the executable. Don't have a fix for this.
(Suggest adding at least geckodriver to the post title).