Subject: Re: mtree on FreeBSD
To: None <tech-pkg@NetBSD.org, peter.schuller@infidyne.com>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 08/16/2006 15:31:41
> Delivered-To: dauphin@enst.fr
> X-Virus-Scanned: amavisd-new at enst.fr
> X-Original-To: tech-pkg@netbsd.org
> Delivered-To: tech-pkg@netbsd.org
> From: Peter Schuller <peter.schuller@infidyne.com>
> To: tech-pkg@NetBSD.org
> Subject: mtree on FreeBSD
> User-Agent: KMail/1.9.3
> Content-Disposition: inline
> 
> On FreeBSD, the bootstrap chooses to use the pkgsrc mtree explicitly:
> 
> FreeBSD)
>         root_group=wheel
>         need_pax=yes
>         need_mtree=yes
>         need_bsd_install=no
>         need_awk=no
>         need_sed=no
>         set_opsys=no
>         machine_arch=`uname -p`
>         ;;
> 
> It was also installed flagged as 'not for deletion'. When running a bulk 
> build, I saw the pre-build phase try to delete it but get the warning about 
> not for deletion.
> 
> Some time into the bulk build, mtree is gone. Whether it was because it was 
> removed during pre-build or something else I have not yet found out.

For Solaris I found :
When it make sysutils/mtree the bulk packaged it and don't mark it for 
no-deletion,
when the bulk make the next package it cleans 'mtree'. look at your log and
let me know. I have the same problem whith nawk on my solaris.

The problem is in pre-build look at this fragment:

if [ x"$BMAKE" = x"bmake" ]; then
        for pkg in archivers/pax devel/bmake devel/mk-files net/tnftp \
            textproc/nbsed lang/nawk; do
                mkdir -p "${BULKFILESDIR}/${pkg}"
                echo "Don't blow away bootstrap-pkgsrc stuff!" \
                > "${BULKFILESDIR}/${pkg}/${BROKENF}"
        done
fi

I add lang/nawk and I forgot :(((( sysutils/mtree ...


-------------------here a part of my log-------------------

redhot.enst.fr 2006/08/12 02:51:09  4806/7989=60.2% sysutils/mtree @ x86_64> 
===> Building binary package for mtree-20040722
redhot.enst.fr 2006/08/12 02:51:09  4806/7989=60.2% sysutils/mtree @ x86_64> 
Creating package /pkg/packages/All/mtree-20040722.tgz
redhot.enst.fr 2006/08/12 02:51:09  4806/7989=60.2% sysutils/mtree @ x86_64> 
Using SrcDir value of /usr/pkg
redhot.enst.fr 2006/08/12 02:51:09  4806/7989=60.2% sysutils/mtree @ x86_64> 
===> Cleaning for mtree-20040722
BULK> Package mtscan-20050129 not built yet, packaging...
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
###
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
### Sat Aug 12 02:51:34 CEST 2006:
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
### /usr/pkg/bin/bmake bulk-package for mtscan-20050129
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
### Current pkg count:  12 installed packages: digest-20060302 gawk-3.1.5nb
1 gettext-lib-0.14.6 gmake-3.81 libnbcompat-20041024 libtool-base-1.5.22nb3 
mtree-20040722 nawk-20050424 pkg_install-info-4.5nb3 pkgmanpages-20050911 x11
-links-0.30 xpkgwedge-1.16
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
###
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Full rebuild in progress...
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
===> Cleaning for mtscan-20050129
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Removing installed packages which are not needed to build mtscan-2005
0129
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: libtool-base-1.5.22nb3 (devel/libtool-base)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: pkg_install-info-4.5nb3 (pkgtools/pkg_install-in
fo)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: digest-20060302 (pkgtools/digest)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: gettext-lib-0.14.6 (devel/gettext-lib)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
/usr/bin/env /usr/pkg/sbin/pkg_delete -K /var/db/pkg -r pkgmanpages-2005091
1
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
Package `pkgmanpages-20050911' is marked as not for deletion
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
Package `pkgmanpages-20050911' is marked as not for deletion
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: gmake-3.81 (devel/gmake)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: gawk-3.1.5nb1 (lang/gawk)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: x11-links-0.30 (pkgtools/x11-links)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: xpkgwedge-1.16 (pkgtools/xpkgwedge)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Keeping BULK_PREREQ: nawk-20050424 (lang/nawk)
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
/usr/bin/env /usr/pkg/sbin/pkg_delete -K /var/db/pkg -r libnbcompat-2004102
4
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
Executing `/usr/bin/rmdir -p /usr/pkg/include 2>/dev/null || /usr/bin/true'
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
Executing `/usr/bin/rmdir -p /usr/pkg/lib 2>/dev/null || /usr/bin/true'
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
/usr/bin/env /usr/pkg/sbin/pkg_delete -K /var/db/pkg -r mtree-20040722
redhot.enst.fr 2006/08/12 02:51:34  4807/7989=60.2% sysutils/mtscan @ x86_64> 
BULK> Installing packages which are required to build mtscan-20050129.


------------------------------------------------------------


> 
> Someone told me it was a bug that the pkgsrc mtree was being used on FreeBSD 
> to begin with, yet from the looks of the bootstrap it's hardly an accident.
> 
> So before I start figuring this out; is it a bug that mtree is being used to 
> begin with, or is it a bug that it is getting removed during the build? If it 
> really should use pkgsrc - is it because the native FreeBSD version is 
> incompatible in some way?
> 
> Are you supposed to add mtree and other such tools to the PREREQ:s? (pax and 
> tar seem to survive eithout it)
> 
> -- 
> / Peter Schuller, InfiDyne Technologies HB
> 
> PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
> Key retrieval: Send an E-Mail to getpgpkey@scode.org
> E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org