From owner-freebsd-ports@FreeBSD.ORG Fri Mar 2 10:39:33 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA74E106566C for ; Fri, 2 Mar 2012 10:39:33 +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 C62728FC12 for ; Fri, 2 Mar 2012 10:39:32 +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 q22Ad9YN095631; Fri, 2 Mar 2012 19:39:19 +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 q22Ad8hL028045; Fri, 2 Mar 2012 19:39:09 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 02 Mar 2012 19:38:53 +0900 (JST) Message-Id: <20120302.193853.1299638526616672412.hrs@allbsd.org> To: bsam@passap.ru From: Hiroki Sato In-Reply-To: <4F5075CC.9010507@passap.ru> References: <4F4E63A3.7060000@passap.ru> <20120301.063715.1637304310088980264.hrs@allbsd.org> <4F5075CC.9010507@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(Fri_Mar__2_19_38_53_2012_616)--" 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]); Fri, 02 Mar 2012 19:39:26 +0900 (JST) X-Spam-Status: No, score=-98.5 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, FSL_RU_URL, 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: freebsd-ports@FreeBSD.org Subject: Re: print/libpaper problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 10:39:33 -0000 ----Security_Multipart(Fri_Mar__2_19_38_53_2012_616)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Boris Samorodov wrote in <4F5075CC.9010507@passap.ru>: bs> So what if install a system wide default paper size while installing bs> print/libpaper? That may help both in gs case (when a binary is linked bs> with libpaper) and those that just use libpaper if it is installed. No. defaultpapername() returns a constant value at compile time. Nothing to do with the $PREFIX/etc/papersize file. bs> > I think WITH_A4SIZE option should be deprecated at some point and the bs> > default paper size can be selected by libpaper in run-time because it bs> > will be more consistent and flexible, bs> bs> I'd propose to leave a system wide default variable for a paper size. bs> I don't care if it is WITH_A4SIZE, DEFAULT_PAPERSIZE=A4 or else. bs> bs> > but the current code in gs bs> > prevents it because it uses defaultpapername(), not systempapername() bs> > for some reason. bs> > bs> > So, the functionality the libpaper provides in gs is only to define bs> > /DEFAULTPAPERSIZE but it is confusing due to the above reason. This bs> > was why I decided to disable libpaper at this moment. bs> bs> Yea, but those who will choose that non-default option and install bs> print/libpaper (in current state, i.e. without installing bs> /usr/local/etc/papersize file) will fall in trouble anyway. What is the non-default option and what trouble will occur by it? -- Hiroki ----Security_Multipart(Fri_Mar__2_19_38_53_2012_616)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk9Qoz0ACgkQTyzT2CeTzy2VtwCguFTdE2G/jEHOje8K2HQFp3UX Rc8AnRcdspwSLtlclL06mpgWJ0js3nMT =/Lpd -----END PGP SIGNATURE----- ----Security_Multipart(Fri_Mar__2_19_38_53_2012_616)----