ports/51177: [PATCH] mail/p5-Mail-SpamAssassin fails to install (attempt #2)

Michael O. Boev mike at tric.tomsk.gov.ru
Sun Apr 20 08:00:29 UTC 2003


>Number:         51177
>Category:       ports
>Synopsis:       [PATCH] mail/p5-Mail-SpamAssassin fails to install
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 20 01:00:27 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mike Boev
>Release:        FreeBSD 4.8-RC i386
>Organization:
Tomsk Regional Information Center
>Environment:
System: FreeBSD isrv.tric.tomsk.gov.ru 4.8-RC FreeBSD 4.8-RC #2: Mon Mar 31
11:20:55 NOVST 2003
root at isrv.tric.tomsk.gov.ru:/usr/obj/srv/FreeBSD/src/sys/ISRV i386

in /etc/make.conf:
PORTSDIR=    /srv/FreeBSD/ports

A fresh checkout of the port,
currently Makefile at v 1.43 2003/04/07 00:12:26 dougb

>Description:
Installation of the port fails at the post-install stage,
when it tries to edit the pkg-message file (for displaying purposes).
But the pkg-message file cannot be edited because it resides in the ports
tree
but not in the WRKDIR

It installs successfully when the ports are in /usr/ports and PORTSDIR
unset, but fails otherwise.

This is the exact error message (within the whole output):

isrv# make FORCE_PKG_REGISTER=1 post-install
install -c -o root -g wheel -m 555
/srv/FreeBSD/ports/mail/p5-Mail-SpamAssassin/files/spamd.sh
/usr/local/etc/rc.d/spamd.sh-dist
/bin/mkdir -p /usr/local/share/doc/p5-Mail-SpamAssassin
install -c -o root -g wheel -m 444
/usr/obj/srv/FreeBSD/ports/mail/p5-Mail-SpamAssassin/work/Mail-SpamAssassin-
2.53/sql/README /usr/local/share/doc/p5-Mail-SpamAssassin/README.sql
cd
/usr/obj/srv/FreeBSD/ports/mail/p5-Mail-SpamAssassin/work/Mail-SpamAssassin-
2.53 ; install -c -o root -g wheel -m 444 INSTALL USAGE  BUGS COPYRIGHT
Changes README TRADEMARK procmailrc.example sample*  spamd/README*
sql/spamassassin.sql /usr/local/share/doc/p5-Mail-SpamAssassin
sed: pkg-message: No such file or directory
*** Error code 1

P.S. I'm sorry to submit this again, but the case hasn't been solved the
last time at all.

>How-To-Repeat:
cd <where the ports are, other than /usr/ports>/mail/p5-Mail-SpamAssassin
make
make install
<breaks here>

>Fix:
The suggested fix is just a resolution. Bad things are that it's not _this_
port that assumes
that ports are in /usr/ports. The problem lies much deeper, not in this
particular Makefile. Perhaps someone with a strong understanding of
<bsd.port.mk>
will find it.

We can use the (standard?) technique of referencing the pkg-* files
indirectly (through ${PKG*} macros), as is done in net/cvsupit, for example.

please, find the patch that makes this change:

--- mail/p5-Mail-SpamAssassin/Makefile.orig Sun Apr 13 13:56:35 2003
+++ mail/p5-Mail-SpamAssassin/Makefile Sun Apr 13 13:57:28 2003
@@ -71,6 +71,6 @@
      spamd/README* sql/spamassassin.sql ${DOCSDIR}
 .endif

- @${SED} -e 's#PREFIX#${PREFIX}#' pkg-message
+ @${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}

 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list