You are not logged in.
Being annoyed by high ram usage by cairo apps with nvidia drivers (this issue), tried to build cairo-git package from AUR without --enable-gl and --enable-egl, but unexpectedly encountered something awry.
After $ makepkg -rs on live machine with gnome3 and proprietery nvidia driver terminal said, that it wants to remove nvidia-340xx-libgl, because it conflicts with mesa-libgl. I got spooked by this thing and went to virtualbox Arch with mesa, where tried to do the same, and for a few seconds everything seemed to be doing fine, but than terminal said, that there's an error in line 36 of pkgbuild file: --enable-svg: command not found, and refused to proceed.
I've already built this cairo without --enable-gl in some other distros, but in Arch somehow I successfully failed.
What am I doing wrong?..
Last edited by ebrilo (2016-12-04 19:52:10)
Offline
Post the PKGBUILD as you are using it.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Here comes the pkgbuild..
# Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
# Contributor: dx <dx@dxzone.com.ar>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=cairo-git
epoch=1
pkgver=1.14.2.r6.g7139265
pkgrel=1
pkgdesc="Cairo vector graphics library (git version)"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman>=0.28.0' 'glib2' 'mesa' 'libgl' 'lzo')
makedepends=('mesa-libgl' 'librsvg' 'gtk2' 'poppler-glib' 'libspectre' 'gtk-doc' 'valgrind' 'git')
provides=("cairo=$pkgver" "cairo-xcb=$pkgver")
conflicts=('cairo' 'cairo-xcb')
source=('git://anongit.freedesktop.org/git/cairo')
sha1sums=('SKIP')
pkgver() {
cd cairo
git describe --long --tags | sed 's/-/.r/;s/-/./'
}
build() {
cd cairo
./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
#--enable-gl \
#--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-gobject \
--enable-gtk-doc
make
}
package(){
cd cairo
make DESTDIR="${pkgdir}" install
}
Please note - lines with --enable-gl and --enable-egl were disabled by me.
Offline
Rather than commenting them out, remove the unwanted lines. Leaving them in the middle of the autogen.sh arguments breaks the flow.
Last edited by WorMzy (2016-12-04 12:16:10)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks, I'll try in a few hours and report back. But have to say, that three years ago I successfully managed to build cairo (actually, than I had to build only libcairo.so, as I did'n need anything else) in ALTLinux distro, but, hmm, there I had to use traditional way of ./configure, make, etc, and commented --enable-gl and --enable-egl in makefile.. Didn't know, that pkgbuild syntax doesn't allow commenting lines out, thanks.
Offline
PKGBUILDs are just bash, they "support" comments just like any other bash scripts, but the way that particular PKGBUILD is written (using backslashes to escape newlines in order to split up the arguments to autogen.sh) means that commented lines break the flow. The first commented line was treated as the end of the arguments being passed to autogen.sh, so --enable-svg was treated as a new command.
Please remember to mark your thread as solved.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Throne, didn't notice those backslashes. It's so hard to be a fool..
Will try to build it in a few hours.
Offline
Thanks once again, WorMzy. Everything works fine.
$ free with --enable-gl and --enable-egl:
total used free shared buff/cache available
Mem: 12298344 613440 11340028 1352 344876 11434072
Swap: 8368124 0 8368124
# ps_mem with --enable-gl and --enable-egl:
Private + Shared = RAM used Program
212.0 KiB + 97.0 KiB = 309.0 KiB xinit
360.0 KiB + 124.5 KiB = 484.5 KiB rtkit-daemon
740.0 KiB + 194.0 KiB = 934.0 KiB gvfsd-metadata
440.0 KiB + 514.5 KiB = 954.5 KiB startx
892.0 KiB + 123.0 KiB = 1.0 MiB dconf-service
836.0 KiB + 195.5 KiB = 1.0 MiB gvfs-goa-volume-monitor
872.0 KiB + 225.5 KiB = 1.1 MiB at-spi-bus-launcher
964.0 KiB + 184.5 KiB = 1.1 MiB gvfs-mtp-volume-monitor
936.0 KiB + 265.0 KiB = 1.2 MiB gconfd-2
720.0 KiB + 569.5 KiB = 1.3 MiB systemd-logind
1.0 MiB + 292.0 KiB = 1.3 MiB gvfsd
1.0 MiB + 281.0 KiB = 1.3 MiB at-spi2-registryd
1.1 MiB + 212.5 KiB = 1.3 MiB accounts-daemon
704.0 KiB + 665.0 KiB = 1.3 MiB (sd-pam)
1.1 MiB + 340.0 KiB = 1.4 MiB login
1.2 MiB + 224.0 KiB = 1.4 MiB gvfs-gphoto2-volume-monitor
992.0 KiB + 511.0 KiB = 1.5 MiB bash
1.3 MiB + 374.5 KiB = 1.6 MiB gvfsd-trash
1.2 MiB + 613.5 KiB = 1.8 MiB gvfs-afc-volume-monitor
1.6 MiB + 229.5 KiB = 1.8 MiB wpa_supplicant
1.5 MiB + 379.0 KiB = 1.8 MiB zeitgeist-daemon
1.5 MiB + 455.0 KiB = 2.0 MiB sudo
2.0 MiB + 99.5 KiB = 2.1 MiB systemd-udevd
1.8 MiB + 326.5 KiB = 2.1 MiB goa-identity-service
2.0 MiB + 282.5 KiB = 2.2 MiB gnome-keyring-daemon
1.9 MiB + 505.0 KiB = 2.4 MiB gvfs-udisks2-volume-monitor
1.8 MiB + 642.5 KiB = 2.5 MiB upowerd
2.4 MiB + 644.0 KiB = 3.0 MiB cupsd
2.5 MiB + 586.0 KiB = 3.0 MiB dbus-daemon (3)
2.1 MiB + 1.1 MiB = 3.2 MiB mission-control-5
3.2 MiB + 160.5 KiB = 3.3 MiB gvfsd-fuse
3.1 MiB + 517.0 KiB = 3.6 MiB zeitgeist-fts
2.8 MiB + 1.0 MiB = 3.8 MiB gnome-shell-calendar-server
1.6 MiB + 2.5 MiB = 4.1 MiB systemd (2)
4.2 MiB + 330.0 KiB = 4.5 MiB udisksd
3.7 MiB + 1.3 MiB = 5.0 MiB conky
3.8 MiB + 1.4 MiB = 5.2 MiB tracker-miner-apps
3.4 MiB + 2.2 MiB = 5.6 MiB evolution-addressbook-factory
5.3 MiB + 667.5 KiB = 6.0 MiB colord
3.7 MiB + 2.4 MiB = 6.1 MiB evolution-addressbook-factory-subprocess
5.7 MiB + 650.0 KiB = 6.3 MiB NetworkManager
5.8 MiB + 906.5 KiB = 6.7 MiB pulseaudio
6.2 MiB + 1.8 MiB = 8.0 MiB tracker-miner-fs
8.0 MiB + 38.0 KiB = 8.1 MiB dhclient
8.3 MiB + 1.2 MiB = 9.5 MiB tracker-store
9.1 MiB + 2.0 MiB = 11.0 MiB tracker-extract
11.6 MiB + 346.5 KiB = 11.9 MiB polkitd
15.3 MiB + 1.9 MiB = 17.1 MiB gnome-session-binary
15.8 MiB + 2.0 MiB = 17.8 MiB gsd-printer
17.4 MiB + 2.2 MiB = 19.7 MiB zeitgeist-datahub
16.6 MiB + 3.3 MiB = 19.8 MiB evolution-calendar-factory-subprocess (2)
17.4 MiB + 3.2 MiB = 20.6 MiB bamfdaemon
18.4 MiB + 2.7 MiB = 21.0 MiB evolution-source-registry
19.4 MiB + 3.9 MiB = 23.3 MiB evolution-calendar-factory
21.9 MiB + 4.6 MiB = 26.5 MiB gnome-terminal-server
22.2 MiB + 4.6 MiB = 26.8 MiB plank
21.5 MiB + 6.2 MiB = 27.6 MiB gnome-settings-daemon
27.2 MiB + 2.9 MiB = 30.1 MiB goa-daemon
25.0 MiB + 5.2 MiB = 30.2 MiB nautilus-desktop
44.2 MiB + 2.0 MiB = 46.2 MiB Xorg
117.5 MiB + 8.6 MiB = 126.1 MiB gnome-shell
---------------------------------
609.9 MiB
=================================
$ free without --enable-gl and --enable-egl:
total used free shared buff/cache available
Mem: 12298344 520172 11385752 1552 392420 11522268
Swap: 8368124 0 8368124
# ps_mem without --enable-gl and --enable-egl:
Private + Shared = RAM used Program
204.0 KiB + 97.0 KiB = 301.0 KiB xinit
364.0 KiB + 114.5 KiB = 478.5 KiB rtkit-daemon
736.0 KiB + 199.0 KiB = 935.0 KiB gvfsd-metadata
444.0 KiB + 506.5 KiB = 950.5 KiB startx
888.0 KiB + 123.0 KiB = 1.0 MiB dconf-service
836.0 KiB + 199.5 KiB = 1.0 MiB gvfs-goa-volume-monitor
852.0 KiB + 218.5 KiB = 1.0 MiB at-spi-bus-launcher
964.0 KiB + 171.5 KiB = 1.1 MiB gvfs-mtp-volume-monitor
912.0 KiB + 268.0 KiB = 1.2 MiB gconfd-2
716.0 KiB + 582.5 KiB = 1.3 MiB systemd-logind
1.0 MiB + 284.0 KiB = 1.3 MiB at-spi2-registryd
1.1 MiB + 210.5 KiB = 1.3 MiB accounts-daemon
744.0 KiB + 642.0 KiB = 1.4 MiB (sd-pam)
1.1 MiB + 334.0 KiB = 1.4 MiB login
1.2 MiB + 220.0 KiB = 1.4 MiB gvfs-gphoto2-volume-monitor
960.0 KiB + 515.0 KiB = 1.4 MiB bash
1.1 MiB + 604.5 KiB = 1.7 MiB gvfs-afc-volume-monitor
1.6 MiB + 227.5 KiB = 1.8 MiB wpa_supplicant
1.5 MiB + 400.0 KiB = 1.9 MiB zeitgeist-daemon
1.5 MiB + 455.0 KiB = 2.0 MiB sudo
2.0 MiB + 101.5 KiB = 2.1 MiB systemd-udevd
2.0 MiB + 269.5 KiB = 2.3 MiB gnome-keyring-daemon
1.6 MiB + 735.5 KiB = 2.4 MiB upowerd
2.2 MiB + 327.0 KiB = 2.5 MiB udisksd
1.9 MiB + 894.0 KiB = 2.8 MiB gsd-printer
2.3 MiB + 731.5 KiB = 3.0 MiB gnome-session-binary
2.5 MiB + 598.0 KiB = 3.0 MiB dbus-daemon (3)
2.4 MiB + 653.0 KiB = 3.1 MiB cupsd
2.1 MiB + 1.2 MiB = 3.2 MiB mission-control-5
2.9 MiB + 299.0 KiB = 3.2 MiB gvfsd
3.1 MiB + 157.5 KiB = 3.3 MiB gvfsd-fuse
3.1 MiB + 524.0 KiB = 3.6 MiB zeitgeist-fts
3.2 MiB + 370.5 KiB = 3.6 MiB gvfsd-trash
2.8 MiB + 1.0 MiB = 3.8 MiB gnome-shell-calendar-server
3.8 MiB + 346.5 KiB = 4.2 MiB goa-identity-service
1.7 MiB + 2.5 MiB = 4.2 MiB systemd (2)
3.9 MiB + 495.0 KiB = 4.4 MiB gvfs-udisks2-volume-monitor
3.7 MiB + 1.3 MiB = 5.0 MiB conky
3.7 MiB + 1.4 MiB = 5.1 MiB tracker-miner-apps
4.0 MiB + 1.5 MiB = 5.4 MiB evolution-source-registry
3.4 MiB + 2.2 MiB = 5.5 MiB evolution-addressbook-factory
4.9 MiB + 989.5 KiB = 5.9 MiB zeitgeist-datahub
5.3 MiB + 678.5 KiB = 6.0 MiB colord
3.8 MiB + 2.3 MiB = 6.1 MiB evolution-addressbook-factory-subprocess
5.7 MiB + 652.0 KiB = 6.3 MiB NetworkManager
5.8 MiB + 943.5 KiB = 6.7 MiB pulseaudio
6.0 MiB + 1.8 MiB = 7.8 MiB tracker-miner-fs
8.0 MiB + 38.0 KiB = 8.1 MiB dhclient
6.2 MiB + 1.9 MiB = 8.2 MiB bamfdaemon
7.2 MiB + 2.0 MiB = 9.2 MiB tracker-extract
6.6 MiB + 2.7 MiB = 9.2 MiB evolution-calendar-factory
8.8 MiB + 1.1 MiB = 9.9 MiB tracker-store
8.9 MiB + 3.5 MiB = 12.5 MiB plank
9.5 MiB + 3.3 MiB = 12.8 MiB gnome-terminal-server
13.6 MiB + 354.5 KiB = 14.0 MiB polkitd
10.3 MiB + 5.0 MiB = 15.3 MiB gnome-settings-daemon
12.6 MiB + 3.3 MiB = 15.9 MiB evolution-calendar-factory-subprocess (2)
13.8 MiB + 4.1 MiB = 17.9 MiB nautilus-desktop
27.7 MiB + 6.6 MiB = 34.2 MiB goa-daemon
44.8 MiB + 5.3 MiB = 50.1 MiB Xorg
117.6 MiB + 12.5 MiB = 130.1 MiB gnome-shell
---------------------------------
486.5 MiB
=================================
Sure, 100 mb difference is not that much, but anyway - 100 mb less of some awry things kicking around in my ram.
Marking as solved.
Offline