You are not logged in.

#1 2012-02-22 06:40:16

devilevil
Member
Registered: 2008-11-14
Posts: 12

Awesome WM fails to build

Hi there,
I get following error after yaourt -Syu; yaourt -S awesome:

  -> Found awesome.desktop
==> Validating source files with md5sums...
    awesome-3.4.11.tar.xz ... Passed
    awesome.desktop ... Passed
==> Validating source files with sha256sums...
    awesome-3.4.11.tar.xz ... Passed
    awesome.desktop ... Passed
==> Extracting Sources...
  -> Extracting awesome-3.4.11.tar.xz with bsdtar
==> Starting build()...
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `mkdir -p .build-(none)-x86_64-unknown-linux-gnu-4.6.2'
make: *** [cmake] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build awesome.

Is there a way to solve this problem?
Thanks a lot.

Offline

#2 2012-02-22 07:53:37

susbarbatus
Member
From: China
Registered: 2010-09-30
Posts: 8

Re: Awesome WM fails to build

I installed awesome from repo.archlinux.fr. If still fail to build, it's an alternative.


小香猪杀手@cc98.org

Offline

#3 2012-02-22 08:28:32

devilevil
Member
Registered: 2008-11-14
Posts: 12

Re: Awesome WM fails to build

susbarbatus wrote:

...

Thanks a lot! It works for me.

Offline

#4 2012-02-22 09:16:36

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Awesome WM fails to build

you should report this on the package's aur page, others might be facing a similar issue. Otherwise, mark the thread solved.

https://aur.archlinux.org/packages.php?ID=41362

Last edited by x33a (2012-02-22 09:17:19)

Offline

#5 2012-02-22 09:56:32

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Awesome WM fails to build

Looks to me like a problem with your hostname.

From the Makefile:

./Makefile:builddir=.build-$(shell hostname)-$(shell gcc -dumpmachine)-$(shell gcc -dumpversion)

edit: And by the way, I do not recommend the archlinux.fr repository since they usually lag behind library .so version bumps and it's likely to end up with a broken system after such an upgrade.

edit2: Temporary fix:

makepkg -o
sed -i 's/${builddir}/"&"/g' src/awesome-3.4.11/Makefile
makepkg -e

Last edited by xduugu (2012-02-22 10:09:46)

Offline

#6 2012-04-13 08:49:59

Vergil333
Member
Registered: 2012-04-13
Posts: 4

Re: Awesome WM fails to build

x33a wrote:

you should report this on the package's aur page, others might be facing a similar issue.

Yes. I have the same problem. My hostname is "(none)" too.

xduugu, I tried your Temporary fix but in the last step (makepkg -e) I get an error.

The error is saying:

...
==> Starting build()...
patching file spawn.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file spawn.c.rej
==> ERROR: A failure occurred in buil().
       Aborting...

Offline

#7 2012-04-13 10:22:58

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: Awesome WM fails to build

Try to remove /tmp/yaourt-tmp-<your_username> directory. It's very likely that there are patched files left after previous build attempt.

Offline

#8 2012-04-13 12:40:53

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Awesome WM fails to build

You shouldn't need this fix as it is already included in the current PKGBUILD. Just try to grab the latest PKGBUILD and run makepkg on it.

Offline

#9 2012-04-13 19:43:00

Vergil333
Member
Registered: 2012-04-13
Posts: 4

Re: Awesome WM fails to build

To Atragor: I do not have such file in /tmp.

To xduugu: I am not sure how to grab the latest PKGBUILD. Could you help me please?

Offline

#10 2012-04-13 20:08:20

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Awesome WM fails to build

Basically, it's

$ wget https://aur.archlinux.org/packages/aw/awesome/awesome.tar.gz \
tar xaf awesome.tar.gz \
cd awesome \
makepkg -isr

There is a detailed instruction in the wiki how to use the AUR.

Offline

#11 2012-04-14 08:55:21

Vergil333
Member
Registered: 2012-04-13
Posts: 4

Re: Awesome WM fails to build

Ow, by latest pkgbuild was meant latest awesome package. Well I used the latest pkgbuild.
I downloaded it via links, extracted, enter dir and ran makepkg -s.
I tried it by your way (commands you wrote) but the same error remains.

blah blah blah...
==> Starting build()...
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `mkdir -p .build-(none)-x86_64-unknown-linux-gnu-4.6.2'
make: *** [cmake] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build awesome.

Error caused by hostname "(none)". That's why I tried Temporary fix later.

Edit: makepkg -s is working fine. An error appears while running "sudo pacman -U awesome.*.tar.xz".

Last edited by Vergil333 (2012-04-14 10:10:37)

Offline

#12 2012-04-14 14:14:18

Into the Pit
Member
Registered: 2010-09-04
Posts: 37

Re: Awesome WM fails to build

Vergil333 wrote:

Edit: makepkg -s is working fine. An error appears while running "sudo pacman -U awesome.*.tar.xz".

Could you paste the Error?

Offline

#13 2012-04-14 19:56:26

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Awesome WM fails to build

@Vergil333
Please download the awesome package (/PKGBUILD) and try again. It should work now.

Offline

#14 2012-04-14 20:08:31

Vergil333
Member
Registered: 2012-04-13
Posts: 4

Re: Awesome WM fails to build

xduugu: Working! Really thanks to everyone smile

Offline

Board footer

Powered by FluxBB