groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] OpenBSD fix


From: Ingo Schwarze
Subject: Re: [Groff] OpenBSD fix
Date: Wed, 28 Dec 2011 20:38:06 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Volker,

Volker Wolfram wrote on Wed, Dec 28, 2011 at 05:42:54PM +0100:

> kern.version=OpenBSD 5.0 (GENERIC.MP) #59: Wed Aug 17 10:19:44 MDT 2011
>     address@hidden:/usr/src/sys/arch/i386/compile/GENERIC.MP

> Information for inst:groff-1.21p4

 ... and you are complaining that .ad is not working, right?

Ouch.  Yes, i fear that *is* my fault.
Werner Lemberg told me right away this would happen,
but i failed to fix it in time for the 5.0 release.
It is fixed by now in -current, i committed the fix on Dec. 4, 2011.

Sorry to the other posters who spent time trying to reproduce.

Volker, in this particular case, i think the easiest way for
you is to upgrade your groff package to groff-1.21p6,
compiling the port yourself.

Here is how to do that:

 1) Locate the file ports.tar.gz on your 5.0 release CD set
    or on your nearest OpenBSD mirror.
    Unpack it to /usr/ports, as a normal user, not root,
    preferably being a member of the "wsrc" group.
    See http://www.openbsd.org/faq/faq15.html#PortsFetch for details.
    See http://www.openbsd.org/ftp.html for a list of mirrors.

 2) Set up CVSROOT to point to the nearest OpenBSD mirror,
    see http://www.openbsd.org/anoncvs.html#CVSROOT for a list.
    Change directory to /usr/ports/textproc/groff.
    Update just that single directory to -current:
      $ cvs up -dPA
    NOTE: In general, -current ports will NOT work on
    OpenBSD-release.  In this particular case, it will.

 3) Check that you really have the -current code now:
     - Makefile must contain "REVISION = 6"
     - patches/patch-tmac_troffrc must contain a comment
       saying "Disable adjustment by default"

 4) Building ports is simpler when you set up sudo(8).
    That involves setting up sudoers(5) using visudo(8)
    and creating a file /etc/mk.conf containing the line
      SUDO=/usr/bin/sudo
    See mk.conf(5) for more information.
    This is not strictly required, but if you don't do it,
    you have to pay attention which build steps require
    root privileges (e.g. fake, install) and which don't.

 5) Build and install the package by just saying:
      $ make install
    (or without sudo, first running "make" as a normal user,
     then "make install" as root should work).

At this point, "pkg_info groff" should talk about groff-1.21p6.
Regarding adjustment,
read the file /usr/local/share/doc/pkg-readmes/groff-1.21p6
and follow the instructions provided there.

Sorry for the inconvenience,
  Ingo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]