Bug 187340 - databases/memcached - fails to install without DOCS
Summary: databases/memcached - fails to install without DOCS
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: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-07 08:10 UTC by Volodymyr Kostyrko
Modified: 2014-03-07 11:00 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 Volodymyr Kostyrko 2014-03-07 08:10:00 UTC
Installation fails when trying to install docs as they are not generated:

Index: Makefile
===================================================================
--- Makefile    (revision 347328)
+++ Makefile    (working copy)
@@ -65,16 +65,20 @@
 post-patch:
        @${REINPLACE_CMD} -e "s,-levent,-levent-2.0,g" ${WRKSRC}/configure

+.if ${PORT_OPTIONS:MDOCS}
 post-configure:
        @${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile
+.endif

 post-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
        ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${STAGEDIR}${MAN1PREFIX}/man/man1
        @${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
        ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
+.endif

 regression-test: test
 test: build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-07 08:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-03-07 10:56:41 UTC
Author: bapt
Date: Fri Mar  7 10:56:32 2014
New Revision: 347359
URL: http://svnweb.freebsd.org/changeset/ports/347359
QAT: https://qat.redports.org/buildarchive/r347359/

Log:
  Fix installing manpage
  Fix build with and without docs
  Fix memcached eating 100% of memory when built with both libevent2 and libevent 1.4
  installed at the same time by making sure to always find the event.h from libevent2 first
  
  PR:		ports/187337 ports/187340 ports/187309
  Reported by:	Lawrence "The Dreamer" Chen <beastie@tardisi.com>, Volodymyr Kostyrko <arcade@b1t.name>, Ross <basarevych@gmail.com>

Modified:
  head/databases/memcached/Makefile

Modified: head/databases/memcached/Makefile
==============================================================================
--- head/databases/memcached/Makefile	Fri Mar  7 10:49:36 2014	(r347358)
+++ head/databases/memcached/Makefile	Fri Mar  7 10:56:32 2014	(r347359)
@@ -3,7 +3,7 @@
 
 PORTNAME=	memcached
 PORTVERSION=	1.4.17
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
 		${MASTER_SITE_GENTOO}
@@ -41,8 +41,8 @@ PLIST_DIRS=	include/memcached
 PORTDOCS=	protocol.txt readme.txt
 
 CFLAGS+=	-fstack-protector \
-		-I${LOCALBASE}/include \
-		-I${LOCALBASE}/include/event2/compat
+		-I${LOCALBASE}/include/event2/compat \
+		-I${LOCALBASE}/include
 
 DTRACE_COFNIGURE_ENABLE=	dtrace
 
@@ -65,17 +65,14 @@ BROKEN=			DTRACE broken with gcc/clang -
 post-patch:
 	@${REINPLACE_CMD} -e "s,-levent,-levent-2.0,g" ${WRKSRC}/configure
 
-post-configure:
-	@${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile
-
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${STAGEDIR}${MAN1PREFIX}/man/man1
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
 
+
 regression-test: test
 test: build
 	${MAKE} -C ${WRKSRC} test
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2014-03-07 10:57:16 UTC
State Changed
From-To: open->closed

Fixed Thanks!