You are not logged in.

#1 2006-08-10 22:22:17

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

[solved] How Install custom Package

Hi

I have modify the sources of gajim witch the transparent tray icon patch.

I have downloades the PKGBUILD and have copy the new gajim tar.gz to /var/cache/pacman/scr/

But when I run Makepkg I get the follow error

[root@thinkpad gajim-0.10.1]# vi PKGBUILD
[root@thinkpad gajim-0.10.1]# makepkg
./PKGBUILD: line 1: d:: command not found
./PKGBUILD: line 20: syntax error: unexpected end of file
==> Making package: gajim 0.10.1-2 (Fri Aug 11 00:14:26 CEST 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Using local copy of gajim-0.10.1.tar.gz
==> WARNING: MD5sums are missing or incomplete.  Cannot verify source integrity.==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf gajim-0.10.1.tar.gz
==> Starting build()...
/usr/bin/makepkg: line 637: build: command not found
==> ERROR: Build Failed.  Aborting...


How can I install the modyfied gajim?


Have you tried to turn it off and on again?

Offline

#2 2006-08-10 22:32:38

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [solved] How Install custom Package

first of all don't build packages as root, instead install fakeroot and build as user. The build error you are recieving probably means you have no build{} section. Please post your pkgbuild.

Offline

#3 2006-08-10 22:36:14

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

It's the orgianl PKGBILD from cvs, only the MD5 are deaktivated.

ok i install fakeroot

d: PKGBUILD,v 1.7 2006/07/16 17:31:38 simo Exp $
# Maintainer: Mark Rosenstand <mark>
# Contributor: Nikos Kouremenos <kourem>
pkgname=gajim
pkgver=0.10.1
pkgrel=2
pkgdesc="Jabber client written in PyGTK"
arch=(i686 x86_64)
url="http://www.gajim.org/"
depends=('gtkspell' 'dnsutils' 'pygtk' 'python-pysqlite')
makedepends=('gettext')
source=(http://www.gajim.org/downloads/gajim-$pkgver.tar.gz)
#md5sums=('f7ea7c9932f9e099d0525fe072552e8a')

build() {
          cd $startdir/src/gajim-$pkgver
            make || return 1
              make DESTDIR=$startdir/pkg PREFIX=/usr inst

Have you tried to turn it off and on again?

Offline

#4 2006-08-10 22:43:02

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [solved] How Install custom Package

you are missing a curly bracket

 build() {
          cd $startdir/src/gajim-$pkgver
            make || return 1
              make DESTDIR=$startdir/pkg PREFIX=/usr inst
}

Offline

#5 2006-08-10 22:48:04

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

dam! :oops:

But now i get these error

/usr/include/glib-2.0/glib/gthread.h:115:1: error: unterminated comment
/usr/include/glib-2.0/glib/gthread.h:118:3: warning: no newline at end of file
/usr/include/glib-2.0/glib/gthread.h:27:1: error: unterminated #ifndef
In file included from /usr/include/glib-2.0/glib/gthreadpool.h:30,
                 from /usr/include/glib-2.0/glib.h:72,
                 from /usr/include/pygtk-2.0/pygobject.h:7,
                 from trayicon.override:6:
/usr/include/glib-2.0/glib/gthread.h:115:1: error: unterminated comment
/usr/include/glib-2.0/glib/gthread.h:118:3: warning: no newline at end of file
/usr/include/glib-2.0/glib/gthread.h:27:1: error: unterminated #ifndef
make[1]: *** [trayicon.o] Error 1
make[1]: Leaving directory `/home/flo/download/gajim-0.10.1/src/gajim-0.10.1/src'
make: *** [trayicon] Error 2
==> ERROR: Build Failed.  Aborting...

Have you tried to turn it off and on again?

Offline

#6 2006-08-10 22:53:18

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [solved] How Install custom Package

what did you do differently to the PKGBUILD? It looks the same as CVS. Are you using a different source tarball?

Offline

#7 2006-08-10 22:55:52

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

yes this write I in my first post

I have modify the sources of gajim witch the transparent tray icon patch.


Have you tried to turn it off and on again?

Offline

#8 2006-08-10 23:02:07

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [solved] How Install custom Package

you should be doing all your patch work within the build() section of the PKGBUILD. I doubt that will make a difference for you compile errors. Can you confirm it builds ok without the patch? If so then you can narrow it down to the patch being the problem.

Offline

#9 2006-08-11 06:57:09

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

you should be doing all your patch work within the build() section of the PKGBUILD. I doubt that will make a difference for you compile errors. Can you confirm it builds ok without the patch? If so then you can narrow it down to the patch being the problem.

Hm ok THX


Have you tried to turn it off and on again?

Offline

#10 2006-08-11 10:34:17

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: [solved] How Install custom Package

Also, I don't see any reason to keep the first line in the pkgbuild:

d: PKGBUILD,v 1.7 2006/07/16 17:31:38 simo Exp $ 

Probably you removed some part of it by mistake...

Offline

#11 2006-08-11 20:00:04

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

Hm next problem:

I have only a .diff, and no patch, how can I patch the sources witch .diff?


Have you tried to turn it off and on again?

Offline

#12 2006-08-11 20:45:58

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

Re: [solved] How Install custom Package

usually .diff files are  patches. So something like:
patch -p1 < ../file.diff
before the make line should work. You might need to change the value of the -p option depending on how the patch was created.

Offline

#13 2006-08-13 09:15:50

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

ok I think I need help sad

This is the PKGBUILD

# $Id: PKGBUILD,v 1.7 2006/07/16 17:31:38 simo Exp $
# Maintainer: Mark Rosenstand <mark>
# Contributor: Nikos Kouremenos <kourem>
pkgname=gajim
pkgver=0.10.1
pkgrel=2
pkgdesc="Jabber client written in PyGTK"
arch=(i686 x86_64)
url="http://www.gajim.org/"
depends=('gtkspell' 'dnsutils' 'pygtk' 'python-pysqlite')
makedepends=('gettext')
source=(http://www.gajim.org/downloads/gajim-$pkgver.tar.gz)
md5sums=('f7ea7c9932f9e099d0525fe072552e8a')

build() {
  cd $startdir/src/gajim-$pkgver
  patch -p0  patch.diff || return 1
  make || return 1
  make DESTDIR=$startdir/pkg PREFIX=/usr install
}


but it hangs on build()...

[flo@thinkpad test]$ makepkg
==> Entering fakeroot environment
==> Making package: gajim 0.10.1-2 (Sun Aug 13 11:17:34 CEST 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found gajim-0.10.1.tar.gz in build dir
==> Validating source files with MD5sums
    gajim-0.10.1.tar.gz ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf gajim-0.10.1.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...


The PKGBUILD and the file patch.diff are in the same directory.

what is wrong?


Have you tried to turn it off and on again?

Offline

#14 2006-08-13 10:38:24

Jarsto
Member
From: Groningen, The Netherlands
Registered: 2005-11-18
Posts: 35
Website

Re: [solved] How Install custom Package

fk wrote:

ok I think I need help sad

This is the PKGBUILD

# $Id: PKGBUILD,v 1.7 2006/07/16 17:31:38 simo Exp $
# Maintainer: Mark Rosenstand <mark>
# Contributor: Nikos Kouremenos <kourem>
pkgname=gajim
pkgver=0.10.1
pkgrel=2
pkgdesc="Jabber client written in PyGTK"
arch=(i686 x86_64)
url="http://www.gajim.org/"
depends=('gtkspell' 'dnsutils' 'pygtk' 'python-pysqlite')
makedepends=('gettext')
source=(http://www.gajim.org/downloads/gajim-$pkgver.tar.gz)
md5sums=('f7ea7c9932f9e099d0525fe072552e8a')

build() {
  cd $startdir/src/gajim-$pkgver
  patch -p0  patch.diff || return 1
  make || return 1
  make DESTDIR=$startdir/pkg PREFIX=/usr install
}

<i>snipped</i>

The PKGBUILD and the file patch.diff are in the same directory.

what is wrong?

By the time you're applying the patch you are no longer in the same directory as the patch. Anyway, if you were in that directory there would be nothing there to apply to the patch to. Change the patch line to something like:

   patch -p0  $startdir/patch.diff || return 1 

I think that should do the trick.


Jarsto

Offline

#15 2006-08-13 11:20:51

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

Hm that not worked

The PKGBUILD is in

~flo/test/PKGBUILD

The patch is in

~flo/test/patch.diff

The file that I will patch is in

~flo/test/src/gajim-0.10.1/src/eggtrayicon.c

Have you tried to turn it off and on again?

Offline

#16 2006-08-13 11:28:27

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: [solved] How Install custom Package

Are you sure that you have the right -p option?

Offline

#17 2006-08-13 11:50:04

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

Are you sure that you have the right -p option?

No I am not sure, and i am confused about the p options...

Which p option must I have?


Have you tried to turn it off and on again?

Offline

#18 2006-08-13 17:26:27

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

can anyone help?


Have you tried to turn it off and on again?

Offline

#19 2006-08-13 18:20:57

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 8,274

Re: [solved] How Install custom Package

Where did you get the patch.diff file from ?
The place where you got it from might help in determining which p options are to be used.

Also it should be listed in the sources array, unless it's part of the gajim tar.gz source package.


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#20 2006-08-13 19:42:22

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

Where did you get the patch.diff file from ?

http://trac.gajim.org/attachment/ticket … -tray.diff

Also it should be listed in the sources array, unless it's part of the gajim tar.gz source package.

ok


Have you tried to turn it off and on again?

Offline

#21 2006-08-13 22:52:49

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: [solved] How Install custom Package

Add patch.diff to the source array. You also have to generate a md5sum for it: 'md5sum patch.diff' and add it to the md5sums array.

It looks like the patch should be used with the -p1 option, so the patching line in the PKGBUILD should be

patch -p1 -i ../patch.diff || return 1

Offline

#22 2006-08-14 08:27:04

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

big_smile yeha it works, but it fails on another thing

[flo@thinkpad test]$ makepkg
==> Entering fakeroot environment
==> Making package: gajim 0.10.1-2 (Mon Aug 14 10:47:43 CEST 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found gajim-0.10.1.tar.gz in build dir
==>     Found transparent-tray.diff?format=raw in build dir
==> Validating source files with MD5sums
    gajim-0.10.1.tar.gz ... Passed
    transparent-tray.diff?format=raw ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf gajim-0.10.1.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
patching file src/eggtrayicon.c
make -C po all
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/po'
make -C src trayicon.so;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src'
cc `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fPIC -I/usr/include/python`python -c 'import sys; print sys.version[:3]'` -I.   -c -o eggtrayicon.o eggtrayicon.c
cc `pkg-config --libs gtk+-2.0 pygtk-2.0` -lpython`python -c 'import sys; print sys.version[:3]'` -shared trayicon.o eggtrayicon.o trayiconmodule.o -o trayicon.so
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src'
make -C src gtkspell.so;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src'
make[1]: `gtkspell.so' is up to date.
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src'
make -C src/common all;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src/common'
cc  `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python`python -c 'import sys; print sys.version[:3]'` -I. `pkg-config --libs gtk+-2.0 pygtk-2.0` -L/usr/X11R6/lib -lX11 -lXss -lXext -lpython`python -c 'import sys; print sys.version[:3]'` -shared idle.c  -o idle.so
idle.c:28:39: error: X11/extensions/scrnsaver.h: No such file or directory
idle.c: In function 'idle_getIdleSec':
idle.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
idle.c:63: error: 'mit_info' undeclared (first use in this function)
idle.c:63: error: (Each undeclared identifier is reported only once
idle.c:63: error: for each function it appears in.)
idle.c:70: error: 'event_base' undeclared (first use in this function)
idle.c:70: error: 'error_base' undeclared (first use in this function)
idle.c:75: error: 'idle_time' undeclared (first use in this function)
make[1]: *** [idle.so] Error 1
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src/common'
make: *** [idle] Error 2
==> ERROR: Build Failed.  Aborting...
[flo@thinkpad test]$

WTF ist this? These are the orginal sources, no cvs or testing..


patch -p1 -i ../patch.diff || return 1

can you explain why -p1 and -i ?


Have you tried to turn it off and on again?

Offline

#23 2006-08-14 08:49:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] How Install custom Package

fk wrote:

WTF ist this?

Seems pretty clear to me:

idle.c:28:39: error: X11/extensions/scrnsaver.h: No such file or directory

Install the scrnsaverproto package.

fk wrote:

can you explain why -p1 and -i ?

Did you have a look at man patch?

Offline

#24 2006-08-14 08:59:15

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: [solved] How Install custom Package

Did you have a look at man patch?

yes I have, but I dont understand it, my Englisch is not the best roll

OK have installed scrnsaverproto but it fails

[flo@thinkpad test]$ makepkg
==> Entering fakeroot environment
==> Making package: gajim 0.10.1-2 (Mon Aug 14 10:56:48 CEST 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found gajim-0.10.1.tar.gz in build dir
==>     Found transparent-tray.diff?format=raw in build dir
==> Validating source files with MD5sums
    gajim-0.10.1.tar.gz ... Passed
    transparent-tray.diff?format=raw ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf gajim-0.10.1.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
patching file src/eggtrayicon.c
make -C po all
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/po'
make -C src trayicon.so;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src'
cc `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fPIC -I/usr/include/python`python -c 'import sys; print sys.version[:3]'` -I.   -c -o eggtrayicon.o eggtrayicon.c
cc `pkg-config --libs gtk+-2.0 pygtk-2.0` -lpython`python -c 'import sys; print sys.version[:3]'` -shared trayicon.o eggtrayicon.o trayiconmodule.o -o trayicon.so
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src'
make -C src gtkspell.so;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src'
make[1]: `gtkspell.so' is up to date.
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src'
make -C src/common all;
make[1]: Entering directory `/home/flo/test/src/gajim-0.10.1/src/common'
cc  `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python`python -c 'import sys; print sys.version[:3]'` -I. `pkg-config --libs gtk+-2.0 pygtk-2.0` -L/usr/X11R6/lib -lX11 -lXss -lXext -lpython`python -c 'import sys; print sys.version[:3]'` -shared idle.c  -o idle.so
/usr/bin/ld: cannot find -lXss
collect2: ld returned 1 exit status
make[1]: *** [idle.so] Error 1
make[1]: Leaving directory `/home/flo/test/src/gajim-0.10.1/src/common'
make: *** [idle] Error 2
==> ERROR: Build Failed.  Aborting...


Have you tried to turn it off and on again?

Offline

#25 2006-08-14 09:26:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] How Install custom Package

/usr/bin/ld: cannot find -lXss

Install libxss.

Offline

Board footer

Powered by FluxBB