problem - i cant build APC debian package from PECL with dh-make-pecl from package dh-make-php im running on debian etch stable abaddon@abis:~/xx$ /usr/bin/dh-make-pecl --only 5 APC downloading APC-3.0.14.tgz ... Starting to download APC-3.0.14.tgz (108,511 bytes) .........................done: 108,511 bytes File /home/abaddon/xx/APC-3.0.14.tgz downloaded Creating debian source package: php-- Upstream is: grep: /usr/include/php4/Zend/zend_modules.h: No such file or directory Guessing Maintainer: abaddon mv: cannot stat `-': No such file or directory abaddon@abis:~/xx$ ls APC-3.0.14 APC-3.0.14.tgz php-- php-_.orig.tar.gz i dont think the zend not found error has to do with that, because i get the same problem for other packages which dont return not found error name and version of package is not there, package.xml is inside the tgz debug of script abaddon@abis:~/xx$ rm -rf * abaddon@abis:~/xx$ sh -x /usr/bin/dh-make-pecl --only 5 APC + PROGNAME=dh-make-pecl + PROGVERSION=0.2.0 + PREFIX=/usr + DEBPACKAGEPREFIX=php + DEBTEMPDIR=/usr/share/dh-make-php/pecl.template + PACKAGEDOCFILES='README readme CREDITS TODO AUTHORS' + PACKAGEEXPFILES=examples + '[' -x /usr/bin/xmlstarlet ']' + XMLSTARLET=/usr/bin/xmlstarlet + DEBMAINTAINER= + DEPENDS= + BUILDDEPENDS= + DEPARCH=any + PHPVERSIONS='4 5' + . /usr/share/dh-make-php/dh-make-php.lib + '[' 3 = 0 ']' + case $1 in + PHPVERSIONS=5 + shift + '[' 5 '!=' 4 ']' + '[' 5 '!=' 5 ']' + test 2 -gt 0 + shift + case $1 in + PECLPACKAGENAME=APC + break + '[' -n APC ']' + '[' -f APC ']' ++ pecl download APC + TEMPMSG='downloading APC-3.0.14.tgz ... Starting to download APC-3.0.14.tgz (108,511 bytes) .........................done: 108,511 bytes File /home/abaddon/xx/APC-3.0.14.tgz downloaded' + echo downloading APC-3.0.14.tgz ... Starting to download APC-3.0.14.tgz '(108,511' 'bytes)' .........................done: 108,511 bytes File /home/abaddon/xx/APC-3.0.14.tgz downloaded downloading APC-3.0.14.tgz ... Starting to download APC-3.0.14.tgz (108,511 bytes) .........................done: 108,511 bytes File /home/abaddon/xx/APC-3.0.14.tgz downloaded ++ echo downloading APC-3.0.14.tgz ... Starting to download APC-3.0.14.tgz '(108,511' 'bytes)' .........................done: 108,511 bytes File /home/abaddon/xx/APC-3.0.14.tgz downloaded ++ awk -F ' ' '{print $2}' + PECLPACKAGENAME=APC-3.0.14.tgz + tar xzf APC-3.0.14.tgz + get_packageversion ++ /usr/bin/xmlstarlet sel -t -m /package -v @version package.xml + PACKAGEVERSION= + eval_package + '[' '' = 2.0 ']' ++ xsltproc --nonet --novalid --param Element /package/release/version /usr/share/dh-make-php/xslt/common.xsl package.xml + VERSION= ++ xsltproc --nonet --novalid --param Element /package/release/license /usr/share/dh-make-php/xslt/common.xsl package.xml + LICENSE= ++ xsltproc --nonet --novalid /usr/share/dh-make-php/xslt/maintainers.xsl package.xml ++ sed -e 's/; $//g' + UPSTREAM= ++ xsltproc --nonet --novalid --stringparam filetype doc /usr/share/dh-make-php/xslt/filelist.xsl package.xml ++ sed -e 's# examples/[^ ]*##g' -e 's#^examples/[^ ]*##g' + PACKAGEDOCFILES= ++ xsltproc --nonet --novalid --stringparam filetype test /usr/share/dh-make-php/xslt/filelist.xsl package.xml + PACKAGETESTFILES= ++ echo ++ awk '{print tolower($0)}' ++ sed 's/ /-/g' + LOWLICENSE= + '[' -f /usr/share/dh-make-php/licenses/ ']' ++ xsltproc --nonet --novalid --param Element /package/name /usr/share/dh-make-php/xslt/common.xsl package.xml + PHP_PKG_NAME= ++ echo ++ awk '{print tolower($0)}' ++ sed s/_/-/g + PHP_PKG_LOWNAME= ++ xsltproc --nonet --novalid --param Element /package/summary /usr/share/dh-make-php/xslt/common.xsl package.xml + SUMMARY= ++ xsltproc --nonet --novalid --param Element /package/description /usr/share/dh-make-php/xslt/common.xsl package.xml ++ fold -s -w60 + DESCRIPTION= + '[' -n '' ']' + SRCPACKAGEDIR=php-- + echo 'Creating debian source package: php--' Creating debian source package: php-- + echo 'Upstream is: ' Upstream is: + get_zendapi ++ egrep '#define ZEND_MODULE_API_NO' /usr/include/php4/Zend/zend_modules.h ++ sed 's/#define ZEND_MODULE_API_NO //' grep: /usr/include/php4/Zend/zend_modules.h: No such file or directory + ZENDAPI= + get_maintainer + '[' -z '' ']' + echo -n 'Guessing Maintainer: ' Guessing Maintainer: + '[' -n '' ']' + '[' -n abaddon ']' + MYUSER=abaddon + '[' -n abaddon ']' ++ awk -F: '/^abaddon:/ { print $5 }' /etc/passwd ++ sed -e 's/,.*//g' + REALNAME=abaddon + '[' -n '' ']' + '[' -n '' ']' + '[' -f /etc/mailname ']' ++ cat /etc/mailname + DEBMAINTAINER='abaddon ' + '[' -z 'abaddon ' ']' + echo abaddon '' abaddon + '[' -d php-- ']' + ln -s APC-3.0.14.tgz php-_.orig.tar.gz + mkdir php-- + mv - php-- mv: cannot stat `-': No such file or directory + mv package.xml php-- + mkdir -p php--/debian + cp /usr/share/dh-make-php/pecl.template/compat php--/debian + install_docfiles + install_expfiles + for i in '${PACKAGEEXPFILES}' + '[' -d php--/-/examples ']' + PACKAGEXML=php--/package.xml ++ LC_ALL=C ++ date -R + sed -e 's/##date##/Fri, 11 May 2007 22:10:34 +0300/g' -e 's/##maintainer##/abaddon /g' -e s/##upstream##//g -e s/##license##//g -e s/##peclpkgname##//g /usr/share/dh-make-php/pecl.template/copyright + '[' -n '' ']' + cp /usr/share/dh-make-php/xslt/changelog.xsl php--/debian/ + BINARYTARGETS= + BUILDTARGETS= + CLEANTARGETS= + for PHPVER in '$PHPVERSIONS' + BINARYTARGETS='binary-arch-v5 ' + BUILDTARGETS='build-v5 ' + CLEANTARGETS='clean-v5 ' + PHPDEVDEPENDS=', php5-dev ' + sed -e s/##packagename##/php-/g -e s/##peclpackagerealname##//g -e s/##peclpackagename##//g -e s/##version##//g -e 's/##binarytargets##/binary-arch-v5 /g' -e 's/##buildtargets##/build-v5 /g' -e 's/##cleantargets##/clean-v5 /g' -e s/##packageprefix##/php/g /usr/share/dh-make-php/pecl.template/rules + chmod 755 php--/debian/rules ++ LC_ALL=C ++ date -R + sed -e s/##packagename##/php-/g -e 's/##date##/Fri, 11 May 2007 22:10:48 +0300/g' -e 's/##maintainer##/abaddon /g' -e s/##version##//g /usr/share/dh-make-php/pecl.template/changelog ++ LC_ALL=C ++ date -R + sed -e s/##packagename##/php-/g -e 's/##date##/Fri, 11 May 2007 22:10:48 +0300/g' -e 's/##maintainer##/abaddon /g' /usr/share/dh-make-php/pecl.template/README.Debian + sed -e s/##peclpackagename##//g /usr/share/dh-make-php/pecl.template/watch + sed -e 's/##phpdevdepends##/, php5-dev /g' /usr/share/dh-make-php/pecl.template/control + cp -r /usr/share/dh-make-php/pecl.template/po php--/debian/po + for PHPVERSION in '$PHPVERSIONS' + BINPREFIX=php5 + BINPACKAGE=php5- + sed -e s/##peclpackagename##//g -e s/##phpversion##/5/g /usr/share/dh-make-php/pecl.template/postinst + chmod 755 php--/debian/php5-.postinst + sed -e s/##peclpackagename##//g -e s/##phpversion##/5/g /usr/share/dh-make-php/pecl.template/prerm + chmod 755 php--/debian/php5-.prerm + sed -e s/##phpversion##/5/g /usr/share/dh-make-php/pecl.template/dirs + sed -e s/##peclpackagename##//g -e s/##phpversion##/5/g /usr/share/dh-make-php/pecl.template/config + chmod 755 php--/debian/php5-.config + sed -e s/##phpversion##/5/g -e s/##lowpackage##//g -e s/##package##//g -e s/##binpackagename##/php5-/g /usr/share/dh-make-php/pecl.template/control-bin + /usr/bin/xmlstarlet sel -T -t -v /package/summary php--/package.xml + sed -e 's/^/ /g' + echo '' + echo ' .' + /usr/bin/xmlstarlet sel -T -t -v /package/description php--/package.xml + fold -s -w70 + sed -e 's/^[[:space:]]*$/./g' + sed -e 's/^/ /g' + echo '' + echo '' + cp /usr/share/dh-make-php/pecl.template/templates php--/debian/php5-.templates + sed -e s/##packagename##/php-/g -e 's/##maintainer##/abaddon /g' -e s/##depends##//g -e s/##builddepends##//g -e s/##architecture##/any/g -i php--/debian/control + echo modules/.so abaddon@abis:~/xx$ ls APC-3.0.14 APC-3.0.14.tgz php-- php-_.orig.tar.gz package.xml APC pecl.php.net Alternative PHP Cache APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. Daniel Cowgill dcowgill dan@mail.communityconnect.com no George Schlossnagle gschlossnagle george@omniti.com no Rasmus Lerdorf rasmus rasmus@php.net yes Gopal Vijayaraghavan gopalv gopalv@php.net yes Edin Kadribasic edink edink@emini.dk yes Ilia Alshanetsky iliaa ilia@prohost.org yes Marcus Börger helly helly@php.net yes Sara Golemon pollita pollita@php.net yes Brian Shire shire shire@php.net yes 2007-04-02 3.0.14 3.0.0 stable stable PHP License * Build fix (Shire) * Don't hook the upload hook if APC is disabled (Rasmus) * Local shadow cache support (Gopal) * Avoid uneccessary loops over op_arrays for "known" auto-globals (Gopal) * Fix apc_add() to overwrite timed out user entries (Rasmus) * Fix double inclusion of files with conditional classes in php4 (Gopal) * Allocator fixes to reduce fragmentation (Gopal) 4.3.0 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 1.4.0 apc stable stable 2.0.0 2.0.0 2003-07-01 Complete rework. stable stable 2.0.1 2.0.0 2003-07-01 Win32 support added. stable stable 2.0.2 2.0.0 2004-03-12 Fixed non-existant class bug. stable stable 3.0.0 3.0.0 2005-07-05 PHP-5.1 Support and numerous fixes stable stable 3.0.1 3.0.0 2005-07-05 PHP4 build fix stable stable 3.0.2 3.0.0 2005-07-05 Default to mmap and add a better error message for shmget failures stable stable 3.0.3 3.0.0 2005-07-07 Fix compile problem against PHP 5.0.x stable stable 3.0.4 3.0.0 2005-07-18 Add win32 support from Edin. Add --with-apxs switch to work around problem when loading APC into Apache binary compiled with LFS switches A couple of other minor fixes. stable stable 3.0.5 3.0.0 2005-07-27 Make it easier for sapis that only populate file_handle->filename to use APC. (Rasmus) Support extensions such as bcompiler that need to hook into compile_file. (Val) Ralf Becker's apcgui code has now become the default apc.php status page. (Ralf, Rasmus, Ilia) Segfault in cache cleanup code (Ilia, Rasmus) stable stable 3.0.6 3.0.0 2005-07-30 Added apc.php to package.xml file. Track per-entry memory usage. (Val) Various apc.php fixes and enhancements. (Ralf, Ilia, Rasmus) fcntl locking robustness fixes. (Rasmus) Shared read-locks where possible. (Rasmus) Added file_update_protection configuration parameter. (Rasmus) Windows ZTS fixes (Frank) stable stable 3.0.7 3.0.0 2005-08-16 Fix to apc.php to show final segment in frag chart. (Ilia) A couple of win32 fixes. (Frank) Add apc.enable_cli ini directive. (Rasmus) Add test cases. (Marcus) Fix apc_define_constants() bug - http://pecl.php.net/bugs/5084 (Rasmus) Simplify user cache handling by removing the user_cache_stack (Rasmus) Fix apc_fetch() memory corruption (Andrei,Rasmus) Added apc.max_file_size INI setting that allows exclusion of large files from being cached. Default file size limit, 1 megabyte. (Ilia) stable stable 3.0.8 3.0.0 2005-08-24 Fix invalid free in globals destructor introduced in 3.0.7 (Rasmus) Cache corruption fix in cache-full cleanup code (Gopal) stable stable 3.0.9 3.0.0 2006-03-04 Eliminate rand() call when slam_defense is not set (Rasmus) Fix for __isset problem (Gopal) Rewrite allocator from a "best fit" to a "next fit" algorithm (Rasmus) Added a Cache Full counter so we have an idea how many times the segment has filled up causing an expunge (Rasmus) Report back the correct number of available bytes in the segment instead of the allocated bytes. (Rasmus) Add cache busy flag which is set when an expunge is underway (Rasmus) Add automatic serialization of objects in apc_store() (Marcus) 64-bit .ini flag fix (Rasmus) Static members fix (Gopal) sma_cleanup() mem leak fix (Rasmus) Fix for http://pecl.php.net/bugs/5311 (Rasmus) Fix autoglobals JIT bug (Gopal) Fix instance bug (Gopal) Add a lock cleanup safety net to request shutdown (Rasmus) Fix apc.slam_defense edge-case bug (Rasmus) User entry memory usage tracking support (Ilia) Allow keys used in apc_store/apc_fetch/apc_delete to be binary safe and prevent conflicts between keys that are found at the start of other keys. (Ilia) stable stable 3.0.10 3.0.0 2006-03-11 * Add apc.stat ini flag which defaults to 1. If set to 0, the main script and any fullpath includes will not be stat'ed for any changes. You will have to restart the server if you change anything. This mode increases performance quite a bit, especially if you have a lot of includes. * Get rid of the lock safety net hack I added in 3.0.9. It seems to cause more problems than it solves. I'll need to revisit locking and signal handling at some point soon. stable stable 3.0.11 3.0.0 2006-08-16 * Made --enable-apc-mmap the default compile option (for real this time) * Add an optional flag to apc_cache_info() and some apc.php tweaks to make it only fetch header information to make it useful when you have tens of thousands of entries. (Brian Shire) * 64-bit fixes (George) * Don't mix Full Path and Inode keys (George) * Override ZEND_INCLUDE_OR_EVAL opcode (when possible) to speed up use of require_once() and include_once() statements. (Sara) * Add a non-blocking write_lock for cache inserts. This is a better approach to prevent cache slams and deprecates the slam_defense setting. (Rasmus) * A bit of work on the optimizer. (Sara) * Various memory issues resolved. (Gopal) stable stable 3.0.12 3.0.0 2006-09-04 * Fix stray debug message * Work on the optimizer - still not stable (Gopal, Ilia, Sara) * Performance boost - Replace multiple loops over the opcode array with a single loop for copying, jump fixups and auto global pre-fetches. (Gopal) * Perform fetch_global checks only in php5 and only if auto_globals_jit is enabled. (Gopal) * Fix bug #8579 - scrub php4 classes' function_table and default properties before inserting into cache. (Gopal) * Fix bug #8606 - ZEND_FETCH_GLOBAL is not an opcode, but is a op1->type. The opcodes applicable are ZEND_FETCH_R and ZEND_FETCH_W. (Gopal) * PHP 5.2 Compatibility (Gopal) * Make the include_once override optional - default off (Sara) * Fixed crash when apc run in CLI, but enable_cli is off. (Ilia) * Ensure that the apc_globals->cache_stack is cleared before the shm cache is destroyed. Fixes segfault for corner-case i.e request shutdown (apc_deactivate) is not called before module shutdown calls (php_apc_shutdown_globals) (Gopal) * TSRM fixes (ensure ts_free_id before apc.so is dlclosed) (Gopal) * Fix memory leak of apc_cache_info_t->deleted_list (Gopal) stable stable 3.0.12p1 3.0.0 2006-09-05 * The only change here is a trivial PHP 4 build fix. stable stable 3.0.12p2 3.0.0 2006-09-05 * Let's get the version number right. 3.0.12p2 now. stable stable 3.0.13 3.0.0 2007-02-24 * PHP 5.2 file upload progress tracking support (Rasmus) * Pthread mutex and spin locks (Shire) * Recursive zval support for apc_fetch/_store (Shire, Gopal) * apc.stat_ctime flag for ctime checks (Rasmus) * Multiple key fetches with apc_fetch (Shire) * Canary checks for shm memory deallocation (Gopal) * Add hooks for external optimizer (Shire) * Obsolete and remove apc optimizer (Gopal) * APC info changes - cache insert rate, hit and miss rates (Shire) * Fix apc_load_constants (Gopal) * Rewrite dump opcode code to use vld (Gopal) * Use apc_[ewn]print functions for error reporting (Shire) * Auto global fixes and refactoring (Gopal, Shire) * Fix memory leaks in object serialization (Ilia) * Memory cleanup code for destructor order (Gopal) * Win32 build fixes (Ilia, Wez) * ZTS and Php 4 build fixes (Bjori) * Add apc_add() function (Rasmus) * Add optional limited flag to apc_sma_info() (Rasmus)