You are not logged in.

#1 2012-06-02 08:47:37

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

A Question about Avahi

I have installed Avahi on a 64-bit system, but have so far not been able to make it discover anything. I noticed in a Fedora wiki that 64-bit systems need both 'nss-mdns' and 'lib32-nss-mdns'. On AUR's website 'lib32-nss-mdns' is flagged as outdated, while Yaourt offers it as current. However, the PKGBUILD is wrong and the alternative PKGBUILDS offered by non-maintainers don't seem to work here - or I am overlooking something.

If 'lib32-nss-mdns' really is needed for Avahi to work on 64-bit systems, I would suggest it be moved to Extra and proper maintenance... If it isn't needed, my problem is different. Does Avahi work under Arch without 'lib32-nss-mdns'?

Offline

#2 2012-06-02 20:23:32

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: A Question about Avahi

the PKGBUILD is absurd.
change

package() {
  cd $_pkgsourcename-$pkgver
  make  install
}

with

package() {
  cd ${scrdir}/${_pkgsourcename}-${pkgver}
  make  install
}

The home page for nss-mdns says the dependencies are avahi and glibc(build time)
so, you could change the depends=('gcc-multilib') line to depends=('glibc')

Last edited by debdj (2012-06-03 03:22:45)

Offline

#3 2012-06-02 22:13:02

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: A Question about Avahi

Thank you. Trying to follow your advice, I still can't get it to compile.
The orig PKGBUILD states: '_pkgsourcename=nss-mdns' (which I belive to be wrong?), and it does not compile with either depends=('gcc-multilib') or depends=('glibc'). Changing it to '_pkgsourcename=lib32-nss-mdns' errors out with package not found, i.e. "curl: (22) The requested URL returned error: 404".

Not sure what to do, save for learning to roll my own wink

Offline

#4 2012-06-03 03:30:22

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: A Question about Avahi

change this line
./configure  --prefix=$pkgdir --libdir=$pkgdir/lib32
to
./configure  --prefix=/usr --libdir=/usr/lib


change package to:

package() {
  cd ${scrdir}/${_pkgsourcename}-${pkgver}
  make  DESTDIR=${pkgdir} install
}

Just read man pkgbuild, it says all about it wink

Last edited by debdj (2012-06-03 03:32:30)

Offline

#5 2012-06-03 22:20:05

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: A Question about Avahi

With this PKGBUILD:

_pkgsourcename=nss-mdns
pkgname=lib32-nss-mdns
pkgver=0.10
pkgrel=2
pkgdesc="glibc plugin providing host name resolution via mDNS"
arch=('x86_64')
url="http://0pointer.de/lennart/projects/nss-mdns/"
license=('LGPL')
depends=('glibc')
makedepends=()
backup=('etc/mdns.allow')
install=
source=(http://0pointer.de/lennart/projects/nss-mdns/$_pkgsourcename-$pkgver.tar.gz)
md5sums=('03938f17646efbb50aa70ba5f99f51d7')


build() {
    echo "cd $startdir/src/$_pkgsourcename-$pkgver"
    echo "$startdir"
    cd $startdir/src/$_pkgsourcename-$pkgver
    ./configure  --prefix=/usr --libdir=/usr/lib
    make
}

package() {
  cd ${scrdir}/${_pkgsourcename}-${pkgver}
  make  DESTDIR=${pkgdir} install
}

---
compiling seems to go well, but building the package fails with the foll error: "/tmp/yaourt-tmp-user/aur-lib32-nss-mdns/./PKGBUILD: line 28: cd: /lib32-nss-mdns-0.10: No such file or directory" (line 28 being: "cd ${scrdir}/${_pkgsourcename}-${pkgver}".

I am still suspicious of '_pkgsourcename', but what do I know ;( As for 'aur-lib32-nss-mdns', I am calling Yaourt from /home/user/aur.

Last edited by whaler (2012-06-03 22:22:02)

Offline

#6 2012-06-03 22:22:35

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: A Question about Avahi

debjd has a typo: scrdir should be spelled as srcdir .

Offline

#7 2012-06-04 06:35:19

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: A Question about Avahi

yup, it would be srcdir nor scrdir, sorry about that.

Offline

#8 2012-06-04 23:12:45

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 324

Re: A Question about Avahi

Thanks! Guess I am not near-sighted enough yet wink
Now it builds and makes, but doesn't install, claiming conflict with several (all?) executives. This could mean that 'nss-mdns' now incorporates the functionality of 'lib32-nss-mdns' and be the reason the AUR webpage says the latter is out of date(?). Although the AUR database still happily offers it as valid...

I guess enough is enough, and perhaps I must look closer at Avahi's config files.

Thanks again for the help!

Offline

Board footer

Powered by FluxBB