Bug 218726 - editors/calligra compilation error when DB options are disabled
Summary: editors/calligra compilation error when DB options are disabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: kde
Depends on:
Reported: 2017-04-18 11:14 UTC by Grzegorz Junka
Modified: 2017-04-30 20:26 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+

Poudriere failed build logs (199.17 KB, application/x-xz-compressed-tar)
2017-04-18 11:14 UTC, Grzegorz Junka
no flags Details
fix linking against jpeg (1.19 KB, patch)
2017-04-19 08:19 UTC, Tobias C. Berner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Junka 2017-04-18 11:14:51 UTC
Created attachment 181862 [details]
Poudriere failed build logs

Calligra doesn't compile when both databases are unchecked:


See attached log from poudriere.
Comment 1 Tobias C. Berner freebsd_committer 2017-04-19 07:50:27 UTC
Ok, it seems that this is a red herring for an other issue, of -L/usr/local/lib -I/usr/local/include not being passed:
   /usr/bin/ld: cannot find -ljpeg

pgsql.mk seems to do this unconditionally, which is, why it works if PGSQL is enabled.

I'll fix this.
Comment 2 Tobias C. Berner freebsd_committer 2017-04-19 08:19:30 UTC
Created attachment 181884 [details]
fix linking against jpeg

Could you please retry with attached diff?
Comment 3 commit-hook freebsd_committer 2017-04-30 20:21:00 UTC
A commit references this bug:

Author: tcberner
Date: Sun Apr 30 20:20:32 UTC 2017
New revision: 439841
URL: https://svnweb.freebsd.org/changeset/ports/439841

  Fix linking against jpeg.

  As ${LOCALBASE}/lib is was not unconditionally part of the linker flags (only if
  POSTGRES option was selected), linking of calligra could fail with
  	 /usr/bin/ld: cannot find -ljpeg

  Fix it, by using ${JPEG_LIBRARY} as provided by cmake.

  PR:		218726
  Approved by:	rakuco (mentor)