Bug 217310

Summary: [patch] devel/avro-c: Incorrect 'Requires:' entry in avro-c.pc
Product: Ports & Packages Reporter: Alexander Shikov <a.shikov>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (vg)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to fix libsnappy dependency in avro-c.pc none

Description Alexander Shikov 2017-02-23 13:45:50 UTC
Created attachment 180241 [details]
Patch to fix libsnappy dependency in avro-c.pc

devel/avro-c port requires archivers/snappy.
archivers/snappy install pkgconf data in file snappy.pc, but 'Requires:' entry in avro-c.pc contains "libsnappy" instead of "snappy" and it causes an error:

# pkgconf --exists --print-errors "avro-c >= 1.8"
Package libsnappy was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsnappy.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsnappy', required by 'avro-c', not found

Possible fix is to edit lang/c/CMakeLists.txt in devel/avro-c, and replace 'set(SNAPPY_PKG libsnappy)' line with 'set(SNAPPY_PKG snappy)'. Patch is attached.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-02-07 23:44:23 UTC
Feedback please!
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2018-02-24 21:50:51 UTC
Maintainer reset.
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-02-28 15:14:04 UTC
A commit references this bug:

Author: sunpoet
Date: Wed Feb 28 15:13:22 UTC 2018
New revision: 463227
URL: https://svnweb.freebsd.org/changeset/ports/463227

Log:
  Fix Requires: in avro-c.pc

  - Bump PORTREVISION for package change

  PR:		217310
  Submitted by:	Alexander Shikov <a.shikov@itcons.net.ua>

Changes:
  head/devel/avro-c/Makefile
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-02-28 15:14:18 UTC
Committed. Thanks!