Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Mar 2012 06:37:15 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        bsam@passap.ru
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/print/ghostscript9 Makefile
Message-ID:  <20120301.063715.1637304310088980264.hrs@allbsd.org>
In-Reply-To: <4F4E63A3.7060000@passap.ru>
References:  <201202291209.q1TC93Fc006227@repoman.freebsd.org> <4F4E63A3.7060000@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
----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)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120301.063715.1637304310088980264.hrs>