tech-pkg archive

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

changing the default pkgdbdir used in bootstrap script

On the other BSDs in the family where pkgsrc is not the primary /
native packaging system there is a conflict over the usage of the pkg
Rather than trying to deal with these platforms on a case by case
basis to override this setting & use an alternative directory, any
objection to using a different name by default??

Using pkg directory on affected platform can cause conflicts with
native packaging system & worse, loss of information related to
installed packages via native packaging system when performing bulk
builds (as pkgdbdir is removed & recreated with each package build

The change would only affect new bootstraps & not existing installations.

Index: bootstrap/bootstrap
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.233
diff -u -p -r1.233 bootstrap
--- bootstrap/bootstrap 1 Nov 2016 20:44:22 -0000 1.233
+++ bootstrap/bootstrap 13 Nov 2016 20:42:49 -0000
@@ -487,7 +487,7 @@ elif [ -z "$prefix" -o "$prefix" = "/usr

 [ -z "$varbase" ] && varbase=${prefix}/var
-[ -z "$pkgdbdir" ] && pkgdbdir=${varbase}/db/pkg
+[ -z "$pkgdbdir" ] && pkgdbdir=${varbase}/db/pkgsrc

 if [ "$prefix" = "/usr" ]; then
  [ -z "$pkginfodir" ] && pkginfodir=share/info


Home | Main Index | Thread Index | Old Index