Bug 249935

Summary: graphics/evince: fails to build with DBUS=off and meson.build:344:0: ERROR: C shared or static library 'kpathsea' not found
Product: Ports & Packages Reporter: Vladimir Druzenko <vvd>
Component: Individual Port(s)Assignee: freebsd-desktop (Team) <desktop>
Status: Closed FIXED    
Severity: Affects Some People CC: bapt, tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fixed build with DBUS=off and added localbase:ldflags
vvd: maintainer-approval?
Without ldflags none

Description Vladimir Druzenko freebsd_committer freebsd_triage 2020-09-27 11:31:23 UTC
Created attachment 218354 [details]
Fixed build with DBUS=off and added localbase:ldflags

Tested on 12.1-p10 amd64: make check-plist/install/run.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2020-09-27 11:38:20 UTC
https://svnweb.freebsd.org/ports/head/graphics/evince/pkg-plist?r1=484781&r2=550218
78 	 %%DBUS%%libexec/evinced 	 libexec/evinced
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2020-09-27 16:11:22 UTC
Found CMake: /usr/local/bin/cmake (3.18.2)
Using 'CMAKE_PREFIX_PATH' from environment with value: '/usr/local'
Using 'LDFLAGS' from environment with value: ' -fstack-protector-strong '
Run-time dependency synctex found: NO (tried pkgconfig and cmake)
Run-time dependency libspectre found: YES 0.2.9
Run-time dependency libarchive found: YES 3.4.3
Run-time dependency ddjvuapi found: YES 3.5.27

meson.build:344:0: ERROR: C shared or static library 'kpathsea' not found

A full log can be found at /tmp/work/usr/ports/graphics/evince/work-full/evince-3.36.7/_build/meson-logs/meson-log.txt
===>  Script "configure" failed unexpectedly.
Please report the problem to gnome@FreeBSD.org [maintainer] and attach the
"/tmp/work/usr/ports/graphics/evince/work-full/evince-3.36.7/_build/meson-logs/meson-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/evince
*** Error code 1
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2020-09-27 16:13:38 UTC
Created attachment 218360 [details]
Without ldflags
Comment 4 Tobias C. Berner freebsd_committer freebsd_triage 2020-09-27 16:20:03 UTC
Moin moin 

Good catch, will commit shortly.


mfg Tobias
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2020-09-27 16:36:08 UTC
Committed. Thanks.
Comment 6 commit-hook freebsd_committer freebsd_triage 2020-09-27 16:36:30 UTC
A commit references this bug:

Author: tcberner
Date: Sun Sep 27 16:35:52 UTC 2020
New revision: 550286
URL: https://svnweb.freebsd.org/changeset/ports/550286

Log:
  graphics/evince: fix packaging

  - fix DVI option linkage against kpathsea
  - fix plist when DBUS=off

  PR:		249935
  Submitted by:	VVD <vvd@unislabs.com>

Changes:
  head/graphics/evince/Makefile
  head/graphics/evince/pkg-plist