Bug#984494: unblock: xpdf/3.04+git20210103-2

2021-03-04 Thread Florian Schlichting
Hi Paul,

> > As an unrelated issue, I just noticed after uploading -2 that the
> > -D_FORTIFY_SOURCE=2 hardening buildflag fails to be correctly injected.
> > This can apparently be fixed by a small change to debian/rules:
> > 
> >  export DEB_BUILD_MAINT_OPTIONS=hardening=+all
> > 
> > -export CPPFLAGS+=-DHAVE_PAPER_H
> > +export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_PAPER_H
> > 
> > Does the release team consider this a permissible change for the hard
> > freeze, and should I upload a -3 straight away so that one unblock will
> > suffice for both fixes?
> 
> Please go ahead with that. Sounds like something we want for a PDF viewer.

yes, thank you!

xpdf 3.04+git20210103-3 is on its way to the archive, the complete
debdiff follows below.

Florian


diff -Nru xpdf-3.04+git20210103/debian/changelog 
xpdf-3.04+git20210103/debian/changelog
--- xpdf-3.04+git20210103/debian/changelog  2021-01-28 15:58:32.0 
+0800
+++ xpdf-3.04+git20210103/debian/changelog  2021-03-04 22:41:56.0 
+0800
@@ -1,3 +1,15 @@
+xpdf (3.04+git20210103-3) unstable; urgency=medium
+
+  * Fix automatic injection of hardening buildflags
+
+ -- Florian Schlichting   Thu, 04 Mar 2021 22:41:56 +0800
+
+xpdf (3.04+git20210103-2) unstable; urgency=medium
+
+  * Fix printing when no psLevel is defined in xpdfrc (closes: #983880)
+
+ -- Florian Schlichting   Thu, 04 Mar 2021 14:20:04 +0800
+
 xpdf (3.04+git20210103-1) unstable; urgency=medium
 
   * Import new upstream version 3.04+git20210103
diff -Nru xpdf-3.04+git20210103/debian/patches/983880.patch 
xpdf-3.04+git20210103/debian/patches/983880.patch
--- xpdf-3.04+git20210103/debian/patches/983880.patch   1970-01-01 
08:00:00.0 +0800
+++ xpdf-3.04+git20210103/debian/patches/983880.patch   2021-03-04 
14:17:41.0 +0800
@@ -0,0 +1,23 @@
+commit 1b27cc5bb4491aed9d65c9f98704a693e3aabe59
+Author: Adam Sampson 
+Date:   Wed Mar 3 14:14:52 2021 +
+
+Initialise XPDFParams::psLevel.
+
+This meant that PostScript output didn't work unless you specified
+psLevel explicitly in the config file.
+
+Reported by Frédéric Brière in Debian bug #983880.
+
+diff --git a/xpdf/XPDFParams.cc b/xpdf/XPDFParams.cc
+index 4929bed..f33dd1e 100644
+--- a/xpdf/XPDFParams.cc
 b/xpdf/XPDFParams.cc
+@@ -159,6 +159,7 @@ XPDFParams::XPDFParams(const char *cfgFileName) {
+   psImageableURY = psPaperHeight;
+   psCrop = true;
+   psDuplex = false;
++  psLevel = psLevel2;
+   initialZoom = "125";
+   continuousView = false;
+   createDefaultKeyBindings();
diff -Nru xpdf-3.04+git20210103/debian/patches/series 
xpdf-3.04+git20210103/debian/patches/series
--- xpdf-3.04+git20210103/debian/patches/series 2021-01-28 14:22:16.0 
+0800
+++ xpdf-3.04+git20210103/debian/patches/series 2021-03-04 15:09:53.0 
+0800
@@ -1 +1,2 @@
 wrapper-options-manpage.patch
+983880.patch
diff -Nru xpdf-3.04+git20210103/debian/rules xpdf-3.04+git20210103/debian/rules
--- xpdf-3.04+git20210103/debian/rules  2021-01-28 14:12:37.0 +0800
+++ xpdf-3.04+git20210103/debian/rules  2021-03-04 15:10:10.0 +0800
@@ -2,7 +2,7 @@
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-export CPPFLAGS+=-DHAVE_PAPER_H
+export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_PAPER_H
 export LIBS+=-lpaper
 
 %:



Bug#984494: unblock: xpdf/3.04+git20210103-2

2021-03-04 Thread Paul Gevers
Control: tags -1 confirmed

Hi Florian,

On 04-03-2021 08:53, Florian Schlichting wrote:
> Please unblock package xpdf

Sure, but see below.

> As an unrelated issue, I just noticed after uploading -2 that the
> -D_FORTIFY_SOURCE=2 hardening buildflag fails to be correctly injected.
> This can apparently be fixed by a small change to debian/rules:
> 
>  export DEB_BUILD_MAINT_OPTIONS=hardening=+all
> 
> -export CPPFLAGS+=-DHAVE_PAPER_H
> +export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_PAPER_H
> 
> Does the release team consider this a permissible change for the hard
> freeze, and should I upload a -3 straight away so that one unblock will
> suffice for both fixes?

Please go ahead with that. Sounds like something we want for a PDF viewer.

Paul



OpenPGP_signature
Description: OpenPGP digital signature


Processed: Re: Bug#984494: unblock: xpdf/3.04+git20210103-2

2021-03-04 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 confirmed
Bug #984494 [release.debian.org] unblock: xpdf/3.04+git20210103-2
Added tag(s) confirmed.

-- 
984494: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984494
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#984494: unblock: xpdf/3.04+git20210103-2

2021-03-03 Thread Florian Schlichting
Package: release.debian.org
Severity: normal
User: release.debian@packages.debian.org
Usertags: unblock

Please unblock package xpdf

-2 that I just uploaded contains a one-line patch correctly initializing the
psLevel variable. This fixes the PostScript generated for printing in
all cases where the user hasn't set a psLevel manually in the config
file. This was reported in #983880 and promptly fixed by Upstream.

I think printing PDFs is one of the most common things people do with
xpdf (apart from simply viewing them, of course), and since this is a
regression from the previous version, getting a fixed version into
bullseye is very important IMHO.

see source debdiff below.

unblock xpdf/3.04+git20210103-2


As an unrelated issue, I just noticed after uploading -2 that the
-D_FORTIFY_SOURCE=2 hardening buildflag fails to be correctly injected.
This can apparently be fixed by a small change to debian/rules:

 export DEB_BUILD_MAINT_OPTIONS=hardening=+all

-export CPPFLAGS+=-DHAVE_PAPER_H
+export DEB_CPPFLAGS_MAINT_APPEND = -DHAVE_PAPER_H

Does the release team consider this a permissible change for the hard
freeze, and should I upload a -3 straight away so that one unblock will
suffice for both fixes?

thanks,
Florian


diff -Nru xpdf-3.04+git20210103/debian/changelog 
xpdf-3.04+git20210103/debian/changelog
--- xpdf-3.04+git20210103/debian/changelog  2021-01-28 15:58:32.0 
+0800
+++ xpdf-3.04+git20210103/debian/changelog  2021-03-04 14:20:04.0 
+0800
@@ -1,3 +1,9 @@
+xpdf (3.04+git20210103-2) unstable; urgency=medium
+
+  * Fix printing when no psLevel is defined in xpdfrc (closes: #983880)
+
+ -- Florian Schlichting   Thu, 04 Mar 2021 14:20:04 +0800
+
 xpdf (3.04+git20210103-1) unstable; urgency=medium
 
   * Import new upstream version 3.04+git20210103
diff -Nru xpdf-3.04+git20210103/debian/patches/983880.patch 
xpdf-3.04+git20210103/debian/patches/983880.patch
--- xpdf-3.04+git20210103/debian/patches/983880.patch   1970-01-01 
08:00:00.0 +0800
+++ xpdf-3.04+git20210103/debian/patches/983880.patch   2021-03-04 
14:17:41.0 +0800
@@ -0,0 +1,23 @@
+commit 1b27cc5bb4491aed9d65c9f98704a693e3aabe59
+Author: Adam Sampson 
+Date:   Wed Mar 3 14:14:52 2021 +
+
+Initialise XPDFParams::psLevel.
+
+This meant that PostScript output didn't work unless you specified
+psLevel explicitly in the config file.
+
+Reported by Frédéric Brière in Debian bug #983880.
+
+diff --git a/xpdf/XPDFParams.cc b/xpdf/XPDFParams.cc
+index 4929bed..f33dd1e 100644
+--- a/xpdf/XPDFParams.cc
 b/xpdf/XPDFParams.cc
+@@ -159,6 +159,7 @@ XPDFParams::XPDFParams(const char *cfgFileName) {
+   psImageableURY = psPaperHeight;
+   psCrop = true;
+   psDuplex = false;
++  psLevel = psLevel2;
+   initialZoom = "125";
+   continuousView = false;
+   createDefaultKeyBindings();
diff -Nru xpdf-3.04+git20210103/debian/patches/series 
xpdf-3.04+git20210103/debian/patches/series
--- xpdf-3.04+git20210103/debian/patches/series 2021-01-28 14:22:16.0 
+0800
+++ xpdf-3.04+git20210103/debian/patches/series 2021-03-04 14:17:21.0 
+0800
@@ -1 +1,2 @@
 wrapper-options-manpage.patch
+983880.patch