Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 445910

Summary: app-admin/localepurge-0.5.4 calc error with empty SPACEAFTER
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Wim Muskee <wimmuskee>
Status: RESOLVED FIXED    
Severity: normal CC: nikoli, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to solve this bug

Description Justin Lecher (RETIRED) gentoo-dev 2012-12-04 11:33:41 UTC
removed ‘/opt/sun-jdk-1.6.0.37/man/ja’
df: ‘/opt/sun-jdk-1.6.0.37/man/ja’: No such file or directory
/usr/bin/localepurge: line 169: 5876908 - : syntax error: operand expected (error token is "- ")
Comment 1 Wim Muskee 2012-12-04 22:14:08 UTC
Created attachment 331454 [details, diff]
patch to solve this bug

The /opt/sun-jdk-1.6.0.37/man/ja is a symlink to a dir which also gets removed in the process. This makes the spaceafter-check on that dir error, which in turn leads to a calculation on a non existent var.

With this patch, if the dir does not exists, it looks for the parent dir.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-12-04 22:37:00 UTC
+*localepurge-0.5.4-r1 (04 Dec 2012)
+
+  04 Dec 2012; Markos Chandras <hwoarang@gentoo.org>
+  +files/localepurge-0.5.4-directorysum.patch,
+  +files/localepurge-0.5.4-parentdir.patch, +localepurge-0.5.4-r1.ebuild,
+  -localepurge-0.5.4.ebuild:
+  Revbump. Fixes bug #164544 and #445910
+