You are not logged in.
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
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
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 ![]()
Offline
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 ![]()
Last edited by debdj (2012-06-03 03:32:30)
Offline
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
debjd has a typo: scrdir should be spelled as srcdir .
Offline
Offline
Thanks! Guess I am not near-sighted enough yet ![]()
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