You are not logged in.

#1 2011-05-14 20:16:45

variable
Member
Registered: 2011-05-14
Posts: 4

[SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

Hello,

So I am just getting started with linux, and am trying to install awesome. I was making decent progress, installing dependencies as they came up (cairo-xcb, etc.), but now find myself stuck.

so from where i extracted awesome I am running

makepkg -s

and getting the error "target not found: xcb-util>=0.3.8" along with a message saying pacman failed to install the missing dependencies.

Looking around I see that the current version that pacman tries to install is xcb-util-0.3.6 .

I tried to install version 0.3.8 manually, but so far I haven't really had any luck. I downloaded xcb-util-0.3.8.tar.gz, unpacked it, and tried:

tar -zxvf xcb-util-0.3.8.tar.gz
./configure
make
make install

I get a bunch of output and no clear errors, but am still unable to install awesome. Any ideas for what I could try? Or any way I could install this version through pacman, or convince awesome to work with 0.3.6 ?

Thanks for the help.

Last edited by variable (2011-05-14 22:28:33)

Offline

#2 2011-05-14 20:25:09

askreet
Member
Registered: 2010-01-16
Posts: 9

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

If you installed xcb-util from a tarball it may have worked without issue but pacman is going to have no way to know this.  Installing tarballs does not update the package database to reflect this, so the makepkg command will still believe you need it.

Offline

#3 2011-05-14 20:35:00

variable
Member
Registered: 2011-05-14
Posts: 4

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

askreet wrote:

If you installed xcb-util from a tarball it may have worked without issue but pacman is going to have no way to know this.  Installing tarballs does not update the package database to reflect this, so the makepkg command will still believe you need it.

okay, so how could I test to see if this was the case? .....update the package database and try running makepkg again?

Offline

#4 2011-05-14 20:38:43

askreet
Member
Registered: 2010-01-16
Posts: 9

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

I've wanted to make a PKGBUILD for a while so I made one for you smile

I can't post it to AUR because xcb-util is an official package, though they haven't updated to 0.3.8 (which was released two weeks ago, by the way!)

Drop this code into a PKGBUILD file in an empty directory and run makepkg.  Then, as root, run pacman -U <created .tar.xz>.

Let me know if that works!

pkgname=xcb-util
pkgver=0.3.8
pkgrel=1
pkgdesc="Utility libraries for XC Binding"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libxcb' 'xcb-proto' 'xorg-util-macros')
makedepends=('gperf' 'autoconf' 'pkgconfig' 'automake' 'git')
provides=('xcb-util')
conflicts=('xcb-util')
url="http://xcb.freedesktop.org"
source=('http://xcb.freedesktop.org/dist/xcb-util-0.3.8.tar.gz')
md5sums=('08ae7994646bbd8d741b954d40a0572a')

build() {
  cd "$srcdir/xcb-util-0.3.8"

  ./configure --prefix=/usr || return 1
  make DESTDIR="$pkgdir" install || return 1
}

Offline

#5 2011-05-14 20:39:36

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

use ABS

http://ompldr.org/vOHA1bw/xcb-util-0.3.8-1.src.tar.gz

askreet wrote:

Drop this code into a PKGBUILD file in an empty directory and run makepkg.  Then, as root, run pacman -U <created .tar.xz>.

or just use

makepkg -sci

Last edited by JokerBoy (2011-05-14 20:41:23)

Offline

#6 2011-05-14 21:13:10

variable
Member
Registered: 2011-05-14
Posts: 4

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

askreet wrote:

Let me know if that works!

Wow, thank you very much. It seems to have worked. Now awesome is crying about different dependencies, so im going to give fixing those a shot and if I get stuck again ill come back here.


Edit: I modified the code you posted to setup some of the other dependencies and now it all works. Thanks again for your help

Last edited by variable (2011-05-14 22:27:32)

Offline

#7 2011-05-14 22:00:45

askreet
Member
Registered: 2010-01-16
Posts: 9

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

Hey not sure if you're still banging your head against this but I did.  I decided to give the latest awesome a try and found that xcb-util has been split up.  I'm sure [community] will be updated shortly but for now I made an AUR package that nicely builds all xcb-util-* packages for you:

http://aur.archlinux.org/packages.php?ID=49048

- Kyle

Offline

#8 2011-05-14 22:30:23

variable
Member
Registered: 2011-05-14
Posts: 4

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

askreet wrote:

Hey not sure if you're still banging your head against this but I did.  I decided to give the latest awesome a try and found that xcb-util has been split up.  I'm sure [community] will be updated shortly but for now I made an AUR package that nicely builds all xcb-util-* packages for you:

http://aur.archlinux.org/packages.php?ID=49048

- Kyle

I hadn't noticed this, I went through and did them all manually, modifying your original script. All is good now though. This should be useful though if anyone else encounters this before the repository is updated.

Offline

#9 2011-05-17 20:42:21

dante4d
Member
From: Czech Republic
Registered: 2007-04-14
Posts: 176

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

askreet wrote:

Hey not sure if you're still banging your head against this but I did.  I decided to give the latest awesome a try and found that xcb-util has been split up.  I'm sure [community] will be updated shortly but for now I made an AUR package that nicely builds all xcb-util-* packages for you:

http://aur.archlinux.org/packages.php?ID=49048

- Kyle

Your PKGBUILD doesn't work for me. As it tries to build xcb-utils-image and others after xcb-utils, it fails because of missing xcb-utils 0.3.8. I had to split it into two separate PKGBUILDS, one for xcb-utils 0.3.8 alone and other one for the rest. Both of them worked then.

Still, I can't build git awesome at the moment. But that's another story... sad

Linking C executable awesome
/usr/bin/ld: warning: libxcb-aux.so.0, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libstartup-notification-1.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libxcb-event.so.1, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libstartup-notification-1.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libxcb-atom.so.1, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libstartup-notification-1.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libstartup-notification-1.so: undefined reference to `xcb_atom_get'
collect2: ld returned 1 exit status
make[2]: *** [awesome] Error 1
make[1]: *** [CMakeFiles/awesome.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build awesome-git.

Edit: I forgot to instal newest version of startup-notification. Version 0.10 contains some dependency bug and won't allow awesome-git to link properly. With version 0.12, it links properly.

Last edited by dante4d (2011-05-17 20:51:22)

Offline

#10 2011-05-18 02:58:57

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: [SOLVED] Installing Awesome - how to update to xcb-util-0.3.8

variable wrote:

Hello, So I am just getting started with linux, and am trying to install awesome.

So why are you installing development software? Awesome doesn't need xcb-util 0.3.8.


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB