Bug 154090 - /usr/ports/mail/enma got SIGSEGV.
Summary: /usr/ports/mail/enma got SIGSEGV.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 16:00 UTC by HAMADA Takeshi
Modified: 2011-02-13 16:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HAMADA Takeshi 2011-01-17 16:00:22 UTC
/usr/ports/mail/enma depends on /usr/ports/dns/libbind. (libbind-6.0)
but enma requires libbind9.a I think.

Fix: 

I installed /usr/ports/dns/bind97 and make symlink named '/usr/local/lib/libbind.a' to '/usr/local/lib/libbind9.a' using following commands.

  # cd /usr/ports/dns/bind97
  # make install

  # cd /usr/ports/mail/enma
  # make patch
  # vi work/enma-1.1.0/enma/src/Makefile.in
      (replace -lbind to -lbind9)
  # make install
:
  # service milter-enma start
How-To-Repeat: Sending E-Mail from cellular phone. (takhamm@ezweb.ne.jp)
ezweb.ne.jp is a japanese carrier `au'.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-17 16:00:29 UTC
Maintainer of mail/enma,

Please note that PR ports/154090 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154090

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-17 16:00:33 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Hirohisa Yamaguchi 2011-01-25 15:04:37 UTC
Hi,

At Mon, 17 Jan 2011 16:00:29 UT,
Edwin Groothuis wrote:
> Maintainer of mail/enma,
> 
> Please note that PR ports/154090 has just been submitted.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154090

I see the problem.
Attaching a patch to build with dns/bind97.


-- 

	Hirohisa Yamaguchi
	  umq@ueo.co.jp

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/enma/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	1 Nov 2010 23:15:59 -0000	1.7
+++ Makefile	25 Jan 2011 14:51:20 -0000
@@ -7,13 +7,14 @@
 
 PORTNAME=	enma
 PORTVERSION=	1.1.0
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	SF/${PORTNAME}/ENMA/${PORTVERSION}
 
 MAINTAINER=	umq@ueo.co.jp
 COMMENT=	A sender authentication milter supporting SPF and Sender ID
 
-BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/dns/libbind:checksum
+BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/dns/bind97:checksum
 
 .if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
 CONF_SUB=	${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample
@@ -24,7 +25,7 @@
 .endif
 .endif
 
-BIND_PATH_CMD=	cd ${PORTSDIR}/dns/libbind && ${MAKE} -V WRKSRC
+BIND_PATH_CMD=	cd ${PORTSDIR}/dns/bind97 && ${MAKE} -V WRKSRC
 BIND_SRC_DIR=	${BASENAME} $$(${BIND_PATH_CMD})
 
 HAS_CONFIGURE=	yes
@@ -51,10 +52,16 @@
 .include "${PORTSDIR}/Mk/bsd.openssl.mk"
 
 pre-configure:
-	cd ${PORTSDIR}/dns/libbind && ${MAKE} -DBATCH patch && \
+	cd ${PORTSDIR}/dns/bind97 && ${MAKE} -DBATCH patch && \
 	${LN} -s $$(${BIND_PATH_CMD}) ${WRKSRC}/build && \
 	cd ${WRKSRC}/build/$$(${BIND_SRC_DIR}) && \
-	./configure --prefix=${WRKSRC}/build/tmp_build --enable-threads && ${MAKE} && ${MAKE} install
+	./configure --prefix=${WRKSRC}/build/tmp_build --enable-threads && \
+	cd ${WRKSRC}/build/$$(${BIND_SRC_DIR})/lib/dns && \
+	${MAKE} include/dns/enumtype.h include/dns/enumclass.h && \
+	cd ${WRKSRC}/build/$$(${BIND_SRC_DIR})/lib/bind9 && \
+	${MAKE} && ${MAKE} install
+	${REINPLACE_CMD} -e 's/-lbind/-lbind9/' ${WRKSRC}/configure \
+	${WRKSRC}/enma/bin/Makefile.in ${WRKSRC}/enma/src/Makefile.in
 	$$(${CONF_SUB})
 
 post-install:
cvs diff: Diffing files
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2011-01-26 11:15:15 UTC
State Changed
From-To: feedback->open

Maintainer has responded with patch.
Comment 5 dfilter service freebsd_committer freebsd_triage 2011-02-13 16:09:44 UTC
arved       2011-02-13 16:09:40 UTC

  FreeBSD ports repository

  Modified files:
    mail/enma            Makefile 
  Log:
  Build with bind97 instead of libbind.
  
  PR:             154090
  Submitted by:   Hirohisa Yamaguchi <umq@ueo.co.jp>
  Reported by:    HAMADA Takeshi <hamm@crimson-jp.org>
  
  Revision  Changes    Path
  1.8       +11 -4     ports/mail/enma/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-13 16:09:52 UTC
State Changed
From-To: open->closed

Thanks for reporting, i committed the maintainers patch