Bug 249935 - graphics/evince: fails to build with DBUS=off and meson.build:344:0: ERROR: C shared or static library 'kpathsea' not found
Summary: graphics/evince: fails to build with DBUS=off and meson.build:344:0: ERROR: C...
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: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-27 11:31 UTC by VVD
Modified: 2020-09-27 16:36 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
Fixed build with DBUS=off and added localbase:ldflags (887 bytes, patch)
2020-09-27 11:31 UTC, VVD
vvd: maintainer-approval?
Details | Diff
Without ldflags (40.78 KB, text/plain)
2020-09-27 16:13 UTC, VVD
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description VVD 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 VVD 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 VVD 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 VVD 2020-09-27 16:13:38 UTC
Created attachment 218360 [details]
Without ldflags
Comment 4 Tobias C. Berner freebsd_committer 2020-09-27 16:20:03 UTC
Moin moin 

Good catch, will commit shortly.


mfg Tobias
Comment 5 Tobias C. Berner freebsd_committer 2020-09-27 16:36:08 UTC
Committed. Thanks.
Comment 6 commit-hook freebsd_committer 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