From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 24 00:08:54 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A1A2F97 for ; Mon, 24 Nov 2014 00:08:54 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBB3BA57 for ; Mon, 24 Nov 2014 00:08:53 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAO08reX060264 for ; Mon, 24 Nov 2014 00:08:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195319] New: security/heimdal moved libs, did not fix pkg-config; broke existing binaries Date: Mon, 24 Nov 2014 00:08:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@phil.spodhuis.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hrs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 00:08:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195319 Bug ID: 195319 Summary: security/heimdal moved libs, did not fix pkg-config; broke existing binaries Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: hrs@FreeBSD.org Reporter: freebsd@phil.spodhuis.org Assignee: hrs@FreeBSD.org Flags: maintainer-feedback?(hrs@FreeBSD.org) Commit 7ffdbf37 in freebsd-ports was "Move headers and libraries into PREFIX/{include,lib}/heimdal". The commit neglected to update "libdata/pkgconfig/heimdal-gssapi.pc", thus programs built using pkg-config can not pick up the new library location, and end up building against system libraries. In addition, because the new location is not in the system library path, and nothing in the ".pc" file says to update the RPATH, programs will successfully build and link, but the run-time linker will fail to resolve the heimdal libraries. I am one of the Exim maintainers, I use heimdal-gssapi in building Exim locally (not an option exposed by the mail/exim port, and I'm building from source as an upstream maintainer anyway). This change meant that a "pkg upgrade" broke my running MTA because the upgrade did not leave the old libraries in the compat/ area, so non-Ports programs suddenly break. So, minimally, there needs to be an UPDATING notice of this breaking change, but ideally there would also be a migration compatibility aid to not just nuke libraries from appearing anywhere in the system runtime library path. To be able to use the new locations, I modified `heimdal-gssapi.pc` to state: libdir=${exec_prefix}/lib/heimdal includedir=${prefix}/include/heimdal and on the `Libs:` line, after the `-L${libdir}` I added: `-Wl,-rpath=${libdir}` With those three changes to the pkg-config spec for heimdal-gssapi, Exim once more builds and links and the resulting binary can be successfully loaded by the runtime linker. --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer hrs@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.