From owner-svn-ports-all@freebsd.org Sat Jul 29 16:59:30 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FD21DC6F0C for ; Sat, 29 Jul 2017 16:59:30 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDAE71151 for ; Sat, 29 Jul 2017 16:59:30 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: by mail-qk0-x22f.google.com with SMTP id x191so65700928qka.5 for ; Sat, 29 Jul 2017 09:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sunpoet-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QmkeQ+CLOO2lbsE3oQT5Q62blAqp+Gp9vwUgCKbxias=; b=tiMtwws1yi4UV9fgvschgj4Gp18xNVUj5dF4JOjROkxmy0Nq3Z/UI6MlKu6pvb1G0C DmMnML+Hlf27RZahw9Viwj5WY58KcGLjzpEe7wQ37Hwi2KAWywqU5qSsvNMlvN4zvwIq gDEHDXfFcDirxTtPCujANouneylU0kga6+e0ZxqlvgPVQLTHywZ6U5ypsWHSHQNmLwVf Gxz9MnsePYt+egmhBIHJ4XFcM7PNsXSnbHWr2OC7ZdLOcUsQbFN+rRPfPwZcXeoSOmlz yFC8njqp2zI48APplGFS39FTuzOZ0+D20CXfzhp8ATBdQtpJVtGZuJFsfGvQuiO/LIjg UjTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QmkeQ+CLOO2lbsE3oQT5Q62blAqp+Gp9vwUgCKbxias=; b=Q9XuQQ6IYmOzc4+Wls/5bKFUg3qzulRdpu9miId7Lo5sTgT4thQRhhGvq77PAunRas 0zRxTLXh3H80sm1LRJnwhg1ftgxgkvrXbq3SHFURXhvZYmSwA8vqcttGAqRAd0CNYhdz q6/PMZxrhuOOSmqDLa9BwmGYlJf0R+P2P53nW3kupR4U5NioXMdKu/jmbmMrBU/qpVi+ 6sbAdVZmyct+yqbtoFZJ7tba7G06f7yFMjKpNpmqOETL6yzaIDy8HYgTXUYIm5K/YIzx iuEzhNoPlSC5mXPda5q6VBhX1xQXXGUmDigygpTQlYk7u6a5IHZGwl1e50llO/l4/aJT lv+w== X-Gm-Message-State: AIVw110dHVCPbzsIGuaDyczkpsCegpS6lqerdwNor0D+2IMqDpE7gW8l KSjPp1mO/TNWmsR22oD0xiq62e4khwerqoPR4g== X-Received: by 10.55.164.7 with SMTP id n7mr14037887qke.343.1501347569152; Sat, 29 Jul 2017 09:59:29 -0700 (PDT) MIME-Version: 1.0 Sender: sunpoet@sunpoet.net Received: by 10.12.171.7 with HTTP; Sat, 29 Jul 2017 09:58:48 -0700 (PDT) In-Reply-To: <86d18jciw3.fsf@desk.des.no> References: <201707281459.v6SExFL1019513@repo.freebsd.org> <35db3ebc-f3c4-4c72-20e7-f13ec43598aa@FreeBSD.org> <86d18jciw3.fsf@desk.des.no> From: Sunpoet Po-Chuan Hsieh Date: Sun, 30 Jul 2017 00:58:48 +0800 X-Google-Sender-Auth: KSJsoE2VH8-aeLxnhiPvhBHVu8c Message-ID: Subject: Re: svn commit: r446835 - head/sysutils/bacula-server To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= Cc: Mathieu Arnold , svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, dvl@freebsd.org, ports-committers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2017 16:59:30 -0000 On Sun, Jul 30, 2017 at 12:22 AM, Dag-Erling Sm=C3=B8rgrav wro= te: > Mathieu Arnold writes: > > That cannot possibly do anything to fix the build. > > > > If the PGSQL option is enabled, this translates into a: > > > > USE_USES+=3Dpgsql > > > > I mean, it will not break the build more than it is already broken, but > > this variable is not used, ever. > > I'm confused. It seemed to work when I tested it on my laptop, but I > see now that it doesn't. I suppose these lines: > > MYSQL_USE=3D MYSQL=3Dyes > SQLITE3_LIB_DEPENDS=3D libsqlite3.so:databases/sqlite3 > PGSQL_USE=3D USES+=3Dpgsql > > should in fact be > > MYSQL_USES=3D mysql > SQLITE3_USES=3D sqlite:3 > PGSQL_USES=3D pgsql > > Is that correct? > Yes. Since sqlite3 is the default, you could use SQLITE3_USES=3Dsqlite instead. > > In any case, it turns out that my problem isn't that bacula-server won't > build with PGSQL, but that when multiple backends are enabled, it will > build only one (MYSQL if enabled, otherwise SQLITE3 if enabled, and > finally PGSQL). Fixing that will require quite a bit of work both in > the Makefile and in the plist. I'll see what I can do. > > It seems that you need to enable OPTIONS_SUB=3Dyes, remove DBTYPE and conve= rt pkg-plist. You need to have PLIST entries for each backend. Take %%DATADIR%%/create_%%DBTYPE%%_database in PLIST for example, it has to be convert to 3 entries as follows: %%MYSQL%%%%DATADIR%%/create_mysql_database %%PGSQL%%%%DATADIR%%/create_postgresql_database %%SQLITE3%%%%DATADIR%%/create_sqlite3_database HTH Regards, sunpoet DES > -- > Dag-Erling Sm=C3=B8rgrav - des@des.no > _______________________________________________ > svn-ports-all@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-ports-all > To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" >