svn commit: r446835 - head/sysutils/bacula-server
Sunpoet Po-Chuan Hsieh
sunpoet at freebsd.org
Sat Jul 29 16:59:30 UTC 2017
On Sun, Jul 30, 2017 at 12:22 AM, Dag-Erling Smørgrav <des at des.no> wrote:
> Mathieu Arnold <mat at FreeBSD.org> writes:
> > That cannot possibly do anything to fix the build.
> >
> > If the PGSQL option is enabled, this translates into a:
> >
> > USE_USES+=pgsql
> >
> > 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= MYSQL=yes
> SQLITE3_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
> PGSQL_USE= USES+=pgsql
>
> should in fact be
>
> MYSQL_USES= mysql
> SQLITE3_USES= sqlite:3
> PGSQL_USES= pgsql
>
> Is that correct?
>
Yes.
Since sqlite3 is the default, you could use SQLITE3_USES=sqlite 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=yes, remove DBTYPE and convert
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ørgrav - des at des.no
> _______________________________________________
> svn-ports-all at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-ports-all
> To unsubscribe, send any mail to "svn-ports-all-unsubscribe at freebsd.org"
>
More information about the svn-ports-head
mailing list