pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/37796: pkgsrc cannot be bootstrapped on Linux



The following reply was made to PR pkg/37796; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov%tut.by@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: joerg%NetBSD.org@localhost,  gnats-admin%netbsd.org@localhost,  
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/37796: pkgsrc cannot be bootstrapped on Linux
Date: Tue, 22 Jan 2008 18:31:52 +0200

  >>  Build logs:
  >>  
  >>  http://mova.org/~cheusov/pub/pkgsrc-bootstrap-failure.log
  >>  http://mova.org/~cheusov/pub/pkgsrc-bootstrap-failure.log2
 >  
 >  This looks excatly like it is catching some left-over files.
 
 Ah. I've found it. pkgdb was not empty.
 
 This happens because of stupid bootstrap defaults. That is because
 'pkgdbdir' and 'varbase' are not relative to 'prefix' while 'mandir'
 and 'sysconfdir' are such.
 
 To fix this the following code 
 
         [ -z "$prefix" ] && prefix=/usr/pkg
         [ -z "$pkgdbdir" ] && pkgdbdir=/var/db/pkg
         [ -z "$varbase" ] && varbase=/var
 
 should be changed to 
 
         [ -z "$prefix" ] && {
            prefix=/usr/pkg
            [ -z "$pkgdbdir" ] && pkgdbdir=/var/db/pkg
            [ -z "$varbase" ] && varbase=/var
         }
 
         [ -z "$pkgdbdir" ] && pkgdbdir=$prefix/var/db/pkg
         [ -z "$varbase" ] && varbase=$prefix/var
 
 This patch keeps bootstrap mostly backward compatible.
 
 -- 
 Best regards, Aleksey Cheusov.
 



Home | Main Index | Thread Index | Old Index