Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108236 - php-sapi.eclass installs /usr/run-tests.php
Summary: php-sapi.eclass installs /usr/run-tests.php
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 20:27 UTC by Daniel Westermann-Clark
Modified: 2005-10-29 11:30 UTC (History)
0 users

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


Attachments
Use libdir in insinto call (run-tests-insinto.patch,346 bytes, patch)
2005-10-05 20:28 UTC, Daniel Westermann-Clark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Westermann-Clark 2005-10-05 20:27:27 UTC
I noticed a random PHP file in my /usr directory:

[23:24:38 dwc@aurelia ~]$ equery belongs /usr/run-tests.php
[ Searching for file(s) /usr/run-tests.php in *... ]
dev-php/php-4.4.0-r1 (/usr/run-tests.php)

I tracked this down to the src_install function in php-sapi.eclass.  It appears
to be a simple search and replace error on the insinto call immediately before
run-tests.php is installed, but I'll attach a patch.

Reproducible: Always
Steps to Reproduce:
1. Install dev-php/php.
Actual Results:  
A PHP file is installed at /usr/run-tests.php.

Expected Results:  
The file should have been installed at /usr/lib/php/run-tests.php.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.1/gentoo-portage"
USE="x86 acl berkdb bitmap-fonts crypt curl eds emacs emboss fortran gd gdbm gif
gstreamer imlib ipv6 java jpeg junit libg++ libwww maildir mmx mp3 mysql ncurses
nls nptl ogg pam perl png postgres python readline samba spell ssl tcpd
truetype-fonts type1-fonts unicode vhosts vorbis xml xml2 zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 Daniel Westermann-Clark 2005-10-05 20:28:13 UTC
Created attachment 69968 [details, diff]
Use libdir in insinto call
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2005-10-29 11:30:48 UTC
Fixed in CVS.
Best regards, CHTEKK.