You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-05-17 04:07:20

Quizmaster
Member
Registered: 2012-05-17
Posts: 26

Build failure for gtkpacman-mod

Greetings everyone, I realize that you all must be thinking this is a noob question right here, I'm a noobie to using Arch-based distros(as this is my first), but not to unix/linux in general. I'm a computer science student with plenty of coding experience, I just wanted more of a challenge. I started out with Mint, followed by Ubuntu, then Debian, then Gentoo, then Fedora, then Mandrake, Suse, then FreeBSD and now ArchBang.. And of the reasons why I wanted to try it was because of the ports-like package management system. I've had it for less than a day and loved it because I was also surprised to find that alot of it is functionally very out-of-the-box. Here's the one prolem I'm having though. Whenever I try to install a package from the command-line, I either get a dependency error of some sort or only recently, a build error. I don't think I'm quite used to pacman just yet. Let me show you what went down:

[eddie_nygma@archbang ~]$ sudo packer -S gtkpacman-mod

Aur Targets    (1): gtkpacman-mod

Proceed with installation? [Y/n] Y
Edit gtkpacman-mod PKGBUILD with $EDITOR? [Y/n] n
==> WARNING: Cannot find the git binary required to determine latest git revision.
==> Making package: gtkpacman-mod 20101206-1 (Thu May 17 03:01:12 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server....
/tmp/packerbuild-0/gtkpacman-mod/gtkpacman-mod/PKGBUILD: line 24: git: command not found
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.    

I'd appreciate any questions or comments as I really like ArchBang and hope to stick with it. So what do I do first?

Offline

#2 2012-05-17 06:18:43

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: Build failure for gtkpacman-mod

Quizmaster wrote:
/tmp/packerbuild-0/gtkpacman-mod/gtkpacman-mod/PKGBUILD: line 24: git: command not found
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.    

I'd appreciate any questions or comments as I really like ArchBang and hope to stick with it. So what do I do first?

As a noob, I'd say you're rather unlucky here as it looks like a bug in the PKGBUILD file.

It's saying it can't find 'git' in order to download the source... but the PKGBUILD file should include that as a dependency so packer will go and grab it for you if needed.

Quick fix #1 is to install git first and then re-run the command.
Quick fix #2 is to edit the PKGBUILD and add git as a dependency

Long fix is to pick a quick fix and then re-run the command and add a comment in aur.archlinux.org


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#3 2012-05-17 06:38:12

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,743

Re: Build failure for gtkpacman-mod

Let me know if you want me to add a comment to aur package ...

Offline

#4 2012-05-17 19:59:43

Quizmaster
Member
Registered: 2012-05-17
Posts: 26

Re: Build failure for gtkpacman-mod

Ok, so git is misconfigured, I suppose I'll try the Quick fix #2, although I could use a bit of a walkthrough. A couple questions first off, what is the asolute path name for the PKGBUILD file, and which lines should I look for to edit besides the repo url info if that is even necessary?

Last edited by Quizmaster (2012-05-17 20:56:14)

Offline

#5 2012-05-17 21:03:52

Quizmaster
Member
Registered: 2012-05-17
Posts: 26

Re: Build failure for gtkpacman-mod

Well ok, I guess I don't need to edit anything for the time being, since I just tried installing git and then gtkpacman-mod, as recommended. Everything is looking fine now. Thanks for your feedback anyway, I very much apreciate it.

Last edited by Quizmaster (2012-05-17 21:04:33)

Offline

#6 2012-05-17 21:15:45

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: Build failure for gtkpacman-mod

Quizmaster wrote:

Ok, so git is misconfigured, I suppose I'll try the Quick fix #2, although I could use a bit of a walkthrough. A couple questions first off, what is the asolute path name for the PKGBUILD file, and which lines should I look for to edit besides the repo url info if that is even necessary?

When you run packer, it asks you if you want to edit the PKGBUILD file

You'll see this (I've not cut-n-pasted the actual build part)

pkgname=gtkpacman-mod
pkgver=20101206
pkgrel=1
pkgdesc="A modification of GTKPacman that installs packages safer."
arch=('any')
url="https://github.com/hunterm/GtkPacman"
license=('GPL2')
depends=('python2' 'vte' 'libglade' 'glade-perl')
conflicts=('gtkpacman' 'gtkpacman-svn')
_gitroot="git://github.com/hunterm/GtkPacman.git"
_gitname="GtkPacman"

You would need to add 'git' to the 'depends' line so it looks like this:

depends=('git' 'python2' 'vte' 'libglade' 'glade-perl')

Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#7 2012-05-18 20:30:37

mike4ca
Happy (Arch|Manjaro)[B,b]ang User
From: Iowa, USA
Registered: 2011-10-17
Posts: 427

Re: Build failure for gtkpacman-mod

Quizmaster wrote:

Everything is looking fine now.

If the issue is resolved, please update the title of the topic by going to your first post, clicking edit and adding [Solved} to the title.  Thank you.


Free Software Foundation member 10865

Offline

Board footer

Powered by FluxBB