The script create_postgresql_database tries to get the installed postgresql version in a wrong way. Output of the command 'psql -d template1 -c 'select version()' is not always on the first line, instead ' ... | head -n1 | cut ...' the script should use '| awk '/PostgreSQL/ {print $2}'. Sample output on my machine: $ psql -U pgsql -d template1 -c 'select version()' version --------------------------------------------------------------------------------------------------------- PostgreSQL 8.4.4 on i386-portbld-freebsd7.3, compiled by GCC cc (GCC) 4.2.1 20070719 [FreeBSD], 32-bit (1 row) With the original command $PSQLVERSION is empty, with the modified command $PSQLVERSION=8.4 A bug report was filed upstream: http://bugs.bacula.org/view.php?id=1609
Maintainer of sysutils/bacula-server, Please note that PR ports/148715 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/148715 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
> A bug report was filed upstream: http://bugs.bacula.org/view.php?id=1609 You get bonus points for that. :) -- Dan Langille - http://langille.org/
Approved.
State Changed From-To: feedback->open Maintainer approved.
Responsible Changed From-To: freebsd-ports-bugs->wxs I'll take it.
Responsible Changed From-To: wxs->ohauer - take my own PR with approval from wxs (by email)
State Changed From-To: open->closed - Fix is included in new bacula-5.0.3 version