<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>150310</bug_id>
          
          <creation_ts>2006-10-06 11:56 0000</creation_ts>
          <short_desc>sys-libs/nss-db-2.2.3_pre1-r1 has poor autotool/gettext handling</short_desc>
          <delta_ts>2007-02-26 09:19:58 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>142852</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rm@eightyfive.net</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          <cc>olivier@calle.org</cc>

      

      
          <long_desc isprivate="0">
            <who>rm@eightyfive.net</who>
            <bug_when>2006-10-06 11:56:07 0000</bug_when>
            <thetext>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&apos; required but not defined
aclocal: macro `AM_PROG_MKDIR_P&apos; 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 &lt;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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LC_ALL=&quot;en_US.utf8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://yggdrasil/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-06 13:01:55 0000</bug_when>
            <thetext>nss-db is broken regardless of gettext installed ... you just happened to notice with 0.15 installed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rm@eightyfive.net</who>
            <bug_when>2006-10-06 13:09:56 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; nss-db is broken regardless of gettext installed ... you just happened to
&gt; notice with 0.15 installed
&gt; 

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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2006-10-06 17:43:42 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-06 20:26:46 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-02-16 18:36:09 0000</bug_when>
            <thetext>*** Bug 167239 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>olivier@calle.org</who>
            <bug_when>2007-02-16 18:42:58 0000</bug_when>
            <thetext>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!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-02-26 09:19:58 0000</bug_when>
            <thetext>fixed in CVS. it was a PITA one to fix properly.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>