Bug 208344

Summary: [PATCH] sysutils/bareos-server: fix packaging in case of SQLITE3 option is set
Product: Ports & Packages Reporter: Matthias Petermann <matthias>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch for sysutils/bareos-server none

Description Matthias Petermann 2016-03-27 23:33:06 UTC
Created attachment 168708 [details]
Patch for sysutils/bareos-server

When bareos-server is built with SQLITE3 option set, packaging fails due to pkg-plist assumes files to be present which are not present for SQLITE3. This results in this error message:

pkg-static: Unable to access file /construction/xports/sysutils/bareos-server/work/stage/usr/local/lib/bareos/scripts/ddl/drops/sqlite3.sql: No such file or directory
pkg-static: Unable to access file /construction/xports/sysutils/bareos-server/work/stage/usr/local/lib/bareos/scripts/ddl/grants/sqlite3-readonly.sql: No such file or directory
pkg-static: Unable to access file /construction/xports/sysutils/bareos-server/work/stage/usr/local/lib/bareos/scripts/ddl/grants/sqlite3.sql: No such file or directory

Attached to this ticket is my proposal for a fix, using conditional pkg-plist.

I'd appreciate if someone could review and commit this to the official tree.

Thanks & kind regards,
Matthias
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-05-05 13:31:09 UTC
A commit references this bug:

Author: acm
Date: Thu May  5 13:30:18 UTC 2016
New revision: 414644
URL: https://svnweb.freebsd.org/changeset/ports/414644

Log:
  - Fix installation when SQLITE option is selected
  - Bump PORTREVISION

  PR:		208344
  Submitted by:	matthias _at_ petermann-it.de

Changes:
  head/sysutils/bareos-server/Makefile
  head/sysutils/bareos-server/pkg-plist
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2016-05-05 13:31:35 UTC
Committed thanks!