<?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>184549</bug_id>
          
          <creation_ts>2007-07-07 22:44 0000</creation_ts>
          <short_desc>dev-python/lxml-1.3.2 fails to build</short_desc>
          <delta_ts>2007-07-08 07:41:50 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>Development</component>
          <version>unspecified</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>torsten.rehn@dystopian.info</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>lucass@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>torsten.rehn@dystopian.info</who>
            <bug_when>2007-07-07 22:44:01 0000</bug_when>
            <thetext>The problem with this ebuild is an incorrect dependency on &quot;dev-python/setuptools&quot; rather than &quot;&lt;=dev-python/setuptools-0.6_rc5&quot; (current stable is rc3).

The error about use_setuptools() taking no arguments is caused by the dummy function the distutils.eclass puts into ez_setup.py. 

I will attach an ebuild that replaces this function with one that conforms to upstreams usage and corrects the dependency issue.


Reproducible: Always

Steps to Reproduce:
1. echo &quot;&lt;=dev-python/lxml-1.3.2 ~ARCH&quot; &gt;&gt; /usr/portage/package.keywords
2. emerge lxml

Actual Results:  
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 9, in ?
    use_setuptools(version=&quot;0.6c5&quot;)
TypeError: use_setuptools() takes no arguments (1 given)

!!! ERROR: dev-python/lxml-1.3.2 failed.


Expected Results:  
&gt;&gt;&gt; dev-python/lxml-1.3.2 merged.

Portage 2.1.2.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 07 Jul 2007 22:00:10 +0000
distcc 2.18.3 x86_64-pc-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-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
CHOST=&quot;x86_64-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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache collision-protect distlocks metadata-transfer multilib-strict sandbox sfperms sign strict&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo &quot;
LANG=&quot;en_US.UTF-8&quot;
LC_ALL=&quot;en_US.UTF-8&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/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac aalib acpi alsa amd64 apache2 arts bash-completion bitmap-fonts bzip2 cdda cdparanoia cdr cli cracklib crypt cups dbus directfb divx dri dts dvd dvdnav dvdr dvdread emerald encode evolution exif fbcon ffmpeg firefox ftp gdbm gif glitz glut gmail gnutls gpm gstreamer gtk gtk2 hal history httpd iconv icq imagemagick imap isdnlog jabber jack jpeg jpeg2k kde keyring ldap libg++ lirc lm_sensors maildir mbox midi mime mod mp3 mpeg mplayer mudflap musepack mysql mysqli ncurses network nntp nptl nptlonly nsplugin nvidia ogg opengl openmp oscar pam pcmcia pcre pdf perl php png pop ppds pppd python qt3 qt4 readline reflection rtsp sdl sdl-image session shout skins smp spl ssl statistics stream svg symlink tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd vlm vorbis widescreen wifi wxwindows x264 xinerama xml xorg xosd xscreensaver xvid zip zlib&quot; ALSA_CARDS=&quot;hda-intel&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 evdev&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;nvidia&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>torsten.rehn@dystopian.info</who>
            <bug_when>2007-07-07 22:44:59 0000</bug_when>
            <thetext>Created an attachment (id=124191)
fixed ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hawking@gentoo.org</who>
            <bug_when>2007-07-08 01:34:39 0000</bug_when>
            <thetext>  I&apos;ve modified the dummy use_setuptools() function in distutils.eclass to ignore function arguments.
  Thanks for reporting ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>torsten.rehn@dystopian.info</who>
            <bug_when>2007-07-08 06:47:19 0000</bug_when>
            <thetext>Great, but what about the dependency? Upstream explicitly asks for setuptools-0.6_rc5. Dummyfying the fetching function only kills lxml&apos;s ability to install setuptools itself - which is good, because we have dependencies for that. But these dependencies should be accurate, shouldn&apos;t they? I don&apos;t know if using rc3 instead really breaks anything, but if upstream says rc5, we should provide it.

Sorry for reopening, but adapting the dummy function just cures the symptoms, not the actual problem. =)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hawking@gentoo.org</who>
            <bug_when>2007-07-08 07:41:50 0000</bug_when>
            <thetext>  My apologies, I forgot about it. The fix is in CVS. Thanks again.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>124191</attachid>
            <date>2007-07-07 22:44 0000</date>
            <desc>fixed ebuild</desc>
            <filename>lxml-1.3.2.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA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