Subject: pkg/36564: bmake all install package clean in pkgsrc/www/apache22 eats all available disk space
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stefan.sonnenberg-carstens@nrwbank.de>
List: pkgsrc-bugs
Date: 06/27/2007 08:30:01
>Number:         36564
>Category:       pkg
>Synopsis:       bmake all install package clean in pkgsrc/www/apache22 eats all available disk space
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 08:30:00 +0000 2007
>Originator:     Stefan Sonnenberg-Carstens
>Release:        NONE
>Organization:
NRW.BANK
>Environment:
SunOS rwtest21 5.9 Generic_118558-20 sun4u sparc SUNW,Sun-Blade-2500
>Description:
As stated above.
The last thing I see is this:

Construct makefiles and header files...

creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/database/Makefile
creating modules/debug/Makefile
creating modules/echo/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating server/mpm/Makefile
creating server/mpm/prefork/Makefile
creating modules/http/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating srclib/pcre/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf

Then the mashine gets busy, really busy.

These processes are the cause:
bash-2.05# ptree 5814
361   /usr/lib/ssh/sshd
  5812  /usr/lib/ssh/sshd
    5814  -bash
      14268 bmake all install package clean
        14731 /bin/sh -c cd /usr/pkgsrc/www/apache22        && /usr/bin/env  PATH=/usr/pkgsrc
          14732 /usr/pkg/bin//bmake _MAKE=/usr/pkg/bin//bmake OPSYS=SunOS OS_VERSION=5.9 LOWER_
            18280 /bin/sh -c cd /usr/pkgsrc/www/apache22/work/httpd-2.2.4 && cd /usr/pkgsrc/www/a
              18281 /bin/ksh ./configure --enable-layout=NetBSD --with-port=80 --enable-so --with-a
                23326 /bin/ksh ./config.status
                  23808 /bin/ksh ./config.status
                    23811 sed -f ./confstat23326-3432/subs-3.sed
                    23812 sed -f ./confstat23326-3432/subs-4.sed
                    23813 sed -f ./confstat23326-3432/subs-5.sed
                    23814 sed -f ./confstat23326-3432/subs-6.sed


>How-To-Repeat:
Use pkgsrc 2007Q1

cd into /usr/pkgsrc/www/apache22/
and do

bmake all install package clean


>Fix: