You are not logged in.

#1 2010-02-20 22:31:23

Mandor
Member
Registered: 2006-06-06
Posts: 154

Error in PKGBUILD - please educate me

Hello,

I'm trying to install a Package from AUR, but it seems that the PKGBUILD contains an error or at least something that is an error now. As the package is quite old and I want to understand AUR, I would like to fix that myself (with help from the forum) rather than writing to the maintainer. If I understand the error and have some success, I will at least post at the package page on AUR.

The package is raid-monitor-0.26-3 and the PKGBUILD is the following:

# Contributor: Teo Mrnjavac <teo.mrnjavac@gmail.com>

pkgname=raid-monitor
pkgver=0.26.3
pkgrel=1
pkgdesc="Qt4 app for monitoring Linux RAID arrays."
arch=('i686' 'x86_64')
url="http://raid-monitor.mihosoft.eu/"
license=('GPL')
depends=('qt' 'mdadm')
makedepends=('cmake')
source=(http://raid-monitor.mihosoft.eu/download/raid-monitor-0.26-3.tar.bz2)
md5sums=('')

build() {
   cd $startdir/src/raid-monitor-0.26-3
   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
   make VERBOSE=1 || return 1
   make DESTDIR=$startdir/pkg install || return 1
}

First it complains about integrity, but I can override that with --skipinteg option to makepkg. Then it gives the following output:

[petar@turbox raid-monitor]$ makepkg -s --skipinteg                             
==> Making package: raid-monitor 0.26.3-1 i686 (Sun Feb 21 00:27:28 EET 2010)   
==> Checking Runtime Dependencies...                                            
==> Checking Buildtime Dependencies...                                          
==> Retrieving Sources...                                                       
  -> Found raid-monitor-0.26-3.tar.bz2 in build dir                             
==> WARNING: Integrity checks are missing.                                      
==> Extracting Sources...                                                       
  -> Extracting raid-monitor-0.26-3.tar.bz2 with bsdtar                         
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/petar/LocalPKG/raid-monitor/src/raid-monitor-0.26-3/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/petar/LocalPKG/raid-monitor/src/raid-monitor-0.26-3/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
/home/petar/LocalPKG/raid-monitor/PKGBUILD: line 18: make: command not found
==> ERROR: Build Failed.
    Aborting...

Maybe the PKGBUILD is for a quite old environment, but how should Ifix that, I don't know.

I will appreciate your suggestions to fix the PKGBUILD or my environent.

BR,
Petar


If everything else fails, read the manual.

Offline

#2 2010-02-20 22:43:24

danielsoft
Member
From: Czech Republic
Registered: 2008-02-16
Posts: 102

Re: Error in PKGBUILD - please educate me

Mandor wrote:
/home/petar/LocalPKG/raid-monitor/PKGBUILD: line 18: make: command not found

you need the "make" package

pacman -S make


may the Source be with you

Offline

#3 2010-02-20 22:47:01

Mandor
Member
Registered: 2006-06-06
Posts: 154

Re: Error in PKGBUILD - please educate me

Yes, I understood that myself, but I had an illusion that cmake should pull it...

Thank for the reply anyway smile


If everything else fails, read the manual.

Offline

#4 2010-02-20 22:53:07

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Error in PKGBUILD - please educate me

danielsoft wrote:
Mandor wrote:
/home/petar/LocalPKG/raid-monitor/PKGBUILD: line 18: make: command not found

you need the "make" package

pacman -S make

And better:

pacman -S base-devel

Offline

Board footer

Powered by FluxBB