ports/136302: [patch] ports-mgmt/tinderbox-devel incorrect WEBUI option handling
Alexey V.Degtyarev
alexey at renatasystems.org
Fri Jul 3 21:00:17 UTC 2009
>Number: 136302
>Category: ports
>Synopsis: [patch] ports-mgmt/tinderbox-devel incorrect WEBUI option handling
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 03 21:00:15 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Alexey V. Degtyarev
>Release: FreeBSD 6.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD renatasystems.org 6.3-RELEASE FreeBSD 6.3-RELEASE #2: Sat May 24 23:23:42 MSD 2008 root at renatasystems.org:/usr/obj/usr/src/sys/alexey i386
>Description:
tinderbox-devel port has a number of patches files/patch-webui* which
can not be applied with WEBUI option turned off:
===> Found saved configuration for tinderbox-devel-3.2_4
===> Extracting for tinderbox-devel-3.2_4
=> MD5 Checksum OK for tinderbox/tinderbox-3.2.tar.gz.
=> SHA256 Checksum OK for tinderbox/tinderbox-3.2.tar.gz.
===> Patching for tinderbox-devel-3.2_4
===> Applying FreeBSD patches for tinderbox-devel-3.2_4
File to patch: ^C=> Patch patch-webui__core__TinderboxDS.php failed to
apply cleanly.
=> Patch(es) patch-lib__buildscript patch-lib__tc_command.pl
patch-lib__tc_command.sh patch-lib__tinderlib.sh
patch-sql__schema.mysql.pre patch-sql__schema.pgsql.pre
patch-sql__values.pfp patch-sql__values.pfr applied cleanly.
This happens due to premature removing of the whole webui directory:
.if !defined(WITH_WEBUI)
post-extract:
@${RM} -R ${WRKSRC}/webui
.endif
Secondly, pkg-message after port was installed shows notes about
tinderbox webui configuration, which is rather confusing as soon as
webui was completely disabled. Probably this also should be fixed in
ports-mgmt/tinderbox port too.
>How-To-Repeat:
Just try to install ports-mgmt/tinderbox-devel having WEBUI option
tunded off.
>Fix:
--- tinderbox-devel.patch begins here ---
diff -u -rN tinderbox-devel.orig/Makefile tinderbox-devel/Makefile
--- tinderbox-devel.orig/Makefile 2009-05-11 10:19:40.000000000 +0400
+++ tinderbox-devel/Makefile 2009-07-04 00:21:43.000000000 +0400
@@ -29,7 +29,6 @@
NO_BUILD= yes
WANT_PERL= yes
-SUB_FILES= pkg-message
MAN1= tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
tc-configJail.1 tc-configTinderd.1 tc-init.1
@@ -47,8 +46,10 @@
WANT_PHP_WEB= yes
USE_PHP= session
PLIST_SUB+= WEBUI=""
+SUB_FILES+= pkg-message
.else
PLIST_SUB+= WEBUI="@comment "
+SUB_FILES+= pkg-message-nowebui
.endif
.if defined(WITH_PGSQL)
@@ -90,11 +91,6 @@
@${FALSE}
.endif
-.if !defined(WITH_WEBUI)
-post-extract:
- @${RM} -R ${WRKSRC}/webui
-.endif
-
post-patch:
.ifdef WITHOUT_CHECK_FOR_ROOT
${REINPLACE_CMD} -e 's/^if \[ `id -u` != 0 \]; then/if false; then/' \
@@ -102,6 +98,10 @@
.endif
@cd ${WRKSRC} && ${FIND} . -name '*.orig' -exec ${RM} {} \;
+.if !defined(WITH_WEBUI)
+ @${RM} -R ${WRKSRC}/webui
+.endif
+
do-install:
@${MKDIR} ${PREFIX}/tinderbox/scripts
@${ECHO_CMD} "Installing man pages ..."
diff -u -rN tinderbox-devel.orig/files/pkg-message-nowebui.in tinderbox-devel/files/pkg-message-nowebui.in
--- tinderbox-devel.orig/files/pkg-message-nowebui.in 1970-01-01 03:00:00.000000000 +0300
+++ tinderbox-devel/files/pkg-message-nowebui.in 2009-07-04 00:16:50.000000000 +0400
@@ -0,0 +1,10 @@
+
+===============================================================================
+ports-mgmt/tinderbox is now installed, but it requires some additional setup.
+
+****************************************************
+Please do read: %%PREFIX%%/tinderbox/scripts/README
+****************************************************
+
+=============================================================================
+
--- tinderbox-devel.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list