Bug 234406

Summary: net/avahi-qt5: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, pkubaj
Priority: --- Flags: bugzilla: maintainer-feedback? (gnome)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2018-12-25 20:52:50 UTC
Created attachment 200510 [details]
patch

USES=compiler:c++11-lang is necessary to build on GCC architectures.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-12-31 06:29:33 UTC
To me this fails on amd64 with:

gmake[1]: *** No rule to make target 'avahi-qt5.pc'.  Stop.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2019-03-21 12:04:55 UTC
This now builds for me.
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-03-21 12:05:07 UTC
A commit references this bug:

Author: linimon
Date: Thu Mar 21 12:04:59 UTC 2019
New revision: 496445
URL: https://svnweb.freebsd.org/changeset/ports/496445

Log:
  Fix build on gcc-based architectures, with the false positive error:

    configure: error: Couldn't compile Qt without -fPIC nor with -fPIC

  PR:		234406
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Changes:
  head/net/avahi-qt5/Makefile