Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357025 - dev-php5/adodb-ext-504-r2: fails to build against recent PHP 5.3
Summary: dev-php5/adodb-ext-504-r2: fails to build against recent PHP 5.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 22:52 UTC by Steve Dommett
Modified: 2011-03-06 21:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated patch which applies the same changes cleanly for me (php53.patch,1.08 KB, patch)
2011-03-01 22:53 UTC, Steve Dommett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Dommett 2011-03-01 22:52:40 UTC
It is no longer possible to accelerate ADODB using the ADODB C extensions due to a compilation error.

The changes in php53.patch seem to come from https://github.com/wojo/adodb-ext/commits/master

I'm not sure exactly what the problem with php53.patch is;  applying the same changes by hand and creating a new diff allows compilation to proceed as expected for me.  This diff is attached.

For what it's worth,  I'm using sys-devel/patch-2.6.1.


Reproducible: Always

Steps to Reproduce:
1. emerge -av dev-lang/php:5.3
2. PHP_TARGETS="php5-3" emerge -av adodb-ext


Actual Results:  
 * Failed Patch: php53.patch !
 *  ( /usr/portage/dev-php5/adodb-ext/files/php53.patch )


PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/dev-php5/adodb-ext/files/php53.patch'

Pertinent lines of dev-php5/adodb-ext-504-r2/temp/php53.patch.out:
=======================
patching file adodb.c
Hunk #1 FAILED at 159.
1 out of 2 hunks FAILED -- saving rejects to file adodb.c.rej
=======================


Expected Results:  
The patch and compilation should proceed normally.

Portage 2.2.0_alpha25 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Mar 2011 20:15:01 +0000
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo java-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/ http://gentoo.tiscali.nl/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://mirrors.ludost.net/gentoo/ http://de-mirror.org/distro/gentoo/ http://gentoo.supp.name/ http://files.gentoo.gr http://www.ibiblio.org/pub/Linux/distributions/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://trumpetti.atm.tut.fi/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-e"
PORTAGE_CONFIGROOT="/"
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="/mnt/storage/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacs aalib acl acpi aio alsa amd64 amr audiofile auto-hinter autotrace avahi bazaar berkdb binfilter bluetooth branding btrfs bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups cvs cxx daap darcs dbus declarative desktopglobe dia dirac djvu dmraid dri dts dv dvb dvd dvdr dvi embedded emboss emf encode exif expoblending extra-tools extraengine extras faac faad fam fat fbcon fbcondecor ffmpeg fftw firefox flac flash fontconfig fortran fuse gd gdbm gdu gif gimp git gles glibc-omitfp gmp gnutls gpg gphoto2 gpm gpu graphite graphviz grp gs gsm gstreamer gtk hddtemp hdri hfs hog hugin iconv icu id3tag idn imagemagick inkjar inotify int64 ipv6 jack java jbig jingle jit joystick jpeg jpeg2k kate kde ladspa lame lapack lash lastfm lcms ldap libass libcaca libmpeg2 libnotify libsamplerate libtiger libv4l2 lm_sensors lzma lzo mad matroska md5sum mdadm mercurial mikmod mjpeg mmap mmx mmxext mng modplug modules mp3 mp3rtp mp3tunes mp4 mpeg mpg123 mplayer msn mtp mudflap multilib musepack musicbrainz mvl mysql ncurses nls nptl nptlonly nsplugin ntfs nuv odk offensive ogg openexr opengl openmp openvz optimization pam pango pcre pdf perl phonon physfs plasma plotutils png policykit postgres postproc ppds pppd projectm ps pulseaudio python qalculate qpak qt3support qt4 quicktime rar rdesktop readline realtime redeyes reports rle rtmp rtsp samba schroedinger sdl sdl-image secure-delete semantic-desktop session shout sift skype smp sndfile soundex soundtouch sox speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification stream strong-optimization subversion svg sysfs t1lib taglib tcpd templates theora threads thumbnail tiff tools truetype tslib twolame udev unicode upnp usb utils v4l2 vaapi vamp vcd vdpau video vnc vorbis vpx vserver wad wavpack webkit wma-fixed wmf x264 xattr xcb xine xinerama xml xorg xrandr xscreensaver xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="intel8x0" 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 cgi cgid 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" APACHE2_MPMS="worker" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv fbdev vesa nvidia nouveau" 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" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steve Dommett 2011-03-01 22:53:16 UTC
Created attachment 264309 [details, diff]
Updated patch which applies the same changes cleanly for me
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2011-03-06 21:21:45 UTC
Have you been able to make this patch work before? The problem is that the patch and the patched file contains different line endings. Anyways, I will create a new patch and upload shortly.
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2011-03-06 21:32:50 UTC
Patch adapted and seems to be building just fine. Thanks for reporting!