You are not logged in.

#1 2011-07-19 09:48:30

panuh
Member
From: X :ɯoɹℲ
Registered: 2009-11-24
Posts: 144

[SOLVED] Ho do i set parameters?

Hi,

I am trying to build a package for the first time and I'm having a little trouble starting.

I am quite new to compiling programs on my own in general so I'm also having a hard time figuring out what search terms I should use to cope with my problem so forgive me any possible redundancy smile

I have been trying to create a PKGBUILD for the latest Alpha of PSPP, a statistical tool. I copied dependencies from the git version in AUR which does not compile. Manually executing

$ ./configure --prefix=/usr
$ make
# make install 

works fine but if I try running "makepkg -s" the build fails at an early stage. (See below for PKGBUILD)

The problem seem to be some parameters (?) that differ between manual build and makepkg. In the logs below in line 1623 you can see the first of these differences probably concerning architecture.

Compiled manually, in the logs it only says "-g -02" where in the makepkg way it says "-march=i686 -mtune-generic -02 -pipe".

Tried my best to explain the problem. I guess it's nothing too strange but I just can't figure out how to cope with it. Here are the complete logs and PKGBUIlD:

PKGBUILD
makepkg.log
confmake.log

Any suggestions for a better title are welcome smile

Last edited by panuh (2011-07-19 10:30:11)

Offline

#2 2011-07-19 10:13:14

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Ho do i set parameters?

makepkg sources some variables from /etc/makepkg.conf. If you wanted to mimic the makepkg environment, I suggest you do the same...

. /etc/makepkg.conf
export CFLAGS CXXFLAGS LDFLAGS MAKEFLAGS CHOST
./configure ...

In this case, the problem is your LDFLAGS (or more accurately, the upstream Makefiles). Prior to the ./configure in the PKGBUILD, add this:

export LDFLAGS=${LDFLAGS//-Wl,--as-needed}

Offline

#3 2011-07-19 10:29:47

panuh
Member
From: X :ɯoɹℲ
Registered: 2009-11-24
Posts: 144

Re: [SOLVED] Ho do i set parameters?

Thanks! It works now and I have something new to read up. As soon as I know what it is I'll see if this could go to the wiki page about creating packages.

Offline

Board footer

Powered by FluxBB