You are not logged in.

#1 2022-08-25 09:01:13

pig2014
Member
Registered: 2022-03-25
Posts: 7

[SOLVED] Makepkg causes "failed to write cache" error.

tl;dr
If makepkg causes "failed to write cache" (usually to a directory with fonts), use "--cleanbuild" could eliminate the error.

I'm creating a package for Collabora Online CODE Server
When packaging, makepkg says (full package log below):

/tmp/makepkg/collabora-online-server-git/src/instdir/share/fonts/truetype: failed to write cache

Manually follow the build guide on this page works fine (with or without fakeroot).
my PKGBUILD:

# Maintainer: Pig2014 <cattysteve89265@163.com>

pkgname=collabora-online-server-git
pkgver=22.05.5.3
pkgrel=1
pkgdesc="A collaborative online office suite based on LibreOffice technology"
url="https://collaboraonline.github.io"
arch=(x86_64)
license=("MPL")
depends=("libcap" "libcap-ng" "lib32-libcap" "libpng" "poco" "cppunit" "nodejs" "npm" "python-lxml" "python-polib")
makedepends=("chromium")
source=("git+https://github.com/CollaboraOnline/online.git"
        "https://github.com/CollaboraOnline/online/releases/download/for-code-assets/core-co-22.05-assets.tar.gz")
sha512sums=('SKIP'
            'a72d3f50a225775c0fede5d99bf5e4be5ac53625b0970d9cc82c0ab710a12962e804f663c41bbbffc43d4ba3bee2bdda2ec73f9943c46a958c96f8d74d2e5204')

prepare() {
    export LOCOREPATH=${srcdir}
    cd online
    ./autogen.sh
    ./configure --enable-silent-rules --with-lokit-path=${LOCOREPATH}/include --with-lo-path=${LOCOREPATH}/instdir --enable-cypress --disable-werror --prefix=${pkgdir}
}

build() {
    cd ${srcdir}/online
    make -j $(nproc)
}

package() {
    cd ${srcdir}/online
    make install
    cd ${pkgdir}/etc
    mkdir -p httpd/conf/extra
    mv apache2/conf-available/coolwsd.conf httpd/conf/extra/
}

Full package log:

