You are not logged in.

#1 2006-05-15 13:08:17

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

how to build knetworkmanager?

i've been thinking of packaging knetworkmanager from KDE's svn. But I've no clue how to build the package. There's no ./configure or ./autogen.sh, and no makefile that make catches up on, or anything that I'm used to. Any ideas of how to build the package?

Here's a look through websvn: http://websvn.kde.org/trunk/kdereview/knetworkmanager/

Thanks.

Offline

#2 2006-05-15 18:13:00

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

Re: how to build knetworkmanager?

try running autoconf then automake. It'll give you the ./configure and makefile.

Offline

#3 2006-05-15 20:10:40

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: how to build knetworkmanager?

thanks for the reply. Autoconf just tells me that there's no input file. I've been trying to feed it various input files, such as configure.in.in, but to no avail.

I must be missing something really obvious...?

Offline

#4 2006-05-15 23:39:27

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

Re: how to build knetworkmanager?

Try this: rename configure.in.in to configure.in and then run autoconf

Offline

#5 2006-05-16 00:08:30

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: how to build knetworkmanager?

Snowman wrote:

Try this: rename configure.in.in to configure.in and then run autoconf

hmmm... gives me this:

configure.in:3: error: m4_defn: undefined macro: _m4_divert_diversion
autoconf/c.m4:1011: AC_C_BIGENDIAN is expanded from...
configure.in:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

Offline

#6 2006-05-16 02:43:56

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

Re: how to build knetworkmanager?

Another wild guess: cd to the src directory and run automake there.

If that doesn't work, I don't know what else to suggest...

Offline

#7 2006-05-16 05:57:53

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

Re: how to build knetworkmanager?

What happens if you try running aclocal, autoconf and automake in that order? On a fresh copy of the src.

Offline

#8 2006-05-16 06:34:00

Vins
Member
From: Italy
Registered: 2005-12-14
Posts: 67

Re: how to build knetworkmanager?

I tried with this (still incomplete):

pkgname=knetworkmanager-svn
pkgver=539034
pkgrel=1
pkgdesc=""
url=""
depends=()
makedepends=('subversion')
conflicts=('')
replaces=('')
provides=('')

_svntrunk=svn://anonsvn.kde.org/home/kde/trunk/kdereview
_svnmod=knetworkmanager

build() {
  cd $startdir/src

  svn co $_svntrunk/$_svnmod --config-dir ./ -r $pkgver $_svnmod
  cd $_svnmod
  svn co svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kde-common/admin/
  svn cat $_svntrunk/Makefile.cvs > Makefile.cvs

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  cd ..
  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build
  make -f Makefile.cvs || return 1
  ./configure --prefix=/opt/kde
  make all || return 1
  make DESTDIR=$startdir/pkg/ install
  rm -r $startdir/src/$_svnmod-build
}

But it gives me some error during the "make -F Makefile.cvs":

configure.in:7: error: m4_defn: undefined macro: _m4_divert_diversion

ViNS

Offline

#9 2006-05-16 22:52:10

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: how to build knetworkmanager?

tor wrote:

What happens if you try running aclocal, autoconf and automake in that order? On a fresh copy of the src.

[nightfrost@dionysos knetworkmanager-build]$ aclocal
aclocal: `configure.ac' or `configure.in' is required
[nightfrost@dionysos knetworkmanager-build]$ cp configure.in.in configure.in
[nightfrost@dionysos knetworkmanager-build]$ aclocal
configure.in:3: error: m4_defn: undefined macro: _m4_divert_diversion
autoconf/c.m4:1011: AC_C_BIGENDIAN is expanded from...
configure.in:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

:?

Offline

#10 2006-06-21 02:03:10

user
Member
Registered: 2006-03-29
Posts: 465

Re: how to build knetworkmanager?

hmm, sound similar problem that i had ..

+ aclocal-1.9 -I m4
/scratchbox/tools/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/scratchbox/tools/share/aclocal/pkg.m4:5: error: m4_defn: undefined macro: _m4_divert_diversion
/usr/share/aclocal/pkg.m4:114: PKG_CHECK_MODULES is expanded from...
/scratchbox/tools/share/aclocal/pkg.m4:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.9: autom4te failed with exit status: 1

so i looked into line 5 of pkg.m4

dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
dnl also defines GSTUFF_PKG_ERRORS on error
AC_DEFUN(PKG_CHECK_MODULES, [
  succeeded=no

google is my friend,
http://lists.freedesktop.org/archives/p … 00110.html

dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
dnl also defines GSTUFF_PKG_ERRORS on error
AC_DEFUN(PKG_CHECK_EXISTS, [
  succeeded=no


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

Board footer

Powered by FluxBB