o Instead of copying the "virtual memory exhausted" warning for each

individual port, introduce a new variable for bsd.port.mk, VMEM_WARNING.
By setting this variable to `Yes', the user is given a warning about the
virtual memory requirements just before the pre-build stage.
o Also give some examples for different shells for what to do about
it, and mention login.conf(5). bash, for example, has a confusing
-v flag to ulimit.
o Document this in bsd.port.mk.5
espie@ ok
This commit is contained in:
heko 2001-11-11 13:57:32 +00:00
parent c62c5a5f8c
commit 0e36dadb66
13 changed files with 40 additions and 109 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2001/11/10 15:00:47 espie Exp $
# $OpenBSD: Makefile,v 1.12 2001/11/11 13:57:32 heko Exp $
COMMENT= "Napster client for KDE 2"
VERSION= 0.3
@ -34,13 +34,6 @@ CONFIGURE_ENV= MOC=${LOCALBASE}/bin/moc2
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/admin
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.59 2001/10/28 13:09:45 espie Exp $
# $OpenBSD: Makefile,v 1.60 2001/11/11 13:57:32 heko Exp $
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
# Uses pthreads
@ -75,14 +75,7 @@ RUN_DEPENDS= :mysql-client-3.23.*:databases/mysql
DOCS= manual.html manual.ps manual_toc.html manual.txt
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql/Flags

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2001/11/01 08:27:14 wilfried Exp $
# $OpenBSD: Makefile,v 1.4 2001/11/11 13:57:32 heko Exp $
COMMENT= "C++ reference implementation of the Atlas protocol"
@ -31,13 +31,6 @@ SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
pre-configure:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.29 2001/11/10 13:24:36 espie Exp $
# $OpenBSD: Makefile,v 1.30 2001/11/11 13:57:32 heko Exp $
COMMENT= "Data Display Debugger, graphical front-end for GDB, etc"
@ -24,14 +24,7 @@ CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
MAKE_FLAGS= MAINTAINER='${MAINTAINER:Q}'
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
DOCS= README ddd-paper.ps ddd.ps sample.c sample.dddinit

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2001/11/01 08:27:15 wilfried Exp $
# $OpenBSD: Makefile,v 1.6 2001/11/11 13:57:32 heko Exp $
COMMENT= "graphical user interface library for C++"
@ -35,13 +35,6 @@ CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
pre-configure:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.37 2001/11/10 20:45:48 brad Exp $
# $OpenBSD: Makefile,v 1.38 2001/11/11 13:57:32 heko Exp $
# $FreeBSD: Makefile,v 1.45 1999/03/09 01:08:57 nectar Exp $
COMMENT= "image manipulation library for X11"
@ -36,14 +36,7 @@ CONFIGURE_ENV= ac_cv_path_CONVERT_PROG="${LOCALBASE}/bin/convert" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/aclocal

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.490 2001/11/11 12:59:50 espie Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.491 2001/11/11 13:57:32 heko Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1708,12 +1708,26 @@ ${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}
.endif
@${_MAKE_COOKIE} $@
VMEM_WARNING?= No
# The real build
${_BUILD_COOKIE}: ${_CONFIGURE_COOKIE}
.if ${NO_BUILD:L} == "no"
@${ECHO_MSG} "===> Building for ${FULLPKGNAME}"
.if ${VMEM_WARNING:L} == "yes"
@echo ""; \
echo "*** WARNING: you may see an error such as"; \
echo "*** virtual memory exhausted"; \
echo "*** when building this package. If you do you must increase"; \
echo "*** your limits. See the man page for your shell and look"; \
echo "*** for the 'limit' or 'ulimit' command. You may also want to"; \
echo "*** see the login.conf(5) manual page."; \
echo "*** Some examples are: "; \
echo "*** csh(1): limit datasize <kbytes of memory>"; \
echo "*** ksh(1), zsh(1) and bash(1): ulimit -d <kbytes of memory>"; \
echo "";
.endif
. if target(pre-build)
@cd ${.CURDIR} && exec ${MAKE} pre-build
. endif

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2001/11/10 15:00:48 espie Exp $
# $OpenBSD: Makefile,v 1.10 2001/11/11 13:57:32 heko Exp $
COMMENT= "solving toolkit for linear equalities and inequalities"
@ -39,14 +39,7 @@ FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
CXXFLAGS+= -O0
.endif
pre-configure:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cassowary-config ${PREFIX}/bin/cassowary-config

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2001/10/15 11:36:01 espie Exp $
# $OpenBSD: Makefile,v 1.25 2001/11/11 13:57:32 heko Exp $
COMMENT= "shared drawing (whiteboard) tool using multicast"
@ -24,14 +24,7 @@ LIB_DEPENDS= tcl80::lang/tcl/8.0 \
MAKE_FILE= makefile
WRKDIST= ${WRKDIR}/wbd
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wbd ${PREFIX}/bin

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2001/05/06 04:11:41 lebel Exp $
# $OpenBSD: Makefile,v 1.12 2001/11/11 13:57:32 heko Exp $
#
COMMENT= "text search engine"
@ -22,14 +22,7 @@ CONFIGURE_STYLE= gnu dest old
pre-configure:
chmod ugo+x ${WRKSRC}/configure
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** ./main.c:3041: virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/glimpse

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2001/06/09 16:35:23 brad Exp $
# $OpenBSD: Makefile,v 1.8 2001/11/11 13:57:32 heko Exp $
COMMENT= "object-oriented SGML/XML parser toolkit and DSSSL engine"
@ -28,14 +28,7 @@ SGMLDIR= ${PREFIX}/share/sgml/openjade
SGMLFILES= fot.dtd catalog dsssl.dtd style-sheet.dtd builtins.dsl \
demo.sgm demo.dsl
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}/sp

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.59 2001/10/28 19:05:23 brad Exp $
# $OpenBSD: Makefile,v 1.60 2001/11/11 13:57:32 heko Exp $
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
COMMENT= "C++ X11 GUI toolkit"
@ -73,14 +73,7 @@ post-configure:
@cd ${WRKSRC} && cp -R examples examples-src
@cd ${WRKSRC} && cp -R tutorial tutorial-src
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
VMEM_WARNING= Yes
post-build:
@cd ${IMAGEIODIR} && \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.32 2001/10/28 12:30:14 espie Exp $
# $OpenBSD: Makefile,v 1.33 2001/11/11 13:57:32 heko Exp $
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
COMMENT= C++ X11 GUI toolkit
COMMENT-examples= examples and tutorial for qt2
@ -72,6 +72,8 @@ SUBST_VARS= VERSION QT_LIBDIR QT_DOC
DOCS= ANNOUNCE FAQ LICENSE.GPL README README.QT \
changes-2*
VMEM_WARNING= Yes
post-patch:
@cd ${WRKSRC}/configs; for i in openbsd-*; do \
mv -f $$i $$i.bak && \
@ -85,14 +87,6 @@ post-configure:
@cd ${WRKSRC} && cp -R tutorial tutorial-src
@find ${WRKSRC}/tutorial-src -name '*.orig' |xargs rm
pre-build:
@echo ""
@echo "*** WARNING: you may see an error such as"
@echo "*** virtual memory exhausted"
@echo "*** when building this package. If you do you must increase"
@echo "*** your limits. See the man page for your shell and look"
@echo "*** for the 'limit' or 'ulimit' command."
@echo ""
do-install:
${INSTALL_DATA_DIR} ${QT_INCDIR}