From owner-svn-ports-all@freebsd.org Tue Oct 9 07:04:12 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3185310C2C03; Tue, 9 Oct 2018 07:04:12 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DBCFE799C8; Tue, 9 Oct 2018 07:04:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BE22A6BF7; Tue, 9 Oct 2018 07:04:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9974BI6088029; Tue, 9 Oct 2018 07:04:11 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9974Bh9088027; Tue, 9 Oct 2018 07:04:11 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201810090704.w9974Bh9088027@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 9 Oct 2018 07:04:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r481607 - in branches/2018Q4/graphics/mupdf: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in branches/2018Q4/graphics/mupdf: . files X-SVN-Commit-Revision: 481607 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2018 07:04:12 -0000 Author: tobik Date: Tue Oct 9 07:04:11 2018 New Revision: 481607 URL: https://svnweb.freebsd.org/changeset/ports/481607 Log: MFH: r481606 graphics/mupdf: Fix linking with libmupdf.so for third-party ports libmupdf.so references symbols from libmupdfthird.so but does not link directly against it. This is problematic for ports using the --as-needed linker option, such as graphics/zathura-pdf-mupdf (>= 0.3.3) due to Meson's defaults. zathura-pdf-mupdf itself does not reference symbols from libmupdfthird.so, and so despite being included in the linker arguments, libmupdfthird.so is not actually linked in. $ zathura --version error: Could not load plugin '/usr/local/lib/zathura/libpdf-mupdf.so' (/usr/local/lib/libmupdf.so.1.13.0: Undefined symbol "js_tointeger"). This is a consequence of us providing shared libraries in spite of upstream since r433550 to keep package sizes down, but not properly understanding the dependency between libmupdfthird and libmupdf. PR: 232059 Submitted by: Albert Ou Approved by: ports-secteam build/runtime fix blanket Modified: branches/2018Q4/graphics/mupdf/Makefile branches/2018Q4/graphics/mupdf/files/patch-Makefile Directory Properties: branches/2018Q4/ (props changed) Modified: branches/2018Q4/graphics/mupdf/Makefile ============================================================================== --- branches/2018Q4/graphics/mupdf/Makefile Tue Oct 9 07:01:53 2018 (r481606) +++ branches/2018Q4/graphics/mupdf/Makefile Tue Oct 9 07:04:11 2018 (r481607) @@ -4,7 +4,7 @@ PORTNAME= mupdf PORTVERSION= 1.13.0 DISTVERSIONSUFFIX= -source -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= http://www.mupdf.com/downloads/ \ Modified: branches/2018Q4/graphics/mupdf/files/patch-Makefile ============================================================================== --- branches/2018Q4/graphics/mupdf/files/patch-Makefile Tue Oct 9 07:01:53 2018 (r481606) +++ branches/2018Q4/graphics/mupdf/files/patch-Makefile Tue Oct 9 07:04:11 2018 (r481607) @@ -15,11 +15,12 @@ $OpenBSD: patch-Makefile,v 1.12 2016/12/12 10:54:39 st @@ -344,7 +344,11 @@ THIRD_OBJ := \ THREAD_OBJ := $(THREAD_OBJ) - $(MUPDF_LIB) : $(MUPDF_OBJ) -+ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS) +-$(MUPDF_LIB) : $(MUPDF_OBJ) ++$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) ++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -Wl,--no-undefined -o $@ $^ $(LIBS) + $(THIRD_LIB) : $(THIRD_OBJ) -+ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS) ++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -Wl,--no-undefined -o $@ $^ $(LIBS) + $(THREAD_LIB) : $(THREAD_OBJ)