Making install in .
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
Cleaning up...
wsd-184030-184030 2022-08-25 16:50:07.243172 +0800 [ coolwsd ] INF  Initializing wsd. Local time: Thu 2022-08-25 16:50:07 +0800. Log level is [8].| common/Log.cpp:328
wsd-184030-184030 2022-08-25 16:50:07.243326 +0800 [ coolwsd ] INF  Initializing coolwsd server []. Experimental features are disabled.| wsd/COOLWSD.cpp:2125
wsd-184030-184030 2022-08-25 16:50:07.243360 +0800 [ coolwsd ] INF  Anonymization of user-data is configurable.| wsd/COOLWSD.cpp:2133
wsd-184030-184030 2022-08-25 16:50:07.243380 +0800 [ coolwsd ] WRN  NOTE: both logging.anonymize.usernames and logging.anonymize.filenames are deprecated and superseded by logging.anonymize.anonymize_user_data. Please remove username and filename entries from the config and use only anonymize_user_data.| wsd/COOLWSD.cpp:2143
wsd-184030-184030 2022-08-25 16:50:07.243386 +0800 [ coolwsd ] WRN  Since logging.anonymize.anonymize_user_data is provided (false) in the config, it will be used.| wsd/COOLWSD.cpp:2147
wsd-184030-184030 2022-08-25 16:50:07.243424 +0800 [ coolwsd ] INF  Anonymization of user-data is disabled.| wsd/COOLWSD.cpp:2180
wsd-184030-184030 2022-08-25 16:50:07.243539 +0800 [ coolwsd ] INF  SSL support: SSL is enabled.| wsd/COOLWSD.cpp:2224
wsd-184030-184030 2022-08-25 16:50:07.243558 +0800 [ coolwsd ] INF  SSL support: termination is disabled.| wsd/COOLWSD.cpp:2225
wsd-184030-184030 2022-08-25 16:50:07.243581 +0800 [ coolwsd ] DBG  Setting envar PDFIMPORT_RESOLUTION_DPI=96 per config per_document.pdf_resolution_dpi| wsd/COOLWSD.cpp:2250
wsd-184030-184030 2022-08-25 16:50:07.243612 +0800 [ coolwsd ] INF  Cleaning up childroot directory [/tmp/makepkg/collabora-online-server-git/src/online/jails].| common/JailUtil.cpp:161
wsd-184030-184030 2022-08-25 16:50:07.243654 +0800 [ coolwsd ] TRC  Directory [/tmp/makepkg/collabora-online-server-git/src/online/jails] is not a directory or doesn't exist.| common/JailUtil.cpp:166
Forced Exit with code: 0
wsd-184030-184030 2022-08-25 16:50:07.243675 +0800 [ coolwsd ] FTL  Forced Exit with code: 0| common/Util.cpp:1096
mkdir -p /tmp/makepkg/collabora-online-server-git/src/online/jails
sudo /bin/setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep coolforkit && sudo /bin/setcap cap_sys_admin=ep coolmount
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/apache2/conf-available'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/doc/coolwsd'
 /usr/bin/install -c -m 644 etc/apache2/coolwsd.conf '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/apache2/conf-available'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/nginx/snippets'
 /usr/bin/install -c -m 644 coolwsd.xml coolkitconfig.xcu '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/man/man1'
 /usr/bin/install -c -m 644 discovery.xml favicon.ico '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd'
 /usr/bin/install -c -m 644 wsd/README wsd/README.vars wsd/protocol.txt wsd/reference.md wsd/metrics.txt '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/doc/coolwsd'
 /usr/bin/install -c coolwsd-systemplate-setup coolwsd-generate-proof-key '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
 /usr/bin/install -c -m 644 etc/nginx/coolwsd.conf '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/nginx/snippets'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
 /usr/bin/install -c -m 644 man/coolwsd.1 man/coolforkit.1 man/coolconvert.1 man/coolconfig.1 man/coolwsd-systemplate-setup.1 man/coolwsd-generate-proof-key.1 man/coolmount.1 '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/man/man1'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c coolforkit coolmount coolconvert coolconfig coolwsd '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
libtool: install: /usr/bin/install -c coolforkit /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolforkit
libtool: install: /usr/bin/install -c coolmount /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolmount
libtool: install: /usr/bin/install -c coolconvert /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolconvert
libtool: install: /usr/bin/install -c coolconfig /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolconfig
libtool: install: /usr/bin/install -c coolwsd /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolwsd
make  install-exec-hook
make[3]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
cd /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin && \
ln -s coolconfig loolconfig && \
ln -s coolwsd loolwsd && \
ln -s coolwsd-systemplate-setup loolwsd-systemplate-setup
make[3]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
Making install in browser
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make  install-am
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
build cool completed
cp -a  "./../cypress_test/data/multiuser/cypress-multiuser.html" "./dist/cypress-multiuser.html"
Added HTML file for multiuser tests
make[3]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[3]: Nothing to be done for 'install-exec-am'.
make  install-data-hook
make[4]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
mkdir -p /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd/browser; \
cp -a dist/ /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd/browser/;
make[4]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[3]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
Making install in test
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/test'

Running build-time unit tests.  For more thorough testing, please run 'make check'.
Test output is in /tmp/makepkg/collabora-online-server-git/src/online/test/test.log and is displayed on failure.

