diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-01-17 22:32:41 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-22 13:19:17 +0100 |
commit | 357915b6d11dfa612fbadaa4966a0b3e0f332467 (patch) | |
tree | d684f2a087452e5edf51ceed30eb392d37343e75 /meta-oe/recipes-devtools | |
parent | b139c889cf892a89886a69c2afc87ca994cc287c (diff) | |
download | meta-openembedded-357915b6d11dfa612fbadaa4966a0b3e0f332467.tar.gz |
php: cleanup QA warnings
php-native had:
WARNING: The recipe php-native is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.filemap
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.lock
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.depdblock
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.depdb
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/pear.php.net.reg
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/pecl.php.net.reg
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/doc.php.net.reg
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/__uri.reg
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/.alias/pear.txt
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/.alias/pecl.txt
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/php/.channels/.alias/phpdocs.txt
Please verify which package should provide the above files.
php had:
WARNING: QA Issue: php: Files/directories were installed but not shipped
/.filemap
/.lock
/.depdblock
/.depdb
/var
/.registry
/.channels
/home
/var/run
/var/log
/var/volatile
/var/volatile/run
/var/volatile/log
/etc/php-fpm.conf.default
/.registry/.channel.pecl.php.net
/.registry/.channel.doc.php.net
/.registry/.channel.__uri
/.channels/pear.php.net.reg
/.channels/pecl.php.net.reg
/.channels/doc.php.net.reg
/.channels/__uri.reg
/.channels/.alias
/.channels/.alias/pear.txt
/.channels/.alias/pecl.txt
/.channels/.alias/phpdocs.txt
/home/hrw
/home/hrw/HDD
/home/hrw/HDD/devel
/home/hrw/HDD/devel/canonical
/home/hrw/HDD/devel/canonical/aarch64
/home/hrw/HDD/devel/canonical/aarch64/openembedded
/home/hrw/HDD/devel/canonical/aarch64/openembedded/build
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r-- | meta-oe/recipes-devtools/php/php.inc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc index 5e5a087dc..29e82fa71 100644 --- a/meta-oe/recipes-devtools/php/php.inc +++ b/meta-oe/recipes-devtools/php/php.inc | |||
@@ -7,7 +7,7 @@ DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \ | |||
7 | libc-client openssl sqlite3" | 7 | libc-client openssl sqlite3" |
8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | 8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" |
9 | 9 | ||
10 | INC_PR = "r3" | 10 | INC_PR = "r4" |
11 | 11 | ||
12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" | 12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" |
13 | 13 | ||
@@ -55,14 +55,22 @@ do_install () { | |||
55 | oe_runmake 'INSTALL_ROOT=${D}' install | 55 | oe_runmake 'INSTALL_ROOT=${D}' install |
56 | } | 56 | } |
57 | 57 | ||
58 | do_install_append_pn-php-native() { | ||
59 | rm -rf ${D}/${libdir}/php/.registry | ||
60 | rm -rf ${D}/${libdir}/php/.channels | ||
61 | rm -rf ${D}/${libdir}/php/.[a-z]* | ||
62 | } | ||
63 | |||
58 | # fixme | 64 | # fixme |
59 | do_install_append_pn-php() { | 65 | do_install_append_pn-php() { |
60 | install -d ${D}/${sysconfdir}/ | 66 | install -d ${D}/${sysconfdir}/ |
61 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ | 67 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ |
62 | rm -rf ${D}/${STAGING_DIR_NATIVE} | 68 | rm -rf ${D}/${TMPDIR} |
63 | rm -rf ${D}/.registry | 69 | rm -rf ${D}/.registry |
64 | rm -rf ${D}/.channels | 70 | rm -rf ${D}/.channels |
65 | rm -rf ${D}/.[a-z]* | 71 | rm -rf ${D}/.[a-z]* |
72 | rm -rf ${D}/var | ||
73 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default | ||
66 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf | 74 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf |
67 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf | 75 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf |
68 | install -d ${D}/${sysconfdir}/apache2/conf.d | 76 | install -d ${D}/${sysconfdir}/apache2/conf.d |
@@ -72,6 +80,11 @@ do_install_append_pn-php() { | |||
72 | sed -i 's:=/etc:=${sysconfdir}:g' ${S}/sapi/fpm/init.d.php-fpm | 80 | sed -i 's:=/etc:=${sysconfdir}:g' ${S}/sapi/fpm/init.d.php-fpm |
73 | sed -i 's:=/var:=${localstatedir}:g' ${S}/sapi/fpm/init.d.php-fpm | 81 | sed -i 's:=/var:=${localstatedir}:g' ${S}/sapi/fpm/init.d.php-fpm |
74 | install -m 0755 ${S}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm | 82 | install -m 0755 ${S}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm |
83 | TMP=`dirname ${D}/${TMPDIR}` | ||
84 | while test ${TMP} != ${D}; do | ||
85 | rmdir ${TMP} | ||
86 | TMP=`dirname ${TMP}`; | ||
87 | done | ||
75 | } | 88 | } |
76 | 89 | ||
77 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | 90 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" |