app-text/fbpdf: fix build failure against app-text/mupdf-1.11, bug #623468
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 2 Jul 2017 09:44:30 +0000 (10:44 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 2 Jul 2017 09:44:43 +0000 (10:44 +0100)
app-text/mupdf 1.11 does not provide mupdfthird library anymore
and build fails as:

  x86_64-pc-linux-gnu-gcc -o fbpdf fbpdf.o mupdf.o draw.o -Wl,-O1 -Wl,--as-needed -lmupdf -lmupdfthird -lcrypto -lm
  /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmupdfthird
  collect2: error: ld returned 1 exit status

Now app-text/mupdf provides single 'mupdf' library.

Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/623468
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-text/fbpdf/fbpdf-0_p20161202.ebuild
app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch [new file with mode: 0644]

index d7cb3668d43f3388abc2850775704aa286e96741..02e5ea6ffd6a4f0f7eef2834790e1722732ef16d 100644 (file)
@@ -28,7 +28,10 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${PN}
 
-PATCHES=("${FILESDIR}"/${P}-format.patch)
+PATCHES=(
+       "${FILESDIR}"/${P}-format.patch
+       "${FILESDIR}"/${P}-mupdfthird.patch
+)
 
 src_compile() {
        emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
diff --git a/app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch b/app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch
new file mode 100644 (file)
index 0000000..070b7c7
--- /dev/null
@@ -0,0 +1,9 @@
+diff --git a/Makefile b/Makefile
+index f986689..374837f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -13,3 +13,3 @@ clean:
+ fbpdf: fbpdf.o mupdf.o draw.o
+-      $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdfthird -lcrypto -lm
++      $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lcrypto -lm
+