Subject: Re: Does the batch build of pkgsrc work?
To: Alistair Crooks <agc@pkgsrc.org>
From: Tero Kivinen <kivinen@ssh.fi>
List: current-users
Date: 04/06/2001 13:40:39
Alistair Crooks writes:
> On Thu, Apr 05, 2001 at 11:25:29AM +0300, Tero Kivinen wrote:
> > > > Then some building at least www/wwwcount seems to hung for waiting the
> > > > "yes" to finish (i.e the yes consumes 98% of cpu time, and nothing
> > > > happens, when I kill the yes then the installation continues).
> > 
> > This problem seems to be there still...
> I can't reproduce this here (in a normal environment, not a batch build
> one). Can you send-pr this, please?

It is in the batch build, while saying

sh mk/bulk/build 2>&1 | tee miten.meni

----------------------------------------------------------------------
i386> ===> www/wwwcount
i386> 
i386> 
i386> ###
i386> ### make bulk-package for wwwcount-2.5
i386> ### Current pkg count:  2 installed packages: digest-20010320 xpkgwedge-1.
1
i386> ###
i386> BULK> Full rebuild  in progress...
i386> BULK> Cleaning package and its depends
i386> ===> Cleaning for wwwcount-2.5
i386> BULK> Removing installed packages which are not needed to build wwwcount-2
.5
i386> BULK> Keeping BULK_PREREQ: digest-20010320 (pkgtools/digest)
i386> BULK> Keeping BULK_PREREQ: xpkgwedge-1.1 (pkgtools/xpkgwedge)
i386> BULK> Installing packages which are required to build wwwcount-2.5.
i386> BULK> Required package xpkgwedge-1.1 (pkgtools/xpkgwedge) is already insta
lled
i386> BULK> Required package digest-20010320 (pkgtools/digest) is already instal
led
i386> make package (wwwcount-2.5)
i386> => Checksum OK for wwwcount2.5.tar.gz.
i386> ===> Extracting for wwwcount-2.5
i386> work.i386 -> /d2/tmp/pkgsrc/www/wwwcount/work.i386
i386> ===> Patching for wwwcount-2.5
i386> ===> Applying NetBSD patches for wwwcount-2.5
i386> ===> Configuring for wwwcount-2.5
i386> cd /d2/tmp/pkgsrc/www/wwwcount/work.i386/wwwcount2.5; yes "" | PREFIX=/usr
/pkg ./Count-config
i386>     Welcome to the configuration procedure of Count 2.5
i386>     ---------------------------------------------------
i386> 
i386>     o You must know where your system keeps CGI programs (cgi-bin director
y)
i386>       It is necessary to generate the install program.
i386>       This directory must exist. If this directory does not exist, the
i386>       configuration procedure will Abort!
i386> 
i386>     o You have to decide a directory, where you will keep all counter rela
ted
i386>       stuff. This directory will have other directories inside. Default
i386>       values will be supplied, press Return key to accept the default valu
e.
i386>       
i386>       Try to Accept the default value, it will make your life much easier,
 
i386>       because not much error checking is done to verify input.
i386> 
i386>     During installation, the directories will be created for you
i386>     if they do not exist and if you have the permission to do so.
i386>     ++
i386> Continue [y|n]? 
i386>     You need to enter the full path of the directory where you system
i386>     keeps the CGI programs. 
i386> 
i386> *cgi-bin directory [/usr/pkg/libexec/cgi-bin]: 
i386>     WARNING:
i386>     Directory "/usr/pkg/libexec/cgi-bin" does not exist! If you do not kno
w where your
i386>     system keeps CGI programs, find it out first. If you did not configure
i386>     your http server yet, please do so and come back!
i386> 
i386>     Presss Control-C to exit, any key to continue
i386> 
i386> 
i386>     You need to enter the base directory of the counter related stuff.
i386>     It must be a absolute path.
i386> 
i386> *Base directory [/usr/pkg/etc]: 
i386>     You need to enter the name directory of the configuration file.
i386> 
i386> * Config directory [/usr/pkg/etc]: 
i386>     You need to enter the name of the configuration file. Note, it
i386>     is not the path of the file, just the name. No / is allowed in the
i386>     name.
i386>     This file contains the information about
i386> 
i386>         o if you want to ignore access from certain hosts
i386>         o host access authentication
i386> 
i386>     You will create this file later by running the program "Gen_conf".
i386> 
i386> * Name of the configuration file [wwwcount.conf]:               
i386>     You need to enter the directory of the counter data file.
i386>     
i386> *Data directory [/var/db/wwwcount]: 
i386>     You need to enter the directory of digits
i386> 
i386> *Digits directory [/usr/pkg/libdata/wwwcount/digits]: 
i386>     You need to enter the directory of the Log file.
i386> 
i386> *Log directory [/var/log]: 
i386>     You need to enter the name of the Log file. Note, it just a name, not
i386>     the path. No / is allowed in the name.
i386>     This file hold the error messages of the counter. It also
i386>     logs if someone tried to access your counter remotely.
i386> 
i386> * Name of the log file [wwwcount]: 
i386> Your configuration:
i386> ----------------------------------------------------------------
i386> CgiBinDir=/usr/pkg/libexec/cgi-bin
i386> BaseDir= /usr/pkg/etc
i386> DigitDir=/usr/pkg/libdata/wwwcount/digits
i386> ConfDir= /usr/pkg/etc
i386> ConfFile=wwwcount.conf
i386> DataDir=/var/db/wwwcount
i386> LogDir=/var/log
i386> LogFile=wwwcount
i386> ----------------------------------------------------------------
i386> Everything looks OK [y|n]? Great! creating header file src/config.h
i386> creating variables template file ./Config.tmpl for the install program..
----------------------------------------------------------------------

Here it hung while waiting for the yes to finish before continuing
(and yes of course doesn't finish :-). I logged in and killed the yes
and then it continued:
----------------------------------------------------------------------
i386> Terminated
i386> creating cache ./config.cache
i386> checking whether make sets ${MAKE}... yes
i386> checking for gcc... cc
i386> checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
i386> checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
i386> checking whether we are using GNU C... yes
i386> checking whether cc accepts -g... yes
i386> checking for ranlib... ranlib
i386> checking host system type... i386--netbsd
...
----------------------------------------------------------------------

It stops again later in the installation process for the same reason.

I am just about to leave for a vacation, so I will send pr if the
problem still exists when I came back from Lappaland after easter...
-- 
kivinen@ssh.fi                               Work : +358 303 9870
SSH Communications Security                  http://www.ssh.fi/
SSH IPSEC Toolkit                            http://www.ssh.fi/ipsec/