/tmp/makepkg/collabora-online-server-git/src/instdir/share/fonts/truetype: failed to write cache
make[1]: *** [Makefile:3412: all-local] Error 1
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/test'
make: *** [Makefile:5833: install-recursive] Error 1
[1m[31m==> ERROR:(B[m[1m A failure occurred in package().(B[m
[1m    Aborting...(B[m

Manually running make install:

Making install in .
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
Cleaning up...
wsd-185725-185725 2022-08-25 16:58:26.294044 +0800 [ coolwsd ] INF  Initializing wsd. Local time: Thu 2022-08-25 16:58:26 +0800. Log level is [8].| common/Log.cpp:328
wsd-185725-185725 2022-08-25 16:58:26.294077 +0800 [ coolwsd ] INF  Initializing coolwsd server []. Experimental features are disabled.| wsd/COOLWSD.cpp:2125
wsd-185725-185725 2022-08-25 16:58:26.294089 +0800 [ coolwsd ] INF  Anonymization of user-data is configurable.| wsd/COOLWSD.cpp:2133
wsd-185725-185725 2022-08-25 16:58:26.294099 +0800 [ coolwsd ] WRN  NOTE: both logging.anonymize.usernames and logging.anonymize.filenames are deprecated and superseded by logging.anonymize.anonymize_user_data. Please remove username and filename entries from the config and use only anonymize_user_data.| wsd/COOLWSD.cpp:2143
wsd-185725-185725 2022-08-25 16:58:26.294105 +0800 [ coolwsd ] WRN  Since logging.anonymize.anonymize_user_data is provided (false) in the config, it will be used.| wsd/COOLWSD.cpp:2147
wsd-185725-185725 2022-08-25 16:58:26.294114 +0800 [ coolwsd ] INF  Anonymization of user-data is disabled.| wsd/COOLWSD.cpp:2180
wsd-185725-185725 2022-08-25 16:58:26.294157 +0800 [ coolwsd ] INF  SSL support: SSL is enabled.| wsd/COOLWSD.cpp:2224
wsd-185725-185725 2022-08-25 16:58:26.294166 +0800 [ coolwsd ] INF  SSL support: termination is disabled.| wsd/COOLWSD.cpp:2225
wsd-185725-185725 2022-08-25 16:58:26.294178 +0800 [ coolwsd ] DBG  Setting envar PDFIMPORT_RESOLUTION_DPI=96 per config per_document.pdf_resolution_dpi| wsd/COOLWSD.cpp:2250
wsd-185725-185725 2022-08-25 16:58:26.294195 +0800 [ coolwsd ] INF  Cleaning up childroot directory [/tmp/makepkg/collabora-online-server-git/src/online/jails].| common/JailUtil.cpp:161
wsd-185725-185725 2022-08-25 16:58:26.294207 +0800 [ coolwsd ] TRC  Directory [/tmp/makepkg/collabora-online-server-git/src/online/jails] is not a directory or doesn't exist.| common/JailUtil.cpp:166
Forced Exit with code: 0
wsd-185725-185725 2022-08-25 16:58:26.294217 +0800 [ coolwsd ] FTL  Forced Exit with code: 0| common/Util.cpp:1096
mkdir -p /tmp/makepkg/collabora-online-server-git/src/online/jails
sudo /bin/setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep coolforkit && sudo /bin/setcap cap_sys_admin=ep coolmount
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c coolforkit coolmount coolconvert coolconfig coolwsd '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
libtool: install: /usr/bin/install -c coolforkit /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolforkit
libtool: install: /usr/bin/install -c coolmount /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolmount
libtool: install: /usr/bin/install -c coolconvert /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolconvert
libtool: install: /usr/bin/install -c coolconfig /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolconfig
libtool: install: /usr/bin/install -c coolwsd /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin/coolwsd
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
 /usr/bin/install -c coolwsd-systemplate-setup coolwsd-generate-proof-key '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin'
make  install-exec-hook
make[3]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online'
cd /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/bin && \
ln -s coolconfig loolconfig && \
ln -s coolwsd loolwsd && \
ln -s coolwsd-systemplate-setup loolwsd-systemplate-setup
make[3]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/apache2/conf-available'
 /usr/bin/install -c -m 644 etc/apache2/coolwsd.conf '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/apache2/conf-available'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/coolwsd'
 /usr/bin/install -c -m 644 coolwsd.xml coolkitconfig.xcu '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd'
 /usr/bin/install -c -m 644 discovery.xml favicon.ico '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/doc/coolwsd'
 /usr/bin/install -c -m 644 wsd/README wsd/README.vars wsd/protocol.txt wsd/reference.md wsd/metrics.txt '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/doc/coolwsd'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/man/man1'
 /usr/bin/install -c -m 644 man/coolwsd.1 man/coolforkit.1 man/coolconvert.1 man/coolconfig.1 man/coolwsd-systemplate-setup.1 man/coolwsd-generate-proof-key.1 man/coolmount.1 '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/man/man1'
 /usr/bin/mkdir -p '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/nginx/snippets'
 /usr/bin/install -c -m 644 etc/nginx/coolwsd.conf '/tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/etc/nginx/snippets'
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online'
Making install in browser
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make  install-am
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
build cool completed
cp -a  "./../cypress_test/data/multiuser/cypress-multiuser.html" "./dist/cypress-multiuser.html"
Added HTML file for multiuser tests
make[3]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[3]: Nothing to be done for 'install-exec-am'.
make  install-data-hook
make[4]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
mkdir -p /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd/browser; \
cp -a dist/ /tmp/makepkg/collabora-online-server-git/pkg/collabora-online-server-git/share/coolwsd/browser/;
make[4]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[3]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/browser'
Making install in test
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/test'

Running build-time unit tests.  For more thorough testing, please run 'make check'.
Test output is in /tmp/makepkg/collabora-online-server-git/src/online/test/test.log and is displayed on failure.

Done test all-local
Cleaning up...
wsd-185926-185926 2022-08-25 16:58:26.844225 +0800 [ coolwsd ] INF  Initializing wsd. Local time: Thu 2022-08-25 16:58:26 +0800. Log level is [8].| common/Log.cpp:328
wsd-185926-185926 2022-08-25 16:58:26.844264 +0800 [ coolwsd ] INF  Initializing coolwsd server []. Experimental features are disabled.| wsd/COOLWSD.cpp:2125
wsd-185926-185926 2022-08-25 16:58:26.844272 +0800 [ coolwsd ] INF  Anonymization of user-data is configurable.| wsd/COOLWSD.cpp:2133
wsd-185926-185926 2022-08-25 16:58:26.844279 +0800 [ coolwsd ] WRN  NOTE: both logging.anonymize.usernames and logging.anonymize.filenames are deprecated and superseded by logging.anonymize.anonymize_user_data. Please remove username and filename entries from the config and use only anonymize_user_data.| wsd/COOLWSD.cpp:2143
wsd-185926-185926 2022-08-25 16:58:26.844295 +0800 [ coolwsd ] WRN  Since logging.anonymize.anonymize_user_data is provided (false) in the config, it will be used.| wsd/COOLWSD.cpp:2147
wsd-185926-185926 2022-08-25 16:58:26.844303 +0800 [ coolwsd ] INF  Anonymization of user-data is disabled.| wsd/COOLWSD.cpp:2180
wsd-185926-185926 2022-08-25 16:58:26.844342 +0800 [ coolwsd ] INF  SSL support: SSL is enabled.| wsd/COOLWSD.cpp:2224
wsd-185926-185926 2022-08-25 16:58:26.844349 +0800 [ coolwsd ] INF  SSL support: termination is disabled.| wsd/COOLWSD.cpp:2225
wsd-185926-185926 2022-08-25 16:58:26.844359 +0800 [ coolwsd ] DBG  Setting envar PDFIMPORT_RESOLUTION_DPI=96 per config per_document.pdf_resolution_dpi| wsd/COOLWSD.cpp:2250
wsd-185926-185926 2022-08-25 16:58:26.844374 +0800 [ coolwsd ] INF  Cleaning up childroot directory [/tmp/makepkg/collabora-online-server-git/src/online/jails].| common/JailUtil.cpp:161
wsd-185926-185926 2022-08-25 16:58:26.844389 +0800 [ coolwsd ] TRC  Directory [/tmp/makepkg/collabora-online-server-git/src/online/jails] is not a jail, recursing.| common/JailUtil.cpp:178
wsd-185926-185926 2022-08-25 16:58:26.844410 +0800 [ coolwsd ] DBG  Removing [/tmp/makepkg/collabora-online-server-git/src/online/jails/tmp] recursively.| common/FileUtil.cpp:252
wsd-185926-185926 2022-08-25 16:58:26.844426 +0800 [ coolwsd ] DBG  Unmounting [/tmp/makepkg/collabora-online-server-git/src/online/jails]| common/JailUtil.cpp:67
wsd-185926-185926 2022-08-25 16:58:26.844437 +0800 [ coolwsd ] TRC  Executing coolmount command: /tmp/makepkg/collabora-online-server-git/src/online/coolmount -u  /tmp/makepkg/collabora-online-server-git/src/online/jails| common/JailUtil.cpp:36
Security: coolmount incorrect user-name, other than 'cool'
Aborting.
wsd-185926-185926 2022-08-25 16:58:26.848022 +0800 [ coolwsd ] DBG  Failed to unmount [/tmp/makepkg/collabora-online-server-git/src/online/jails]| common/JailUtil.cpp:80
wsd-185926-185926 2022-08-25 16:58:26.848040 +0800 [ coolwsd ] DBG  Removing [/tmp/makepkg/collabora-online-server-git/src/online/jails] only.| common/FileUtil.cpp:252
Forced Exit with code: 0
wsd-185926-185926 2022-08-25 16:58:26.848061 +0800 [ coolwsd ] FTL  Forced Exit with code: 0| common/Util.cpp:1096
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/test'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/test'
Making install in cypress_test
make[1]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/cypress_test'
make[2]: Entering directory '/tmp/makepkg/collabora-online-server-git/src/online/cypress_test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/cypress_test'
make[1]: Leaving directory '/tmp/makepkg/collabora-online-server-git/src/online/cypress_test'

Any help is appreciated!

Last edited by pig2014 (2022-08-26 02:46:05)

Offline

#2 2022-08-25 09:25:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,430

Re: [SOLVED] Makepkg causes "failed to write cache" error.

Have you tried building/running/changing BUILDDIR for makepkg outside of /tmp? Unless configured otherwise, /tmp is a ramdisk filesystem taking up to half of your RAM for it's operation. It isn't really suited for in place building of large code bases. FWIW regarding the PKGBUILD on a glance, you don't want to make -j ${nproc} directly in the PKGBUILD, use the MAKEFLAGS config for makepkg: https://wiki.archlinux.org/title/Makepk … pile_times and you should quote all path variables, since you generally don't know where $srcdir and $pkgdir point to and they could be in a path with spaces.

Last edited by V1del (2022-08-25 09:30:29)

Offline

#3 2022-08-25 11:10:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,033

Re: [SOLVED] Makepkg causes "failed to write cache" error.

--prefix=${pkgdir}

when using confgiure - make, --prefix is typically set to the location where the files need to be found after installing a package.
/usr  & /opt are common values for prefix .

something like make DESTDIR="${pkgdir}" install is then used to get the files into $pkgdir .

I also feel ./configure should be done in build() instead of prepare .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2022-08-25 12:11:53

pig2014
Member
Registered: 2022-03-25
Posts: 7

Re: [SOLVED] Makepkg causes "failed to write cache" error.

V1del wrote:

Have you tried building/running/changing BUILDDIR for makepkg outside of /tmp? Unless configured otherwise, /tmp is a ramdisk filesystem taking up to half of your RAM for it's operation. It isn't really suited for in place building of large code bases. FWIW regarding the PKGBUILD on a glance, you don't want to make -j ${nproc} directly in the PKGBUILD, use the MAKEFLAGS config for makepkg: https://wiki.archlinux.org/title/Makepk … pile_times and you should quote all path variables, since you generally don't know where $srcdir and $pkgdir point to and they could be in a path with spaces.

The first time I build it after moving BUILDDIR (commented corresponding line in makepkg.conf) it works, but the second time it fails again.
Does it mean "--cleanbuild" is required?

Other problems in PKGBUILD are fixed, thanks you all!

Last edited by pig2014 (2022-08-25 12:13:38)

Offline

#5 2022-08-25 13:51:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,430

Re: [SOLVED] Makepkg causes "failed to write cache" error.

Possibly, this depends on how the upstream project is structured.

Offline

Board footer

Powered by FluxBB