Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 36259
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: s-murata [...] nttsmc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: failure in tilde.t when hyphen character is included in the build account
I got a following error when i built the perl 5.10.0 sources and did 'make test' on Redhat Enterprise Linux AS 4(64bit). # Failed test at ../lib/Module/Build/t/tilde.t line 91. # got: '~s-murata/foo' # expected: '/home/s-murata/foo' # Looks like you failed 1 test of 15. ../lib/Module/Build/t/tilde......................................dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 15 Failed 1/15 tests, 93.33% okay I built again after switching the user to 'foo', then succeeded. Similarly, unix account name | result -------------------+-------- bar | OK foo-bar | NG I think this error will be occurred when hyphen character is included in the build account.
It seems this error occurs in only 0.2808_01. The problem is in Module-Build-0.2808_01/lib/Module/Build/Platform/Unix.pm . \w* is used to match username in regexp. For example, use [\w-]* ?
On Wed May 28 23:10:21 2008, TAMASHIRO wrote: Show quoted text
> For example, use [\w-]* ?
How can we determine the complete set of valid characters that can be part of a username or named directory? In some informal testing in zsh I can't seem to figure out the right behavior. -Ken
Various man pages seem to only mention the hyphen, so I'll just add that one character. I've committed a patch. -Ken