Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2006 19:28:03 GMT
From:      Byron Young <bkyoung@users.sourceforge.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/91681: apache-2.0.54_4 building modules fails using integrated module build system.
Message-ID:  <200601111928.k0BJS3Gb018224@www.freebsd.org>
Resent-Message-ID: <200601111930.k0BJUA3C036784@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91681
>Category:       ports
>Synopsis:       apache-2.0.54_4 building modules fails using integrated module build system.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 11 19:30:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Byron Young
>Release:        FreeBSD 6.0-RELEASE
>Organization:
Byron_Young
>Environment:
FreeBSD laptop.searchm.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
          
>Description:
Installed integrated build system fails to build modules correcty:

1) Generate a module
apxs -n simple -g

2) Attempt to build it
cd simple
make

(fails)
              
>How-To-Repeat:

>Fix:
Patches for simple module building to post install files supplied.
Is fixing a package build time possible?

NOTE: setup.sh installs patches into system.
BEGIN setup.sh
#!/bin/sh

echo "Setting up"
WD=$(pwd)

cd /usr/local/sbin || exit
patch -p0 < ${WD}/apxs.patch || exit

cd /usr/local/share/apache2/build || exit
patch -p0 < $WD/config_vars.mk.patch || exit

cd $WD

cp -vfp mkdir.sh /usr/local/share/apache2/build || exit

echo "Checking..."
/bin/sh mod_simple.sh || exit
echo "Success"
exit
END setup.sh

BEGIN mod_simple.sh
#!/bin/sh

if test -d simple; then
    echo removing previous mod_simple
    rm -rf simple
fi

apxs -n simple -g || exit
cd simple
make || exit
make DESTDIR=`pwd`/dest install || exit

END mod_simple.sh

BEGIN apxs.patch
*** apxs.orig	Wed Oct 12 04:53:27 2005
--- apxs	Wed Jan 11 10:03:31 2006
***************
*** 653,660 ****
  ##
  
  builddir=.
! top_srcdir=%PREFIX%
! top_builddir=%PREFIX%
  include %INSTALLBUILDDIR%/special.mk
  
  #   the used tools
--- 653,660 ----
  ##
  
  builddir=.
! top_srcdir=%PREFIX%/share/apache2
! top_builddir=%PREFIX%/share/apache2
  include %INSTALLBUILDDIR%/special.mk
  
  #   the used tools
END apxs.patch

BEGIN config_vars.mk.patch
*** config_vars.mk.orig	Wed Jan 11 08:21:52 2006
--- config_vars.mk	Wed Jan 11 10:12:00 2006
***************
*** 61,67 ****
  AP_LIBS = /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/pcre/libpcre.la /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr-util/libaprutil-0.la -lexpat -liconv /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr/libapr-0.la -lm -lcrypt
  AP_BUILD_SRCLIB_DIRS = apr apr-util
  AP_CLEAN_SRCLIB_DIRS = apr-util apr
! abs_srcdir = /work/a/ports/www/apache2/work/httpd-2.0.54
  bindir = ${exec_prefix}/bin
  sbindir = ${exec_prefix}/sbin
  cgidir = ${datadir}/cgi-bin
--- 61,67 ----
  AP_LIBS = /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/pcre/libpcre.la /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr-util/libaprutil-0.la -lexpat -liconv /work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr/libapr-0.la -lm -lcrypt
  AP_BUILD_SRCLIB_DIRS = apr apr-util
  AP_CLEAN_SRCLIB_DIRS = apr-util apr
! abs_srcdir = /usr/local/share/apache2
  bindir = ${exec_prefix}/bin
  sbindir = ${exec_prefix}/sbin
  cgidir = ${datadir}/cgi-bin
***************
*** 92,98 ****
  CFLAGS = -O2 -fno-strict-aliasing -pipe
  CXXFLAGS = -O2 -fno-strict-aliasing -pipe
  LTFLAGS = --silent
! LDFLAGS = -rpath=/usr/lib:/usr/local/lib
  LT_LDFLAGS = -export-dynamic
  SH_LDFLAGS =
  HTTPD_LDFLAGS =
--- 92,98 ----
  CFLAGS = -O2 -fno-strict-aliasing -pipe
  CXXFLAGS = -O2 -fno-strict-aliasing -pipe
  LTFLAGS = --silent
! LDFLAGS =
  LT_LDFLAGS = -export-dynamic
  SH_LDFLAGS =
  HTTPD_LDFLAGS =
***************
*** 108,116 ****
  EXTRA_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
  EXTRA_CFLAGS =
  EXTRA_CXXFLAGS =
! EXTRA_LDFLAGS = -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib
  EXTRA_LIBS = -lz -lssl -lcrypto
! EXTRA_INCLUDES = -I/work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr/include -I/work/a/ports/www/apache2/work/httpd-2.0.54/srclib/apr-util/include -I/usr/local/include -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/modules/generators -I/usr/include/openssl -I$(top_srcdir)/modules/dav/main
  LIBTOOL = /bin/sh /usr/local/share/apache2/build/libtool --silent
  SHELL = /bin/sh
  MODULE_DIRS = aaa cache experimental filters loggers metadata ssl http dav/main generators dav/fs mappers
--- 108,116 ----
  EXTRA_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE
  EXTRA_CFLAGS =
  EXTRA_CXXFLAGS =
! EXTRA_LDFLAGS =-L/usr/local/lib/apache2 -L/usr/local/lib
  EXTRA_LIBS = -lz -lssl -lcrypto
! EXTRA_INCLUDES = -I. -I/usr/local/include/apache2 -I/usr/local/include -I/usr/include/openssl
  LIBTOOL = /bin/sh /usr/local/share/apache2/build/libtool --silent
  SHELL = /bin/sh
  MODULE_DIRS = aaa cache experimental filters loggers metadata ssl http dav/main generators dav/fs mappers
END config_vars.mk.patch

NOTE: mkdir.sh is from the distribution tarball, but included for completeness.
BEGIN mkdir.sh
#!/bin/sh
#
# Copyright 1999-2005 The Apache Software Foundation or its licensors, as
# applicable.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# 
# mkdir.sh -- make directory hierarchy
#
# Based on `mkinstalldirs' from Noah Friedman <friedman@prep.ai.mit.edu>
# as of 1994-03-25, which was placed in the Public Domain.
# Cleaned up for Apache's Autoconf-style Interface (APACI)
# by Ralf S. Engelschall <rse apache.org>

umask 022
errstatus=0
for file in ${1+"$@"} ; do 
    set fnord `echo ":$file" |\
               sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'`
    shift
    pathcomp=
    for d in ${1+"$@"}; do
        pathcomp="$pathcomp$d"
        case "$pathcomp" in
            -* ) pathcomp=./$pathcomp ;;
            ?: ) pathcomp="$pathcomp/" 
                 continue ;;
        esac
        if test ! -d "$pathcomp"; then
            echo "mkdir $pathcomp" 1>&2
            mkdir "$pathcomp" || errstatus=$?
        fi
        pathcomp="$pathcomp/"
    done
done
exit $errstatus
END mkdir.sh


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601111928.k0BJS3Gb018224>