From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 28 16:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF826618 for ; Sat, 28 Sep 2013 16:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9FFF72618 for ; Sat, 28 Sep 2013 16:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8SGo0Zi034699 for ; Sat, 28 Sep 2013 16:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8SGo02f034697; Sat, 28 Sep 2013 16:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 28 Sep 2013 16:50:00 GMT Resent-Message-Id: <201309281650.r8SGo02f034697@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, John Levine Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8A7411D1 for ; Sat, 28 Sep 2013 16:45:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7880B25EE for ; Sat, 28 Sep 2013 16:45:28 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8SGjSGl012523 for ; Sat, 28 Sep 2013 16:45:28 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8SGjSls012522; Sat, 28 Sep 2013 16:45:28 GMT (envelope-from nobody) Message-Id: <201309281645.r8SGjSls012522@oldred.freebsd.org> Date: Sat, 28 Sep 2013 16:45:28 GMT From: John Levine To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182464: cvm doesn't build mysql module X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Sep 2013 16:50:00 -0000 >Number: 182464 >Category: ports >Synopsis: cvm doesn't build mysql module >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Sep 28 16:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Levine >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD joyce.lan 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: CVM has some optional modules that the Makefile doesn't build. I added an option for the cvm-mysql modules. I expect a similar option would work for cvm-pgsql but I don't run postgres >How-To-Repeat: install cvm, observe no cvm-mysql modules installed in /usr/local/bin >Fix: See patch Patch attached with submission follows: diff -C2 ./Makefile NEW/Makefile *** ./Makefile 2013-09-20 18:55:24.000000000 -0400 --- NEW/Makefile 2013-09-28 12:40:38.000000000 -0400 *************** *** 23,28 **** DOCS= NEWS README TODO *.html ! OPTIONS_DEFINE= VCHKPW VCHKPW_DESC= Compile cvm-vchkpw NO_STAGE= yes --- 23,29 ---- DOCS= NEWS README TODO *.html ! OPTIONS_DEFINE= VCHKPW MYSQL VCHKPW_DESC= Compile cvm-vchkpw + MYSQL_DESC= Compile cvm-mysql NO_STAGE= yes *************** *** 39,42 **** --- 40,53 ---- .endif + .if ${PORT_OPTIONS:MMYSQL} + BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql55-client + ALL_TARGET+= mysql + CFLAGS+= -I${LOCALBASE}/include + LDFLAGS+= -L${LOCALBASE}/lib/mysql + PLIST_SUB+= MYSQL="" + .else + PLIST_SUB+= MYSQL="@comment " + .endif + post-patch: @${REINPLACE_CMD} -e 's|libtool|${LIBTOOL}|g' ${WRKSRC}/Makefile diff -C2 ./pkg-plist NEW/pkg-plist *** ./pkg-plist 2012-07-14 10:29:18.000000000 -0400 --- NEW/pkg-plist 2013-09-28 12:40:38.000000000 -0400 *************** *** 2,5 **** --- 2,8 ---- bin/cvm-chain bin/cvm-checkpassword + %%MYSQL%%bin/cvm-mysql + %%MYSQL%%bin/cvm-mysql-local + %%MYSQL%%bin/cvm-mysql-udp bin/cvm-pwfile bin/cvm-qmail >Release-Note: >Audit-Trail: >Unformatted: