You are not logged in.

#1 2004-04-29 13:51:51

nornn
Member
From: Reykjavik
Registered: 2003-10-31
Posts: 35

problems with creating PKGBUILD

I am trying to create a package for multi-gnome-terminal and have been having some difficulties.  I use fakeroot and created the directory multi-gnome-terminal in /var/abs/local.  I copied the gnome-terminal directory from /var/abs/extra/gnome/ into my /var/abs/local directory to use as a template for building my own package, but there are a couple of variables that I do not understand in relation to building my own PKGBUILD.  Where would I find the variables for depends and make depends for a programme that I would want to make a PKGBUILD for.  For example on multi-gnome-terminal home page it has references to what you need to compile
"To compile the sources you need at least
gnome-libs-1.0.59
gdk-pixbuf-0.7.0
gtk-libs  1.0.9"
would this be defined in makedepends?

I am including my PKGBUILD for multi-gnome-terminal

# $Id: PKGBUILD,v 1.4 2004/04/01 20:40:11 arjan Exp $
# Maintainer: Arjan timmerman <arjan@soulfly.nl>

pkgname=multi-gnome-terminal
pkgver=1.6.2
pkgrel=1
pkgdesc="The GNOME Multi Terminal Emulator"
url="http://multignometerm.sourceforge.net"
groups=('gnome-extra')
source=(http://multignometerm.sourceforge.net/web/download.shtml/$pkgname-$pkgve
r.tar.gz)
md5sums=('4f9e4fab7f8c925e07de0c256e6a044c')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome
  make || return 1
  make DESTDIR=$startdir/pkg install
)

and here are the results of when I run makepkg -c as user with fakeroot enabled

[umej@eike multi-gnome-terminal]$ makepkg -c
/usr/bin/makepkg: ./PKGBUILD: line 18: syntax error near unexpected token `)'
/usr/bin/makepkg: ./PKGBUILD: line 18: `)'
==> Entering fakeroot environment
/usr/bin/makepkg: ./PKGBUILD: line 18: syntax error near unexpected token `)'
/usr/bin/makepkg: ./PKGBUILD: line 18: `)'
==> Making package: multi-gnome-terminal  (Thu Apr 29 12:18:44 UTC 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading multi-gnome-terminal-1.6.2.tar.gz
--12:18:44--  http://multignometerm.sourceforge.net/w … 6.2.tar.gz
           => `multi-gnome-terminal-1.6.2.tar.gz'
Resolving multignometerm.sourceforge.net... 66.35.250.209
Connecting to multignometerm.sourceforge.net[66.35.250.209]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [   <=>                               ] 12,907        29.33K/s

12:18:46 (29.25 KB/s) - `multi-gnome-terminal-1.6.2.tar.gz' saved [12907]

==> Validating source files with MD5sums
    multi-gnome-terminal-1.6.2.tar.gz ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf multi-gnome-terminal-1.6.2.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
==> ERROR: Failed to extract multi-gnome-terminal-1.6.2.tar.gz
==> Aborting...
Any help with building PKGBUILD would be much appreciated.


thank you thank you very much.

Offline

#2 2004-04-29 14:39:30

kritoke
Member
From: Texas, USA
Registered: 2003-08-01
Posts: 211
Website

Re: problems with creating PKGBUILD

Found out the mistake, you will probably kick yourself for it.  You have a ) instead of a }.  Those things that are required to compile should be put into the makedepends.

Kritoke


http://counter.li.org/ Registered Linux User #318963 kritoke@jabber.org

Offline

#3 2004-04-29 16:12:18

nornn
Member
From: Reykjavik
Registered: 2003-10-31
Posts: 35

Re: problems with creating PKGBUILD

Thanks kritoke.

I changed the ) to a } and still received errors when using makepkg; see below for results.

