You are not logged in.

#1 2008-07-23 13:36:28

passworder
Member
Registered: 2008-07-23
Posts: 10

ERROR: PKGBUILD does not exist

I've been trying to install many different packages now from Aur using ABS. I've read this article: http://wiki.archlinux.org/index.php/ABS and done everything step by step, but I cannot get it to work.

Every time I type 'makepkg' I get the message:
==> ERROR: PKGBUILD does not exist.

And yes, i'm located in my build directory (/home/user/abs/package_name)

What's wrong?
I've searched around and haven't found anything about this.

Thankful for help. I need to get this to work.

Offline

#2 2008-07-23 13:38:08

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

Re: ERROR: PKGBUILD does not exist

Have you copied the PKGBUILD from the ABS tree (/var/abs/<repo>/<package>/*) into your build directory?

Offline

#3 2008-07-23 13:40:47

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

That was the part I didn't really understand. So I assumed they meant copying the package to the build directory.

Am I supposed to copy everything from /var/abs/.. into my build directory?

Offline

#4 2008-07-23 13:43:41

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: ERROR: PKGBUILD does not exist

cp -r /var/abs/.../package_name ~/abs/
cd ~/abs/package_name
makepkg

Last edited by wonder (2008-07-23 13:43:54)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2008-07-23 13:44:17

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

Re: ERROR: PKGBUILD does not exist

say you want to build pacman.  It is in the core repo.  So after updating ABS (if necessary) you would do this from your build directory:

cp /var/abs/core/pacman/* .
makepkg

That copies all the files needed for building to your build directory and builds the package.  You may want to use "makepkg -s" which gets makepkg to install any needed dependencies from the repos.

BTW, welcome to Arch!

Offline

#6 2008-07-23 13:58:08

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

Sorry, I don't understand it completely yet. I want to install kbfx, the .tar.gz file is located here: http://aur.archlinux.org/packages.php?d … =1&ID=3692

What am I supposed to do with that .tar.gz file? According to the wiki, I have to copy the extracted contents into the /home/user/abs folder.

I cannot find the package i'm looking for inside the /var/abs/.. folder. And how do I know where i'm supposed to look?

Allan wrote:

BTW, welcome to Arch!

Thank you.

Offline

#7 2008-07-23 14:03:48

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: ERROR: PKGBUILD does not exist

after saving that archive, you need to extract it.

cd /path/to/archive
tar -xzf package.tar.gz

then you need to enter in the directory fresh extracted.

cd package

then you have to run makepkg

also take a look here: http://wiki.archlinux.org/index.php/AUR_User_Guidelines

Last edited by wonder (2008-07-23 14:06:04)


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2008-07-23 14:09:57

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

I extracted the package into /home/user/abs and changed directory (cd) to that folder. But that doesn't work. Does it matter where I place the extracted archive?

Offline

#9 2008-07-23 14:13:59

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

Re: ERROR: PKGBUILD does not exist

What files do you have in the directory you are trying to run makepkg from?   You should have the files listed here: http://aur.archlinux.org/packages/kbfx/kbfx/ once you extracted the tarball.  Then you can run makepkg.

Offline

#10 2008-07-23 14:24:15

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: ERROR: PKGBUILD does not exist

This is not an ABS package, this is a package from AUR. The right tutorial for this is here.

Offline

#11 2008-07-23 15:35:43

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

Allan wrote:

What files do you have in the directory you are trying to run makepkg from?   You should have the files listed here: http://aur.archlinux.org/packages/kbfx/kbfx/ once you extracted the tarball.  Then you can run makepkg.

All files from the tarball http://aur.archlinux.org/packages.php?d … =1&ID=3692

catwell wrote:

This is not an ABS package, this is a package from AUR. The right tutorial for this is here.

Hmm, isn't the packages from AUR built using ABS?

Offline

#12 2008-07-23 16:07:21

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: ERROR: PKGBUILD does not exist

They both use PKGBUILD but they're not exactly the same thing. Put simply, ABS is for packages in the official repos (including community) and AUR is for user-contributed packages. That's why you can have a local copy of the official repos' PKGBUILD tree using the abs command, but for AUR you have to download the tarball from the webpage and extract it. Of course you could also use tools like yaourt, but not ABS.

Offline

#13 2008-07-23 16:57:22

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

catwell wrote:

They both use PKGBUILD but they're not exactly the same thing. Put simply, ABS is for packages in the official repos (including community) and AUR is for user-contributed packages. That's why you can have a local copy of the official repos' PKGBUILD tree using the abs command, but for AUR you have to download the tarball from the webpage and extract it. Of course you could also use tools like yaourt, but not ABS.

Though I still have exactly the same problem as before. When I try to 'makepkg -s --asroot' I get the error message ==> ERROR: PKGBUILD does not exist. And i've done exactly like the wiki says.

pacman -Sy base-devel

I've installed everything necessary (base-devel).
Created a folder named builds in (~/)
Extracted the tarball into /builds
Changed directory into the extracted directory and typed 'makepkg'

The makepkg part just won't work though. If only I could install this using Pacman : /

Allan wrote:

What files do you have in the directory you are trying to run makepkg from?   You should have the files listed here: http://aur.archlinux.org/packages/kbfx/kbfx/ once you extracted the tarball.  Then you can run makepkg.

I've noticed though, that the files from the link you posted isn't included in the tarball I downloaded. That's weird.

Last edited by passworder (2008-07-23 17:00:04)

Offline

#14 2008-07-23 17:35:42

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: ERROR: PKGBUILD does not exist

Are you trying to run makepkg from ~/builds or ~/builds/kbfx?  You need to run makepkg in the directory which has the PKGBUILD file in it.

The tarball you linked to contains a directory which has the required files in it, see below:

[rich@karhide ~]$ mkdir builds
[rich@karhide ~]$ cd builds/
[rich@karhide builds]$ cp ~/Downloads/kbfx.tar.gz .
[rich@karhide builds]$ tar xzf kbfx.tar.gz 
[rich@karhide builds]$ l
total 8
drwxr-xr-x 2 rich users 4096 2007-07-27 10:54 kbfx/
-rw-r--r-- 1 rich users 1084 2008-07-23 18:31 kbfx.tar.gz
[rich@karhide builds]$ cd kbfx
[rich@karhide kbfx]$ l
total 12
-rw-r--r-- 1 rich users 149 2007-07-27 10:49 ChangeLog
-rw-r--r-- 1 rich users 916 2007-07-27 10:49 PKGBUILD
-rw-r--r-- 1 rich users 392 2007-05-17 05:19 kbfx.install
[rich@karhide kbfx]$ makepkg
==> Making package: kbfx 0.4.9.3.1-2  (Wed Jul 23 18:31:46 BST 2008)
==> Checking Runtime Dependencies...

Offline

#15 2008-07-24 20:30:16

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

How stupid. It seems I used the wrong file all this time. I used the tar.bz2 file, because it stood out so much. I blame it on the site for hiding the link so much : )

Well, something happens now when I type makepkg at least. But now I got some depency problem instead.

==> Making package: kbfx 0.4.9.3.1-2  (Wed Jul 23 22:27:02 PDT 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
warning: strigi-0.5.11-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets: strigi-0.5.11-1

Total Download Size:    0.00 MB
Total Installed Size:   2.57 MB

Proceed with installation? [Y/n]
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading strigi                              [#####################] 100%
==> Missing Dependencies:
  -> strigi=0.3.11
==> Checking Buildtime Dependencies...
==> ERROR: Could not resolve all dependencies.

Offline

#16 2008-07-24 20:46:40

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: ERROR: PKGBUILD does not exist

This package has to be fixed. You can try deleting the "=0.3.11" part of te strigi dep in the PKBUILD for now.

Offline

#17 2008-07-24 21:27:10

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: ERROR: PKGBUILD does not exist

And you shouldn't build packages as root.

Offline

#18 2008-07-24 23:39:11

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

catwell wrote:

This package has to be fixed. You can try deleting the "=0.3.11" part of te strigi dep in the PKBUILD for now.

Well, that worked. However, now when it builds I get more compiler warnings than what should be realistic. Posting all those would crash the internet : /

Offline

#19 2008-07-25 00:35:29

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: ERROR: PKGBUILD does not exist

Don't worry about compiler warning.

Offline

#20 2008-07-25 12:15:58

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

Snowman wrote:

Don't worry about compiler warning.

I was going to ignore them, but then I got an error at the end it seems:

make[2]: *** [plugins/strigi/CMakeFiles/kbfxstrigiclient.dir/kbfxstrigiplugin.o] Error 1
make[1]: *** [plugins/strigi/CMakeFiles/kbfxstrigiclient.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...

Well, here's some compiler errors as well.

.../builds/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi/kbfxstrigiplugin.cpp: In function 'KbfxDataGroup* search(QString)':
.../builds/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi/kbfxstrigiplugin.cpp:159: error: 'jstreams' has not been declared
.../builds/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi/kbfxstrigiplugin.cpp:159: error: expected `;' before 'hit'
.../builds/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi/kbfxstrigiplugin.cpp:165: error: 'jstreams' has not been declared
.../builds/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi/kbfxstrigiplugin.cpp:165: error: expected `;' before 'hit'

edit:
btw, how am I supposed to fix something that has compiler errors? Didn't they test the code before?

Last edited by passworder (2008-07-25 13:19:15)

Offline

#21 2008-07-25 17:27:43

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: ERROR: PKGBUILD does not exist

I'm not sure that its the kbfx code thats the problem.  I just tried running makepkg again and I see a whole load of warning I dont remember seeing before, plus they all seem to be from the qt headers.  This is the first one I see

Scanning dependencies of target kbfxcommon
[  0%] Generating index.cache.bz2
[  0%] Building CXX object kbfxlib/data/CMakeFiles/kbfxdata.dir/kbfxdatagroup.o
[  1%] Building CXX object kbfxlib/common/CMakeFiles/kbfxcommon.dir/kbfxkiodownload.o
In file included from /opt/qt/include/qdatastream.h:43,
                 from /opt/qt/include/qmap.h:44,
                 from /home/rich/my_pkgs/kbfx/src/kbfx-0.4.9.3.1/kbfxlib/data/kbfxdatagroup.h:25,
                 from /home/rich/my_pkgs/kbfx/src/kbfx-0.4.9.3.1/kbfxlib/data/kbfxdatagroup.cpp:22:
/opt/qt/include/qstring.h: In member function 'char QChar::latin1() const':
/opt/qt/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/opt/qt/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/opt/qt/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/opt/qt/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/opt/qt/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/opt/qt/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/opt/qt/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/opt/qt/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/opt/qt/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/opt/qt/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value

The identified lines from qstring.h are

194:     char latin1() const { return ucs > 0xff ? 0 : (char) ucs; }
219:     void setCell( uchar cell ) { ucs = (ucs & 0xff00) + cell; }
220:     void setRow( uchar row ) { ucs = (((ushort) row)<<8) + (ucs&0xff); }
264: inline QChar::QChar( uchar c, uchar r ) : ucs( (r << 8) | c )
362:         QShared(), unicode(u), ascii(0), len(l), issimpletext(FALSE), maxl(m), islatin1(FALSE) { }

Offline

#22 2008-07-25 18:17:03

passworder
Member
Registered: 2008-07-23
Posts: 10

Re: ERROR: PKGBUILD does not exist

This is very confusing. Isn't the code the same for everyone? Why doesn't it work..

Is there an alternative way to install kbfx?

Offline

#23 2008-07-25 19:34:03

tofu
Member
Registered: 2008-02-26
Posts: 42

Re: ERROR: PKGBUILD does not exist

Well, I get some errors too. I don't know if its because I'm using KDEmod as my KDE install - but it should all be the same right?

==> Making package: kbfx 0.4.9.3.1-2  (Fri Jul 25 12:32:41 PDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found kbfx-0.4.9.3.1.tar.bz2 in build dir
==> Validating source files with md5sums...
    kbfx-0.4.9.3.1.tar.bz2 ... Passed
==> Extracting Sources...
  -> bsdtar -x -f kbfx-0.4.9.3.1.tar.bz2
==> Entering fakeroot environment...
==> Starting build()...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Strigi: /usr/lib/libstrigihtmlgui.so
-- Strigi support is: ON!
-- Will use 'kmenuedit'!
-- Building for KDE3
-- Checking to see if CXX compiler accepts flag -fexceptions
-- Checking to see if CXX compiler accepts flag -fexceptions - yes
-- Checking to see if CXX compiler accepts flag -fstack-protector
-- Checking to see if CXX compiler accepts flag -fstack-protector - yes
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KDE3 include dir: /opt/kde/include
-- Found KDE3 library dir: /opt/kde/lib
-- Found KDE3 dcopidl preprocessor: /opt/kde/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /opt/kde/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /opt/kde/bin/kconfig_compiler
-- Found meinproc: /opt/kde/bin/meinproc
-- Found gnu msgfmt: /usr/bin/msgfmt
-- Checking to see if linker accepts flag -Wl,--no-undefined - yes
-- Checking to see if linker accepts flag -Wl,--allow-shlib-undefined - yes
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/kbfxlib/data
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/kbfxlib/common
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/src
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/configdialog
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/skin/vector
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/skin/raster/default
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/skin/raster/2panels
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/images
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/doc
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/doc/en
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/doc/common
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/po
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/common
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/applications
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/settings
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/plasmoids
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/recentstuff
   used as include directory in directory /home/tofu/dl/kbfx/src/kbfx-0.4.9.3.1/plugins/strigi

-- Configuring done
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

Offline

Board footer

Powered by FluxBB