You are not logged in.
Build fails on appstream_plugin.c, I see colored error AS_FORMAT_STYLE_COLLECTION and proposal for AS_FORMAT_STYLE_LAST
I am on Plasma desktop.
Last edited by cdiamond (2023-11-27 15:29:49)
Offline
Please post the full errors. Vague descriptions don't really help.
Jin, Jîyan, Azadî
Offline
[108/154] Compiling C object src/libpamac-appstream.so.11.6.p/meson-generated_appstream_plugin.c.o
FAILED: src/libpamac-appstream.so.11.6.p/meson-generated_appstream_plugin.c.o
cc -Isrc/libpamac-appstream.so.11.6.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/appstream -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -O3 -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -pthread '-DGETTEXT_PACKAGE="pamac"' -MD -MQ src/libpamac-appstream.so.11.6.p/meson-generated_appstream_plugin.c.o -MF src/libpamac-appstream.so.11.6.p/meson-generated_appstream_plugin.c.o.d -o src/libpamac-appstream.so.11.6.p/meson-generated_appstream_plugin.c.o -c src/libpamac-appstream.so.11.6.p/appstream_plugin.c
src/libpamac-appstream.so.11.6.p/appstream_plugin.c: In function ‘pamac_appstream_real_load’:
src/libpamac-appstream.so.11.6.p/appstream_plugin.c:971:88: error: ‘AS_FORMAT_STYLE_COLLECTION’ undeclared (first use in this function); did you mean ‘AS_FORMAT_STYLE_LAST’?
971 | as_metadata_set_format_style (_tmp48_, AS_FORMAT_STYLE_COLLECTION);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| AS_FORMAT_STYLE_LAST
src/libpamac-appstream.so.11.6.p/appstream_plugin.c:971:88: note: each undeclared identifier is reported only once for each function it appears in
Offline
https://gitlab.manjaro.org/applications … /issues/36
It would have been helpful if you'd said what package actually failed to build.
Last edited by Scimmia (2023-11-27 15:58:43)
Offline
https://gitlab.manjaro.org/applications … /issues/36
It would have been helpful if you'd said what package actually failed to build.
both versions: pamac-aur and pamac-aur-git
Offline
Really? Because the problem seems to be in building libpamac
Offline
Really? Because the problem seems to be in building libpamac
it seems you are right, fails on dependency package.
Also tried libpamac-aur and libpamac-git and they failed with the same error.
Last edited by cdiamond (2023-11-27 16:16:56)
Offline
you can build libpamac-aur like this:
- download the snapshot on AUR
- download libpamac.diff you'll find the patch on the bottom of the link Scimmia posted,
- put the patch, libpamac.diff, in your directory where the PKGBUILD resides
- change your PKGBUILD's source and prepare section to pick up the patch like this:
...
source=("libpamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/libpamac-$_commit.tar.gz"
fix-appstream-data.sh fix-appstream-data.hook
libpamac.diff)
...
prepare() {
cd "$srcdir/libpamac-$_commit"
# adjust version string
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
patch -p1 -i ../libpamac.diff
}
...
NOTE: this way the package version remains if pkgver/pkgrel is untouched.
package builds fine this way
Offline