<?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>188587</bug_id>
          
          <creation_ts>2007-08-12 14:02 0000</creation_ts>
          <short_desc>net-dns/libidn-1.0 failed w/ USE=&quot;-emacs&quot; when xemacs is installed and emacs is not</short_desc>
          <delta_ts>2007-08-13 13:44:31 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>PPC</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lordcris@yahoo.it</reporter>
          <assigned_to>maintainer-needed@gentoo.org</assigned_to>
          <cc>betelgeuse@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lordcris@yahoo.it</who>
            <bug_when>2007-08-12 14:02:48 0000</bug_when>
            <thetext>test -z &quot;/usr/lib/pkgconfig&quot; || /bin/mkdir -p &quot;/var/tmp/portage/net-dns/libidn-1.0/image//usr/lib/pkgconfig&quot;
 /usr/bin/install -c -m 644 &apos;libidn.pc&apos; &apos;/var/tmp/portage/net-dns/libidn-1.0/image//usr/lib/pkgconfig/libidn.pc&apos;
make[2]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.0/work/libidn-1.0&apos;
make[1]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.0/work/libidn-1.0&apos;
rm: cannot remove `/var/tmp/portage/net-dns/libidn-1.0/image//usr/share/emacs&apos;: No such file or directory
 *
 * ERROR: net-dns/libidn-1.0 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_install
 *   ebuild.sh, line 1089:   Called qa_call &apos;src_install&apos;
 *   ebuild.sh, line 44:   Called src_install
 *   libidn-1.0.ebuild, line 42:   Called die
 *
 * (no error message)
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/net-dns/libidn-1.0/temp/build.log&apos;.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=ibm-jdk-bin-1.5  CLASSPATH=&quot;.&quot; JAVA_HOME=&quot;/opt/ibm-jdk-bin-1.5.0.5&quot;
JAVACFLAGS=&quot;-source 1.4 -target 1.4&quot; COMPILER=&quot;&quot;
and of course, the output of emerge --info


Reproducible: Always




# emerge --info
Portage 2.1.3.4 (default-linux/ppc/2005.1/ppc/G4, gcc-4.2.0, glibc-2.6-r0, 2.6.22-gentoo-r2 ppc)
=================================================================
System uname: 2.6.22-gentoo-r2 ppc 7447A, altivec supported
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 12 Aug 2007 11:00:10 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;powerpc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec&quot;
CHOST=&quot;powerpc-unknown-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/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://213.186.33.37/gentoo-distfiles/&quot;
LANG=&quot;en_US.UTF-8&quot;
LC_ALL=&quot;en_US.UTF-8&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 --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/layman/r300-driver /usr/local/layman/xeffects /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac aiglx alsa altivec asf audiofile bash-completion berkdb beryl bitmap-fonts bluetooth browserplugin bzip2 cairo cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups dbus dga dhcp divx divx4linux dri dts dvb dvd dvdr dvdread eds emboss encode faac fbcon fbdev ffmpeg firefox flac fortran gdbm gif glitz gphoto2 gpm gstreamer gtk gtk2 iconv icq imlib ipv6 isdnlog ithreads java javacomm jpeg kde kdexdeltas kickoff libwww live mad matroska midi motif mozbranding mozdevelop mp3 mpeg mudflap musepack musicbrainz nas ncurses network nls nptl nptlonly nsplugin nsplugins nxclient offensive ogg oggvorbis opengl openmp openntpd oss pam parse-clocks pci pcre perl png ppc pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba session sheep softmmu spell spl ssl stream symlink tcpd truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd vorbis wma wxwindows x264 xanim xml2 xorg xv xvid zlib&quot; ALSA_CARDS=&quot;powermac&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon ati&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aard@keimpema.speedxs.nl</who>
            <bug_when>2007-08-13 09:23:36 0000</bug_when>
            <thetext>Created an attachment (id=127932)
Fixed ebuild

I experienced the same bug on x86. It happens under the following conditions :  
1. xemacs is installed
2. regular emacs is not installed
3. The emacs use flag is not set
 
The build process then fails because the ebuild tries to delete a directory
&quot;/var/tmp/portage/net-dns/libidn-1.0/image/usr/share/emacs&quot; which doesn&apos;t exists.

It doesn&apos;t exists because when xemacs is installed instead of emacs a directory &quot;usr/lib/xemacs&quot; is created instead of &quot;usr/share/emacs&quot;. Curiously enough when neither xemacs or emacs is installed &quot;usr/share/emacs&quot; is still created.

Attached is an updated ebuild. I have added checks so that it only tries to delete &quot;usr/share/emacs&quot; or &quot;usr/lib/xemacs&quot; when they actually exists.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-08-13 09:36:09 0000</bug_when>
            <thetext>@betelgeuse - you added the || die stuff there.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-08-13 13:42:48 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Created an attachment (id=127932) [edit]
&gt; Fixed ebuild
&gt; 

QA checks for package directory /usr/portage/net-dns/libidn:
/usr/portage/net-dns/libidn/libidn-1.0.ebuild: whitespace:
  minor:        Spaces for indenting on line 46
  minor:        Spaces for indenting on line 47
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-08-13 13:44:31 0000</bug_when>
            <thetext>White space issues fixed and patch committed.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>127932</attachid>
            <date>2007-08-13 09:23 0000</date>
            <desc>Fixed ebuild</desc>
            <filename>libidn-1.0.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA3IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L25ldC1kbnMvbGliaWRuL2xpYmlkbi0xLjAuZWJ1
aWxkLHYgMS4xIDIwMDcvMDgvMTEgMDk6MDM6NTAgYmV0ZWxnZXVzZSBFeHAgJAoKaW5oZXJpdCBq
YXZhLXBrZy1vcHQtMiBtb25vIGF1dG90b29scwoKREVTQ1JJUFRJT049IkludGVybmF0aW9uYWxp
emVkIERvbWFpbiBOYW1l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