<?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>155391</bug_id>
          
          <creation_ts>2006-11-16 10:32 0000</creation_ts>
          <short_desc>media-libs/libcaca-0.99_beta7 fails to install with USE=doc</short_desc>
          <delta_ts>2006-11-29 02:12:01 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>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lhunath@gmail.com</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>matrixhax0r@gmail.com</cc>
    
    <cc>public@mroot.net</cc>
    
    <cc>Storklerk@ariolc.dyndns.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lhunath@gmail.com</who>
            <bug_when>2006-11-16 10:32:34 0000</bug_when>
            <thetext>Making install in doc
 make[1]: Entering directory `/usr/tmp/portage/media-libs/libcaca-0.99_beta7/work/libcaca-0.99.beta7/doc&apos;
 make[2]: Entering directory `/usr/tmp/portage/media-libs/libcaca-0.99_beta7/work/libcaca-0.99.beta7/doc&apos;
 make[2]: Nothing to be done for `install-exec-am&apos;.
 /bin/sh /usr/tmp/portage/media-libs/libcaca-0.99_beta7/work/libcaca-0.99.beta7/autotools/install-sh -d /usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/doc/libcucul-dev/html
 test -z &quot;/usr/share/doc/libcucul-dev/html&quot; || /bin/mkdir -p &quot;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/doc/libcucul-dev/html&quot;
 test -z &quot;/usr/share/man/man1&quot; || /bin/mkdir -p &quot;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/man/man1&quot;
 test -z &quot;&quot; || /bin/mkdir -p &quot;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image/&quot;
 mkdir: cannot create directory `/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/doc/libcucul-dev/html&apos;: File exists
 make[2]: *** [install-data-local] Error 1
 make[2]: *** Waiting for unfinished jobs....
  /bin/install -c -m 644 &apos;html/doxygen.css&apos; &apos;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/doc/libcucul-dev/html/doxygen.css&apos;
  /bin/install -c -m 644 &apos;./caca-config.1&apos; &apos;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/man/man1/caca-config.1&apos;
  /bin/install -c -m 644 &apos;./cacafire.1&apos; &apos;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/man/man1/cacafire.1&apos;
  /bin/install -c -m 644 &apos;./cacaview.1&apos; &apos;/usr/tmp/portage/media-libs/libcaca-0.99_beta7/image//usr/share/man/man1/cacaview.1&apos;
 make[2]: Leaving directory `/usr/tmp/portage/media-libs/libcaca-0.99_beta7/work/libcaca-0.99.beta7/doc&apos;
 make[1]: *** [install-am] Error 2
 make[1]: Leaving directory `/usr/tmp/portage/media-libs/libcaca-0.99_beta7/work/libcaca-0.99.beta7/doc&apos;
 make: *** [install-recursive] Error 1
 
 !!! ERROR: media-libs/libcaca-0.99_beta7 failed.
 Call stack:
   ebuild.sh, line 1568:   Called dyn_install
   ebuild.sh, line 1022:   Called src_install
   libcaca-0.99_beta7.ebuild, line 64:   Called die
 
 !!! emake install failed
 !!! If you need support, post the topmost build error, and the call stack if relevant.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matrixhax0r@gmail.com</who>
            <bug_when>2006-11-17 14:27:40 0000</bug_when>
            <thetext>Yep, me too</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2006-11-18 02:27:07 0000</bug_when>
            <thetext>Same here with old 0.99_beta7 and the new 0.99_beta11 now.

Both compile and install fine with USE=&quot;-doc&quot;.

