Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150310 - sys-libs/nss-db-2.2.3_pre1-r1 has poor autotool/gettext handling
Summary: sys-libs/nss-db-2.2.3_pre1-r1 has poor autotool/gettext handling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 167239 (view as bug list)
Depends on: 142852
Blocks:
  Show dependency tree
 
Reported: 2006-10-06 11:56 UTC by Rudolf Mayerhofer
Modified: 2007-02-26 09:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Mayerhofer 2006-10-06 11:56:07 UTC
the nss-db-2.2.3_pre-r1 ebuild fails when gettext-0.15 is installed.

The follwing errormessage is displayed:

aclocal: macro `AM_PROG_MKDIR_P' required but not defined
aclocal: macro `AM_PROG_MKDIR_P' required but not defined

!!! ERROR: sys-libs/nss-db-2.2.3_pre1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  nss-db-2.2.3_pre1-r1.ebuild, line 83:   Called die

!!! aclocal failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

This seems to be related to a change in /usr/share/aclocal/gettext.m4 which tries to access the AM_PROG_MKDIR_P macro which does not exist in aclocal-1.4.

A temporary workaround is to downgrade to a gettext version <0.15. install nss-db and upgrade gettext again to the latest version.

emerge --info output:

Portage 2.1.2_pre2-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.5
Last Sync: Fri, 06 Oct 2006 02:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.0-r2, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://yggdrasil/gentoo-portage"
USE="x86 3dnow 3dnow2 X aac acpi alsa berkdb bitmap-fonts cairo cdr cdrw cli crypt cups dbus dlloader dri dvd dvdr dvdrw eds elibc_glibc emboss encode fam firefox flac fortran gdbm gif glx gpm gtk gtk2 hal input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ mad mikmod mmx mp3 mpeg mplayer ncurses nls nptl nptlonly ogg opengl pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl tcpd threads truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l video_cards_fglrx vorbis win32codecs x264 xcomposite xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-10-06 13:01:55 UTC
nss-db is broken regardless of gettext installed ... you just happened to notice with 0.15 installed
Comment 2 Rudolf Mayerhofer 2006-10-06 13:09:56 UTC
(In reply to comment #1)
> nss-db is broken regardless of gettext installed ... you just happened to
> notice with 0.15 installed
> 

i was able to successfully compile nss-db-2.2.3_pre1-r1 after downgrading
gettext to version 0.14.4 (just tried it on my laptop a few minutes ago).
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-06 17:43:42 UTC
vapier: I was just looking at this, and it seems that gettext-0.15 has a breakage of ANY package that uses old versions of automake.

diff gettext-0.14.4/gettext-runtime/m4/gettext.m4 gettext-0.15/gettext-runtime/m4/gettext.m4 -Nuar |grep MK
-  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
+  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake

AM_PROG_MKDIR_P only exists in automake-1.8 and up, so any package that uses older versions gets screwed over by gettext-0.15
Comment 4 SpanKY gentoo-dev 2006-10-06 20:26:46 UTC
did you read Bug 142852 ?  any package that properly bundles in the .m4 files that it utilizes will work fine when regenerating autotools ... any package that relies on the .m4 files from the system are broken

so either you fix nss-db, or you dont run autotools ... your choice
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-02-16 18:36:09 UTC
*** Bug 167239 has been marked as a duplicate of this bug. ***
Comment 6 Olivier Calle 2007-02-16 18:42:58 UTC
Is there anyone with more autotools experience than I have who could fix this package? (I hacked around for a while with no luck.)

FYI, this breaks openoffice-bin which maybe would bump up the priority/severity?

Steps to break openoffice-bin:
1. Have nss-db and openoffice-bin installed before glibc-2.5 upgrade
2. Upgrade glibc-2.5
3. Observe that openoffice no longer works
4. Try and rebuild nss-db... Foiled again!
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-02-26 09:19:58 UTC
fixed in CVS. it was a PITA one to fix properly.