From owner-cvs-ports@FreeBSD.ORG Wed Feb 29 21:37:51 2012 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 29B4D1065674; Wed, 29 Feb 2012 21:37:51 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 191938FC12; Wed, 29 Feb 2012 21:37:49 +0000 (UTC) Received: from alph.allbsd.org (p1012-ipbf2105funabasi.chiba.ocn.ne.jp [114.148.160.12]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q1TLbR2Q094245; Thu, 1 Mar 2012 06:37:38 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q1TLbMVx012226; Thu, 1 Mar 2012 06:37:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Thu, 01 Mar 2012 06:37:15 +0900 (JST) Message-Id: <20120301.063715.1637304310088980264.hrs@allbsd.org> To: bsam@passap.ru From: Hiroki Sato In-Reply-To: <4F4E63A3.7060000@passap.ru> References: <201202291209.q1TC93Fc006227@repoman.freebsd.org> <4F4E63A3.7060000@passap.ru> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Thu_Mar__1_06_37_15_2012_898)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Thu, 01 Mar 2012 06:37:43 +0900 (JST) X-Spam-Status: No, score=-95.9 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, FSL_RU_URL, MIMEQENC, MIME_CHARSET_FARAWAY, RCVD_IN_PBL, RCVD_IN_RP_RNBL, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/print/ghostscript9 Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 21:37:51 -0000 ----Security_Multipart(Thu_Mar__1_06_37_15_2012_898)-- Content-Type: Text/Plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Boris Samorodov wrote in <4F4E63A3.7060000@passap.ru>: bs> 29.02.2012 16:09, Hiroki Sato =D0=C9=DB=C5=D4: bs> > hrs 2012-02-29 12:09:03 UTC bs> > = bs> > FreeBSD ports repository bs> > = bs> > Modified files: bs> > print/ghostscript9 Makefile = bs> > Log: bs> > Disable libpaper by default because it can override the A4SIZE = option bs> > unintentionally. bs> = bs> Can you explain this a little bit wider? When libpaper is not linked, the default size is determined by constants in the gs drivers. WITH_A4SIZE option makes them "a4" in compile-time. When linking libpaper, gs defines a paper size returned by defaultpapername() (libpaper API) as /DEFAULTPAPERSIZE via .defaultpapesize (this corresponds to gp_defaultpapersize() in C) in gs_init.ps. It overrides the constants in the drivers. However, the libpaper's default size is always "letter", so in that case the gs would use US letter size by default even if WITH_A4SIZE option in this port was enabled. I think WITH_A4SIZE option should be deprecated at some point and the default paper size can be selected by libpaper in run-time because it will be more consistent and flexible, but the current code in gs prevents it because it uses defaultpapername(), not systempapername() for some reason. So, the functionality the libpaper provides in gs is only to define /DEFAULTPAPERSIZE but it is confusing due to the above reason. This was why I decided to disable libpaper at this moment. -- Hiroki ----Security_Multipart(Thu_Mar__1_06_37_15_2012_898)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk9OmosACgkQTyzT2CeTzy1VjQCeM+KnLIPbkYhW8odeQ1IQEtj2 RKkAn3ccQrMldVe6o8+G6+/Q148CRRoH =X80w -----END PGP SIGNATURE----- ----Security_Multipart(Thu_Mar__1_06_37_15_2012_898)----