You are not logged in.

#1 2023-11-27 15:24:33

cdiamond
Member
Registered: 2012-02-01
Posts: 12

Cannot build pamac-aur or pamac-aur-git

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

#2 2023-11-27 15:37:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Cannot build pamac-aur or pamac-aur-git

Please post the full errors. Vague descriptions don't really help.

https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#3 2023-11-27 15:46:51

cdiamond
Member
Registered: 2012-02-01
Posts: 12

Re: Cannot build pamac-aur or pamac-aur-git

[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

#4 2023-11-27 15:56:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,594

Re: Cannot build pamac-aur or pamac-aur-git

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)

Online

#5 2023-11-27 16:01:13

cdiamond
Member
Registered: 2012-02-01
Posts: 12

Re: Cannot build pamac-aur or pamac-aur-git

Scimmia wrote:

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

#6 2023-11-27 16:05:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,594

Re: Cannot build pamac-aur or pamac-aur-git

Really? Because the problem seems to be in building libpamac

Online

#7 2023-11-27 16:15:11

cdiamond
Member
Registered: 2012-02-01
Posts: 12

Re: Cannot build pamac-aur or pamac-aur-git

Scimmia wrote:

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

#8 2023-11-27 18:58:43

espritlibre
Member
Registered: 2022-12-15
Posts: 129

Re: Cannot build pamac-aur or pamac-aur-git

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

Board footer

Powered by FluxBB