Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jul 2017 00:58:48 +0800
From:      Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@des.no>
Cc:        Mathieu Arnold <mat@freebsd.org>, svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, dvl@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r446835 - head/sysutils/bacula-server
Message-ID:  <CAMHz58QZCmGnhukwhhDnRc6-HspaDoDoEO6%2BMgvkG5GsfnuFdg@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 30, 2017 at 12:22 AM, Dag-Erling Sm=C3=B8rgrav <des@des.no> wro=
te:

> Mathieu Arnold <mat@FreeBSD.org> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58QZCmGnhukwhhDnRc6-HspaDoDoEO6%2BMgvkG5GsfnuFdg>