NetBSD Problem Report #53289

From martin@aprisoft.de  Tue May 15 12:20:23 2018
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AB7317A150
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 May 2018 12:20:23 +0000 (UTC)
Message-Id: <20180515122014.C7A785CC8BC@emmas.aprisoft.de>
Date: Tue, 15 May 2018 14:20:14 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: postscript docs differ in reproducable builds
X-Send-Pr-Version: 3.95

>Number:         53289
>Category:       toolchain
>Synopsis:       postscript docs differ in reproducable builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 15 12:25:00 +0000 2018
>Last-Modified:  Wed May 16 09:40:00 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.17
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.17 NetBSD 8.99.17 (GENERIC) #220: Thu May 10 09:07:57 CEST 2018 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

Doing a reproducable build of netbsd-8 on a -current build host
results in a few differences in the release.

All .ps.gz files differ, mainly by page size.

This might come from my environment (or something), but I don't
see how it happens exactly.

A sample diff is below.

--- releng/out/usr/share/doc/usd/title.ps.gz
+++ sets/out/usr/share/doc/usd/title.ps.gz
title.ps
@@ -2,15 +2,15 @@
 %%Creator: groff version 1.19.2
 %%DocumentNeededResources: font Times-Bold
 %%+ font Times-Roman
 %%+ font Times-Italic
 %%DocumentSuppliedResources: procset grops 1.19 2
 %%Pages: 10
 %%PageOrder: Ascend
-%%DocumentMedia: Default 612 792 0 () ()
+%%DocumentMedia: Default 595 842 0 () ()
 %%Orientation: Portrait
 %%EndComments
 %%BeginDefaults
 %%PageMedia: Default
 %%EndDefaults
 %%BeginProlog
 %%BeginResource: procset grops 1.19 2
@@ -184,25 +184,25 @@
 pop
 setpacking
 }if
 %%EndResource
 %%EndProlog
 %%BeginSetup
 %%BeginFeature: *PageSize Default
-<< /PageSize [ 612 792 ] /ImagingBBox null >> setpagedevice
+<< /PageSize [ 595 842 ] /ImagingBBox null >> setpagedevice
 %%EndFeature
 %%IncludeResource: font Times-Bold
 %%IncludeResource: font Times-Roman
 %%IncludeResource: font Times-Italic
 grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72
-def/PL 792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron
-/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef/.notdef
+def/PL 841.89 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron
+/Zcaron/scaron/zcaron/Ydieresis/trademark/quotesingle/Euro/.notdef
 /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
 /.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef
-/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
+/.notdef/.notdef/.notdef/space/exclam/quotedbl/numbersign/dollar/percent
 /ampersand/quoteright/parenleft/parenright/asterisk/plus/comma/hyphen
 /period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon
 /semicolon/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O
 /P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright/circumflex
 /underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y
 /z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase/guillemotleft
 /guillemotright/bullet/florin/fraction/perthousand/dagger/daggerdbl


>How-To-Repeat:
s/a

>Fix:
n/a

>Audit-Trail:
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53289: postscript docs differ in reproducable builds
Date: Wed, 16 May 2018 10:09:26 +0100

 On Tue, May 15, 2018 at 12:25:00PM +0000, martin@NetBSD.org wrote:
 > -%%DocumentMedia: Default 612 792 0 () ()
 > +%%DocumentMedia: Default 595 842 0 () ()

 Maybe a clue: 612 792 = 8.5 x 11 inch = letter
               595 842 = 210 x 297 mm  = A4

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53289: postscript docs differ in reproducable builds
Date: Wed, 16 May 2018 11:18:00 +0200

 On Wed, May 16, 2018 at 09:10:01AM +0000, Patrick Welche wrote:
 >  Maybe a clue: 612 792 = 8.5 x 11 inch = letter
 >                595 842 = 210 x 297 mm  = A4

 Yes, but why is it different on my local system? I thought I would have
 to pass something like -P-pa4 to groff to ask for A4, but I don't see
 where that would be coming from.

 Martin

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53289: postscript docs differ in reproducable builds
Date: Wed, 16 May 2018 11:30:26 +0200

 On Wed, May 16, 2018 at 09:20:00AM +0000, Martin Husemann wrote:
 >  Yes, but why is it different on my local system? I thought I would have
 >  to pass something like -P-pa4 to groff to ask for A4, but I don't see
 >  where that would be coming from.

 Perhaps:
 # cat /usr/pkg/etc/papersize
 a4

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53289: postscript docs differ in reproducable builds
Date: Wed, 16 May 2018 11:39:23 +0200

 On Wed, May 16, 2018 at 09:35:01AM +0000, Thomas Klausner wrote:
 >  Perhaps:
 >  # cat /usr/pkg/etc/papersize
 >  a4

 Heh, I have that on most systems, but actually not on the build host
 in question.

 Martin

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.