Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2008 04:54:12 GMT
From:      "Joseph S. Atkinson" <jsatkinson@embarqmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/126670: apache22 packages fail to include etc/rc.d scripts
Message-ID:  <200808200454.m7K4sCkZ075461@www.freebsd.org>
Resent-Message-ID: <200808200500.m7K508Ir055714@freefall.freebsd.org>

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

>Number:         126670
>Category:       ports
>Synopsis:       apache22 packages fail to include etc/rc.d scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 05:00:08 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Joseph S. Atkinson
>Release:        8.0-CURRENT i386
>Organization:
>Environment:
FreeBSD mephisto.autocthonia.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Aug 16 18:20:52 EDT 2008     root@legion.mephisto.autocthonia.net:/usr/obj/usr/src/sys/MEPHISTO  i386

>Description:
Building a package for www/apache22 fails to create etc/rc.d/apache22 and etc/rc.d/htcacheclean. The files are installed via 'make install', but are not included for use when using pkg_add. This becomes readily apparent when trying to (auto)start via rc.conf.

Additionally, when using pkg_delete, it registers complaints that it cannot rmdir certain empty directories that do get made via 'make install'.
>How-To-Repeat:
$ make package

Check ${LOCALBASE}/etc/rc.d/ (there)

$ make deinstall && pkg_add ${PACKAGES}/www/apache-2.2.9.tbz

Check ${LOCALBASE}/etc/rc.d/ (not there)

$ pkg_delete apache-2.2.9

Complains about missing directories
>Fix:
Don't attempt to redefine RC_SUBR_SUFFIX since the default in Mk/bsd.port.mk is correct and this line is the culprit.

Additionally, force the creation of the empty directories when installing from packages in case something actually uses them.

Patch included.

Additionally, I am unable to submit via send-pr. I suspect it's caught in the spam filters, can someone contact me in regards to this?

Patch attached with submission follows:

--- Makefile.orig	2008-08-19 20:13:59.000000000 -0400
+++ Makefile	2008-08-19 22:35:28.000000000 -0400
@@ -41,7 +42,6 @@
 USE_AUTOTOOLS=		autoconf:261 libtool:15
 USE_PERL5=		yes
 USE_RC_SUBR=		apache22.sh htcacheclean.sh
-SUB_LIST+=		RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
 LIBTOOLFILES=		configure
 
 # for slave ports
--- pkg-plist.orig	2008-08-19 22:21:07.000000000 -0400
+++ pkg-plist	2008-08-19 22:34:08.000000000 -0400
@@ -525,6 +525,8 @@
 www/apache22/icons/world1.png
 www/apache22/icons/world2.gif
 www/apache22/icons/world2.png
+@exec mkdir -p %D/lib/apr-util-1
+@exec mkdir -p %D/share/doc/apache22/style/xsl/util
 @dirrm www/apache22/icons/small
 @dirrm www/apache22/icons
 @dirrm www/apache22/error/include


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



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