Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397477 - =net-dns/avahi-0.6.30-r2 with sys-devel/automake-1.11.2 - service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate directory for `DATA'
Summary: =net-dns/avahi-0.6.30-r2 with sys-devel/automake-1.11.2 - service-type-databa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
: 397629 398209 435978 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-03 08:57 UTC by Lancelot SIX
Modified: 2012-09-26 13:39 UTC (History)
18 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
automake.out (automake.out,947 bytes, text/plain)
2012-01-03 08:57 UTC, Lancelot SIX
Details
Patch from http://patches.openembedded.org/patch/18137/ (avahi-0.6.30-fix-automake.patch,654 bytes, patch)
2012-01-06 15:18 UTC, Luigi 'Comio' Mantellini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lancelot SIX 2012-01-03 08:57:35 UTC
Created attachment 297773 [details]
automake.out

Error emerging avahi with automake 1.11.2.

The error in the automake.out : 

service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate directory for `DATA'

Here is my emerge --info

Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r2, 3.1.5-gentoosixlcpc x86_64)
=================================================================
System uname: Linux-3.1.5-gentoosixlcpc-x86_64-Intel-R-_Xeon-R-_CPU_E5630_@_2.53GHz-with-gentoo-2.1
Timestamp of tree: Mon, 02 Jan 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.iteam.net.ua/ http://mirror.elen.ktu.lt/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://lug.mtu.edu/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi ada alsa amd64 apache2 avahi bash-completion berkdb bluetooth boost branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups curl cxx dbus declarative djvu dri dts dvd dvdr eds emacs emboss encode evo exif extras faac fam fbcondecor ffmpeg firefox flac fortran gd gdbm gdu gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk3 hal iconv icu imagemagick ipod ipv6 jadetex jpeg kpathsea kpathseai latex lcms ldap libnotify loop-aesi lua mad matroska melt mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support raw readline romio samba sdl session socialweb spell sse sse2 ssl startup-notification subversion svg sysfs tcpd theora threads tiff tk truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I can reproduce it every time on my desktop and laptop.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-01-03 11:25:23 UTC
@Lancelot: There's no need to CC yourself when you're the reporter of a bug. You will receive mails on changes to this bug anyway.
Comment 2 Ian Abbott 2012-01-03 20:58:41 UTC
I also have this problem with =net-dns/avahi-0.6-30-r1

Downgrading automake to =sys-devel/automake-1.11.1-r1 allows avahi to build successfully.

There seem to be several similar bugs reported relating to automake-1.11.2 involving pkglibdir or pkglibexecdir.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-04 15:50:58 UTC
*** Bug 397629 has been marked as a duplicate of this bug. ***
Comment 4 Eric Grüttefien 2012-01-05 14:13:39 UTC
i've Found this working patch (via google):

[PATCH v2 07/15] avahi: fix configure with automake 1.11.2

From: Nitin A Kamble <nitin.a.kamble@...>

automake version 1.11.2 has made use of dir variables more strict.
use of pkglibdir with DATA var results in automake errors.
  This commits uses pkgdatadir var instead of pkglibdir to avoid
the strict check errors.

