Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252713 - dev-lang/php-5.2.8-r1 fails to compile with global USE=-unicode.
Summary: dev-lang/php-5.2.8-r1 fails to compile with global USE=-unicode.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-27 17:06 UTC by Kelly Price
Modified: 2010-12-27 21:42 UTC (History)
0 users

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 Kelly Price 2008-12-27 17:06:14 UTC
* Messages for package dev-lang/php-5.2.8-r1:

 * 
 * ERROR: dev-lang/php-5.2.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *     php-5.2.8-r1.ebuild, line  105:  Called die
 * The specific snippet of code:
 *              built_with_use dev-libs/libpcre unicode || \
 *                      die "Please rebuild dev-libs/libpcre with USE=unicode"
 *  The die message:
 *   Please rebuild dev-libs/libpcre with USE=unicode
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.8-r1/temp/die.env'.
 * 

Um, excuse me, but I don't want Unicode.  My make.conf file has it explicitly marked "-unicode".  C is good enough for me.


Reproducible: Always

Steps to Reproduce:
1.  Emerge dev-libs/libpcre with USE=-unicode
2.  Try to emerge dev-lang/php with USE=-unicode


Actual Results:  
Ebuild complains about dev-libs/libpcre not compiled with USE=unicode.

Expected Results:  
Ebuild should have compiled w/o support for Unicode.

Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27.3-sandra i686)
=================================================================
System uname: 2.6.27.3-sandra i686 Genuine Intel(R) CPU T2050 @ 1.60GHz
Timestamp of tree: Sat, 27 Dec 2008 16:05:02 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirror.solnet.ch http://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.12/gentoo-portage"
USE="X a52 aac acl acpi alsa aoss avahi berkdb bluetooth bzip2 cgi cli cracklib crypt cups curl dbus dga dri dvd dvdread encode esd firefox flac gdbm gif gpm gtk hal iconv imap isdnlog jpeg kde lzo mad maildir mbox midi mikmod mmx mng mp3 mudflap mysql ncurses nptl nptlonly ntpl ntplonly ogg opengl openmp oss pam pcre perl php png pppd python qt readline reflection rtc samba sdl session smp sndfile sockets spl sqlite sse sse2 ssl svg sysfs tcpd theora tiff truetype usb v4l v4l2 vorbis wifi win32codecs wma x264 x86 xorg xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa nvidia fbdev"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

From my /etc/make.conf:
USE="-fortran -ipv6 -nls -gnome -apm -eds -unicode \
        ntpl ntplonly mmx sse sse2 acpi samba tiff bzip2 svg hal dbus kde qt \
        gtk xmms firefox wifi xmms win32codecs x264 dga dvd dvdread usb \
        bluetooth aac theora aoss cgi curl imap jpeg png mng gif\
        sockets sqlite zip lzo xvid X opengl sdl encode esd mad oss alsa rtc \
        truetype vorbis xv xvmc mp3 flac sndfile wma a52 v4l v4l2 \
        mikmod sdl php ogg mbox maildir smp avahi mysql"

Work-around is to mask out this release.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-27 18:17:32 UTC
Another solution would be to compile dev-lang/php without the "pcre" USE flag.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 00:37:25 UTC
(In reply to comment #0)

> Work-around is to mask out this release.

That won't happen due to security issues with versions less than 5.2.8-r1. Assigning to maintainers to consider. Thanks for the report
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-03-31 22:29:41 UTC
Thanks for reporting this bug (it's been a while). While i understand your decision to go with plain C locale, this is no longer possible due to bug #265336, which caused libpcre to force unicode on.

I'm trying to figure out a solution to this, but changing libpcre is not trivial and may or may not happen at all.
Comment 4 Kelly Price 2010-03-31 22:35:05 UTC
(In reply to comment #3)
> Thanks for reporting this bug (it's been a while). While i understand your
> decision to go with plain C locale, this is no longer possible due to bug
> #265336, which caused libpcre to force unicode on.
> 
> I'm trying to figure out a solution to this, but changing libpcre is not
> trivial and may or may not happen at all.
> 

Talk about your old bugs!  I think a better solution (since it's been two years old, and I've switched hardware since then) is to move from a C locale to a defined locale via Unicode.  I'll have to dig through to see how to set this; it's defaulting to C.