[oe] [meta-oe][daisy][PATCH] php: Fixing cleanup at the end of do_install on non-existing directories

Lionel AINS lionel.ains at legrand.fr
Tue Feb 24 14:57:31 UTC 2015


At the end of do_install_append_pn-php, a recursive cleanup of temporary directory is executed.
We start from ${D}/${TMPDIR} and go up one level each time, removing each directory, until we read ${D}
The issue is that TMPDIR is not defined in this script, and in some setup seems to contain an absolute path.
Concatenating ${D} with another absolute path leads to a non-existing directory, rmdir will then fail.
I don't really know why this recursive cleanup has been implemented, but in order to keep it working when it
can, but letting it fail silently without failing the whole do_install task, I have just made sure we try to
delete a directory that actually exists, and just silently skip directories otherwise.

Lionel AINS (1):
  php: do_install cleanup tests dir exists before trying rmdir $TMP

 meta-oe/recipes-devtools/php/php.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.10.4



Ce message, ainsi que tous les fichiers joints à ce message,
peuvent contenir des informations sensibles et/ ou confidentielles
ne devant pas être divulguées. Si vous n'êtes pas le destinataire
de ce message (ou que vous recevez ce message par erreur), nous
vous remercions de le notifier immédiatement à son expéditeur, et
de détruire ce message. Toute copie, divulgation, modification,
utilisation ou diffusion, non autorisée, directe ou indirecte, de
tout ou partie de ce message, est strictement interdite.

This e-mail, and any document attached hereby, may contain
confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any
unauthorized, direct or indirect, copying, disclosure, distribution
or other use of the material or parts thereof is strictly
forbidden.



More information about the Openembedded-devel mailing list