osdir.com
mailing list archive

Subject: Re: Re: Apache + mod_perl - msg#00132

List: gnu.mingw.msys

Date: Prev Next Index Thread: Prev Next Index
On 6/10/05, Earnie Boyd
<earnie-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx> wrote:
> > Lucian Arboraeus wrote:
> > Anyway, AFAICS, the problem in gen-build.py with path separation
> > comes from the function get_files, which uses glob - a fix would
> > require processing the results of the glob and replacing '\' with '/'.

im not fluent at python, so translating that into a working
gen-build.py took some time. Here it is for anybody else in my
predicament.

def get_files(patterns):
files = [ ]
for pat in string.split(patterns):
- files.extend(glob.glob(pat))
+ for file in glob.glob(pat):
+ files.extend([file.replace('\\','/')])
return files

then in msys: /c/Python23/python build/gen-python.py

> Should really search for both where searching is done. Replacing isn't
> really necessary.

gen-build.py is written with the assumption that rest of the tool
chain expects directories are separated by '/'; lots of hard-coded '/'
are written to the makefile.

Here is an example error without the replacment:

/bin/sh /libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H
-I./include -I/c/workpits/apache/apr/include/arch/win32
-I./include/arch/unix -I/c/workpits/apache/apr/include -o
passwd\apr_getpass.lo -c passwd\apr_getpass.c && touch
passwd\apr_getpass.lo
gcc.exe: passwdapr_getpass.c: No such file or directory
gcc.exe: no input files
make[1]: *** [passwd\apr_getpass.lo] Error 1
make[1]: Leaving directory `/c/workpits/apache/apr'
make: *** [all-recursive] Error 1

Not sure why libtool is destroying the dos paths -- looks like a bug?

John


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Re: Apache + mod_perl

On 12:48:35 pm 2005-06-09 Lucian Arboraeus <lucian.arboraeus-gH+WsCr1+wQ1GQ1Ptb7lUw@xxxxxxxxxxxxxxxx> wrote: > John Vandenberg wrote: > > >> I managed to do the equivalent of 'buildconf' by hopping between > >> the MSys and Windows shells and executing it's commands by hand, > >> but it's not ideal. > >> > >> > > > > Painful; fixing the python scripts should solve that. I can have a > > go at cleaning them up if you like? > > > > > Well, for me the problem is the fact that hte build process relies on > python! If MSys doesn't include a version of python I think one is > obliged to use the Windows version. Or, again, am I missing > something? :-) > > Anyway, AFAICS, the problem in gen-build.py with path separation > comes from the function get_files, which uses glob - a fix would > require processing the results of the glob and replacing '\' with '/'. > Should really search for both where searching is done. Replacing isn't really necessary. Earnie -- MinGW - http://www.mingw.org/ Wiki - http://www.mingw.org/MinGWiki/ Bug Report - http://sourceforge.net/tracker/?group_id=2435&atid=102435 Submit Patch - http://sourceforge.net/tracker/?group_id=2435&atid=302435 SF Project - http://sourceforge.net/projects/mingw Job Listing - http://sf.net/people/viewjob.php?group_id=2435&job_id=21643 Job Listing - http://sf.net/people/viewjob.php?group_id=46778&job_id=22223 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

Next Message by Date: click to view message preview

Re: Re: Apache + mod_perl

On 11:14:42 pm 2005-06-09 John Vandenberg <jayvdb-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > Here is an example error without the replacment: > > /bin/sh /libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H > -I./include -I/c/workpits/apache/apr/include/arch/win32 > -I./include/arch/unix -I/c/workpits/apache/apr/include -o > passwd\apr_getpass.lo -c passwd\apr_getpass.c && touch > passwd\apr_getpass.lo > gcc.exe: passwdapr_getpass.c: No such file or directory > gcc.exe: no input files > make[1]: *** [passwd\apr_getpass.lo] Error 1 > make[1]: Leaving directory `/c/workpits/apache/apr' > make: *** [all-recursive] Error 1 > Ok, my bad. I see your need to modify this. The same would be needed for perl. Maybe a resolution in bash should be accomplished so that the shell doesn't destroy the paths. Earnie. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

Previous Message by Thread: click to view message preview

Re: Re: Apache + mod_perl

On 12:48:35 pm 2005-06-09 Lucian Arboraeus <lucian.arboraeus-gH+WsCr1+wQ1GQ1Ptb7lUw@xxxxxxxxxxxxxxxx> wrote: > John Vandenberg wrote: > > >> I managed to do the equivalent of 'buildconf' by hopping between > >> the MSys and Windows shells and executing it's commands by hand, > >> but it's not ideal. > >> > >> > > > > Painful; fixing the python scripts should solve that. I can have a > > go at cleaning them up if you like? > > > > > Well, for me the problem is the fact that hte build process relies on > python! If MSys doesn't include a version of python I think one is > obliged to use the Windows version. Or, again, am I missing > something? :-) > > Anyway, AFAICS, the problem in gen-build.py with path separation > comes from the function get_files, which uses glob - a fix would > require processing the results of the glob and replacing '\' with '/'. > Should really search for both where searching is done. Replacing isn't really necessary. Earnie -- MinGW - http://www.mingw.org/ Wiki - http://www.mingw.org/MinGWiki/ Bug Report - http://sourceforge.net/tracker/?group_id=2435&atid=102435 Submit Patch - http://sourceforge.net/tracker/?group_id=2435&atid=302435 SF Project - http://sourceforge.net/projects/mingw Job Listing - http://sf.net/people/viewjob.php?group_id=2435&job_id=21643 Job Listing - http://sf.net/people/viewjob.php?group_id=46778&job_id=22223 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

Next Message by Thread: click to view message preview

Re: Re: Apache + mod_perl

On 11:14:42 pm 2005-06-09 John Vandenberg <jayvdb-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > Here is an example error without the replacment: > > /bin/sh /libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H > -I./include -I/c/workpits/apache/apr/include/arch/win32 > -I./include/arch/unix -I/c/workpits/apache/apr/include -o > passwd\apr_getpass.lo -c passwd\apr_getpass.c && touch > passwd\apr_getpass.lo > gcc.exe: passwdapr_getpass.c: No such file or directory > gcc.exe: no input files > make[1]: *** [passwd\apr_getpass.lo] Error 1 > make[1]: Leaving directory `/c/workpits/apache/apr' > make: *** [all-recursive] Error 1 > Ok, my bad. I see your need to modify this. The same would be needed for perl. Maybe a resolution in bash should be accomplished so that the shell doesn't destroy the paths. Earnie. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by