You are not logged in.

#1 2011-04-05 12:21:13

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,608
Website

cmake PKG builds long hand but not within makepkg [solved]

I took a stab at a pkg for e4rat located here:  http://aur.archlinux.org/packages.php?ID=47944

It uses cmake.  The odd thing is that it doesn't build with makepkg, but it does if you do it long hand. Ideas?

Link to makepkg output: here
Link to "long hand" output: here

Last edited by graysky (2011-04-05 20:06:54)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#2 2011-04-05 14:09:29

kfgz
Member
From: Supraśl, Poland
Registered: 2009-03-02
Posts: 114

Re: cmake PKG builds long hand but not within makepkg [solved]

# Maintainer: graysky <graysky AT archlinux DOT us>
pkgname=e4rat
pkgver=0.1.5
pkgrel=1
epoch=
pkgdesc="Toolset to accelerate the boot process as well as application startups. Through physical file realloction e4rat eliminates both seek times and rotational delays."
arch=('i686' 'x86_64')
url="http://e4rat.sourceforge.net/"
license=('GPL')
depends=('audit' 'boost')
makedepends=('cmake')
options=(!strip)
install=('readme.install')
source=(http://downloads.sourceforge.net/project/e4rat/$pkgver/$pkgname-$pkgver-src.tar.gz)

build() {
  unset CFLAGS
  unset CXXFLAGS
  unset LDFLAGS
  cd "$srcdir/$pkgname-$pkgver"
  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -dm755 "$pkgdir"/var/lib/$pkgname
}
sha256sums=('e382a4b79aebff8a87d9203b18b7eec065ba1982a9b137bd794249061cb65ec8')

It works ;]

Last edited by kfgz (2011-04-05 15:15:08)

Offline

#3 2011-04-05 17:35:35

metre
Member
Registered: 2011-03-13
Posts: 130

Re: cmake PKG builds long hand but not within makepkg [solved]

@kfgz
I used your PKGBUILD, but still '/libe4rat-core.so.0: undefined reference' etc

Offline

#4 2011-04-05 17:44:12

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

Re: cmake PKG builds long hand but not within makepkg [solved]

Works for me. btw, cmake isn't the build command -- it just generates a portable Makefile. you need to run 'make' in build() so that you're not actually compiling in package().

Offline

#5 2011-04-05 17:47:26

metre
Member
Registered: 2011-03-13
Posts: 130

Re: cmake PKG builds long hand but not within makepkg [solved]

Now it works: kinda weird, kinda embarassing

Offline

#6 2011-04-05 18:37:27

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: cmake PKG builds long hand but not within makepkg [solved]

swig? Why does it want to pull in swig?

toad@deskarch 959\2 ~ > sudo packer -S e4rat
Password: 

Aur Targets    (2): audit e4rat
Pacman Targets (1): swig

Proceed with installation? [Y/n]

afaik e4rat has build-devel, audit and boost as dependencies. pacman -Si swig was not very forthcoming...

EDIT:

Here the wiki page: https://wiki.archlinux.org/index.php/E4rat

Last edited by toad (2011-04-05 18:50:59)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2011-04-05 19:15:40

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

Re: cmake PKG builds long hand but not within makepkg [solved]

swig is needed to build audit.

Offline

#8 2011-04-05 19:16:58

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: cmake PKG builds long hand but not within makepkg [solved]

Oops, didn't do my homework. Thanks.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#9 2011-04-05 20:06:31

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,608
Website

Re: cmake PKG builds long hand but not within makepkg [solved]

Thanks Falconindy.  Updated.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

Board footer

Powered by FluxBB