getting the following build error:
==> Starting build()...
ERROR at //core/fxcrt/BUILD.gn:139:15: Unable to load "/distro/local/repository/libpdfium-nojs/src/pdfium/base/allocator/partition_allocator/BUILD.gn".
deps += [ "//base/allocator/partition_allocator:partition_alloc" ]
^-----------------------------------------------------
==> ERROR: A failure occurred in build().
Aborting...
it looks like that BUILD.gn file is missing:
ll /distro/local/repository/libpdfium-nojs/src/pdfium/base/allocator/partition_allocator/BUILD.gn
ls: cannot access '/distro/local/repository/libpdfium-nojs/src/pdfium/base/allocator/partition_allocator/BUILD.gn': No such file or directory
Edit: actually, the entire src/pdfium/base directory is missing
Edit2: error confirmed on clean build also
Edit3: fixing this error caused yet more errors. to fix this one, you have to check out https://chromium.googlesource.com/chromium/src/base, then symlink it into the source tree: ln -sf $srcdir/base base.
source=("git+https://pdfium.googlesource.com/pdfium"
"git+https://chromium.googlesource.com/chromium/src/build.git"
"git+https://chromium.googlesource.com/chromium/src/base"
"git+https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp"
"libpdfium.pc"
)
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'feb270967925a0844b1b9a9e15288eb3'
)
pkgver() {
cd $srcdir/pdfium
# Version = branch name/number + number of commits since branch creation
# + short head
printf "%s.r%s.%s" $(git rev-parse --abbrev-ref HEAD | cut -d '/' -f2)\
$(git rev-list --count main..) $(git rev-parse --short HEAD)
}
prepare() {
cd "$srcdir/pdfium"
ln -sf $srcdir/build build
ln -sf $srcdir/base base
ln -sf $srcdir/abseil-cpp third_party/abseil-cpp
...
this fix gets you to about 57 modules out of 741.
the next error is because of more missing parts in the source tree, specifically googletest. but any attempt to fix it causes a circular include dependency - i haven;t figured out how to resolve it yet and whether or not i should be resolving this.
is there a maintainer for this project who might add something here?
Pinned Comments
selmf commented on 2021-05-24 11:20 (UTC)
Important: This package depends on libicuuc and needs to be rebuild if the icu package is updated on your system!