Re: cvs commit: ports/print/ghostscript9 Makefile

看板FB_cvs作者時間14年前 (2012/03/01 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/12 (看更多)
----Security_Multipart(Thu_Mar__1_06_37_15_2012_898)-- Content-Type: Text/Plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Boris Samorodov <bsam@passap.ru> 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)----
文章代碼(AID): #1FJg0VeH (FB_cvs)
討論串 (同標題文章)
文章代碼(AID): #1FJg0VeH (FB_cvs)