Bug 208344 - [PATCH] sysutils/bareos-server: fix packaging in case of SQLITE3 option is set
Summary: [PATCH] sysutils/bareos-server: fix packaging in case of SQLITE3 option is set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-03-27 23:33 UTC by Matthias Petermann
Modified: 2016-05-05 13:31 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
Patch for sysutils/bareos-server (1.31 KB, patch)
2016-03-27 23:33 UTC, Matthias Petermann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!