www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sthoenna@efn.org (sthoe...@efn.org)
Subject Re: os-os2/4269: make install fails on os/2
Date Mon, 19 Apr 1999 04:30:01 GMT
The following reply was made to PR os-os2/4269; it has been noted by GNATS.

From: sthoenna@efn.org (sthoenna@efn.org)
To: apbugs@hyperreal.org, apache-bugdb@apache.org
Cc:  Subject: Re: os-os2/4269: make install fails on os/2
Date: Sun, 18 Apr 1999 20:09:56 -0700

 apbugs@hyperreal.org wrote:
 >Thank you very much for your problem report.
 >It has the internal identification `os-os2/4269'.
 >The individual assigned to look at your
 >report is: apache. 
 >>Category:       os-os2
 >>Responsible:    apache
 >>Synopsis:       make install fails on os/2
 >>Arrival-Date:   Sun Apr 18 20:50:00 PDT 1999
 I got cut off in the middle, but here's the body of my report:
 `make install` fails on os/2 with three different problems.
 1) an outright bug in Makefile.tmpl in install-include causes an
 error when OSDIR starts with 'os' :) producing this error:
 % make install-include
 ===> [include: Installing Apache C header files]
 cp ./src/include/*.h /usr/local/apache/include/
 cp ./src/os2/os.h /usr/local/apache/include/
 cp: ./src/os2/os.h: No such file or directory
 cp ./src/os2/os-inline.c /usr/local/apache/include/
 cp: ./src/os2/os-inline.c: No such file or directory
 make: *** [install-include] Error 1
 See patch below for fix.
 2) Due to the presence of the INSTALL file in the distribution, make "fails"
 on a non case-sensitive file system such as HPFS:
 % make install
 make: `install' is up to date.
 As a workaround, INSTALL can be renamed or deleted.
 For a permanent fix, the 'install' target should have as a dependency a
 file that is pretty much guaranteed to exist and to be newer than INSTALL.
 For instance, Makefile itself.  See patch below.
 3) Install tries to install the programs as httpd, htdigest, htpasswd, etc.
 These of course have been built with an .exe extension, so the install
 doesn't exactly work.  As a workaround I modified install.sh to take an
 -e parameter to add an extension to the src and dst filenames (see patch
 below) and added "-e .exe" to IFLAGS_PROGRAM and IFLAGS_CORE in the
 Makefile.  (STRIPPROG also needed to be set to "emxbind -s")  To automate
 this change to Makefile for os2, top level Configure needs to become
 os-aware, which it currently isn't except for for shadowing purposes.
 A patch to Configure is forthcoming.
 --- /apache_1.3.6/Makefile.tmpl	Mon Mar 15 17:38:28 1999
 +++ ./Makefile.tmpl	Sun Apr 18 19:36:52 1999
 @@ -201,7 +201,7 @@
  #   the install target for installing the complete Apache
  #   package. This is implemented by running subtargets for the
  #   separate parts of the installation process.
 +install: Makefile
  	@if [ ! -f $(TOP)/$(SRC)/.apaci.build.ok ]; then \
  		$(MAKE) -f $(TOP)/$(MKF) $(MFLAGS) $(MFWD) build; \
  	else \
 @@ -367,7 +367,7 @@
  	@echo "===> [include: Installing Apache C header files]"
  	$(CP) $(TOP)/$(SRC)/include/*.h $(root)$(includedir)/
 -	@osdir=`grep '^OSDIR=' $(TOP)/$(SRC)/Makefile.config | sed -e 's:^OSDIR=.*/os:os:'`; \
 +	@osdir=`grep '^OSDIR=' $(TOP)/$(SRC)/Makefile.config | sed -e 's:^OSDIR=.*/os/:os/:'`;
  		echo "$(CP) $(TOP)/$(SRC)/$${osdir}/os.h $(root)$(includedir)/"; \
  		$(CP) $(TOP)/$(SRC)/$${osdir}/os.h $(root)$(includedir)/; \
  		echo "$(CP) $(TOP)/$(SRC)/$${osdir}/os-inline.c $(root)$(includedir)/"; \
 --- /apache_1.3.6/src/helpers/install.sh	Wed Feb 10 05:09:12 1999
 +++ ./install.sh	Thu Apr  8 22:00:52 1999
 @@ -32,6 +32,7 @@
  rmcmd="$rmprog -f"
 @@ -56,6 +57,9 @@
          -S) stripcmd="$stripprog $2"
              shift; shift; continue
 +        -e) addsuffix="$2"
 +            shift; shift; continue
 +            ;;
          *)  if [ "x$src" = "x" ]; then
 @@ -86,6 +90,13 @@
  #  Make a temp file name in the proper directory.
  dstdir=`dirname $dst`
 +#  Add a suffix (such as ".exe") to the src and dst
 +if [ "x$addsuffix" != "x" ]; then
 +     src="$src$addsuffix"
 +     dst="$dst$addsuffix"
  #  Move or copy the file name to the temp name
  $instcmd $src $dsttmp

View raw message