You are not logged in.

#1 Yesterday 15:24:48

korimitsu
Member
Registered: 2016-08-14
Posts: 180

[Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Last part of log:

make[3]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/src'
make[2]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/src'
Making all in bindings
make[2]: Entering directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings'
Making all in mono
make[3]: Entering directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono'
Making all in .
make[4]: Entering directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono'
sed '/signals\[X_NEW_LABEL\] /,+6d' ../../src/app-indicator.c > app-indicator.c
/usr/bin/gapi2-parser app-indicator.sources.xml
<file ../../bindings/mono/app-indicator.c> <file ../../src/app-indicator-enum-types.c> <file ../../src/app-indicator-enum-types.h> <file ../../src/app-indicator.h>
Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC entries checked: /usr/lib/perl5/5.42/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.42/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.42/core_perl /usr/share/perl5/core_perl) at /usr/lib/gtk-sharp-2.0/gapi2xml.pl line 27.
BEGIN failed--compilation aborted at /usr/lib/gtk-sharp-2.0/gapi2xml.pl line 27.
Unable to flush stdout: Broken pipe

Unhandled Exception:
System.IO.FileNotFoundException: Could not find file "/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono/libappindicator-api.raw.pre"
File name: '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono/libappindicator-api.raw.pre'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <296872a6734f443990477e3abd954b57>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <296872a6734f443990477e3abd954b57>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.Xml.XmlDownloadManager.GetStream (System.Uri uri, System.Net.ICredentials credentials, System.Net.IWebProxy proxy, System.Net.Cache.RequestCachePolicy cachePolicy) [0x00018] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00032] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.OpenUrlDelegate (System.Object xmlResolver) [0x0000c] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.OpenUrl () [0x0005e] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.Read () [0x00093] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) [0x000a6] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x0002e] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlDocument.Load (System.String filename) [0x00013] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at GtkSharp.Parsing.Parser.Main (System.String[] args) [0x0066b] in <55ea8970ec114dfcad38afc70dcf7034>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not find file "/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono/libappindicator-api.raw.pre"
File name: '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono/libappindicator-api.raw.pre'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <296872a6734f443990477e3abd954b57>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <296872a6734f443990477e3abd954b57>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.Xml.XmlDownloadManager.GetStream (System.Uri uri, System.Net.ICredentials credentials, System.Net.IWebProxy proxy, System.Net.Cache.RequestCachePolicy cachePolicy) [0x00018] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00032] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.OpenUrlDelegate (System.Object xmlResolver) [0x0000c] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.OpenUrl () [0x0005e] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlTextReaderImpl.Read () [0x00093] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) [0x000a6] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x0002e] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at System.Xml.XmlDocument.Load (System.String filename) [0x00013] in <0c48fda307ce4ff79f67cef2930bdb1f>:0
  at GtkSharp.Parsing.Parser.Main (System.String[] args) [0x0066b] in <55ea8970ec114dfcad38afc70dcf7034>:0
