You are not logged in.

#1 2007-08-18 16:47:02

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

[SOLVED] Help creating a package for telepathy-haze

Hi,

so far creating packages has been really easy for me, but now I am stuck at creating one for telepathy-haze.

Normally that should be done, with an easy "./configure", "make", "make install", but I encounter problems with make sad

My PKGBuild:

pkgname=telepathy-haze
pkgver=0.1.1
pkgrel=1
pkgdesc="A link-local XMPP connection manager for Telepathy"
arch=('i686' 'x86_64')
url="http://telepathy.freedesktop.org"
groups=('telepathy')
license=('GPL')
depends=('libtelepathy' 'telepathy-glib' 'pidgin')
source=(http://salami.ox.compsoc.net/~resiak/haze/haze-$pkgver.tar.gz)
md5sums=('1bd892c6e5a7d0a4330fff31711d52c7')

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

and the make-output:

$ make
Making all in src
make[1]: Entering directory `/home/me/Packages/telepathy-haze/src/haze-0.1.1/src'
if gcc -std=gnu99 -DPACKAGE_NAME=\"haze\" -DPACKAGE_TARNAME=\"haze\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"haze\ 0.1.1\" -DPACKAGE_BUGREPORT=\"resiak@soc.pidgin.im\" -DPACKAGE=\"haze\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I.    -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/telepathy-1.0 -I/usr/include/dbus-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/dbus-1.0/include   -Wall -Werror -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
cc1: warnings being treated as errors
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:30,
                 from /usr/include/glib-2.0/glib.h:32,
                 from main.c:27:
/usr/include/glib-2.0/glib/gutils.h:316: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:316: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
/usr/include/glib-2.0/glib/gutils.h:330: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:343: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:362: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:370: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:387: warning: C99 inline functions are not supported; using GNU89
/usr/include/glib-2.0/glib/gutils.h:396: warning: C99 inline functions are not supported; using GNU89
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:30,
                 from /usr/include/glib-2.0/glib.h:32,
                 from main.c:27:
/usr/include/glib-2.0/glib/gthread.h:334: warning: C99 inline functions are not supported; using GNU89
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/me/Packages/telepathy-haze/src/haze-0.1.1/src'
make: *** [all-recursive] Error 1

The sources are available at:
http://salami.ox.compsoc.net/~resiak/haze/

Thanks for your help

Last edited by gummibaerchen (2007-08-19 12:19:00)

Offline

#2 2007-08-18 19:22:34

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

Re: [SOLVED] Help creating a package for telepathy-haze

you need to remove -Werror in the compile line so it doesn't stop the compilation on warnings. You can do that with a sed line before the make line:
sed -i 's/-Werror//' path/to/Makefile

Offline

#3 2007-08-19 12:18:39

gummibaerchen
Member
Registered: 2007-07-20
Posts: 109

Re: [SOLVED] Help creating a package for telepathy-haze

Snowman wrote:

you need to remove -Werror in the compile line so it doesn't stop the compilation on warnings. You can do that with a sed line before the make line:
sed -i 's/-Werror//' path/to/Makefile

Thanks, that works just fine.

telepathy-haze package is available in the AUR from now on wink

thx

Offline

Board footer

Powered by FluxBB