Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Aug 2002 14:06:51 -0700
From:      Bertrand Habib <bib@infomaniak.ch>
To:        questions@freebsd.org
Subject:   portupgrade -Np seems to be broken on my system
Message-ID:  <3D4AF46B.7030009@infomaniak.ch>

next in thread | raw e-mail | index | archive | help
Dear all,
Again a newbe question...
after having encountred strange portupgrade behaviours (bin packages
going installed in the choosen port him self insteed of target directory
choosen for all bin packages, I decided to remove all installed ports,
killing /var/db/pkg/pkgdb.db as well as /usr/sup/ports and restoring
/usr/ports directory from the 4.6 release install CD. Then i reinstalled
cvsup (bin) and ran it twice in order to resync ports tree. I then
rebuilded portupgrade from port, tuned pkgtools.conf and recreated
portupgrade databases. Unfortunatly all this didn't solved my problem:

When I try 'portupgrade -Np sysutils/detach' the final bin package still
lands in /usr/ports/sysutils/detach as detach-1.3.tgz insteed of the
location stated in pkgtool.conf. Notice also that the 'PACKAGES' line in
/etc/make.conf has been removed before this stage.

Process:
1. pkg_delete -a
     This removed all subdirs in /var/db/pkg except pkgdb.db

2. rm /var/db/pkg/pkgdb.db
     rm -fR /usr/ports/*
     rm -fR /usr/sup/ports

4. /stand/sysinstall --> config --> distrib --> custom --> [X] ports
     taken from CD media

5. /stand/sysinstall --> config --> packages --> [X] net/cvsup

6. doing a 1st cvsup in order to resync ports at june 5, 2002,
     i.e: with following relevant lines in cvsupfile:
         ...
         *default tag=.
         ports-all date=2002.06.05.23.44.00

7. doing a 2nd cvsup in order to resync at now (removing date=... from
     the previous cvsupfile.

8. Made and installed portupgrade from port, ie:
     8.1 relevant /etc/make.conf:
         PACKAGES=/home/packages
         DISTFILES=/u1/distfiles
         WRKDIRPREFIX=/u2/work
     8.2 builds commands	
         cd /usr/ports/sysutils/portupgrade
         make
         make install
         make package

     This installed portupgrade-20020706 and ruby-1.6.7-20020715

9. Configured portupgrade (please, see bellow for my
     /usr/local/etc/pkgtools.conf), then created portupgrade databases
     with:
         portsdb -Uu
         pkgdb -u

10. Trying portupgrade on sysutils/detach, ie:
      10.1 first, I removed 'PACKAGES=...' from /etc/make.conf
      10.2 ran 'portupgrade -Np sysutils/detach'

      Port get installed normaly but package lands in
      /usr/ports/sysutils/detach as detach-1.3.tgz insteed of
      /u2/freebsd-i386/packages/4.6/All or eventually
      /u2/freebsd-i386/packages/4.6.1/All

(11.I then pkg_deinstalled 'detach', created both missing target package
      directories (one for 4.6 and one for 4.6.1) and retryed
      'portupgrade -Np sysutils/detach' without being more successfull
      (i.e: same behaviour)
)
Would someone be nice enough in helping me to understand what wrong is
going on and how i may fix this ?

Many thanks in advance for your hand
Kindest regards
Bertrand

-------------------------------------------------------------------------
Here is my pkgtools.conf, located in /usr/local/etc:

       module PkgConfig
        ENV['PORTSDIR'] ||= '/usr/ports'
        ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX.portupgrade'

        # Next should create /u2/freebsd-i386/packages/4.6.1 if it doesn't
        # exist and 'PACKAGES' isn't set, right ?
        ENV['PACKAGES'] ||= sprintf('/u2/freebsd-i386/packages/%s',
                            OS_REVISION)
        ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All'
        SANITY_CHECK = true
        IGNORE_CATEGORIES = [
         'chinese',
         'hebrew',
         'german',
         'japanese',
         'korean',
         'russian',
         'ukrainian',
         'vietnamese',
        ]
        EXTRA_CATEGORIES = [
        ]
        HOLD_PKGS = [
          'bsdpan-*',
        ]
        MAKE_ARGS = {
          'x11/kdebase3' => 'WITH_MOTIF=yes',
        }
        BEFOREBUILD = {
        }
        AFTERINSTALL = {
        }
        PKG_SITES = [
	 # Here is a copy of freebsd CD packages
          'file:///u5/FreeBSD/dist/packages/',
          pkg_site_mirror(),
        ]
        PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] || \
          '-v -l /var/tmp/portupgrade.results ' + \
          '-L /var/tmp/portupgrade-'
      end
-------------------------------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4AF46B.7030009>