You are not logged in.
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
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
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
you are missing a curly bracket
build() {
cd $startdir/src/gajim-$pkgver
make || return 1
make DESTDIR=$startdir/pkg PREFIX=/usr inst
}
Offline
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
what did you do differently to the PKGBUILD? It looks the same as CVS. Are you using a different source tarball?
Offline
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
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
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
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
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
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
ok I think I need help
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
ok I think I need help
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
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
Are you sure that you have the right -p option?
Offline
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
can anyone help?
Have you tried to turn it off and on again?
Offline
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.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
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
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
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
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.
can you explain why -p1 and -i ?
Did you have a look at man patch?
Offline
Did you have a look at man patch?
yes I have, but I dont understand it, my Englisch is not the best
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
/usr/bin/ld: cannot find -lXss
Install libxss.
Offline