Bug 233055

Summary: archivers/cabextract: enforces link with native iconv
Product: Ports & Packages Reporter: Lorenzo Salvadore <salvadore>
Component: Individual Port(s)Assignee: Sunpoet Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
patch with USES+= iconv salvadore: maintainer-approval? (sunpoet)

Description Lorenzo Salvadore freebsd_committer 2018-11-07 11:20:35 UTC
Created attachment 199047 [details]
patch with USES+= iconv

The actual version of cabextract links with ${LOCALBASE}/libiconv.so.2 if and only if converters/libiconv is installed and this (conditional) dependency is never declared in cabextract's Makefile.

My patch just adds iconv to the USES flags, which has as consequence to enforce link with the native iconv (i.e. cabextract is linked only to libc).

All supported release have a native iconv since 10-CURRENT, so there are no special cases that need to link with libiconv from ports.

I tested the patch in a 11.2-RELEASE/amd64 jail and on poudriere (11.2-RELEASE, both on amd64 and i386).
Comment 1 commit-hook freebsd_committer 2018-11-10 07:59:42 UTC
A commit references this bug:

Author: sunpoet
Date: Sat Nov 10 07:59:09 UTC 2018
New revision: 484591
URL: https://svnweb.freebsd.org/changeset/ports/484591

  Register iconv dependency

  - Bump PORTREVISION for dependency and package change

  PR:		233055
  Submitted by:	Lorenzo Salvadore <phascolarctos@protonmail.ch>

Comment 2 Sunpoet Po-Chuan Hsieh freebsd_committer 2018-11-10 08:01:22 UTC
Committed. Thanks!