Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475072 - dev-python/python-ldap sed command incorrectly quotes values in setup.cfg
Summary: dev-python/python-ldap sed command incorrectly quotes values in setup.cfg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 475336 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-28 08:00 UTC by Yu Yuwei
Modified: 2013-07-03 12:11 UTC (History)
2 users (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 Yu Yuwei 2013-06-28 08:00:29 UTC
python-ldap failed to build with setuptools-0.7.x

Reproducible: Always

Steps to Reproduce:
1. update setuptools to 0.7.3
2. emerge python-ldap

Actual Results:  
Modules/LDAPObject.c:18:18: fatal error: sasl.h: No such file or directory
compilation terminated.
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

Expected Results:  
successfully emerged

The gcc lines cause this error is: 

x86_64-pc-linux-gnu-gcc -pthread -march=native -O2 -pipe -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.10 -IModules -I""/usr/include -I""/usr/include/sasl -I/usr/include/python2.7 -c Modules/LDAPObject.c -o /var/tmp/portage/dev-python/python-ldap-2.4.10-r1/work/python-ldap-2.4.10-python2_7/temp.linux-x86_64-2.7/Modules/LDAPObject.o

Because the python-ldap-2.4.13.ebuild use a sed line to fix the setup.cfg, which uses the \"{EPREFIX}\" before /usr/include and /user/include/sasl. On my system, the {EPREFIX} expanded to null, and the "" cause gcc failed to find correct include path.


emerge  --info:

Portage 2.2.0_alpha185 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.17, 3.9.4-gentoo x86_64)
=================================================================
System uname: Linux-3.9.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16125140 total,   8616796 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 28 Jun 2013 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo acevery gentoo-zh
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://210.34.0.186/gentoo"
LANG="zh_CN.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/acevery /var/lib/layman/gentoo-zh"
SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"
USE="16Bit X Xaw3d a52 aac acl acpi aiglx aio alsa amd64 apache apng asf avahi bash-completion beagle berkdb bluetooth branding browserplugin bzip2 bzr cairo caps cdda cddb cdr chm cjk cleartype cli colord consolekit contrib cracklib crypt cscope cups cxx dbus dconf djvu dmx dri dts dvd dvdnav dvdr dvdread eds emacs emboss evo exif expat faac faad fam fbcon fbcondecor ffmpeg fftw fifo flac fontconfig fortran fts3 fuse gbm gcj gconf gdbm gif gimp git glade glamor gles gles1 gles2 glib gmp gnome gnome-keyring gnome-online-accounts gphoto2 gpm graphicsmagick gs gsf gstreamer gtk gtk2 gtk3 gucharmap guile gzip-el hesiod i8x0 iconv icu id3 idle ieee1394 imagemagick imap introspection iptc ipv6 jabber jadetex java jemalloc jpeg jpeg2k kerberos kpathsea lame laptop latex lcms ldap libatomic libffi libkms libmms libnotify libsecret llvm lunar lzma lzo mad midi mixemu mmap mmx mng modules mp3 mp4 mpeg mudflap multilib mysql natspec nautilus ncurses networkmanager nls nntp nptl nptlonly nsplugin ofx ogg opencl opengl openmp openssl openvg pam pango pch pcmcia pcre pdf perl pic pkcs11 png policykit poppler ppds pulseaudio python python2 python3 qemu qt3support qt4 quicktime raw readline real rss samba sasl scanner sdl session smp sna sndfile snmp socialweb sound spell spice sqlite sqlite3 srv sse sse2 sse3 sse4 ssl ssse3 startup-notification subversion svg system-sqlite taglib tcl tcltk tcmalloc tcpd tetex theora threads thumbnail tiff tk toolkit-scroll-bars trayicon truetype udev udisks unicode upower usb usbredir v4l v4l2 vaapi vala vim vim-syntax vim-with-x virtfs vorbis vte wav webkit wifi win32codecs winbind wma wmf wmp wps wxwidgets x264 xattr xcb xcomposite xft xinerama xml xmp xorg xprint xv xvfb xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="indigoio" APACHE2_MODULES="authn_core authz_core auth_digest dav_fs actions auth_basic authn_alias authn_anon authn_dbm authn_default authz_dbm authz_default authz_host authz_owner authz_user autoindex cgi cgid dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias alias authn_file authz_groupfile cache dav unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hpp1008" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="zh_CN en_US" NGINX_MODULES_HTTP="gzip gzip_static access auth_basic autoindex browser charset empty_gif fastcgi geo limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi headers_more" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="i386 arm" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2013-07-02 09:48:25 UTC
*** Bug 475336 has been marked as a duplicate of this bug. ***
Comment 2 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2013-07-02 09:59:48 UTC
The bug is there with setuptools 0.6.30-r1 (current stable) as well, check my duplicate
Comment 3 Ian Abbott 2013-07-02 10:45:59 UTC
If the intention is to allow whitespace in ${EPREFIX}, you're going to come up with a different representation of lists in setup.cfg and setup.py.
Comment 4 Ian Abbott 2013-07-02 10:48:56 UTC
(In reply to Ian Abbott from comment #3)
> If the intention is to allow whitespace in ${EPREFIX}, you're going to come
> up with a different representation of lists in setup.cfg and setup.py.

I meant "going to have to come up with".
Comment 5 Ian Abbott 2013-07-02 11:30:47 UTC
I've changed the \"${EPREFIX}\" back to ${EPREFIX} in my local copy of the python-ldap ebuilds to avoid the compiler errors.
Comment 6 Mike Gilbert gentoo-dev 2013-07-02 14:53:30 UTC
+  02 Jul 2013; Mike Gilbert <floppym@gentoo.org> python-ldap-2.3.13.ebuild,
+  python-ldap-2.4.10-r1.ebuild, python-ldap-2.4.10.ebuild,
+  python-ldap-2.4.12.ebuild, python-ldap-2.4.13.ebuild, python-ldap-9999.ebuild:
+  Unquote eprefix in sed call, bug 475072.
+
Comment 7 Michael Weber (RETIRED) gentoo-dev 2013-07-03 12:11:02 UTC
Thanks for catching and fixing this.