$ emerge --info
Portage 2.1.2_rc2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-suspend2-mw i686)
=================================================================
System uname: 2.6.18-suspend2-mw i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 18 Nov 2006 08:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
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;-march=pentium-m -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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/splash /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-march=pentium-m -O3 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/&quot;
LANG=&quot;C&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=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.de.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dnow 3dnowext X Xaw3d aac aalib acpi alsa aoss apache apache2 bash-completion berkdb bitmap-fonts blender-game branding bzip2 cairo cdparanoia cdr cli cracklib crypt crypto_openssl css cups curl dba dbus dedicated devmap dga directfb divx dlloader doc dri dvd dvdr dvi editor elibc_glibc emboss encode escreen exif expat fam fbcon ffmpeg firefox flac ftp gd gdbm gif gimpprint glut gnome gnutls gstreamer gtk gtk2 gtkhtml hal hddtemp i8x0 iconv icq idn imagemagick imap input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 jabber java john jpeg jpeg2k kernel_linux lame ldap libcaca libg++ libnotify logrotate mad mbox mmx mmxext mng mozdevelop mozilla mozsvg mp3 mpeg mysql nautilus ncurses nfs nls no-htdocs nptl nptlonly nsplugin nvidia offensive ogg openal opengl openssl oscar oss pam pcre pdf perl php png pop postfix postgres ppds python qt3 qt4 quicktime readline real realmedia rtc ruby samba sdl server session silverxp spell spl sqlite sse sse2 ssl startup-notification svg tcpd tetex theora thunderbird tiff tools truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_fglrx vim vim-with-x visualization vorbis win32codecs wmf x264 xanim xchattext xine xml xorg xpm xprint xsl xv xvid zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matrixhax0r@gmail.com</who>
            <bug_when>2006-11-18 20:20:27 0000</bug_when>
            <thetext>Bug is fixed in beta11 for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Storklerk@ariolc.dyndns.org</who>
            <bug_when>2006-11-22 11:00:35 0000</bug_when>
            <thetext>Not for me, it still see it with beta11:

Making install in doc
make[1]: Entering directory `/var/tmp/portage/media-libs/libcaca-0.99_beta11/work/libcaca-0.99.beta11/doc&apos;
make[2]: Entering directory `/var/tmp/portage/media-libs/libcaca-0.99_beta11/work/libcaca-0.99.beta11/doc&apos;
make[2]: Nothing to be done for `install-exec-am&apos;.
/bin/sh /var/tmp/portage/media-libs/libcaca-0.99_beta11/work/libcaca-0.99.beta11/autotools/install-sh -d /var/tmp/portage/media-libs/libcaca-0.99_beta11/image//usr/share/doc/libcucul-dev/html
test -z &quot;/usr/share/doc/libcucul-dev/html&quot; || /bin/mkdir -p &quot;/var/tmp/portage/media-libs/libcaca-0.99_beta11/image//usr/share/doc/libcucul-dev/html&quot;
mkdir: cannot create directory `/var/tmp/portage/media-libs/libcaca-0.99_beta11/image//usr/share/doc/libcucul-dev/html&apos;: File exists
make[2]: *** [install-data-local] Error 1
make[2]: *** Waiting for unfinished jobs....
 /bin/install -c -m 644 &apos;html/doxygen.css&apos; &apos;/var/tmp/portage/media-libs/libcaca-0.99_beta11/image//usr/share/doc/libcucul-dev/html/doxygen.css&apos;
make[2]: Leaving directory `/var/tmp/portage/media-libs/libcaca-0.99_beta11/work/libcaca-0.99.beta11/doc&apos;
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-libs/libcaca-0.99_beta11/work/libcaca-0.99.beta11/doc&apos;
make: *** [install-recursive] Error 1


Looking into the Makefile from the docs shows the following lines:
        test -z &quot;$(man1dir)&quot; || $(MKDIR_P) &quot;$(DESTDIR)$(man1dir)&quot;
        test -z &quot;$(htmldocdir)&quot; || $(MKDIR_P) &quot;$(DESTDIR)$(htmldocdir)&quot;
        test -z &quot;$(pdfdocdir)&quot; || $(MKDIR_P) &quot;$(DESTDIR)$(pdfdocdir)&quot;
But also the following one:
        $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcucul-dev/html

If you compile with -j1 then the rule &apos;install-data-local&apos; will run first and create the directory with mkinstalldirs, the later rule install-htmldocDATA will skip the create because of the -p implied in MKDIR_P.
If you compile with -j2 the install-htmldocDATA rule seems to be quicker and create the directory itself causing the later mkinstalldirs to fail with above error message.

Quick fix: use -j1 to emerge this package
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-11-29 02:12:01 0000</bug_when>
            <thetext>Fixed in cvs, thanks for reporting.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>