pkgsrc-Users archive

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

Re: Starting with pkgsrc on pristine system: update



from Thomas Klausner:

> > On 04.06.2021, at 07:17, Thomas Mueller <mueller6725%twc.com@localhost> wrote:
       
> > How does one get started with pkgsrc following a fresh install or update of NetBSD, in this case 9.99.82 both amd64 and i386?
       
> > How do I avoid the circular dependency of cwrappers, and the problem of pkg_* tools that the system can't find in /usr/pkg/sbin but are in
> /usr/sbin?
        
> I donâ??t understand the question. It should just work.

> 9.99.82 has up-to-date pkg_install, so there is no need to install them from pkgsrc and cwrappers should install fine.
        
> Perhaps you have some settings in /etc/pkg_install.conf or /etc/mk.conf that break your setup?
> Thomas 

I copied /usr/sbin/pkg_* to /usr/pkg/sbin, then I was able to install cwrappers and the new pkg_* tools in /usr/pkg/sbin.

I couldn't find any /etc/pkg_install.conf .

> There was one little snag though: /var/db/pkg was present, which is the
> old location of the package database, and pkgsrc didn't like that.
> Things were ok when I removed it. 

> -Olaf.

I changed the PKG_DBDIR to /usr/pkg/pkgdb in /etc/mk.conf .

But now there is another problem, on amd64 but possibly not on i386: building meta-pkgs/pkg_developer calls in lang/go14, and building that crashed the system, messed up /home partition.  I had to run fsck_ffs -y, have a lot of lost+found subdirectories.

On i386 installation, /var/db/pkg shows 

amelia2# ls /var/db/pkg/go*
/var/db/pkg/go-1.8.3:
+BUILD_INFO     +BUILD_VERSION  +COMMENT        +CONTENTS       +DESC           +INSTALLED_INFO +SIZE_ALL       +SIZE_PKG

/var/db/pkg/go14-1.4.3nb6:
+BUILD_INFO     +BUILD_VERSION  +COMMENT        +CONTENTS       +DESC           +INSTALLED_INFO +SIZE_ALL       +SIZE_PKG

/var/db/pkg/gobject-introspection-1.52.1:
+BUILD_INFO     +BUILD_VERSION  +COMMENT        +CONTENTS       +DESC           +INSTALLED_INFO +REQUIRED_BY    +SIZE_ALL       +SIZE_PKG

/var/db/pkg/goffice0.10-0.10.23nb3:
+BUILD_INFO     +BUILD_VERSION  +COMMENT        +CONTENTS       +DESC           +INSTALLED_INFO +REQUIRED_BY    +SIZE_ALL       +SIZE_PKG

so maybe I could try pkg_developer on i386 NetBSD-9.99.82-i386 installation, and be sure to not have /home mounted when building packages: mount only the minimum: /BETA1 (where pkgsrc tree is, also FreeBSD src, ports and doc trees) and / (root).

I was also thinking about updating FreeBSD to HEAD or 13-STABLE, lean toward HEAD, now encouraged by misfortune with NetBSD-HEAD on amd64.

UPDATE: Building meta-pkgs/pkg_developer got partly through but crashed the system, I had to run fsck_ffs.  This was for both amd64 and i386.

meta-pkgs/pkg_developer did not list go14 as a dependency.

Question is now how pervasive lang/go14 is as a dependency through pkgsrc.  Can I still build a productive system with development tools and multimedia, or am I crippled?

Tom
 


Home | Main Index | Thread Index | Old Index