Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445910 - app-admin/localepurge-0.5.4 calc error with empty SPACEAFTER
Summary: app-admin/localepurge-0.5.4 calc error with empty SPACEAFTER
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:
Depends on:
Blocks:
 
Reported: 2012-12-04 11:33 UTC by Justin Lecher (RETIRED)
Modified: 2012-12-04 22:37 UTC (History)
2 users (show)

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


Attachments
patch to solve this bug (localepurge-0.5.4-calc-error.patch,730 bytes, patch)
2012-12-04 22:14 UTC, Wim Muskee
Details | Diff

Note You need to log in before you can comment on or make changes to 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
+