Bug 183172 - [patch] print/qpdf: fix build with libc++, update to version 5.0.1, support STAGE
Summary: [patch] print/qpdf: fix build with libc++, update to version 5.0.1, support S...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 08:40 UTC by Boris Samorodov
Modified: 2013-11-06 15:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.83 KB, patch)
2013-10-22 08:40 UTC, Boris Samorodov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Samorodov freebsd_committer freebsd_triage 2013-10-22 08:40:00 UTC
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.
-----

Fix: . fix build with libc++;
. update to version 5.0.1;
. support STAGE.

Patch attached with submission follows:
How-To-Repeat: Use FreeBSD 10.x or 11.x and try to build the port.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-22 08:40:07 UTC
Maintainer of print/qpdf,

Please note that PR ports/183172 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183172

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-22 08:40:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2013-10-22 08:53:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Take.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-11-06 14:52:13 UTC
Author: bsam
Date: Wed Nov  6 14:52:04 2013
New Revision: 332998
URL: http://svnweb.freebsd.org/changeset/ports/332998

Log:
  . fix build with libc++;
  . update to version 5.0.1;
  . support STAGE.
  
  PR:		ports/183172
  Submitted by:	bsam (me)
  Approved by:	maintainer (timeout 2 weeks)

Added:
  head/print/qpdf/files/patch-include_QPDFExc.hh   (contents, props changed)
  head/print/qpdf/files/patch-include_QUtil.hh   (contents, props changed)
  head/print/qpdf/files/patch-include_qpdf_QPDF.hh   (contents, props changed)
Modified:
  head/print/qpdf/Makefile
  head/print/qpdf/distinfo
  head/print/qpdf/pkg-plist

Modified: head/print/qpdf/Makefile
==============================================================================
--- head/print/qpdf/Makefile	Wed Nov  6 14:50:24 2013	(r332997)
+++ head/print/qpdf/Makefile	Wed Nov  6 14:52:04 2013	(r332998)
@@ -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 @@ GNU_CONFIGURE=	yes
 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' \

Modified: head/print/qpdf/distinfo
==============================================================================
--- head/print/qpdf/distinfo	Wed Nov  6 14:50:24 2013	(r332997)
+++ head/print/qpdf/distinfo	Wed Nov  6 14:52:04 2013	(r332998)
@@ -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

Added: head/print/qpdf/files/patch-include_QPDFExc.hh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/qpdf/files/patch-include_QPDFExc.hh	Wed Nov  6 14:52:04 2013	(r332998)
@@ -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
+ {

Added: head/print/qpdf/files/patch-include_QUtil.hh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/qpdf/files/patch-include_QUtil.hh	Wed Nov  6 14:52:04 2013	(r332998)
@@ -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
+ {

Added: head/print/qpdf/files/patch-include_qpdf_QPDF.hh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/qpdf/files/patch-include_qpdf_QPDF.hh	Wed Nov  6 14:52:04 2013	(r332998)
@@ -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>

Modified: head/print/qpdf/pkg-plist
==============================================================================
--- head/print/qpdf/pkg-plist	Wed Nov  6 14:50:24 2013	(r332997)
+++ head/print/qpdf/pkg-plist	Wed Nov  6 14:52:04 2013	(r332998)
@@ -32,6 +32,9 @@ lib/libqpdf.la
 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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Boris Samorodov freebsd_committer freebsd_triage 2013-11-06 14:53:46 UTC
State Changed
From-To: feedback->closed

Committed, thanks! ;-)