You are not logged in.

#1 2010-06-29 10:43:02

null
Member
Registered: 2009-05-06
Posts: 398

[solved] can't build packages with makepkg anymore

hi.
as the topic title says i can't build packages anymore. i tried it with several packages (including the opera-beta and pacman-color pkgbuild) but the build process always stops with (translated from german so not the one-to-one makepkg translation):

==> Make package ... 
/usr/bin/makepkg: Line 902: * 1024 : Syntax Error: Operator expected. (Error causing character is \"* 1024 \").
==> Stopped make: pacman-color 3.4.0-1 (Di 29. Jun 12:17:50 CEST 2010)

i've got no idea what could have caused the problem; i didn't install new packages in the last time or changed system configuration files (except the xorg.conf.d for my keyboard layout).
the system is up-to-date.

using pacman without color is only half the fun sad

Last edited by null (2010-06-29 10:56:10)

Offline

#2 2010-06-29 10:46:26

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] can't build packages with makepkg anymore


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-06-29 10:46:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [solved] can't build packages with makepkg anymore

You have cw installed which provides a coloured version of du which breaks makepkg's package size claculations.  It will be fixed in 3.4.1.

Offline

#4 2010-06-29 10:55:52

null
Member
Registered: 2009-05-06
Posts: 398

Re: [solved] can't build packages with makepkg anymore

awsome! moving /usr/lib/cw/du to du.bak solved the problem!

tanks a lot!

Offline

#5 2010-06-29 11:32:59

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [solved] can't build packages with makepkg anymore

null wrote:

awsome! moving /usr/lib/cw/du to du.bak solved the problem!

tanks a lot!

alias du="/bin/du"

would be a better work-around, your current solution could give problems when packages are upgraded/removed.

Offline

#6 2010-06-29 12:14:30

null
Member
Registered: 2009-05-06
Posts: 398

Re: [solved] can't build packages with makepkg anymore

guess that's the better way. thanks smile

Last edited by null (2010-07-03 06:35:01)

Offline

#7 2010-07-01 17:37:55

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [solved] can't build packages with makepkg anymore

I too have this problem and I don't have cw (whatever that is) installed (that I know of anyway). The only 'du' I have is in /bin/du. That being said, it definitely has to do with color, as if I give makepkg the --nocolor option, it works fine:

$ makepkg

==> ERROR: An unknown error has occurred. Exiting...
$ makepkg --nocolor
==> ERROR: PKGBUILD does not exist.
$ locate -b '\du'
/bin/du
$

Offline

#8 2010-07-02 00:08:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [solved] can't build packages with makepkg anymore

what does

tput setaf 0
echo $?

output?   It looks like your terminal does not support colours through tput...

Offline

Board footer

Powered by FluxBB