httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Apache for OS/2, v1.2.4 (fwd)
Date Fri, 26 Sep 1997 04:03:56 GMT
I finally had a chance to look at this.

I agree with you about the * issues.  What if we included a patch file
which changed those values to the OS/2 specific values... is it reasonable
to expect OS/2 users to have the patch tool when trying to build Apache?

Other than the * issues this looks good.

Dean

On Wed, 17 Sep 1997, Brian Havard wrote:

> On Mon, 15 Sep 1997 23:47:50 -0700 (PDT), Dean Gaudet wrote:
> 
> >Sure, the best way to start off would be to post a "diff -u" or "diff -c" 
> >against 1.2.4.  Then after we release 1.3b1 it'd be great if you could
> >bring it up to date as well ... unfortunately since we have rearranged the
> >code and are in the process of enforcing our style guide via indent you
> >won't be able to just apply a patch against 1.3.
> 
> Well, this is what I had to do to get it to compile and run. I've
> marked changes that aren't suitable for inclusion in the main
> distribution with a *. With these I can either include a replacement
> file in the OS/2 distribution or find a better way.....
> 
> -------------------------------------------------------------------------------
> Problem:
>   Use of S_ISLNK not valid as OS/2 doesn't support symbolic links.
> 
> Proposed Fix:
> 
>   Change conf.h to read
> 
>     #ifndef S_ISLNK
>     #ifdef __EMX__
>     /* OS/2 doesn't have symlinks so S_ISLNK is always false */
>     #define S_ISLNK(m) 0
>     #else
>     #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
>     #endif
>     #endif
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   Target executable needs to be called httpd.exe instead of httpd
> 
> Proposed Fix:
>   Change Configure:
>     Add "TARGET=httpd" near start with other variables
>     Add "TARGET=httpd.exe" in OS/2 section
>     Add
>       echo "TARGET=$TARGET" >> Makefile.config
>     near end with other echo commands.
> 
>   Change Makefile.tmpl:
>     Change all occurences of httpd with $(TARGET)
> 
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   UFC-crypt library is normally built as ufc.a not libufc.a as given in OS/2
>   section of Configure
> 
> Proposed Fix:
>   Change -llibufc to -lufc in OS/2 section of Configure
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   In OS/2, /bin/sh is not valid (though sh takes care of #!/bin/sh type lines)
> 
> Proposed Fix:                
>   Change Configure:
>     Add "SHELL=sh" in OS/2 section to allow sh to be found via PATH (by make).
> 
> * Change regex/Makefile:
>     Change "SHELL = /bin/sh" to "SHELL = sh"
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   OS/2 doesn't have users or groups so checking for root UID isn't too useful.
> 
> Proposed Fix:
>   Change http_core.c to suppress root check in set_user() using
>     #if !defined (BIG_SECURITY_HOLE) && !defined (__EMX__)
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   In regex/mkh, PATH=/bin:/usr/bin is pretty useless under OS/2
> 
> Proposed Fix:
> * Change regex/mkh:
>     Remove PATH= line
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   helpers/CutRule doesn't work without #!/bin/sh at start
> 
> Proposed Fix:
> * Change helpers/CutRule:
>     Add #!/bin/sh at start
> 
> -------------------------------------------------------------------------------
> 
> Problem:
>   helpers/PrintPath doesn't work as OS/2 uses ; as path separator instead of : 
>   Also, executable being searched for need .exe on the end. 
> 
> Proposed Fix:
> * Change helpers/PrintPath:
>     In sed line, change all : to ;
>     Put .exe after both $1's in the tests
> 
> -------------------------------------------------------------------------------
> 
> Summary:
>   Files changed (diff attached):
>     conf.h http_core.c Configure Makefile.tmpl
>     * regex/Makefile regex/mkh helpers/CutRule helpers/PrintPath
> 
> --
>  ______________________________________________________________________________
>  |  Brian Havard                 |  "He is not the messiah!                   |
>  |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
>  ------------------------------------------------------------------------------
> 

Mime
View raw message