In the start of localepurge script there is a command 'set -e' and the script ends abnormally when result of internal Bash 'let' command is equal to zero. For ex: !#/bin/bash set -e let var=0 echo "This code will not be reached"
Created attachment 335706 [details] localepurge-0.5.4-r2.ebuild
Created attachment 335708 [details, diff] localepurge-0.5.4-evaltotal.patch Fixes the bug.
Comment on attachment 335706 [details] localepurge-0.5.4-r2.ebuild --- localepurge-0.5.4-r1.ebuild 2013-01-14 20:48:16.692206818 +0100 +++ - 2013-01-15 14:13:29.820263759 +0100 @@ -27,6 +27,8 @@ epatch "${FILESDIR}"/${P}-directorysum.patch # 445910 epatch "${FILESDIR}"/${P}-parentdir.patch + # 452208 + epatch "${FILESDIR}"/${P}-evaltotal.patch eprefixify ${PN} }
Created attachment 335856 [details] Ebuild for localepurge-0.5.4-r2 Applies the evaltotal.patch. Thx Jeroen, and Kolan for reporting the bug.
+*localepurge-0.5.4-r2 (16 Jan 2013) + + 16 Jan 2013; Markos Chandras <hwoarang@gentoo.org> + +files/localepurge-0.5.4-evaltotal.patch, +localepurge-0.5.4-r2.ebuild: + Add patch to fix crash when cleared data equals to 0. Thanks to Kolan Sh. + <mecareful@gmail.com>. Bug #452208 +