You are not logged in.

#1 2009-06-05 05:14:59

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Problem making <package>.pkg.tar.gz from AUR [SOLVED]

I got a PKGBUILD from AUR for Krita http://aur.archlinux.org/packages.php?ID=25640.

I like some KDE apps even though I prefer the Gnome desktop.

I have all the dependencies listed, but there's no versions listed and can't figure out what automoc4 is.

I have compiled and installed few programs from AUR, but no luck on this one.

I get the following error after tried to use the commands below. I have tried a few different methods, but honestly I'm really not sure about this yet.

makepkg PKGBUILD
 makepkg -s

This error:

  
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
  Did not find automoc4 (part of kdesupport).  Searched for
  Automoc4Config.cmake in using suffixes automoc4 lib/automoc4
  lib64/automoc4.  (missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:294 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: Build Failed.
    Aborting...
[jeff@Arch2009p2 koffice-2.0.0]$
CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
  Did not find automoc4 (part of kdesupport).  Searched for
  Automoc4Config.cmake in using suffixes automoc4 lib/automoc4
  lib64/automoc4.  (missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:294 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: Build Failed.
    Aborting...
[jeff@Arch2009p2 krita]$

This AUR seems more comlpex that the regular Linux compile from source to me.

./configure
make 
make install

After uncompressing the tar file.
Difficult to get much simpler than that. I've only had to do that a few times, and never ran into "Dependencie hell" I hear mentioned.

I probably should get a better understanding of Arch compiling before I use it, but this is more exciting that RTFM and to understand it completely. I'm an impatient, week long Arch x86-64 user....... with several other OS's to fall back on if nessary and I seriously break it.

Below is my brief, explanation of Arch package management, and please correct me where needed.

The <package>.pkg.tar.gz is the "format", (like .deb is for APT) that the package manager pacman uses. It uses binary package format same as APT. 

Then there is the AUR file that is basically a blueprint of "options" to compile the source automatically for my hardware and software enviorment? Why is the AUR compressed when It's such a small file? If it works right or rather if "I do things right", I'll end up with a .pkg file thats compressed and ready for pacman to manage.....which is really cool and I get the advantages of a package manager.

I thought the original source code was nessary and the PKGBUILD file was installed into the uncompressed source main directory. After this, I'm not sure it is even necessary as it downloaded a long list of files for Krita.

Last edited by jeff story (2009-06-06 22:04:24)


Check out my website for info on the Arch Linux Installer

Offline

#2 2009-06-05 05:22:38

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Problem making <package>.pkg.tar.gz from AUR [SOLVED]

just run makepkg in the build directory post output


Mr Green

Offline

#3 2009-06-05 05:33:44

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: Problem making <package>.pkg.tar.gz from AUR [SOLVED]

[jeff@Arch2009p2 krita]$ makepkg
==> Determining latest svn revision...
  -> Version found: 977702
==> Making package: krita-svn 977702-1 any (Thu Jun  4 22:27:24 PDT 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Validating source files with md5sums...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...

Fetching external item into 'koffice/kdgantt'
Checked out external at revision 977703.

Checked out revision 977703.
-- Found Qt-Version 4.5.1 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
  Did not find automoc4 (part of kdesupport).  Searched for
  Automoc4Config.cmake in using suffixes automoc4 lib/automoc4
  lib64/automoc4.  (missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:294 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: Build Failed.
    Aborting...
[jeff@Arch2009p2 krita]$

Check out my website for info on the Arch Linux Installer

Offline

#4 2009-06-05 05:51:35

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

Re: Problem making <package>.pkg.tar.gz from AUR [SOLVED]

There is a comment on the AUR page saying automoc4 should be a {make}depends.  It is also fairly clear from the error message...

Offline

#5 2009-06-06 20:05:57

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: Problem making <package>.pkg.tar.gz from AUR [SOLVED]

OK,

I said above:

I probably should get a better understanding of Arch compiling before I use it, but this is more exciting that RTFM and to understand it completely. I'm an impatient, week long Arch x86-64 user....... with several other OS's to fall back on if necessary and I seriously break it.

After taking the time to RTFM...and get a better understanding on how Arch package management works.....this was a no brainer.

Now that I know what "make depends" is, I copied the automoc4 "PKGBUILD" file from my /var/abs/ . . . directory to my ~/AUR_Builds, ran

makepkg

in my user terminal, and installed the resulting <packagename>.pkg.tar.gz with pacman.......

So lesson learned.......take more than 5 min to skim through the Arch package management section of the wiki before getting all excited and  trying to use it!!!


Check out my website for info on the Arch Linux Installer

Offline

#6 2009-06-06 20:14:35

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Problem making <package>.pkg.tar.gz from AUR [SOLVED]

Nothing wrong with your approach, just fyi:

automoc4 is in the extra repository so you don't have to compile it, unless you want to.

pacman -S --asdeps automoc4

would have been enough.

If the dependencies aren't missing in the PKGBUILD you can use makepkg -s to install missing dependencies automatically, as long as they are in a repo (this requires sudo). To remove them again afterwards you can use makpkg -sr.

On another note, please edit the thread title to mark it as [Solved].

Offline

Board footer

Powered by FluxBB