Fixes this error:
service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate
directory for `DATA'
autoreconf: automake failed with exit status: 1
ERROR: autoreconf execution failed.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@...>
---
 meta/recipes-connectivity/avahi/avahi.inc          |    5 +-
 .../avahi/files/fix_for_automake_1.11.2.patch      |   44 ++++++++++++++++++++
 2 files changed, 47 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch

diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index deebbd6..3cee1a4 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -14,14 +14,15 @@ SECTION = "network"
 # python scripts are under GPLv2+
 LICENSE = "GPLv2+ & LGPLv2.1+"

-INC_PR = "r10"
+INC_PR = "r11"

 DEPENDS = "expat libcap libdaemon dbus glib-2.0"

 SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
           file://00avahi-autoipd \
           file://99avahi-autoipd \
-          file://initscript.patch"
+          file://initscript.patch \
+          file://fix_for_automake_1.11.2.patch"

 USERADD_PACKAGES = "avahi-daemon"
 USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
diff --git a/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch
new file mode 100644
index 0000000..e7a1908
--- /dev/null
+++ b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch
@@ -0,0 +1,44 @@
+Upstream-Status: Pending
+
+automake version 1.11.2 has made use of dir variables more strict.
+the use of pkglibdir with DATA var results in automake errors.
+  This commits uses pkgdatadir var instead of pkglibdir to avoid 
+the strict check errors.
+
+Fixes this error:
+service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate directory for `DATA'
+autoreconf: automake failed with exit status: 1
+ERROR: autoreconf execution failed.
+
+Signed-Off-By: Nitin A Kamble <nitin.a.kamble@...>
+2011/12/28
+
+
+Index: avahi-0.6.30/service-type-database/Makefile.am
+===================================================================
+--- avahi-0.6.30.orig/service-type-database/Makefile.am
++++ avahi-0.6.30/service-type-database/Makefile.am
+@@ -18,13 +18,12 @@
+ EXTRA_DIST=build-db.in service-types
+ 
+ pkgdata_DATA=service-types
+-pkglib_DATA=
+ 
+ if HAVE_PYTHON
+ if HAVE_GDBM
+ 
+ noinst_SCRIPTS=build-db
+-pkglib_DATA+=service-types.db
++pkgdata_DATA+=service-types.db
+ 
+ build-db: build-db.in
+ 	$(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
+@@ -41,7 +40,7 @@ endif
+ if HAVE_DBM
+ 
+ noinst_SCRIPTS=build-db
+-pkglib_DATA+=service-types.db.pag service-types.db.dir
++pkgdata_DATA+=service-types.db.pag service-types.db.dir
+ 
+ build-db: build-db.in
+ 	$(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \
--
Comment 5 Luigi 'Comio' Mantellini 2012-01-06 15:18:20 UTC
Created attachment 298097 [details, diff]
Patch from http://patches.openembedded.org/patch/18137/

Add the following to ebuild:

src_prepare() {
 
...

        # Fix automake
        epatch "${FILESDIR}/${PN}-0.6.30-fix-automake.patch"

...
}
Comment 6 Sergey Ilinykh 2012-01-07 15:38:45 UTC
attached patch works for me. thanks
Comment 7 Robert Cabrera 2012-01-08 00:41:10 UTC
attached patch and ebuild modification works for me as well. We need to get this into the portage tree ASAP. Thanks for supplying it!
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-10 15:21:29 UTC
*** Bug 398209 has been marked as a duplicate of this bug. ***
Comment 9 arnk 2012-01-11 03:34:04 UTC
That patch doesn't work for me.
-----------------------------------------------------
/usr/bin/install -c ServiceTypeDatabase.py '/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.6/site-packages/avahi'
/usr/bin/install -c -m 644 __init__.py '/var/tmp/portage/net-dns/avahi-0.6.30-r2/image//usr/lib/python2.6/site-packages/avahi'
/bin/true: /bin/true: cannot execute binary file
make[3]: *** [install-avahiPYTHON] Error 126
make[3]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30/avahi-python/avahi'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30/avahi-python/avahi'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.30-r2/work/avahi-0.6.30/avahi-python'
make: *** [install-recursive] Error 1
emake failed
* ERROR: net-dns/avahi-0.6.30-r2 failed (install phase):
* make install failed
*
* Call stack:
* ebuild.sh, line 85: Called src_install
* environment, line 5784: Called die
* The specific snippet of code:
* emake install py_compile=true DESTDIR="${D}" || die "make install failed";
*
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-01-11 20:50:57 UTC
It looks to me like this is only partially right because it does not update where the code goes to look for the files.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-01-15 22:24:15 UTC
> It looks to me like this is only partially right because it does not update
> where the code goes to look for the files.

Indeed. I hope I got it right with avahi-0.6.30-r3.

Closing.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-26 13:39:21 UTC
*** Bug 435978 has been marked as a duplicate of this bug. ***