Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96337 - portage-utils-0.1.0 fails to read PORTDIR
Summary: portage-utils-0.1.0 fails to read PORTDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 22:17 UTC by Rob Cakebread (RETIRED)
Modified: 2005-06-17 17:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Cakebread (RETIRED) gentoo-dev 2005-06-16 22:17:16 UTC
If you have quotes around the value of PORTDIR, qsearch fails:

PORTDIR=/usr/portage (works)
PORTDIR='/usr/portage' (fails)

qsearch: chdir to PORTDIR '/usr/portagee' failed: No such file or directory
Comment 1 SpanKY gentoo-dev 2005-06-16 22:45:20 UTC
this should fix it:

--- main.c
+++ main.c
@@ -306,7 +306,7 @@ static char *rmspace(char *s)
        for (p = s; (isspace(*p) && *p); ++p);
        /* move the memory backward to overwrite leading space */
        if (p != s)
-               memmove(s, p, strlen(p));
+               memmove(s, p, strlen(p)+1);
        return s;
 }
 
Comment 2 solar (RETIRED) gentoo-dev 2005-06-17 07:31:49 UTC
portage-utils-0.1.1 added to the tree
Comment 3 SpanKY gentoo-dev 2005-06-17 17:21:58 UTC
should be fixed now