[umej@eike multi-gnome-terminal]$ makepkg -c
==> Entering fakeroot environment
==> Making package: multi-gnome-terminal  (Thu Apr 29 16:12:00 UTC 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Missing Dependencies:
==>
requires: gnome-libs
requires: gdk-pixbuf
requires: gtk-libs
==>
and here is my revised PKGBUILD

# $Id: PKGBUILD,v 1.4 2004/04/01 20:40:11 arjan Exp $
# Maintainer: Úlfar Ellenson < umej@hlynur.org >

pkgname=multi-gnome-terminal
pkgver=1.6.2
pkgrel=1
pkgdesc="The GNOME Multi Terminal Emulator"
url="http://multignometerm.sourceforge.net"
groups=('gnome-extra')
makedepends=('gnome-libs' 'gdk-pixbuf' 'gtk-libs')
source=(http://multignometerm.sourceforge.net/web/download.shtml/$pkgname-$pkgve
r.tar.gz)
md5sums=('4f9e4fab7f8c925e07de0c256e6a044c')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome
  make || return 1
  make DESTDIR=$startdir/pkg install
}

When making packages for PKGBUILD is it best first to build the package on your own computer with ./configure -- and then use ldd or ldconfig to find the dependencies that are required to build the package for PKGBUILD.


thank you thank you very much.

Offline

#4 2004-04-30 06:24:53

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: problems with creating PKGBUILD

nornn wrote:

When making packages for PKGBUILD is it best first to build the package on your own computer with ./configure -- and then use ldd or ldconfig to find the dependencies that are required to build the package for PKGBUILD.

Or namcap... knowing full well that namcap is only able to detect link-level dependencies.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-04-30 13:53:17

nornn
Member
From: Reykjavik
Registered: 2003-10-31
Posts: 35

Re: problems with creating PKGBUILD

Thanks Xentac.

I have tried namcap but I my problem is that I have to be able to get my PKGBUILD from
its' current status to multi-gnome-terminal-1.6.2-pkg.tar.gz, then I could use namcap to find dependencies that are needed so that I could add the correct dependencies in my PKGBUILD:
That being said have I come back to my original question which is, " should I build multi-gnome-terminal by doing ./configure --options ie. prefix and so on, then make and make install and finally running ldd on /usr/bin/multi-gnome-terminal so that I would have a complete list of depenendencies for "makedepends ()?".  My problem is that I get this error when running makepkg -c: 
[umej@eike multi-gnome-terminal]$ makepkg -c
==> Entering fakeroot environment
==> Making package: multi-gnome-terminal  (Fri Apr 30 13:39:05 UTC 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading multi-gnome-terminal-1.6.2.tar.gz
--13:39:05--  http://multignometerm.sourceforge.net/w … 6.2.tar.gz
           => `multi-gnome-terminal-1.6.2.tar.gz'
Resolving multignometerm.sourceforge.net... 66.35.250.209
Connecting to multignometerm.sourceforge.net[66.35.250.209]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [   <=>                               ] 12,907        28.93K/s

13:39:06 (28.92 KB/s) - `multi-gnome-terminal-1.6.2.tar.gz' saved [12907]

==> Validating source files with MD5sums
    multi-gnome-terminal-1.6.2.tar.gz ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf multi-gnome-terminal-1.6.2.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
==> ERROR: Failed to extract multi-gnome-terminal-1.6.2.tar.gz
==> Aborting...
Could someone please point out to me why and how to correct this error with tar decompression in makepkg.


thank you thank you very much.

Offline

#6 2004-04-30 14:42:36

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: problems with creating PKGBUILD

hi nornn,

your location is wrong:
http://multignometerm.sourceforge.net/w … 6.2.tar.gz

this download.shtml stops at a webpage, downloads it and try to decompress an htmlfile.

http://easynews.dl.sourceforge.net/sour … 6.2.tar.gz

will does a better job I think. :-)

bye neri

PS:

I think this is a gnome1.x app and won't work anymore. But try if you want, good luck

Offline

#7 2004-04-30 16:06:35

nornn
Member
From: Reykjavik
Registered: 2003-10-31
Posts: 35

Re: problems with creating PKGBUILD

Thanks neri.

Your suggestion worked and you are correct about multi-gnome-terminal being a gnome 1.x application.  I found that out when I got the checking for gnomeConf.sh and received make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...
and found out that I need libgnome from gnome 1.4 which is not available in pacman; so I am quitting with multi-gnome-terminal.  I have learned quite a bit about makepkg and will continue with makepkg thanks to the support of those in the forum.


thank you thank you very much.

Offline

Board footer

Powered by FluxBB