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



 >>  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