make[4]: *** [Makefile:817: libappindicator-api.raw] Error 1
make[4]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono'
make[3]: *** [Makefile:538: all-recursive] Error 1
make[3]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings/mono'
make[2]: *** [Makefile:411: all-recursive] Error 1
make[2]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator/bindings'
make[1]: *** [Makefile:477: all-recursive] Error 1
make[1]: Leaving directory '/home/korimitsu/.cache/paru/clone/libappindicator-gtk2/src/libappindicator'
make: *** [Makefile:408: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'libappindicator-gtk2-12.10.0.r298-5':
error: packages failed to build: libappindicator-gtk2-12.10.0.r298-5

Full log: https://pastebin.com/2XWeRmai

Last edited by korimitsu (Today 18:37:13)

Offline

#2 Yesterday 15:28:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,116

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

% pacman -F LibXML.pm
extra/perl-xml-libxml 2.0210-4
    usr/lib/perl5/5.42/vendor_perl/XML/LibXML.pm

Likely pulling in extra stuff because you're not building in a clean chroot.

Edit: and flagging a package as out of date because you don't know how to build it? Is there a new version out? No? Then why do you think it out of date? Think beyond your stupid helper script.

Last edited by Scimmia (Yesterday 15:35:33)

Offline

#3 Yesterday 17:37:55

apozio
Member
Registered: 2025-10-26
Posts: 3

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

It's more complex that that.

Offline

#4 Yesterday 17:54:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,116

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

apozio wrote:

It's more complex that that.

Does it not build in a clean chroot?

Offline

#5 Yesterday 18:11:56

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Scimmia wrote:

Does it not build in a clean chroot?

I assumed the question was not rhetorical.  It does build for me in a clean chroot after clean chroot building the other AUR dependencies.

Offline

#6 Yesterday 19:28:44

korimitsu
Member
Registered: 2016-08-14
Posts: 180

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

I didn't try yet so I guess the dependencies in the PKGBUILD are not correct? Why a clean chroot is required at all?

Offline

#7 Yesterday 20:01:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,567

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

The package doesn't seem to depend on https://aur.archlinux.org/packages/gtk-sharp-2 but its presence triggers build code that would then also require perl-xml-libxml
gtk-sharp-2 seems to have only recently been dropped from extra - stale package?

Edit, @apozio - wtf are you talking about?

Last edited by seth (Yesterday 20:01:52)

Offline

#8 Yesterday 21:22:35

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

I am working on seeing if I can correct the dependencies/build issues and get a build working. If I can, and only if, I will adopt the package and push up a fix. Any guidance, should I run into issues, would be greatly appreciated as while I'm fairly experienced with software development and such I will admit that this particular software stack is not one I'm as familiar with.

Offline

#9 Yesterday 21:37:37

NuSkool
Member
Registered: 2015-03-23
Posts: 281

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

This looks like a nice test for my AUR helper https://github.com/Cody-Learner/aurch
Seems to build alright in the 'dirty' persistent container mode....
I didn't try using the packages after building though.


$ aurch -B libappindicator-gtk2

....

:: aurch ==> Copied and registered the following pkgs to host AUR repo: /usr/local/aurch/repo

             gtk2-2.24.33-5
             libappindicator-gtk2-12.10.0.r298-5
             libdbusmenu-gtk2-16.04.0.r498-3

Build output: http://0x0.st/K_ZJ.txt

The PKGBUILD used:

# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
# Contributor: FadeMind <fademind at gmail dot com>
# Contributor: Maxime Gauduin <alucryd at archlinux dot org>
# Contributor: bitwave <aur at oomlu dot de>
# Contributor: willemw <willemw12 at gmail dot com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=libappindicator-gtk2
_pkgname=libappindicator
_bzrtag=12.10.0
_bzrrev=298
pkgver=${_bzrtag}.r${_bzrrev}
pkgrel=5
pkgdesc='Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 2 library)'
url='https://launchpad.net/libappindicator'
arch=('x86_64')
license=('GPL-3.0-only')
depends=('glib2' 'glibc' 'gtk2' 'libdbusmenu-glib' 'libdbusmenu-gtk2')
makedepends=('breezy' 'dbus-glib' 'glib2-devel' 'gnome-common' 'gobject-introspection' 'gtk-doc' 'vala')
options=('!emptydirs')
source=($_pkgname::bzr+https://code.launchpad.net/~indicator-applet-developers/libappindicator/trunk#revision=$_bzrrev
        libappindicator-fix-unfallback.patch)
sha512sums=('023cb633e9750e279b19a6dc2d42d37bfc15d6c992017be3a6b71881579654578e9da3058d44ab400752f86411a362e676abb217ca47f14d24e43e6c26107f4d'
            'ace190fea1b0e21fb164ff531788ce8c2ad9fc00c23227a75d844b1c89f78e8da705f35dac09677f92f053561f89a9c0a73b23af07cb22f9fdaa28afbd10a516')
validpgpkeys=('6FC05581A37D71FCECE165DB5BE41E162CD6358E')  # Charles Kerr <charles.kerr@canonical.com>

prepare() {
  cd ${_pkgname}

  # Fix unfallback from status icon
  patch -Np0 -i ../libappindicator-fix-unfallback.patch

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd ${_pkgname}
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --with-gtk=2 \
    --disable-introspection
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd ${_pkgname}
  make -j1 DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et:

EDIT: Used as provided unedited PKGBUILD

Last edited by NuSkool (Yesterday 21:53:12)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

#10 Yesterday 21:47:21

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

@glek why do you believe there is anything to fix?  You are aware how long GTK2 has been end of life for?  Would it not be better to work on porting whatever requires libappindicator-gtk2 to GTK3 or newer?

Offline

#11 Yesterday 21:49:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,567

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Your primary concern will be https://code.launchpad.net/libappindicator

Launchpad will shut down the Bazaar codehosting service soon. Active projects must be migrated to Git.

The (not browsable…) sources include a configure script which probably has a mono/csharp-related option you need to take control of and either disable it or enable it and require (at least) https://aur.archlinux.org/packages/gtk-sharp-2 and perl-xml-libxml

Offline

#12 Yesterday 21:57:04

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

@loqs There are other packages that are depending on this new AUR package and there's clearly a desire for people to have this package be at least compiling in the short term. I am not advocating for this package to be fixed in the sense of "improved", "made relevant again", or anything of that nature. I am simply advocating that it not be completely broken.

@seth Thank you for the suggestions. Looks like the main issue is that `make` is not picking up Mono's compiler because it's expecting it to be named `mono-csc` instead of what it is now (just `csc`). I'm going to think for a bit on if this is resolvable cleanly or if, to @loqs point, this is enough of an issue to make this package not worth salvaging.

Offline

#13 Yesterday 22:05:06

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Okay, looks like I got it to build. Solution was, in addition to the dependency issues, to pass `CSC=csc` to `make` to tell it what C# compiler to use. Glad I've tinkered with `make` in the past!

I've run the working build through my AUR helper and also through `makepkg` separately and both are working okay. Adopting and pushing a fix now.

Offline

#14 Yesterday 22:06:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,567

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Fwwi, I'd say the package was previously simply built w/o any mono/c-sharp bindings.

Offline

#15 Yesterday 22:12:29

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Probably but that's not in the current `PKGBUILD` setup. I can investigate making that change now that it's building again.

Offline

#16 Yesterday 22:22:35

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

glek wrote:

Probably but that's not in the current `PKGBUILD` setup.

Yes it is.  There is no C# in any dependency of the PKGBUILD so in a clean chroot C# will not be found/used.  You can confirm this by examining the .BUILDINFO from https://archive.archlinux.org/packages/ … kg.tar.zst.

Offline

#17 Yesterday 22:26:46

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

@loqs yes but the issue people are running into on the AUR is that if you have Mono installed on your system the autoconfiguration script will still find it and enable Mono support unless you explicitly tell it not to. I ran into this exact issue. It finds the Mono executable but not the Mono compiler and the build fails.

Offline

#18 Yesterday 22:30:22

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Build in a clean chroot and there is no issue.

Offline

#19 Yesterday 22:31:39

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

So your expectation is that everyone should build in a clean chroot?

Offline

#20 Yesterday 22:37:09

NuSkool
Member
Registered: 2015-03-23
Posts: 281

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

IIRC don't several of the popular AUR helpers have a 'build  in clean chroot' build option?

My AUR helper builds it as is, using a single command per above.

Last edited by NuSkool (Yesterday 22:38:36)


Scripts I Use                                                 :  https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo    : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo    : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics

Offline

#21 Yesterday 22:38:31

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

You are aware that is the only supported way for Arch packages?  At least for packages in the official repositories it is required that packages are built in a clean chroot and nothing else is supported which would apply to libappindicator-gtk2 before it was moved to AUR today.  There is no requirement for an AUR package to support none clean chroot builds.  There is a requirement it does build in a clean chroot.

As an aside why require users of libappindicator-gtk2 to have gtk-sharp-2 and mono installed instead of disbaling C# support?

Offline

#22 Yesterday 22:54:37

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

loqs wrote:

You are aware that is the only supported way for Arch packages?  At least for packages in the official repositories <snipped>

We're not dealing with an official package anymore so this is moot point.

loqs wrote:

There is no requirement for an AUR package to support none clean chroot builds.  There is a requirement it does build in a clean chroot.

I agree. There is no requirement for an AUR package to support non-clean chroot builds. I would consider it good form for them to not break, though, in a non-clean chroot environment. Which is something I am currently trying to fix.

loqs wrote:

As an aside why require users of libappindicator-gtk2 to have gtk-sharp-2 and mono installed instead of disbaling C# support?

It was the quickest route to a working build while I continued (and am continuing) to try to disable the C# requirement. This package is a dependency of "lib32-libappindicator-gtk2" for some unknown reason which in turn is a dependency of "steam-native-runtime" so anyone who is using that package is going to get some unwelcome messages from their AUR helpers/`makepkg` scripts when they go to update next.

Offline

#23 Yesterday 23:01:45

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Actually, it looks like the "steam-native-runtime" package and QUITE a few of its 32-bit dependencies were dumped to the AUR. What happened there?

Offline

#24 Yesterday 23:02:59

loqs
Member
Registered: 2014-03-06
Posts: 18,642

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Still a hack but removes the need for mono:

prepare() {
  cd ${_pkgname}

  # Fix unfallback from status icon
  patch -Np0 -i ../libappindicator-fix-unfallback.patch

  # Do not use mono
  sed -i 's/has_mono=true/has_mono=false/' configure.ac

  NOCONFIGURE=1 ./autogen.sh
}

Edit:

glek wrote:

Actually, it looks like the "steam-native-runtime" package and QUITE a few of its 32-bit dependencies were dumped to the AUR. What happened there?

Removed as it required gtk2 https://gitlab.archlinux.org/archlinux/ … -/issues/2.

Last edited by loqs (Yesterday 23:06:22)

Offline

#25 Yesterday 23:06:46

glek
Member
From: Alberta, Canada
Registered: 2017-01-17
Posts: 15
Website

Re: [Solved] error: failed to build libappindicator-gtk2-12.10.0.r298-5

Yeah, that did the trick. Thank you! I'll update the package on AUR as well as the 32-bit variant since it should follow the same build patterns.

Ioqs wrote:

Ahhh, okay. That's completely fair though I kind of wish they'd at least made sure it was working before flipping the switch. But alas.

Last edited by glek (Yesterday 23:09:10)

Offline

Board footer

Powered by FluxBB