You are not logged in.
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 ![]()
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 ![]()
Last edited by panuh (2011-07-19 10:30:11)
Offline
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
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