Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452208 - app-admin/localepurge-0.5.4-r1 - localepurge crashes when the size of cleared data equals 0
Summary: app-admin/localepurge-0.5.4-r1 - localepurge crashes when the size of cleared...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wim Muskee
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-15 11:54 UTC by Kolan Sh.
Modified: 2013-01-16 19:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
localepurge-0.5.4-r2.ebuild (localepurge-0.5.4-r2.ebuild,1.16 KB, text/plain)
2013-01-15 11:55 UTC, Kolan Sh.
Details
localepurge-0.5.4-evaltotal.patch (localepurge-0.5.4-evaltotal.patch,366 bytes, patch)
2013-01-15 11:56 UTC, Kolan Sh.
Details | Diff
Ebuild for localepurge-0.5.4-r2 (localepurge-0.5.4-r2.ebuild,1.05 KB, text/plain)
2013-01-16 18:41 UTC, Wim Muskee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kolan Sh. 2013-01-15 11:54:00 UTC
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"
Comment 1 Kolan Sh. 2013-01-15 11:55:32 UTC
Created attachment 335706 [details]
localepurge-0.5.4-r2.ebuild
Comment 2 Kolan Sh. 2013-01-15 11:56:28 UTC
Created attachment 335708 [details, diff]
localepurge-0.5.4-evaltotal.patch

Fixes the bug.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-15 13:13:36 UTC
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}
 }
Comment 4 Wim Muskee 2013-01-16 18:41:32 UTC
Created attachment 335856 [details]
Ebuild for localepurge-0.5.4-r2

Applies the evaltotal.patch. Thx Jeroen, and Kolan for reporting the bug.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-01-16 19:24:03 UTC
+*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
+