Bug 214578 - sysutils/bareos-client: build failure (patching AND linker failure)
Summary: sysutils/bareos-client: build failure (patching AND linker failure)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks: 212282
  Show dependency treegraph
 
Reported: 2016-11-16 18:33 UTC by O. Hartmann
Modified: 2016-11-21 20:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2016-11-16 18:33:30 UTC
The recent update of the backup port suite 

sysutils/bareos-client 
sysutils/bareos-server 
www/bareos-webui

from version 15.2.2 to 16.2.4 fails due to the error shown below:

=> SHA256 Checksum OK for bareos-bareos-Release-16.2.4_GH0.tar.gz.
===>  Patching for bareos-client-16.2.4
===>  Applying FreeBSD patches for bareos-client-16.2.4
1 out of 1 hunks failed--saving rejects to src/stored/Makefile.in.rej
=> Patch patch-src-stored-Makefile.in failed to apply cleanly.
=> Patch(es) patch-autoconf_Make.common.in patch-configure patch-src-console-Makefile.in patch-src-dird-Makefile.in patch-src-filed-Makefile.in patch-src-plugins-filed_Makefile.in patch-src-plugins-stored-Makefile.in patch-src-qt-console-bat.pro.in applied cleanly.
*** Error code 1

It seems, from my perspective, that

files/patch-src-stored-Makefile.in

is obsolete, since it is from July 2015 (beware of the hyphen "-" instead of the underscore "_" between stored-Makefile of the wrong version - the correct one seems to have the underscore).

Simply deleting this file in question: files/patch-src-stored-Makefile.in

and going further on with the compilation process ends up in a linker error:

[...]
ua_update.c:(.text+0x148f): undefined reference to `db_get_storage_record(JCR*, B_DB*, STORAGE_DBR*)'
/usr/local/lib/libbareoscfg.so: undefined reference to `dump_resource(int, RES*, void (*)(void*, char const*, ...), void*, bool)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [bareos-dir] Error code 1
Comment 1 commit-hook freebsd_committer 2016-11-16 19:42:10 UTC
A commit references this bug:

Author: acm
Date: Wed Nov 16 19:41:40 UTC 2016
New revision: 426262
URL: https://svnweb.freebsd.org/changeset/ports/426262

Log:
  - Remove duplicate patch file patch-src-stored_Makefile.in
  - Fix build

  PR:	214578
  Reported by:	ohartmann at walstatt.org

Changes:
  head/sysutils/bareos-server/files/patch-src-stored-Makefile.in
  head/sysutils/bareos-server/files/patch-src-stored_Makefile.in