From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 17 04:40:05 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48B9A1065675 for ; Thu, 17 Mar 2011 04:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0E98FC16 for ; Thu, 17 Mar 2011 04:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2H4e49Y069763 for ; Thu, 17 Mar 2011 04:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2H4e4MX069762; Thu, 17 Mar 2011 04:40:04 GMT (envelope-from gnats) Resent-Date: Thu, 17 Mar 2011 04:40:04 GMT Resent-Message-Id: <201103170440.p2H4e4MX069762@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Zhihao Yuan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B26E610656D4 for ; Thu, 17 Mar 2011 04:31:15 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7A4008FC13 for ; Thu, 17 Mar 2011 04:31:15 +0000 (UTC) Received: by iwn33 with SMTP id 33so2840221iwn.13 for ; Wed, 16 Mar 2011 21:31:14 -0700 (PDT) Received: by 10.231.180.94 with SMTP id bt30mr791499ibb.23.1300336274883; Wed, 16 Mar 2011 21:31:14 -0700 (PDT) Received: from compaq.yuetime (c-98-228-191-105.hsd1.il.comcast.net [98.228.191.105]) by mx.google.com with ESMTPS id 8sm352240iba.38.2011.03.16.21.31.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 21:31:14 -0700 (PDT) Received: by compaq.yuetime (sSMTP sendmail emulation); Wed, 16 Mar 2011 23:31:07 -0500 Message-Id: <4d818e92.4800e70a.0cf7.1505@mx.google.com> Date: Wed, 16 Mar 2011 23:31:07 -0500 From: Zhihao Yuan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/155625: port: graphics/mupdf updated to 0.8.15 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhihao Yuan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 04:40:05 -0000 >Number: 155625 >Category: ports >Synopsis: port: graphics/mupdf updated to 0.8.15 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 17 04:40:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 >Description: MuPDF(http://mupdf.com/) was updated to 0.8.15 (sorry for the deprecated PR ports/155621). We need to update this port. Note that the memory corruption problem (http://portaudit.freebsd.org/53bde960-356b-11e0-8e81-0022190034c0.html) are fixed in this new version. I tested the PDF file from the original advisory (https://code.google.com/p/sumatrapdf/issues/detail?id=1180&can=1), and valgrind shows no problem with the it. BTW, from version 0.8, upstream includes some manpages. I renamed them to following the naming rule of the corresponding binaries (eg., pdf* -> mu_pdf*, pdf*.1 -> mu_pdf*.1). >How-To-Repeat: >Fix: --- patch-mupdf-0.8.15 begins here --- diff -rupN mupdf.orig/Makefile mupdf/Makefile --- mupdf.orig/Makefile 2010-10-06 15:31:12.000000000 -0500 +++ mupdf/Makefile 2011-03-16 23:20:12.915538148 -0500 @@ -5,10 +5,11 @@ # $FreeBSD: ports/graphics/mupdf/Makefile,v 1.10 2010/10/06 20:31:12 pgollucci Exp $ PORTNAME= mupdf -PORTVERSION= 0.7 +PORTVERSION= 0.8.15 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= http://www.mupdf.com/download/ +DISTFILES= ${PORTNAME}-${DISTVERSION}-source.tar.gz MAINTAINER= martin.dieringer@gmx.de COMMENT= Lightweight PDF viewer and toolkit @@ -19,10 +20,11 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/prin openjpeg.2:${PORTSDIR}/graphics/openjpeg USE_GMAKE= yes -MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 +MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 MANDIR=${PREFIX}/man/man1 APPS_MAN="${MAN1:S@^@apps/man/@}" LIBDIR=${PREFIX}/lib USE_XORG= x11 xext USE_GNOME= pkgconfig USE_GCC= 4.2+ +MAN1= mupdf.1 mu_pdfclean.1 mu_pdfdraw.1 mu_pdfshow.1 MAKE_JOBS_SAFE= yes @@ -32,13 +34,11 @@ LICENSE_FILE= ${WRKSRC}/COPYING post-patch: .SILENT ${REINPLACE_CMD} -e 's#\(PDF.*_EXE=.*DIR./\)#\1mu_#g' \ -e '/install:/,/^$$/ { /-d/d; }' \ - -e '/install.*bin$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \ - -e '/install.*lib$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \ - -e '/install.*include$$/s/install/$$(BSD_INSTALL_DATA)/' \ ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e 's/LAGS :=/LAGS +=/g' \ - -e 's/-O2//' -e 's/-g//' \ + ${REINPLACE_CMD} -e 's/-O2//' \ -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/Makerules +pre-install: .SILENT + find . -name pdf\*.1 -exec sh -c 'mv {} $$(dirname {})/mu_$$(basename {})' \; .include diff -rupN mupdf.orig/distinfo mupdf/distinfo --- mupdf.orig/distinfo 2010-10-06 15:31:12.000000000 -0500 +++ mupdf/distinfo 2011-03-16 21:56:33.027260860 -0500 @@ -1,3 +1,2 @@ -MD5 (mupdf-0.7.tar.gz) = 83adc4d14eb17835df791a9a0d1e8fa9 -SHA256 (mupdf-0.7.tar.gz) = e7f6307fa472575d27fe893e787ddb3fc927f03ba4ae23105f917189e81960a6 -SIZE (mupdf-0.7.tar.gz) = 3557621 +SHA256 (mupdf-0.8.15-source.tar.gz) = c9e7acc86c208a854e460cd07c1132039a95df0c21aa5052c4481fb540b0e03e +SIZE (mupdf-0.8.15-source.tar.gz) = 3837265 --- patch-mupdf-0.8.15 ends here --- >Release-Note: >Audit-Trail: >Unformatted: