Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212390 - dev-php5/php-gtk-2.0.0 missing patch
Summary: dev-php5/php-gtk-2.0.0 missing patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-05 14:51 UTC by Tim Redman
Modified: 2008-03-07 20:01 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 Tim Redman 2008-03-05 14:51:03 UTC
Ebuild stops with the following error.

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/portage/dev-php5/php-gtk/files/php-gtk-2.0.0-no-cli-check.patch
 *   ( php-gtk-2.0.0-no-cli-check.patch )

 *
 * ERROR: dev-php5/php-gtk-2.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3626:  Called epatch 'src_unpack'
 *             environment, line 1607:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *  The die message:
 *   Cannot find $EPATCH_SOURCE!

Upon further inspection, the directory at /usr/portage/dev-php5/php-gtk/files contains one file: no-cli-check.patch.

Reproducible: Always
Comment 2 Zach 2008-03-07 15:53:51 UTC
Patch should read as follows:

--- config.m4.old       2007-06-17 09:27:39.000000000 +0530
+++ config.m4   2007-06-17 09:27:47.000000000 +0530
@@ -27,11 +27,6 @@
     AC_MSG_ERROR(Could not locate PHP executable)
   fi

-  PHP_SAPI=`$PHP --version | head -1 | sed -n 's/.*(\(...\)).*/\1/p'`
-  if test "$PHP_SAPI" != "cli" ; then
-    AC_MSG_ERROR(PHP CLI version is required[,] $PHP_SAPI found)
-  fi
-
   AC_PROG_AWK
   PHP_SUBST(AWK)


Comment 3 Zach 2008-03-07 16:14:21 UTC
Also need to change ebuild line 69 to read:

epatch "${FILESDIR}"/no-cli-check.patch



Comment 4 Zach 2008-03-07 16:18:32 UTC
new issue see Bug 212595

http://bugs.gentoo.org/show_bug.cgi?id=212595
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 20:01:01 UTC
InCVS.