You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/02/18 22:42:50 UTC

[Bug 5338] New: spamc manpage not generated correctly on OpenBSD platform

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338

           Summary: spamc manpage not generated correctly on OpenBSD
                    platform
           Product: Spamassassin
           Version: 3.1.8
          Platform: Other
        OS/Version: OpenBSD
            Status: NEW
          Severity: minor
          Priority: P5
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: benny@bennyvision.com


For many, many releases, the spamc manpage has not been generated correctly on
OpenBSD.  When the /etc/weekly script runs, part of the process involves running
'makewhatis' which barfs as follows:

Couldn't find subject in old manpage /usr/local/man/man1/spamc.1
Unknown manpage type /usr/local/man/man1/spamc.1

The fix is very simple - I just need to cd back into the spamc/ subdirectory,
and issue the following:  'pod2man spamc.pod > /usr/local/man/man1/spamc.1'

Once that is done, the manpage is generated correctly and the /etc/weekly script
doesn't complain again.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Undefined                   |3.2.0




------- Additional Comments From felicity@apache.org  2007-02-18 13:45 -------
we should backport to 3.1.x as well.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From jm@jmason.org  2007-03-15 06:44 -------
when you run "make install", does 'blib/man1/spamc.1p' get generated?

If it does, does it look valid when you run "nroff -man 'blib/man1/spamc.1p'"?

This file should be generated during hte "make install" process; if it's not
being generated, I think it's more likely an ExtUtils::MakeMaker bug on OpenBSD
for some reason.

possibly, pod2man behaves differently if you run it from the "spamc" dir instead
of the top level, or maybe the command it's running on OpenBSD generates bad
output.  for what it's worth, here's what it runs on linux:


/usr/bin/perl "-MExtUtils::Command::MM" -e pod2man "--" --section=1p --perm_rw=644\
          sa-compile blib/man1/sa-compile.1p \
          lib/spamassassin-run.pod blib/man1/spamassassin-run.1p \
          sa-learn blib/man1/sa-learn.1p \
          spamassassin blib/man1/spamassassin.1p \
          spamd/spamd blib/man1/spamd.1p \
          spamc/spamc.pod blib/man1/spamc.1p \
          sa-update blib/man1/sa-update.1p

an abbreviated form that produces the same output (except for the timestamp) is:

perl "-MExtUtils::Command::MM" -e pod2man "--" --section=1p --perm_rw=644
spamc/spamc.pod o

I'd be curious to hear if that command's output differs from what is normally
installed as /usr/local/man/man1/spamc.1, too.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From jm@jmason.org  2007-03-15 07:06 -------
(btw this is the last bug in the list to fix for 3.2.0 before release, so a
speedy answer would be appreciated ;)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jm@jmason.org  2007-03-16 07:09 -------
thanks for the shell account -- it let me find and fix the problem pretty quickly.

it seems the problem is that 'installman1dir' was not set in the perl-wide
%Config, although 'installsiteman1dir' was (which is the one used for
site-specific man pages? not sure).  this was inhibiting install of the man1
pages, incorrectly.  now fixed:

: jm 1358...; svn commit -m "bug 5338: check Config{installsiteman1dir} and
Config{installvendorman1dir} as well as Config{installman1dir}, otherwise we can
wind up not installing many of the important man pages when we should do so"
Makefile.PL
Sending        Makefile.PL
Transmitting file data .
Committed revision 518982.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From jm@jmason.org  2007-03-15 11:43 -------
hmm, I'm stumped.  A login would really help, I think... my GPG key is on the
key servers or at http://jmason.org/gpgkey.txt if you'd prefer to encrypt the
details. ;)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From benny@bennyvision.com  2007-03-15 11:25 -------
Created an attachment (id=3882)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3882&action=view)
Log from 'make clean', 'perl Makefile.PL', 'make', and 'make install'


If this attachment thing doesn't work, let me know, I can send it to you
directly.  It's about 40K or so?




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From benny@bennyvision.com  2007-02-18 13:43 -------

Whoops, I forgot a detail...  This is for a source build, _not_ the OpenBSD port
or anything like that.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From benny@bennyvision.com  2007-03-15 11:27 -------
[root@electron ~]# perl -MExtUtils::MakeMaker -e 'print
$ExtUtils::MakeMaker::VERSION'
6.30

Sorry.  :(

Justin - I can provide you a non-root shell on one of my OpenBSD machines, if
that would help you track this down.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From jm@jmason.org  2007-03-15 08:58 -------
thanks for the speedy response ;)  Could you:

(a) post a cut and paste log from 

make clean ; perl Makefile.PL; make; make install

(b) also post the output of

perl -MExtUtils::MakeMaker -e 'print $ExtUtils::MakeMaker::VERSION'

(c) if that version is < 6.17, could you try upgrading that?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5338] spamc manpage not generated correctly on OpenBSD platform

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5338





------- Additional Comments From benny@bennyvision.com  2007-03-15 08:31 -------

Hmmm, yeah, no pressure there.  ;)

In answer to your question, no, blib/man1/spamc.1p does not get generated by
'make install':

[root@electron ~/SpamAssassin/Mail-SpamAssassin-3.1.8]# ls -l blib/man1/
total 98
-rw-r--r--    1 root     wheel       37001 Mar 15 09:32 sa-learn.1
-rw-r--r--    1 root     wheel       12023 Mar 15 09:32 sa-update.1
-rw-r--r--    1 root     wheel       14776 Mar 15 09:32 spamassassin.1
-rw-r--r--    1 root     wheel        3760 Mar 15 09:32 spamc.1
-rw-r--r--    1 root     wheel       28390 Mar 15 09:32 spamd.1

The only thing 'make install' had to say about spamc.1 is:

Installing /usr/local/man/man1/spamc.1

The spamc.1 manpage IS installed:

[root@electron ~/SpamAssassin/Mail-SpamAssassin-3.1.8]# ls -al
/usr/local/man/man1/spamc.1
-r--r--r--    1 root     wheel        3760 Mar 15 09:32 /usr/local/man/man1/spamc.1

But is not valid:

[root@electron ~/SpamAssassin/Mail-SpamAssassin-3.1.8]# man spamc
man: Formatting manual page...
[root@electron ~/SpamAssassin/Mail-SpamAssassin-3.1.8]#

'man' exits with exit code 0, but does not display the man page.  :(

What else can I do to help?




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.