From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 11 19:30:11 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CB4F16A475 for ; Wed, 11 Jan 2006 19:30:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCB0443D48 for ; Wed, 11 Jan 2006 19:30:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0BJUAFt036785 for ; Wed, 11 Jan 2006 19:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0BJUA3C036784; Wed, 11 Jan 2006 19:30:10 GMT (envelope-from gnats) Resent-Date: Wed, 11 Jan 2006 19:30:10 GMT Resent-Message-Id: <200601111930.k0BJUA3C036784@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Byron Young Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A093016A41F for ; Wed, 11 Jan 2006 19:28:03 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E74643D46 for ; Wed, 11 Jan 2006 19:28:03 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0BJS3rv018225 for ; Wed, 11 Jan 2006 19:28:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0BJS3Gb018224; Wed, 11 Jan 2006 19:28:03 GMT (envelope-from nobody) Message-Id: <200601111928.k0BJS3Gb018224@www.freebsd.org> Date: Wed, 11 Jan 2006 19:28:03 GMT From: Byron Young To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/91681: apache-2.0.54_4 building modules fails using integrated module build system. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2006 19:30:12 -0000 >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 # 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 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: