ports/183172: [patch] print/qpdf: fix build with libc++, update to version 5.0.1, support STAGE

Boris Samorodov bsam at FreeBSD.org
Tue Oct 22 07:40:00 UTC 2013


>Number:         183172
>Category:       ports
>Synopsis:       [patch] print/qpdf: fix build with libc++, update to version 5.0.1, support STAGE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 22 07:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Boris Samorodov
>Release:        FreeBSD 10-amd64
>Organization:
BSDprint
>Environment:
>Description:
The port does not build with libc++:
-----
In file included from libqpdf/FileInputSource.cc:3:
include/qpdf/QUtil.hh:104:5: error: unknown type name 'time_t'
    time_t get_current_time();
    ^
1 error generated.
-----
>How-To-Repeat:
Use FreeBSD 10.x or 11.x and try to build the port.
>Fix:
. fix build with libc++;
. update to version 5.0.1;
. support STAGE.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 331093)
+++ Makefile	(working copy)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	qpdf
-PORTVERSION=	5.0.0
+PORTVERSION=	5.0.1
 CATEGORIES=	print
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -19,9 +19,6 @@
 USE_LDCONFIG=	yes
 USES=		gmake
 
-MAN1=		fix-qdf.1 qpdf.1 zlib-flate.1
-
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
 		-e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
Index: distinfo
===================================================================
--- distinfo	(revision 331093)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (qpdf-5.0.0.tar.gz) = ddeac2272cbabffbaf7320d7e783085ed3690710616e0b855947b25e59a97b37
-SIZE (qpdf-5.0.0.tar.gz) = 7556793
+SHA256 (qpdf-5.0.1.tar.gz) = d0658a0b276ac5b811cc41edb8a4fc70d343a392aba53578df3c188f57b1efbd
+SIZE (qpdf-5.0.1.tar.gz) = 7569985
Index: files/patch-include_QPDFExc.hh
===================================================================
--- files/patch-include_QPDFExc.hh	(revision 0)
+++ files/patch-include_QPDFExc.hh	(working copy)
@@ -0,0 +1,10 @@
+--- include/qpdf/QPDFExc.hh.orig	2013-10-22 10:56:42.542484811 +0400
++++ include/qpdf/QPDFExc.hh	2013-10-22 10:57:02.738482806 +0400
+@@ -13,6 +13,7 @@
+ 
+ #include <qpdf/Constants.h>
+ #include <stdexcept>
++#include <string>
+ 
+ class QPDFExc: public std::runtime_error
+ {
Index: files/patch-include_QUtil.hh
===================================================================
--- files/patch-include_QUtil.hh	(revision 0)
+++ files/patch-include_QUtil.hh	(working copy)
@@ -0,0 +1,10 @@
+--- include/qpdf/QUtil.hh.orig	2013-10-22 10:53:22.013499403 +0400
++++ include/qpdf/QUtil.hh	2013-10-22 10:53:41.216497407 +0400
+@@ -14,6 +14,7 @@
+ #include <list>
+ #include <stdexcept>
+ #include <stdio.h>
++#include <ctime>
+ 
+ namespace QUtil
+ {
Index: files/patch-include_qpdf_QPDF.hh
===================================================================
--- files/patch-include_qpdf_QPDF.hh	(revision 0)
+++ files/patch-include_qpdf_QPDF.hh	(working copy)
@@ -0,0 +1,10 @@
+--- include/qpdf/QPDF.hh.orig	2013-10-22 10:30:42.941592225 +0400
++++ include/qpdf/QPDF.hh	2013-10-22 10:30:54.303595364 +0400
+@@ -16,6 +16,7 @@
+ #include <map>
+ #include <list>
+ #include <iostream>
++#include <ctime>
+ 
+ #include <qpdf/QPDFObjGen.hh>
+ #include <qpdf/QPDFXRefEntry.hh>
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 331093)
+++ pkg-plist	(working copy)
@@ -32,6 +32,9 @@
 lib/libqpdf.so
 lib/libqpdf.so.13
 libdata/pkgconfig/libqpdf.pc
+man/man1/fix-qdf.1.gz
+man/man1/qpdf.1.gz
+man/man1/zlib-flate.1.gz
 share/doc/qpdf/qpdf-manual.html
 share/doc/qpdf/qpdf-manual.pdf
 share/doc/qpdf/stylesheet.css


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list