ports/126670: apache22 packages fail to include etc/rc.d scripts
Joseph S. Atkinson
jsatkinson at embarqmail.com
Wed Aug 20 05:00:11 UTC 2008
>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 at 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
+ at exec mkdir -p %D/lib/apr-util-1
+ at 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:
More information about the freebsd-ports-bugs
mailing list